/* Estilos propios de Servicios: sólo header compartido y hero de esta página. */
.grafico { border: 0 !important; }
/* Bloques alternados de servicios. */
.servicio {
    min-height: min(680px, 78vh);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 8vw, 10rem);
    padding: clamp(5rem, 10vw, 9rem) 10%;
}

.servicio.claro {
    background: var(--cream);
    color: var(--navy);
}

.servicio.oscuro {
    background: var(--navy);
    color: var(--cream);
}

.servicio.invertido .texto {
    order: 2;
}

.servicio.invertido .grafico {
    order: 1;
}

.texto {
    max-width: 35rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.texto>span {
    margin-bottom: 1.25rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
}

.texto h2 {
    font-family: 'Jost', sans-serif;
    font-size: clamp(3rem, 6vw, 6.25rem);
    font-weight: 200;
    line-height: .9;
    letter-spacing: -.06em;
}

.texto>p {
    max-width: 29rem;
    margin-top: 1.5rem;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.55;
}

.acordeon {
    width: 100%;
    margin-top: 2rem;
    border-top: 1px solid currentColor;
}

.acordeon details {
    border-bottom: 1px solid currentColor;
}

.acordeon summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    list-style: none;
}

.acordeon summary::-webkit-details-marker {
    display: none;
}

.acordeon summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    transition: transform 180ms ease;
}

.acordeon details[open] summary::after {
    transform: rotate(45deg);
}

.acordeon details p {
    max-width: 32rem;
    padding: 0 2rem 1.2rem 0;
    font-size: .95rem;
    line-height: 1.55;
}

.grafico {
    width: 100%;
    min-height: clamp(18rem, 38vw, 31rem);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grafico img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: clamp(18rem, 38vw, 31rem);
    object-fit: contain;
}


/* Tarjeta 3D de Marca y contenido. Las imágenes usan proporción 661 × 1134. */
.grafico.giro {
    border: 0;
    perspective: 1300px;
}

.tarjeta {
    width: min(100%, 20rem);
    aspect-ratio: 661 / 1134;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 80ms linear;
}

.tarjeta .cara {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.tarjeta .atras {
    transform: rotateY(180deg);
}

@media (max-width: 760px) {
    .servicio {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 5rem 7%;
    }

    .servicio.invertido .texto,
    .servicio.invertido .grafico {
        order: initial;
    }

    .texto h2 {
        font-size: clamp(3rem, 14vw, 4.7rem);
    }

    .grafico {
        min-height: 20rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-body: 'Inter', sans-serif;
    --navy: #102A43;
    --cream: #F3EEE5;
    --white: #FFFFFF;
}

body {
    font-family: var(--font-body);
    overflow-x: hidden;
    background: var(--cream);
}

nav,
nav a,
button {
    font-family: var(--font-body);
    font-weight: 500;
}

/* Header: misma base visual y comportamiento que la página principal. */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    border-radius: 0;
    background-color: transparent;
    transition: top 280ms ease, left 280ms ease, width 280ms ease,
        padding 280ms ease, background-color 280ms ease,
        border-radius 280ms ease, box-shadow 280ms ease;
}

.logocont {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80%;
}

.logocont img {
    display: block;
    height: 100%;
}

header nav {
    display: flex;
    align-items: center;
    width: 70%;
}

header nav ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    list-style: none;
}

header nav ul a {
    color: var(--white);
    text-decoration: none;
    transition: color 280ms ease;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    margin: 5px auto;
    background: var(--white);
    transition: transform 220ms ease, opacity 180ms ease, background-color 280ms ease;
}

header.is-scrolled {
    top: 20px;
    left: 15%;
    width: 70%;
    padding: 0 3%;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 60px;
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 12px 32px rgba(16, 42, 67, .2);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
}

header.is-scrolled nav ul a {
    color: var(--white);
    text-shadow: 0 1px 8px rgba(0, 0, 0, .2);
}

