/* =========================================================
   SEO EXPERTOS
   HERO ELEGANTS PREMIUM
   ========================================================= */

.seoexp-hero {
    position: relative;
    isolation: isolate;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    width: 100%;
    min-height: 100svh;

    overflow: hidden;

    background: #08142d;

    color: #ffffff;
}


/* =========================================================
   VIDEO BACKGROUND
   ========================================================= */

.seoexp-hero__media {
    position: absolute;
    inset: 0;
    z-index: -4;

    overflow: hidden;

    background: #08142d;
}

.seoexp-hero__video {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    pointer-events: none;
}

.seoexp-hero__video--mobile {
    display: none;
}


/* =========================================================
   OVERLAY GENERAL
   ========================================================= */

.seoexp-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -3;

    background:
        linear-gradient(
            180deg,
            rgba(3, 11, 22, 0.22) 0%,
            rgba(3, 11, 22, 0.12) 35%,
            rgba(4, 13, 31, 0.32) 62%,
            rgba(5, 16, 43, 0.72) 100%
        );

    pointer-events: none;
}


/* =========================================================
   CONTENIDO CENTRAL
   ========================================================= */

.seoexp-hero__content {
    position: relative;
    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: min(100%, 1100px);

    margin: 0 auto;

    padding:
        clamp(210px, 24vh, 300px)
        clamp(24px, 5vw, 80px)
        80px;

    text-align: center;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.seoexp-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;

    margin-bottom: 18px;

    padding:
        8px
        18px;

    border:
        1px solid
        rgba(73, 145, 255, 0.45);

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(10, 48, 153, 0.92),
            rgba(14, 43, 128, 0.84)
        );

    box-shadow:
        0 8px 24px
        rgba(0, 34, 117, 0.22);

    color: #ffffff;

    font-size:
        clamp(12px, 1vw, 15px);

    font-weight: 600;

    line-height: 1.2;

    letter-spacing: -0.01em;
}


/* =========================================================
   TITLE
   ========================================================= */

.seoexp-hero__title {
    display: flex;
    flex-direction: column;
    align-items: center;

    max-width: 900px;

    margin: 0;

    font-size:
        clamp(42px, 4.2vw, 68px);

    font-weight: 500;

    line-height: 0.98;

    letter-spacing: -0.045em;

    text-wrap: balance;
}

.seoexp-hero__title-main {
    display: block;

    color: #ffffff;
}

.seoexp-hero__title-highlight {
    display: block;

    margin-top: 5px;

    color: #55d8ff;

    font-weight: 700;

    font-style: italic;
}


/* =========================================================
   ESTADO INICIAL DE LAS ANIMACIONES
   JS AÑADIRÁ .is-ready
   ========================================================= */

.seoexp-hero [data-hero-reveal="drop"] {
    opacity: 0;

    filter: blur(5px);

    transform:
        translateY(-42px);

    transition:
        opacity 900ms ease,
        filter 900ms ease,
        transform 1000ms
            cubic-bezier(0.22, 1, 0.36, 1);
}

.seoexp-hero [data-hero-reveal="side"] {
    opacity: 0;

    filter: blur(5px);

    transform:
        translateX(80px);

    transition:
        opacity 850ms ease 320ms,
        filter 850ms ease 320ms,
        transform 1000ms
            cubic-bezier(0.22, 1, 0.36, 1)
            320ms;
}


/* Entrada vertical */

.seoexp-hero.is-ready
[data-hero-reveal="drop"] {
    opacity: 1;

    filter: blur(0);

    transform:
        translateY(0);
}


/* Entrada lateral */

.seoexp-hero.is-ready
[data-hero-reveal="side"] {
    opacity: 1;

    filter: blur(0);

    transform:
        translateX(0);
}


/* =========================================================
   SERVICIOS
   ========================================================= */

.seoexp-hero__services {
    position: relative;
    z-index: 4;

    width: 100%;

    margin-top: auto;

    padding:
        48px
        clamp(28px, 4.5vw, 80px)
        clamp(42px, 5vw, 72px);
}


/* =========================================================
   FONDO INFERIOR DINÁMICO
   ========================================================= */

.seoexp-hero__services-backdrop {
    position: absolute;

    z-index: -1;

    left: 0;
    right: 0;
    bottom: 0;

    height: 150%;

    background:
        linear-gradient(
            180deg,
            rgba(4, 13, 35, 0) 0%,
            rgba(5, 15, 43, 0.50) 25%,
            rgba(7, 19, 55, 0.86) 62%,
            rgba(7, 18, 51, 0.98) 100%
        );

    transform:
        translateY(32%);

    opacity: 0.78;

    transition:
        transform 750ms
            cubic-bezier(0.22, 1, 0.36, 1),
        opacity 550ms ease;
}


/*
   Cuando existe contenido abierto,
   JS añade esta clase al contenedor.
*/

.seoexp-hero__services.has-open-service
.seoexp-hero__services-backdrop {
    transform:
        translateY(0);

    opacity: 1;
}


/* =========================================================
   GRID DE SERVICIOS
   ========================================================= */

.seoexp-hero__services-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        clamp(32px, 5vw, 90px);

    width: min(100%, 1600px);

    margin: 0 auto;
}


/* =========================================================
   SERVICIO
   ========================================================= */

.seoexp-hero__service {
    position: relative;

    min-width: 0;
}


/* =========================================================
   TOGGLE
   ========================================================= */

.seoexp-hero__service-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    width: 100%;

    margin: 0;
    padding: 0 0 15px;

    border: 0;

    background: transparent;

    color: #53d8ff;

    font: inherit;

    text-align: left;

    cursor: pointer;
}

