/*
 * FilexFlow CORE-001C — Hero component
 * Isolated styles. No global element selectors.
 */

.fx-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(44px, 6vw, 72px) 0 clamp(32px, 4vw, 48px);
}

.fx-hero__content {
    min-width: 0;
}

.fx-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 7px 12px;
    border: 1px solid rgba(96, 165, 250, .42);
    border-radius: 999px;
    background: rgba(37, 99, 235, .10);
    color: #93c5fd;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.fx-hero__eyebrow::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    content: "";
    box-shadow: 0 0 18px rgba(56, 189, 248, .7);
}

.fx-hero__title {
    max-width: 820px;
    margin: 0;
    color: var(--fx-hero-title, #f8fafc);
    font-size: clamp(2.5rem, 6vw, 4.75rem);
    font-weight: 760;
    letter-spacing: -.055em;
    line-height: .98;
    text-wrap: balance;
}

.fx-hero__subtitle {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--fx-hero-text, #b8c5d9);
    font-size: clamp(1.02rem, 1.8vw, 1.28rem);
    line-height: 1.65;
    text-wrap: pretty;
}

.fx-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.fx-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.fx-button:hover {
    transform: translateY(-1px);
}

.fx-button:focus-visible {
    outline: 3px solid rgba(96, 165, 250, .45);
    outline-offset: 3px;
}

.fx-button--primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #fff;
    box-shadow: 0 14px 34px rgba(37, 99, 235, .34);
}

.fx-button--primary:hover {
    box-shadow: 0 18px 42px rgba(37, 99, 235, .42);
}

.fx-button--secondary {
    border-color: rgba(148, 163, 184, .40);
    background: rgba(15, 23, 42, .55);
    color: #e2e8f0;
}

.fx-hero__trust {
    margin: 18px 0 0;
    color: var(--fx-hero-muted, #8391a7);
    font-size: .88rem;
    line-height: 1.5;
}

.fx-hero__visual {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    border: 1px solid rgba(96, 165, 250, .25);
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 15%, rgba(56, 189, 248, .22), transparent 35%),
        linear-gradient(145deg, rgba(10, 30, 65, .96), rgba(3, 9, 25, .98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .05),
        0 30px 70px rgba(0, 0, 0, .28);
}

.fx-hero__visual::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .04), transparent 70%);
    content: "";
    pointer-events: none;
}

.fx-hero__visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
}

html[data-theme="light"] .fx-hero,
body[data-theme="light"] .fx-hero {
    --fx-hero-title: #0f172a;
    --fx-hero-text: #475569;
    --fx-hero-muted: #64748b;
}

html[data-theme="light"] .fx-button--secondary,
body[data-theme="light"] .fx-button--secondary {
    border-color: rgba(71, 85, 105, .26);
    background: rgba(255, 255, 255, .72);
    color: #0f172a;
}

@media (max-width: 860px) {
    .fx-hero {
        grid-template-columns: 1fr;
        padding-top: 44px;
    }

    .fx-hero__visual {
        min-height: 280px;
    }

    .fx-hero__visual img {
        min-height: 280px;
    }
}

@media (max-width: 520px) {
    .fx-hero {
        width: min(100% - 24px, 1180px);
    }

    .fx-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .fx-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fx-button {
        transition: none;
    }
}
/* =========================================================
   FILEXFLOW — HERO VISUAL CONTAINMENT
   ========================================================= */

.fx-hero {
    padding-top: clamp(28px, 3.5vw, 44px) !important;
    padding-bottom: 16px !important;
}

.fx-hero__visual {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 3vw, 34px);
    box-sizing: border-box;
}

.fx-hero__visual img {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    max-height: 330px;
    object-fit: contain !important;
    object-position: center;
}

/* Evita que atributos HTML de ancho y alto deformen el logo */
.fx-hero__visual img[width],
.fx-hero__visual img[height] {
    height: auto;
}

@media (max-width: 720px) {
    .fx-hero {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        padding-top: 24px !important;
        padding-bottom: 12px !important;
    }

    .fx-hero__visual {
        min-height: 0 !important;
        padding: 20px;
        aspect-ratio: auto !important;
    }

    .fx-hero__visual img {
        width: min(100%, 460px);
        max-height: 220px;
        object-fit: contain !important;
    }
}
