:root {
    --azul: #17365d;
    --azul-claro: #2f75b5;
    --fondo: #eef1f7;
    --blanco: #ffffff;
    --texto: #17365d;
    --gris: #687586;
    --borde: #dce2ea;
    --sombra: rgba(23, 54, 93, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--fondo);
    color: var(--texto);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}


/* =========================================================
   BARRA SUPERIOR
   ========================================================= */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(23, 54, 93, 0.94);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}

.topbar-title {
    color: white;
    font-size: 19px;
    font-weight: bold;
    letter-spacing: 1px;
}


.menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #25D366;
    text-decoration: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.menu-button:hover {
    background: rgba(255, 255, 255, 0.22);
}

.menu-button:active {
    transform: scale(0.95);
}

.menu-button:focus-visible {
    outline: 2px solid #25D366;
    outline-offset: 3px;
}

.whatsapp-button svg {
    display: block;
    width: 26px;
    height: 26px;
}




/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 55vh;

    padding:
        120px 24px
        70px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: white;

    background:

        linear-gradient(
            rgba(23,54,93,.72),
            rgba(23,54,93,.72)
        ),

        url("/img/background.jpg");

    background-size: cover;

    background-position: center;
}


.hero-content {
    max-width: 850px;
}


.hero h1 {
    margin:
        0 0 16px;

    font-size:
        clamp(40px, 8vw, 76px);

    font-weight: bold;

    letter-spacing: 1px;

    text-shadow:
        2px 3px 0 #2f75b5,
        0 8px 20px
        rgba(0,0,0,.35);
}


.hero p {
    margin: 0 auto;

    max-width: 680px;

    font-size:
        clamp(18px, 3vw, 26px);

    line-height: 1.5;
}


/* =========================================================
   CONTENIDO PRINCIPAL
   ========================================================= */


.main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 16px 70px;
}


/* =========================================================
   ACORDEONES
   ========================================================= */

.accordion {
    margin-bottom: 14px;
    overflow: visible;
    border-radius: 16px;
    background: var(--blanco);
    box-shadow: 0 8px 24px rgba(23, 54, 93, 0.10);
}

.accordion-header {
    width: 100%;
    min-height: 64px;
    padding: 18px 22px;
    border: none;
    background: white;
    color: var(--azul);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.accordion-header:hover {
    background: #f8fafd;
}

.accordion-icon {
    font-size: 26px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.accordion-content {
    display: none;
    padding: 0 22px 30px;
}

.accordion.open .accordion-content {
    display: block;
}


/* =========================================================
   TEXTO
   ========================================================= */

.section-text {
    max-width: 850px;
    margin: 0 auto 28px;
    color: #39485a;
    font-size: 17px;
    line-height: 1.65;
}

.section-text p {
    margin: 0 0 16px;
}


/* =========================================================
   CONTENEDOR GENERAL DEL COVER FLOW
   ========================================================= */

.coverflow-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}


/* =========================================================
   INDICACIÓN DEL COVER FLOW
   ========================================================= */

.swipe-hint {
    width: fit-content;
    margin: 0 auto 4px;
    padding: 6px 16px;
    color: var(--azul);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(47, 117, 181, 0.16);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(23, 54, 93, 0.08);
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.3px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.swipe-hint.swipe-hint-hidden {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}


/* =========================================================
   COVER FLOW
   ========================================================= */

.cards-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding: 45px 80px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    perspective: 1200px;
    overscroll-behavior-x: contain;
}

.cards {
    display: flex;
    align-items: center;
    gap: 18px;
    width: max-content;
    padding: 10px calc((100vw - 260px) / 2);
    transform-style: preserve-3d;
}


/* =========================================================
   TARJETAS
   ========================================================= */

.card {
    width: min(58vw, 260px);
    min-height: 320px;
    flex: 0 0 auto;
    scroll-snap-align: center;
    overflow: hidden;
    border-radius: 18px;
    background: white;
    box-shadow: 0 20px 40px rgba(23, 54, 93, 0.18);
    border: 1px solid rgba(23, 54, 93, 0.06);
    transform: translateX(0) scale(0.72) rotateY(0deg);
    opacity: 0.55;
    filter: brightness(0.82);
    transform-origin: center center;
    will-change: transform, opacity, filter;
    transition:
        transform 0.18s ease-out,
        opacity 0.18s ease-out,
        filter 0.18s ease-out,
        box-shadow 0.18s ease-out;
}

.card + .card {
    margin-left: -100px;
}

.card.is-center {
    transform: translateX(0) scale(1) rotateY(0deg);
    opacity: 1;
    filter: brightness(1);
    z-index: 10;
    box-shadow: 0 24px 50px rgba(23, 54, 93, 0.25);
}

.card.is-left {
    transform: translateX(0) scale(0.78) rotateY(32deg);
    opacity: 0.72;
    filter: brightness(0.88);
    z-index: 5;
}

.card.is-right {
    transform: translateX(0) scale(0.78) rotateY(-32deg);
    opacity: 0.72;
    filter: brightness(0.88);
    z-index: 5;
}

.card.is-far-left {
    transform: translateX(0) scale(0.62) rotateY(45deg);
    opacity: 0.38;
    filter: brightness(0.72);
    z-index: 2;
}

.card.is-far-right {
    transform: translateX(0) scale(0.62) rotateY(-45deg);
    opacity: 0.38;
    filter: brightness(0.72);
    z-index: 2;
}


/* =========================================================
   ICONO Y CUERPO DE TARJETA
   ========================================================= */

.card-icon {
    height: 175px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #17365d, #2f75b5);
    color: white;
    font-size: 58px;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    margin: 0 0 10px;
    color: var(--azul);
    font-size: 21px;
}

.card-body p {
    margin: 0;
    color: var(--gris);
    font-size: 15px;
    line-height: 1.5;
}

.card-selected {
    transform: translateY(-6px) scale(1.03) !important;
    box-shadow: 0 28px 55px rgba(23, 54, 93, 0.30) !important;
}



/* =========================================================
   CONTENIDO INTERNO DE LAS TARJETAS COVER FLOW
   ========================================================= */

.card-inner {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-inner .card-icon {
    width: 100%;
    flex: 0 0 175px;
}


/* Fotografía de la tarjeta Quién soy */
.card-icon.card-photo {
    overflow: hidden;
    padding: 0;
}

.card-icon.card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left 7%;
}


.card-title {
    margin: 22px 16px 0;
    color: var(--azul);
    font-size: 22px;
    line-height: 1.25;
    font-weight: bold;
}

.card-description {
    margin: 12px 18px 20px;
    color: var(--gris);
    font-size: 15px;
    line-height: 1.5;
}



/* =========================================================
   PIE DE PÁGINA
   ========================================================= */

.footer {
    padding: 40px 20px;
    background: var(--azul);
    color: white;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}


/* =========================================================
   MODAL DE CONTENIDO
   ========================================================= */

.content-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 25, 45, 0.72);
    backdrop-filter: blur(8px);
}