.seoexp-hero__service-title {
    font-size:
        clamp(16px, 1.25vw, 21px);

    font-weight: 500;

    line-height: 1.25;

    letter-spacing: -0.025em;
}


/* =========================================================
   FLECHA
   ========================================================= */

.seoexp-hero__service-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    flex: 0 0 auto;

    color: #19d5ff;

    transition:
        transform 450ms
            cubic-bezier(0.22, 1, 0.36, 1);
}

.seoexp-hero__service-arrow svg {
    display: block;

    width: 100%;
    height: 100%;
}

.seoexp-hero__service.is-open
.seoexp-hero__service-arrow {
    transform:
        rotate(180deg);
}


/* =========================================================
   CONTENIDO DESPLEGABLE
   ========================================================= */

.seoexp-hero__service-content {
    display: grid;

    grid-template-rows: 0fr;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(-12px);

    transition:
        grid-template-rows 650ms
            cubic-bezier(0.22, 1, 0.36, 1),
        opacity 420ms ease,
        transform 650ms
            cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 650ms;
}

.seoexp-hero__service.is-open
.seoexp-hero__service-content {
    grid-template-rows: 1fr;

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);

    transition:
        grid-template-rows 650ms
            cubic-bezier(0.22, 1, 0.36, 1),
        opacity 500ms ease 100ms,
        transform 650ms
            cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s;
}


/* Necesario para animar 0fr → 1fr */

.seoexp-hero__service-content-inner {
    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr);

    gap: 18px;

    min-height: 0;

    overflow: hidden;

    padding-top: 3px;
}


/* =========================================================
   ICONO
   ========================================================= */

.seoexp-hero__service-icon {
    display: flex;
    align-items: flex-start;
    justify-content: center;

    width: 72px;

    padding-top: 3px;

    flex: 0 0 auto;
}

.seoexp-hero__service-icon img {
    display: block;

    width: 100%;
    height: auto;
    max-height: 70px;

    object-fit: contain;
}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.seoexp-hero__service-description {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.92);

    font-size:
        clamp(13px, 0.95vw, 16px);

    font-weight: 400;

    line-height: 1.45;

    letter-spacing: -0.012em;
}


/* =========================================================
   HOVER
   ========================================================= */

@media (hover: hover) {

    .seoexp-hero__service-toggle:hover
    .seoexp-hero__service-arrow {
        transform:
            translateY(3px);
    }

    .seoexp-hero__service.is-open
    .seoexp-hero__service-toggle:hover
    .seoexp-hero__service-arrow {
        transform:
            rotate(180deg)
            translateY(-3px);
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .seoexp-hero__content {
        padding:
            190px
            32px
            70px;
    }

    .seoexp-hero__services {
        padding:
            40px
            30px
            45px;
    }

    .seoexp-hero__services-grid {
        gap: 30px;
    }

    .seoexp-hero__service-content-inner {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .seoexp-hero__service-icon {
        width: 55px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .seoexp-hero {
        min-height: 100svh;
    }


    /* Cambiamos de video */

    .seoexp-hero__video--desktop {
        display: none;
    }

    .seoexp-hero__video--mobile {
        display: block;
    }


    /* Overlay más fuerte por legibilidad */

    .seoexp-hero__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(2, 8, 18, 0.24) 0%,
                rgba(3, 10, 25, 0.22) 35%,
                rgba(5, 15, 40, 0.56) 65%,
                rgba(6, 18, 51, 0.94) 100%
            );
    }


    /* Contenido */

    .seoexp-hero__content {
        width: 100%;

        padding:
            155px
            20px
            70px;
    }

    .seoexp-hero__eyebrow {
        margin-bottom: 15px;

        padding:
            7px
            13px;

        font-size: 11px;
    }

    .seoexp-hero__title {
        max-width: 620px;

        font-size:
            clamp(37px, 10.5vw, 55px);

        line-height: 0.98;
    }


    /* Servicios verticales */

    .seoexp-hero__services {
        padding:
            30px
            22px
            36px;
    }

    .seoexp-hero__services-grid {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .seoexp-hero__service {
        padding:
            14px 0;

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.10);
    }

    .seoexp-hero__service:last-child {
        border-bottom: 0;
    }

    .seoexp-hero__service-toggle {
        padding-bottom: 0;
    }

    .seoexp-hero__service.is-open
    .seoexp-hero__service-toggle {
        padding-bottom: 15px;
    }

    .seoexp-hero__service-title {
        font-size: 16px;
    }

    .seoexp-hero__service-content-inner {
        grid-template-columns:
            52px
            minmax(0, 1fr);

        gap: 15px;
    }

    .seoexp-hero__service-icon {
        width: 52px;
    }

    .seoexp-hero__service-description {
        font-size: 13px;

        line-height: 1.5;
    }


    /* El fondo sube más en móvil */

    .seoexp-hero__services-backdrop {
        height: 180%;

        transform:
            translateY(38%);
    }

    .seoexp-hero__services.has-open-service
    .seoexp-hero__services-backdrop {
        transform:
            translateY(0);
    }
}


/* =========================================================
   MOBILE PEQUEÑO
   ========================================================= */

@media (max-width: 420px) {

    .seoexp-hero__content {
        padding-top: 140px;
    }

    .seoexp-hero__title {
        font-size:
            clamp(34px, 10vw, 44px);
    }

    .seoexp-hero__services {
        padding-left: 18px;
        padding-right: 18px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .seoexp-hero [data-hero-reveal] {
        opacity: 1;

        filter: none;

        transform: none;

        transition: none;
    }

    .seoexp-hero__service-content,
    .seoexp-hero__service-arrow,
    .seoexp-hero__services-backdrop {
        transition: none;
    }
}