:root {
    --banner-height: 100%;
    --bg: #0a0e1a;
    --dot: #7dd3fc;
    --line: #38bdf8;
    --glow: 0 0 18px rgba(56, 189, 248, .35);
    --content-color: #e5e7eb;
}

html,
body {
    margin: 0;
    font-family: "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
    overflow-x: hidden;
    background: #0b0f1a;
}

body {
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    height: 100vh;
}

* {
    box-sizing: border-box;
}


:root{ --header-h: 60px; }

html{
  scroll-behavior: smooth; 
  scroll-padding-top: var(--header-h);
}

section{ 
  scroll-margin-top: var(--header-h);
}




.banner,
.nosotros,
.carousel,
.servicios,
.dosimed,
.noticias {
    /* Establece la altura mínima al 100% de la ventana */
    min-height: 100vh;
    
    /* Display flex para estructura */
    display: flex;
    flex-direction: column;
    
    /* Mantiene el ancho completo */
    width: 100%;
    
    /* Scroll snap */
    scroll-snap-align: start;
}

/* Ajuste específico para el banner para evitar duplicados */
.banner {
    display: grid; /* Mantiene el centrado original */
    place-items: center;
    height: 100vh; /* Usa height en lugar de min-height para el banner */
    min-height: 0; /* Resetea el min-height */
    scroll-snap-stop: always;
}

/* ------------------------------ */

.menu {
    width: 100%;
    background-color: #0d1b2a;
    height: 60px;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    z-index: 100;
    border-bottom: 1px solid #ffffff;
}

.menu__logo {
    position: absolute;
    right: 16px;
    height: calc(var(--header-h) - 20px);
    max-height: calc(var(--header-h) - 10px);
    width: auto;
    object-fit: contain;
    display: block;
}

.menu__brand {
    color: #e2e8f0;
    font-weight: 800;
    font-size: 25px;
    letter-spacing: 1.2px;
}

.page-faqs .menu__brand {
    font-size: clamp(12px, 4vw, 25px);
    max-width: calc(100% - 80px);
    padding-right: 20px;
    line-height: 1.2;
}

.menu__hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu__hamburger span {
    width: 25px;
    height: 3px;
    background-color: #94a3b8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.menu__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.menu__nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.menu a {
    font-size: 17px;
    font-weight: bold;
    color: #94a3b8;
    display: inline-block;
    text-decoration: none;
    padding: 5px;
    transition: color .30s ease-in-out;
}

.menu a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .menu {
        justify-content: space-between;
    }

    .page-faqs .menu__logo {
        height: calc(var(--header-h) - 30px);
        max-height: calc(var(--header-h) - 30px);
        margin-left: 15px;
    }

    .page-faqs .menu__brand {
        font-size: clamp(14px, 5.5vw, 20px) !important;
        max-width: calc(100% - 100px) !important;
        letter-spacing: 0.3px;
        padding-right: 15px !important;
        margin-right: 10px !important;
    }

    .menu__hamburger {
        display: flex;
    }

    .menu__nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #0d1b2a;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid #ffffff;
    }

    .menu__nav.active {
        max-height: 500px;
    }

    .menu a {
        width: 100%;
        padding: 16px;
        text-align: left;
        font-size: 16px;
        border-bottom: 1px solid #1a2c3d;
    }

    .menu a:last-child {
        border-bottom: none;
    }

    .menu a:hover {
        background-color: #1a2c3d;
    }
}

/* ------------------------------ */

.banner {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100vh;
    background: radial-gradient(ellipse 1400px 700px at 50% 50%, rgba(30, 58, 138, .15), transparent 70%), radial-gradient(circle 800px at 20% 80%, rgba(56, 189, 248, .05), transparent 60%), var(--bg);
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    isolation: isolate;
}

.banner__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    pointer-events: none;
}

.banner__logo {
    width: 90%;
    max-width: 900px;
    z-index: 10;
}

/* ------------------------------ */

.nosotros {
    background: #0b111d;
    width: 100%;
    padding: 50px 16px 72px;
}

.nosotros__intro {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px 0;
}

.nosotros__titulo {
    font-size: clamp(28px, 6vw, 42px);
    color: #e2e8f0;
    margin: 0 0 16px;
    font-weight: 800;
}

.nosotros__titulo span {
    color: #12d8d8;
}

.nosotros__content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
}

.nosotros__card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 32px 28px;
    background: #0f1724;
    border: 1px solid #122036;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.nosotros__card:hover {
    border-color: #12d8d8;
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(18, 216, 216, .12);
}

.nosotros__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #12d8d8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(18, 216, 216, .3);
    flex-shrink: 0;
}