.content-modal.is-open {
    display: flex;
}

.content-modal-window {
    position: relative;
    width: min(1100px, 100%);
    height: min(850px, 92vh);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--blanco);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.content-modal-header {
    flex: 0 0 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px 0 24px;
    background: var(--azul);
    color: white;
}

.content-modal-title {
    font-size: 19px;
    font-weight: bold;
    letter-spacing: 0.4px;
}

.content-modal-close {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-modal-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.content-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    background: var(--fondo);
}

.content-modal-body iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}


/* =========================================================
   TABLET Y ESCRITORIO
   ========================================================= */

@media (min-width: 700px) {
    .card {
        width: 330px;
    }

    .cards {
        padding-left: calc((100vw - 330px) / 2);
        padding-right: calc((100vw - 330px) / 2);
    }
}

@media (min-width: 1100px) {
    .main {
        padding-left: 30px;
        padding-right: 30px;
    }

    .card {
        width: 350px;
    }

    .cards {
        padding-left: calc((100vw - 350px) / 2);
        padding-right: calc((100vw - 350px) / 2);
    }
}


/* =========================================================
   MÓVILES
   ========================================================= */

@media (max-width: 700px) {
    .content-modal {
        padding: 0;
    }

    .content-modal-window {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .content-modal-header {
        flex-basis: 58px;
        padding-left: 18px;
    }

    .content-modal-title {
        font-size: 17px;
    }

    .content-modal-close {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 420px) {
    .swipe-hint {
        font-size: 13px;
        padding: 5px 10px;
    }
}





/* PORTADA DE CAMPAÑA: LOGOTIPO Y LEMA */

.hero .hero-content.hero-campaign {
    width: 100%;
    max-width: 1500px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(36px, 6vw, 90px);
    text-align: left;
}

.hero .hero-logo {
    display: block;
    flex: 0 1 auto;
    width: clamp(190px, 28vw, 360px);
    height: auto;
    max-width: 40%;
    object-fit: contain;
}

.hero .hero-slogan {
    min-width: 0;
    flex: 0 1 auto;
}

.hero .hero-slogan p {
    margin: 0;
    max-width: none;
    font-size: clamp(40px, 5.5vw, 76px);
    line-height: 1.12;
    font-weight: 600;
    white-space: nowrap;
    text-align: left;
}

.hero .hero-slogan p + p {
    margin-top: 14px;
}

.hero .hero-slogan strong {
    font-weight: 800;
}

/* Adaptación para teléfonos y tabletas */
@media (max-width: 700px) {
    .hero {
        min-height: 48vh;
        padding: 112px 10px 56px;
    }

    .hero .hero-content.hero-campaign {
        gap: 20px;
    }

    .hero .hero-logo {
        width: clamp(100px, 29vw, 185px);
        max-width: 40%;
    }

    .hero .hero-slogan p {
        font-size: clamp(18px, 4.8vw, 35px);
    }

    .hero .hero-slogan p + p {
        margin-top: 8px;
    }
}

@media (max-width: 360px) {
    .hero .hero-content.hero-campaign {
        gap: 7px;
    }

    .hero .hero-logo {
        width: 82px;
    }

    .hero .hero-slogan p {
        font-size: 14px;
    }
}

.internal-content p {
    text-align: justify;
}


.whatsapp-label {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    margin-right: 0px;
    margin-left: 12px;
}

.whatsapp-button {
    width: auto;
    padding: 0 12px;
    gap: 8px;
}