header.is-scrolled .menu-toggle span {
    background: var(--white);
}

.hero {
    margin: 0;
    display: flex;
}

.banner {
    width: 100%;
    display: flex;
    margin: 0 auto;
    border-radius: 0px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: auto;
}

@media (max-width: 760px) {
    header {
        height: 70px;
        padding: 0 1.25rem;
    }

    header.is-scrolled {
        top: 12px;
        left: 4%;
        width: 92%;
        height: 64px;
        padding: 0 1.25rem;
        background: rgba(16, 42, 67, .68);
        border: 1px solid rgba(255, 255, 255, .22);
        box-shadow: 0 12px 30px rgba(16, 42, 67, .28);
        -webkit-backdrop-filter: blur(22px) saturate(140%);
        backdrop-filter: blur(22px) saturate(140%);
    }

    header.is-scrolled .logocont img {
        filter: brightness(0) invert(1);
    }

    .logocont {
        height: 38px;
        flex-shrink: 0;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 2;
        flex-shrink: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    header nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 1rem;
        left: 1rem;
        width: auto;
        padding: 0;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, .28);
        border-radius: 24px;
        background: rgba(255, 255, 255, .1);
        box-shadow: 0 18px 38px rgba(0, 0, 0, .2);
        -webkit-backdrop-filter: blur(22px) saturate(160%);
        backdrop-filter: blur(22px) saturate(160%);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
    }

    header.menu-open nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    header nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .55rem;
    }

    header nav ul a {
        display: block;
        padding: .9rem 1rem;
        border-radius: 16px;
    }

    header.is-scrolled nav {
        background: rgba(16, 42, 67, .78);
        border-color: rgba(255, 255, 255, .24);
    }

    .services-simple-hero {
        min-height: 48vh;
        padding: 7rem 7% 3rem;
    }
}

/* Bloques de servicios: texto y gráfico alternados. */
.servicio {
    min-height: min(680px, 78vh);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 8vw, 10rem);
    padding: clamp(5rem, 10vw, 9rem) 10%;
}

.servicio.claro {
    background: var(--cream);
    color: var(--navy);
}

.servicio.oscuro {
    background: var(--navy);
    color: var(--cream);
}

.servicio.invertido .texto {
    order: 2;
}

.servicio.invertido .grafico {
    order: 1;
}

.texto {
    max-width: 35rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.texto>span {
    margin-bottom: 1.25rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
}

.texto h2 {
    font-family: 'Jost', sans-serif;
    font-size: clamp(3rem, 6vw, 6.25rem);
    font-weight: 200;
    line-height: .9;
    letter-spacing: -.06em;
}

.texto p {
    max-width: 29rem;
    margin-top: 1.75rem;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.55;
}

.texto ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem 1.5rem;
    margin-top: 2rem;
    list-style: none;
}

.texto li {
    font-size: .88rem;
}

.texto li::before {
    content: '— ';
    opacity: .65;
}

.texto a {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin-top: 2.25rem;
    padding: .8rem 1.15rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: inherit;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 200ms ease, background-color 200ms ease, color 200ms ease;
}

.texto a:hover {
    transform: translateY(-3px);
    background: var(--navy);
    color: var(--cream);
}

.oscuro .texto a:hover {
    background: var(--cream);
    color: var(--navy);
}

.texto b {
    transition: transform 200ms ease;
}

.texto a:hover b {
    transform: translateX(.3rem);
}

.grafico {
    width: 100%;
    min-height: clamp(18rem, 38vw, 31rem);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(16, 42, 67, .25);
}

.oscuro .grafico {
    border-color: rgba(243, 238, 229, .3);
}

@media (max-width: 760px) {
    .servicio {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 5rem 7%;
    }

    .servicio.invertido .texto,
    .servicio.invertido .grafico {
        order: initial;
    }

    .texto h2 {
        font-size: clamp(3rem, 14vw, 4.7rem);
    }

    .grafico {
        min-height: 20rem;
    }
}