.nosotros__icon svg {
    width: 28px;
    height: 28px;
    stroke: #0b111d;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nosotros__card-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nosotros__card-title {
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
}

.nosotros__card-text {
    font-size: clamp(14px, 4vw, 16px);
    color: #cbd5e1;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 600px) {
    .nosotros__card {
        flex-direction: column;
        gap: 16px;
        padding: 24px 20px;
    }
    .nosotros__icon {
        width: 52px;
        height: 52px;
    }
}

/* ------------------------------ */

.noticias {
    background: #0b111d;
    width: 100%;
    padding: 50px 16px 72px;
    scroll-snap-stop: always;
}

.noticias__intro {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px 0;
}

.noticias__titulo {
    font-size: clamp(28px, 6vw, 42px);
    color: #e2e8f0;
    margin: 0 0 16px;
    font-weight: 800;
}

.noticias__titulo span {
    color: #12d8d8;
}

.noticias__sub {
    font-size: clamp(14px, 4vw, 16px);
    color: #94a3b8;
    line-height: 1.65;
    max-width: 900px;
    margin: 0 auto 24px;
}

.noticias__grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.noticia {
    background: #0f1724;
    border: 1px solid #122036;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    cursor: pointer;
}

.noticia:hover,
.noticia:focus-visible {
    border-color: #12d8d8;
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(18, 216, 216, .12);
    outline: none;
}

.noticia__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.noticia__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #12d8d8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(18, 216, 216, .25);
    flex-shrink: 0;
}

.noticia__icon svg {
    width: 22px;
    height: 22px;
    stroke: #0b111d;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.noticia__titulo {
    font-size: clamp(16px, 5vw, 19px);
    font-weight: 700;
    color: #e2e8f0;
    margin: 0;
    line-height: 1.3;
}

.noticia__texto {
    font-size: clamp(14px, 4vw, 15px);
    color: #cbd5e1;
    line-height: 1.65;
    margin: 0;
}

.noticia__texto strong {
    color: #12d8d8;
    font-weight: 600;
}

.noticia__cta {
    margin-top: 16px;
}

.noticia__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid #12d8d8;
    color: #12d8d8;
    background: transparent;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s ease;
}

.noticia__btn:hover,
.noticia__btn:focus-visible {
    background: #12d8d8;
    color: #0b111d;
    box-shadow: 0 10px 24px rgba(18, 216, 216, .24);
    outline: none;
}

@media (max-width: 768px) {
    .noticias__grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------ */

.faqs {
    width: 100%;
    background: #0b111d;
    padding: 50px 0 72px;
    min-height: calc(100vh - var(--header-h));
}

.faqs__intro {
    text-align: center;
    max-width: 860px;
    margin: 40px auto 36px;
    padding: 0 16px;
}

.faqs__titulo {
    font-size: clamp(26px, 5vw, 32px);
    color: #e2e8f0;
    margin: 0 0 12px;
    line-height: 1.2;
}

.faqs__titulo span {
    color: #12d8d8;
}

.faqs__sub {
    font-size: clamp(14px, 4vw, 16px);
    color: #94a3b8;
    line-height: 1.65;
    margin: 0;
}

.faqs__grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.faq {
    background: #0f1724;
    border: 1px solid #122036;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
    overflow: hidden;
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: transparent;
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq__chevron {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 1px solid #25344a;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.faq.is-open .faq__chevron {
    transform: rotate(180deg);
    background: #12d8d8;
    color: #0b111d;
}

.faq__answer {
    padding: 0 20px 18px;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.65;
    display: none;
}

.faq__answer p {
    margin: 0 0 10px;
}

.faq__answer ul {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 6px;
}

.faq.is-open .faq__answer {
    display: block;
}

@media (max-width: 768px) {
    .faqs {
        padding: 50px 0 64px;
    }

    .faq__question {
        font-size: 15px;
        padding: 16px 18px;
    }

    .faq__answer {
        font-size: 14px;
    }
}

/* ------------------------------ */

.servicios {
    width: 100%;
    background: #0b111d;
    padding: 50px 0 72px;
    min-height: calc(100vh - var(--header-h)); /* compensa el scroll-padding del header para que el borde inferior coincida con la ventana */
}

.grilla {
    max-width: 1200px;
    margin: 16px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.servicio {
    background: #0f1724;
    min-height: 180px;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    padding: 32px;
    border: 1px solid #122036;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    will-change: transform;
}

.servicio__titulo {
    display: block;
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 700;
    color: #e2e8f0;
}

.servicio__texto {
    font-size: clamp(14px, 4vw, 16px);
    color: #cbd5e1;
    line-height: 1.6;
}

.servicio:hover,
.servicio:focus-visible {
    border-color: #12d8d8;
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(18, 216, 216, .15);
    outline: none;
}

.servicios__intro {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    color: #cbd5e1;
    padding: 0 24px 0;
}

.servicios__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #38d3d3;
    border: 1px solid #122036;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    letter-spacing: .3px;
    margin-bottom: 14px;
}

.servicios__titulo {
    font-size: clamp(28px, 6vw, 42px);
    color: #e2e8f0;
    margin: 0 0 16px;
    font-weight: 800;
}

.servicios__titulo span {
    color: #12d8d8;
}

.servicios__sub {
    font-size: clamp(15px, 4vw, 17px);
    color: #cbd5e1;
    margin: 0;
    line-height: 1.6;
}

.servicio__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #12d8d8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(18, 216, 216, .25);
}

.servicio__icon svg {
    width: 24px;
    height: 24px;
    stroke: #0b111d;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 900px) {
    .grilla {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grilla {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    .servicio {
        width: 90vw;
        max-width: 90%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .banner__canvas {
        display: none;
    }
    .servicio {
        transition: border-color .2s ease;
    }
    .servicio:hover,
    .servicio:focus-visible {
        transform: none;
    }
}

/* ------------------------------ */

.dosimed { 
    background: linear-gradient(135deg, #1E3A8A 0%, #0b111d 100%);
    width: 100%;
    padding: 50px 16px 72px;
}

.dosimed__intro {
    max-width: 1100px;
    margin: 0 auto 48px;
    text-align: center;
    padding: 0 24px;
}

.dosimed__logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 0 auto 32px;
    display: block;
}

.dosimed__titulo {
    font-size: clamp(28px, 6vw, 42px);
    color: #e2e8f0;
    margin: 0 0 16px;
    font-weight: 800;
}

.dosimed__titulo span {
    color: #12d8d8;
}

.dosimed__descripcion {
    font-size: clamp(15px, 4vw, 18px);
    color: #94a3b8;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.dosimed__features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.dosimed__feature {
    background: rgba(18, 32, 54, 0.5);
    border: 1px solid rgba(18, 216, 216, 0.2);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.dosimed__feature:hover {
    transform: translateY(-4px);
    border-color: rgba(18, 216, 216, 0.5);
    box-shadow: 0 8px 24px rgba(18, 216, 216, 0.15);
}

.dosimed__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.dosimed__icon svg {
    width: 100%;
    height: 100%;
    stroke: #12d8d8;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.dosimed__feature-title {
    font-size: clamp(16px, 4vw, 18px);
    color: #e2e8f0;
    margin: 0 0 12px;
    font-weight: 700;
}

.dosimed__feature-text {
    font-size: clamp(13px, 3.5vw, 14px);
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .dosimed__features {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------ */

.contacto {
    background: #0b111d;
    width: 100%;
    padding: 0 16px 72px;
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.contacto__intro {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px 0;
    width: 100%;
}

.contacto__titulo {
    font-size: clamp(28px, 6vw, 42px);
    color: #e2e8f0;
    margin: 0 0 16px;
    font-weight: 800;
    padding-top: 110px;
}

.contacto__grid {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 24px;
    width: 100%;
}

.contacto__card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 20px 18px;
    background: #0f1724;
    border: 1px solid #122036;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .22);
}

.contacto__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #12d8d8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 18px rgba(18, 216, 216, .28);
    flex-shrink: 0;
}

.contacto__icon svg {
    width: 26px;
    height: 26px;
    stroke: #0b111d;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contacto__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contacto__title {
    font-weight: 700;
    font-size: 16px;
    color: #e2e8f0;
    margin: 0;
}

.contacto__text {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.5;
}

.footer {
    margin-top: auto;
    padding: 0 16px;
    border-top: 1px solid #122036;
    height: 70px;
    display: flex;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
}

.footer__content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__nav {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.footer__link {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: none;
    transition: color .25s ease;
}

.footer__link:hover {
    color: #12d8d8;
}

.footer__copy {
    font-size: 14px;
    color: #64748b;
}

@media (max-width: 768px) {
    .footer {
        height: 120px;
    }

    .footer__content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .footer__nav {
        justify-content: center;
    }
    .contacto__grid {
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .contacto__card {
        padding: 18px;
    }
    .contacto__icon {
        width: 48px;
        height: 48px;
    }
    .contacto__icon svg {
        width: 22px;
        height: 22px;
    }
}

/* ------------------------------ */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ------------------------------ */