html {
    scroll-behavior: smooth;
}

/* HERO */

.hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #082B4C;
}

/* Imagen de fondo */

.hero__image {
    position: absolute;
    inset: 0;
    background-image: url("../assets/images/familia-soluciones.webp");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Capa azul encima de la imagen */

.hero__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(3, 22, 51, 0.96) 0%,
            rgba(8, 43, 76, 0.93) 25%,
            rgba(14, 79, 122, 0.76) 52%,
            rgba(14, 79, 122, 0.32) 72%,
            rgba(3, 22, 51, 0.08) 100%
        );
}

/* Contenedor del contenido */

.hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 110px 40px 80px;
}

.hero__content {
    max-width: 720px;
}

/* Etiqueta superior */

.hero__eyebrow {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    margin-bottom: 26px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    font-size: 14px;
    font-weight: 600;
}

.hero__eyebrow .material-symbols-outlined {
    color: #5DE0CF;
    font-size: 20px;
}

/* Título */

.hero__title {
    margin: 0 0 24px;
    color: #ffffff;
    font-family: "Public Sans", sans-serif;
    font-size: clamp(38px, 4.2vw, 56px);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.035em;
}

/* Texto */

.hero__description {
    max-width: 640px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
    line-height: 1.6;
}

/* Elementos de confianza */

.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 26px;
    margin-bottom: 36px;
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    font-weight: 600;
}

.hero__trust-item .material-symbols-outlined {
    color: #5DE0CF;
    font-size: 21px;
}

/* Botones */

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero__button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Botón verde */

.hero__button--primary {
    background: #18A979;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.hero__button--primary:hover {
    background: #128C66;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

/* Botón transparente */

.hero__button--secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
}

.hero__button--secondary:hover {
    background: rgba(255, 255, 255, 0.20);
    transform: translateY(-2px);
}

/* TABLET */

@media (max-width: 1024px) {

    .hero {
        min-height: 650px;
    }

    .hero__container {
        padding: 100px 32px 70px;
    }

    .hero__content {
        max-width: 630px;
    }

    .hero__image {
        background-position: 58% center;
    }

    .hero__overlay {
        background:
            linear-gradient(
                90deg,
                rgba(3, 22, 51, 0.97) 0%,
                rgba(8, 43, 76, 0.90) 38%,
                rgba(14, 79, 122, 0.63) 67%,
                rgba(3, 22, 51, 0.20) 100%
            );
    }
}


/* MÓVIL */

@media (max-width: 767px) {

    .hero {
        min-height: 720px;
        align-items: flex-end;
    }

    .hero__image {
        background-position: 58% center;
    }

    .hero__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(3, 22, 51, 0.30) 0%,
                rgba(3, 22, 51, 0.62) 30%,
                rgba(3, 22, 51, 0.94) 65%,
                rgba(3, 22, 51, 0.99) 100%
            );
    }

    .hero__container {
        padding: 120px 20px 48px;
    }

    .hero__title {
        font-size: 39px;
        line-height: 1.08;
    }

    .hero__description {
        font-size: 17px;
        line-height: 1.55;
    }

    .hero__eyebrow {
        font-size: 12px;
    }

    .hero__trust {
        flex-direction: column;
        gap: 10px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__button {
        width: 100%;
    }
}
/* ========================================
   MODAL - CANALES DE ATENCIÓN
======================================== */

.contact-modal[hidden] {
    display: none;
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}


/* Fondo oscuro detrás del modal */

.contact-modal__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(3, 22, 51, 0.62);

    backdrop-filter: blur(4px);
}


/* Panel principal */

.contact-modal__panel {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 620px;

    max-height: 90vh;
    overflow-y: auto;

    background: #ffffff;

    border-radius: 24px;

    padding: 44px;

    box-shadow:
        0 24px 70px rgba(3, 22, 51, 0.28);
}


/* Botón cerrar */

.contact-modal__close {
    position: absolute;

    top: 20px;
    right: 20px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 50%;

    background: #f0f3f7;

    color: #082B4C;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.contact-modal__close:hover {
    background: #e1e8ee;
    transform: scale(1.05);
}


/* Encabezado */

.contact-modal__header {
    padding-right: 40px;

    margin-bottom: 34px;
}

.contact-modal__label {
    display: inline-block;

    margin-bottom: 10px;

    color: #18A979;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.08em;
}

.contact-modal__header h2 {
    margin: 0 0 12px;

    color: #031633;

    font-family: "Public Sans", sans-serif;

    font-size: 32px;
    line-height: 1.2;

    font-weight: 700;
}

.contact-modal__header p {
    margin: 0;

    color: #5c5f61;

    font-size: 16px;
    line-height: 1.6;
}


/* Contenedor de canales */

.contact-modal__content {
    display: flex;
    flex-direction: column;

    gap: 18px;
}


/* Tarjeta de canal */

.contact-channel {
    display: flex;

    gap: 18px;

    padding: 22px;

    border: 1px solid #dfe6ec;

    border-radius: 18px;

    background: #ffffff;
}


/* WhatsApp destacado */

.contact-channel--featured {
    background: #f3fbf8;

    border-color: #b8e4d7;
}


/* Icono */

.contact-channel__icon {
    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #e7f7f2;

    color: #128C66;
}

.contact-channel__icon .material-symbols-outlined {
    font-size: 26px;
}


/* Contenido */

.contact-channel__body {
    flex: 1;
}

.contact-channel__body h3 {
    margin: 0 0 8px;

    color: #082B4C;

    font-size: 20px;
    font-weight: 700;
}

.contact-channel__body p {
    margin: 0 0 16px;

    color: #5c5f61;

    font-size: 15px;
    line-height: 1.6;
}


/* Horarios */

.contact-channel__schedule {
    display: flex;
    flex-direction: column;

    gap: 5px;

    margin-bottom: 16px;

    color: #5c5f61;

    font-size: 14px;
    line-height: 1.5;
}

.contact-channel__schedule strong {
    color: #082B4C;
}


/* Botón principal WhatsApp */

.contact-channel__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 12px 22px;

    border-radius: 999px;

    background: #18A979;

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.contact-channel__button:hover {
    background: #128C66;

    transform: translateY(-1px);
}


/* Links secundarios */

.contact-channel__link {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: #0E7C8C;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;
}

.contact-channel__link:hover {
    text-decoration: underline;
}

.contact-channel__link .material-symbols-outlined {
    font-size: 18px;
}


/* Evita scroll del sitio cuando está abierto */

body.modal-open {
    overflow: hidden;
}


/* ========================================
   MODAL - MÓVIL
======================================== */

@media (max-width: 767px) {

    .contact-modal {
        padding: 0;

        align-items: stretch;
    }

    .contact-modal__panel {
        max-width: none;
        max-height: none;

        height: 100%;

        border-radius: 0;

        padding:
            76px
            20px
            32px;
    }

    .contact-modal__close {
        position: fixed;

        top: 18px;
        right: 18px;

        z-index: 3;
    }

    .contact-modal__header {
        padding-right: 0;

        margin-bottom: 28px;
    }

    .contact-modal__header h2 {
        font-size: 28px;
    }

    .contact-channel {
        padding: 18px;

        gap: 14px;
    }

    .contact-channel__icon {
        width: 44px;
        height: 44px;
    }

}
/* ========================================
   HEADER - MARCA
======================================== */

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}

.site-brand__logo {
    display: block;

    width: 44px;
    height: 44px;

    max-width: 44px;
    max-height: 44px;

    object-fit: contain;

    flex: 0 0 44px;
}

.site-brand__name {
    display: flex;
    flex-direction: column;

    color: #031633;

    font-family: "Public Sans", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;

    white-space: nowrap;
}

.site-brand__name-secondary {
    display: block;

    margin-top: 2px;

    font-size: 13px;
    font-weight: 600;
}


/* TABLET Y MÓVIL */

@media (max-width: 767px) {

    .site-brand {
        gap: 7px;
    }

    .site-brand__logo {
        width: 36px;
        height: 36px;

        max-width: 36px;
        max-height: 36px;

        flex-basis: 36px;
    }

    .site-brand__name {
        font-size: 13px;
        line-height: 1.05;
    }

    .site-brand__name-secondary {
        font-size: 10px;
    }

}
/* ========================================
   MODAL - DETALLE DE SERVICIO
======================================== */

.service-modal[hidden] {
    display: none;
}

.service-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.service-modal__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(3, 22, 51, 0.68);
    backdrop-filter: blur(4px);
}

.service-modal__panel {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 720px;
    max-height: 90vh;

    overflow-y: auto;

    background: #ffffff;

    border-radius: 24px;

    padding: 44px;

    box-shadow:
        0 24px 70px rgba(3, 22, 51, 0.28);
}

.service-modal__close {
    position: absolute;

    top: 20px;
    right: 20px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: #f0f3f7;
    color: #082B4C;

    cursor: pointer;
}

.service-modal__header {
    padding-right: 50px;
    margin-bottom: 30px;
}

.service-modal__label {
    display: inline-block;

    margin-bottom: 10px;

    color: #18A979;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.08em;
}

.service-modal__header h2 {
    margin: 0 0 12px;

    color: #031633;

    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.service-modal__header p {
    margin: 0;

    color: #5c5f61;

    font-size: 17px;
    line-height: 1.6;
}

.service-modal__sections {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.service-modal__section {
    padding: 20px;

    border: 1px solid #dfe6ec;
    border-radius: 16px;

    background: #ffffff;
}

.service-modal__section h3 {
    margin: 0 0 8px;

    color: #082B4C;

    font-size: 18px;
    font-weight: 700;
}

.service-modal__section p {
    margin: 0;

    color: #5c5f61;

    font-size: 15px;
    line-height: 1.6;
}

.service-modal__section--notice {
    background: #f7fafc;
}

.service-modal__actions {
    display: flex;
    flex-wrap: wrap;

    gap: 14px;

    margin-top: 28px;
}

.service-modal__button {
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 13px 22px;

    border-radius: 999px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.service-modal__button--primary {
    background: #18A979;
    color: #ffffff;
}

.service-modal__button--primary:hover {
    background: #128C66;
}

.service-modal__button--secondary {
    background: #ffffff;

    border: 1px solid #082B4C;

    color: #082B4C;
}

.service-modal__button--secondary:hover {
    background: #f0f3f7;
}


/* MOBILE */

@media (max-width: 767px) {

    .service-modal {
        padding: 0;
        align-items: stretch;
    }

    .service-modal__panel {
        max-width: none;
        max-height: none;

        height: 100%;

        border-radius: 0;

        padding: 76px 20px 32px;
    }

    .service-modal__close {
        position: fixed;

        top: 18px;
        right: 18px;

        z-index: 3;
    }

    .service-modal__header {
        padding-right: 0;
    }

    .service-modal__header h2 {
        font-size: 28px;
    }

    .service-modal__actions {
        flex-direction: column;
    }

    .service-modal__button {
        width: 100%;
    }

}
/* ========================================
   CHECKLIST - MODAL DE SERVICIOS
======================================== */

.service-modal__checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.service-modal__checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    color: #5c5f61;

    font-size: 15px;
    line-height: 1.5;
}

.service-modal__checklist .material-symbols-outlined {
    flex-shrink: 0;

    margin-top: 1px;

    color: #18A979;

    font-size: 20px;
}
/* ========================================
   TESTIMONIOS
======================================== */

.testimonials-section {
    padding: 88px 24px;
    background: #f7f9fc;
}

.testimonials-container {
    max-width: 1100px;
    margin: 0 auto;
}

.testimonials-header {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.testimonials-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #18A979;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.testimonials-header h2 {
    margin: 0 0 14px;
    color: #031633;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
}

.testimonials-header p {
    margin: 0;
    color: #5c5f61;
    font-size: 18px;
    line-height: 1.6;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 240px);
    justify-content: center;
    align-items: start;

    gap: 28px;

    width: 100%;
    max-width: 560px;

    margin: 0 auto;
}

.testimonial-card {
    width: 240px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #dfe6ec;
    border-radius: 20px;

    box-shadow: 0 10px 28px rgba(3, 22, 51, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 16px 36px rgba(3, 22, 51, 0.12);
}

.testimonial-video-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.testimonial-card__image {
    width: 100%;

    aspect-ratio: 9 / 16;

    object-fit: cover;

    max-height: 410px;
}

.testimonial-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(3, 22, 51, 0.02) 0%,
        rgba(3, 22, 51, 0.20) 100%
    );
}

.testimonial-card__play {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.94);

    color: #082B4C;

    box-shadow: 0 8px 24px rgba(3, 22, 51, 0.20);

    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.testimonial-video-button:hover .testimonial-card__play {
    transform: translate(-50%, -50%) scale(1.06);
}

.testimonial-card__play .material-symbols-outlined {
    font-size: 32px;
}

.testimonial-card__play .material-symbols-outlined {
    font-size: 38px;
}

.testimonial-card__content {
    padding: 18px;
}

.testimonial-card__service {
    display: inline-block;

    margin-bottom: 6px;

    color: #18A979;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.testimonial-card__content h3 {
    margin: 0 0 14px;

    color: #082B4C;

    font-size: 18px;
    font-weight: 700;
}

.testimonial-card__content h3 {
    margin: 0 0 10px;
    color: #082B4C;
    font-size: 20px;
    font-weight: 700;
}

.testimonial-card__content p {
    margin: 0 0 16px;
    color: #5c5f61;
    font-size: 15px;
    line-height: 1.6;
}

.testimonial-card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #0E7C8C;
    font-size: 14px;
    font-weight: 700;
}

.testimonials-disclaimer {
    max-width: 760px;
    margin: 28px auto 0;

    text-align: center;

    color: #75777e;

    font-size: 13px;
    line-height: 1.5;
}


/* ========================================
   MODAL VIDEO
======================================== */

.video-modal[hidden] {
    display: none;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.video-modal__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(3, 22, 51, 0.82);
    backdrop-filter: blur(6px);
}

.video-modal__panel {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 440px;

    max-height: 92vh;

    padding: 24px;

    overflow-y: auto;

    background: #ffffff;

    border-radius: 24px;

    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.video-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.92);
    color: #082B4C;

    cursor: pointer;
}

.video-modal__title {
    margin: 0 50px 18px 0;

    color: #031633;

    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
}

.video-modal__player-wrapper {
    overflow: hidden;

    border-radius: 18px;

    background: #000000;
}

.video-modal__player {
    display: block;

    width: 100%;

    aspect-ratio: 9 / 16;

    object-fit: contain;

    background: #000000;
}


/* MOBILE */

@media (max-width: 767px) {

    .testimonials-section {
        padding: 64px 20px;
    }

    .testimonials-header {
        margin-bottom: 34px;
    }

    .testimonials-header h2 {
        font-size: 30px;
    }

    .testimonials-header p {
        font-size: 16px;
    }

    .testimonials-grid {
    grid-template-columns: 280px;
    justify-content: center;

    max-width: 100%;
}

.testimonial-card {
    width: 280px;
}

    .video-modal {
        padding: 0;
        align-items: stretch;
    }

    .video-modal__panel {
        max-width: none;
        max-height: none;

        height: 100%;

        padding: 68px 16px 24px;

        border-radius: 0;

        background: #031633;
    }

    .video-modal__title {
        color: #ffffff;
    }

}
/* ========================================
   FOOTER
======================================== */

.site-footer {
    width: 100%;

    padding: 42px 32px;

    background: #031633;

    color: #ffffff;
}


.site-footer__container {
    width: 100%;
    max-width: 1200px;

    display: grid;

    grid-template-columns:
        1fr auto 1.4fr;

    align-items: center;

    gap: 32px;

    margin: 0 auto;
}


/* Marca */

.site-footer__brand {
    display: flex;
    flex-direction: column;

    gap: 2px;

    color: #ffffff;

    line-height: 1.2;
}


.site-footer__brand strong {
    font-size: 20px;
    font-weight: 700;
}


.site-footer__brand span {
    font-size: 15px;
    font-weight: 600;
}


/* Enlaces */

.site-footer__links {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    white-space: nowrap;
}


.site-footer__links a {
    color: rgba(255, 255, 255, 0.82);

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.2s ease;
}


.site-footer__links a:hover {
    color: #5DE0CF;
}


.site-footer__links > span {
    color: rgba(255, 255, 255, 0.35);
}


/* Copyright */

.site-footer__meta {
    text-align: right;

    color: rgba(255, 255, 255, 0.62);

    font-size: 13px;
    line-height: 1.5;
}


.site-footer__meta p {
    margin: 0;
}


.footer__credits {
    margin-top: 6px !important;
}


.footer__credits a {
    color: rgba(255, 255, 255, 0.90);

    font-weight: 600;

    text-decoration: none;
}


.footer__credits a:hover {
    color: #5DE0CF;

    text-decoration: underline;
}


/* ========================================
   FOOTER - TABLET
======================================== */

@media (max-width: 900px) {

    .site-footer__container {
        grid-template-columns:
            1fr 1fr;
    }


    .site-footer__links {
        justify-content: flex-end;
    }


    .site-footer__meta {
        grid-column:
            1 / -1;

        text-align: center;
    }

}


/* ========================================
   FOOTER - MÓVIL
======================================== */

@media (max-width: 767px) {

    .site-footer {
        padding:
            30px
            20px
            28px;
    }


    .site-footer__container {
        display: flex;
        flex-direction: column;

        gap: 20px;
    }


    .site-footer__brand {
        align-items: center;

        text-align: center;
    }


    .site-footer__brand strong {
        font-size: 18px;
    }


    .site-footer__brand span {
        font-size: 14px;
    }


    .site-footer__links {
        flex-wrap: wrap;

        gap: 8px;

        margin: 0;
    }


    .site-footer__links a {
        font-size: 13px;
    }


    .site-footer__meta {
        width: 100%;

        padding-top: 16px;

        border-top:
            1px solid
            rgba(255, 255, 255, 0.12);

        text-align: center;

        font-size: 12px;
    }


    .footer__credits {
        margin-top: 6px !important;
    }

}
/* ========================================
   MODAL - AGENDAR ORIENTACIÓN
======================================== */

.appointment-modal[hidden] {
    display: none;
}

.appointment-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.appointment-modal__backdrop {
    position: absolute;
    inset: 0;

    background: rgba(3, 22, 51, 0.72);
    backdrop-filter: blur(5px);
}

.appointment-modal__panel {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 620px;

    max-height: 92vh;
    overflow-y: auto;

    background: #ffffff;

    border-radius: 24px;

    padding: 44px;

    box-shadow:
        0 24px 70px rgba(3, 22, 51, 0.30);
}

.appointment-modal__close {
    position: absolute;

    top: 20px;
    right: 20px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: #f0f3f7;
    color: #082B4C;

    cursor: pointer;
}

.appointment-modal__header {
    padding-right: 48px;
    margin-bottom: 30px;
}

.appointment-modal__label {
    display: inline-block;

    margin-bottom: 10px;

    color: #18A979;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.08em;
}

.appointment-modal__header h2 {
    margin: 0 0 12px;

    color: #031633;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
}

.appointment-modal__header p {
    margin: 0;

    color: #5c5f61;

    font-size: 16px;
    line-height: 1.6;
}


/* FORMULARIO */

.appointment-form {
    display: flex;
    flex-direction: column;

    gap: 18px;
}

.appointment-form__group {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.appointment-form__group label {
    color: #082B4C;

    font-size: 14px;
    font-weight: 700;
}

.appointment-form__group input,
.appointment-form__group select {
    width: 100%;

    min-height: 50px;

    padding: 12px 14px;

    border: 1px solid #cfd7df;
    border-radius: 12px;

    background: #ffffff;

    color: #031633;

    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.appointment-form__group input:focus,
.appointment-form__group select:focus {
    border-color: #18A979;

    box-shadow:
        0 0 0 3px rgba(24, 169, 121, 0.12);
}

.appointment-form__group input[readonly] {
    background: #f4f7fa;
    color: #5c5f61;
}

.appointment-form__group small {
    color: #75777e;

    font-size: 12px;
    line-height: 1.4;
}


/* ========================================
   CONSENTIMIENTO Y PRIVACIDAD
======================================== */

.appointment-consent {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


/* Checkbox + texto */

.appointment-consent__check {
    display: flex;
    align-items: flex-start;

    gap: 11px;

    padding: 14px;

    border: 1px solid #dfe6ec;
    border-radius: 12px;

    background: #ffffff;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}


.appointment-consent__check:hover {
    border-color: #b8d8cf;

    background: #fbfefd;
}


/* Checkbox */

.appointment-consent__check input[type="checkbox"] {
    width: 18px;
    height: 18px;

    min-width: 18px;

    margin-top: 2px;

    border: 1.5px solid #9aa6af;
    border-radius: 4px;

    color: #18A979;

    cursor: pointer;
}


.appointment-consent__check input[type="checkbox"]:focus {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(24, 169, 121, 0.14);
}


/* Texto */

.appointment-consent__text {
    color: #5c5f61;

    font-size: 12px;
    line-height: 1.55;
}


.appointment-consent__text a {
    color: #0E7C8C;

    font-weight: 700;

    text-decoration: underline;

    text-underline-offset: 2px;
}


.appointment-consent__text a:hover {
    color: #075f6c;
}


/* Aviso inferior */

.appointment-consent__notice {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    padding: 11px 13px;

    border-radius: 10px;

    background: #f7fafc;
}


.appointment-consent__notice .material-symbols-outlined {
    flex-shrink: 0;

    color: #18A979;

    font-size: 18px;
}


.appointment-consent__notice p {
    margin: 0;

    color: #6b747c;

    font-size: 11px;
    line-height: 1.5;
}


/* BOTÓN */

.appointment-form__submit {
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 14px 22px;

    border: none;
    border-radius: 999px;

    background: #18A979;

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.appointment-form__submit:hover {
    background: #128C66;

    transform: translateY(-1px);
}


/* ========================================
   MÓVIL
======================================== */

@media (max-width: 767px) {

    .appointment-modal {
        padding: 0;

        align-items: stretch;
    }

    .appointment-modal__panel {
        max-width: none;
        max-height: none;

        height: 100%;

        border-radius: 0;

        padding:
            72px
            20px
            32px;
    }

    .appointment-modal__close {
        position: fixed;

        top: 18px;
        right: 18px;

        z-index: 3;
    }

    .appointment-modal__header {
        padding-right: 0;
    }

    .appointment-modal__header h2 {
        font-size: 27px;
    }

}
/* ========================================
   ESTADOS - AGENDAR ORIENTACIÓN
======================================== */


/* MENSAJES DE ERROR / ADVERTENCIA */

.appointment-feedback[hidden] {
    display: none;
}

.appointment-feedback {
    padding: 14px 16px;

    border-radius: 12px;

    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
}

.appointment-feedback--error {
    color: #8a1c1c;

    background: #fff1f0;

    border: 1px solid #f2c8c5;
}

.appointment-feedback--warning {
    color: #725400;

    background: #fff8df;

    border: 1px solid #ead99a;
}


/* ========================================
   CONFIRMACIÓN EXITOSA
======================================== */

.appointment-success[hidden] {
    display: none;
}

.appointment-success {
    padding: 18px 4px 4px;

    text-align: center;
}

.appointment-success__icon {
    width: 74px;
    height: 74px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 22px;

    border-radius: 50%;

    background: #e5f7f1;
    color: #128C66;
}

.appointment-success__icon .material-symbols-outlined {
    font-size: 42px;
    font-weight: 700;
}

.appointment-success__label {
    display: block;

    margin-bottom: 9px;

    color: #18A979;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.08em;
}

.appointment-success h2 {
    margin: 0 auto 14px;

    max-width: 480px;

    color: #031633;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
}

.appointment-success__text {
    max-width: 470px;

    margin: 0 auto 28px;

    color: #5c5f61;

    font-size: 16px;
    line-height: 1.6;
}


/* DETALLES */

.appointment-success__details {
    display: flex;
    flex-direction: column;

    gap: 12px;

    margin-bottom: 22px;

    text-align: left;
}

.appointment-success__detail {
    display: flex;
    align-items: center;

    gap: 14px;

    padding: 16px;

    border: 1px solid #dfe6ec;
    border-radius: 14px;

    background: #f9fbfc;
}

.appointment-success__detail > .material-symbols-outlined {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 12px;

    background: #e5f7f1;

    color: #128C66;
}

.appointment-success__detail div {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.appointment-success__detail small {
    color: #75777e;

    font-size: 12px;
}

.appointment-success__detail strong {
    color: #082B4C;

    font-size: 15px;
    font-weight: 700;
}


/* AVISO WHATSAPP */

.appointment-success__notice {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    padding: 14px;

    margin-bottom: 24px;

    text-align: left;

    border-radius: 12px;

    background: #f3fbf8;
}

.appointment-success__notice .material-symbols-outlined {
    color: #18A979;

    font-size: 21px;
}

.appointment-success__notice p {
    margin: 0;

    color: #5c5f61;

    font-size: 13px;
    line-height: 1.5;
}


/* BOTÓN CERRAR */

.appointment-success__button {
    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 999px;

    background: #031633;

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.appointment-success__button:hover {
    background: #082B4C;

    transform: translateY(-1px);
}


/* BOTÓN DESHABILITADO AL AGENDAR */

.appointment-form__submit:disabled {
    opacity: 0.72;

    cursor: wait;

    transform: none;
}


/* MOBILE */

@media (max-width: 767px) {

    .appointment-success {
        padding-top: 8px;
    }

    .appointment-success__icon {
        width: 64px;
        height: 64px;

        margin-bottom: 18px;
    }

    .appointment-success__icon .material-symbols-outlined {
        font-size: 36px;
    }

    .appointment-success h2 {
        font-size: 27px;
    }

    .appointment-success__text {
        font-size: 15px;
    }

}
/* ========================================
   HONEYPOT ANTI-SPAM
======================================== */

.appointment-honeypot {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);

    white-space: nowrap;

    border: 0;
}
/* ========================================
   NOSOTROS - CARRUSEL
======================================== */

.about-section {
    background: #F8FAFD;
    padding: 72px 24px 80px;
}

.about-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}


/* HEADER */

.about-header {
    max-width: 680px;
    margin: 0 auto 36px;
    text-align: center;
}

.about-label {
    display: block;

    margin-bottom: 10px;

    color: #18A979;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.about-header h2 {
    margin: 0 0 12px;

    color: #031633;

    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
    font-weight: 700;
}

.about-header p {
    margin: 0;

    color: #5c5f61;

    font-size: 17px;
    line-height: 1.6;
}


/* ========================================
   CARRUSEL
======================================== */

.about-carousel {
    display: grid;

    grid-template-columns: 52px minmax(0, 1fr) 52px;

    align-items: center;

    gap: 18px;

    max-width: 860px;

    margin: 0 auto;
}


/* VIEWPORT */

.about-carousel__viewport {
    width: 100%;

    overflow: hidden;

    border-radius: 24px;
}


/* TRACK */

.about-carousel__track {
    display: flex;

    width: 100%;

    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);

    will-change: transform;
}


/* ========================================
   TARJETAS
======================================== */

.about-card {
    min-width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 310px;

    padding: 38px 48px;

    background: #F2F6FB;

    border: 1px solid #CFDBE8;
    border-radius: 24px;

    box-shadow:
        0 14px 34px rgba(3, 22, 51, 0.10);
}





.about-card h3 {
    margin: 0 0 16px;

    color: #031633;

    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
}


.about-card p {
    margin: 0 0 20px;

    color: #555b63;

    font-size: 17px;
    line-height: 1.7;
}


.about-card strong {
    display: block;

    margin-top: 2px;
    padding: 16px 20px;

    color: #082B4C;

    font-size: 17px;
    line-height: 1.5;
    font-weight: 700;

    background: #FFFFFF;

    border: 1px solid #DCE5EB;
    border-radius: 14px;
}


/* ========================================
   FLECHAS
======================================== */

.about-carousel__arrow {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #dbe3ea;
    border-radius: 50%;

    background: #ffffff;

    color: #031633;

    box-shadow:
        0 6px 18px rgba(3, 22, 51, 0.08);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.about-carousel__arrow:hover {
    background: #031633;

    color: #ffffff;

    border-color: #031633;

    transform: scale(1.05);
}


.about-carousel__arrow .material-symbols-outlined {
    font-size: 28px;
}


/* ========================================
   DOTS
======================================== */

.about-carousel__dots {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 9px;

    margin-top: 26px;
}


.about-carousel__dot {
    width: 9px;
    height: 9px;

    padding: 0;

    border: none;
    border-radius: 999px;

    background: #c4ced8;

    cursor: pointer;

    transition:
        width 0.25s ease,
        background-color 0.25s ease;
}


.about-carousel__dot.is-active {
    width: 26px;

    background: #18A979;
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {

    .about-section {
        padding:
            64px 20px
            72px;
    }

    .about-carousel {
        grid-template-columns:
            44px
            minmax(0, 1fr)
            44px;

        gap: 12px;
    }

    .about-card {
    min-height: 390px;

    padding:
        30px 24px
        28px;

    border-radius: 20px;
}

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {

    .about-section {
        padding:
            52px 18px
            60px;
    }

    .about-header {
        margin-bottom: 28px;
    }

    .about-header h2 {
        font-size: 28px;
    }

    .about-header p {
        font-size: 15px;
    }


    .about-carousel {
        position: relative;

        display: block;

        max-width: 100%;
    }


    .about-carousel__viewport {
        border-radius: 20px;
    }


    .about-card {
        min-height: 430px;

        padding:
            34px 26px
            30px;

        border-radius: 20px;
    }


    .about-card h3 {
        font-size: 25px;
    }


    .about-card p {
        font-size: 16px;

        line-height: 1.65;
    }


    .about-card strong {
        font-size: 16px;
    }


    /* Flechas flotantes en móvil */

    .about-carousel__arrow {
        position: absolute;

        top: 50%;

        z-index: 5;

        width: 42px;
        height: 42px;

        transform:
            translateY(-50%);
    }


    .about-carousel__arrow:hover {
        transform:
            translateY(-50%)
            scale(1.04);
    }


    .about-carousel__arrow--prev {
        left: -8px;
    }


    .about-carousel__arrow--next {
        right: -8px;
    }


    .about-carousel__dots {
        margin-top: 22px;
    }

/* ========================================
   MENÚ MÓVIL
======================================== */

.mobile-menu[hidden] {
    display: none;
}


.mobile-menu {
    position: fixed;

    top: 64px;
    left: 0;
    right: 0;

    z-index: 49;

    padding: 14px 16px 18px;

    background: #ffffff;

    border-top: 1px solid #E4EAF0;

    box-shadow:
        0 16px 32px
        rgba(3, 22, 51, 0.14);
}


.mobile-menu__nav {
    width: 100%;
    max-width: 520px;

    display: flex;
    flex-direction: column;

    gap: 4px;

    margin: 0 auto;
}


.mobile-menu__link {
    min-height: 52px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 12px 14px;

    border-radius: 12px;

    color: #031633;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 0.2s ease;
}


.mobile-menu__link
.material-symbols-outlined {
    color: #0E7C8C;

    font-size: 22px;
}


.mobile-menu__link:hover,
.mobile-menu__link:active {
    background: #F2F6FB;
}


.mobile-menu__divider {
    height: 1px;

    margin: 8px 4px;

    background: #E2E8EE;
}


/* Contáctanos */

.mobile-menu__contact {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 14px;

    border: 1px solid #B8E4D7;
    border-radius: 14px;

    background: #F3FBF8;

    text-align: left;

    cursor: pointer;
}


.mobile-menu__contact-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #E3F6F0;

    color: #128C66;
}


.mobile-menu__contact-icon
.material-symbols-outlined {
    font-size: 23px;
}


.mobile-menu__contact-content {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 3px;
}


.mobile-menu__contact-content strong {
    color: #031633;

    font-size: 15px;
    font-weight: 700;
}


.mobile-menu__contact-content small {
    color: #69727C;

    font-size: 12px;
    line-height: 1.35;
}


.mobile-menu__contact-arrow {
    flex-shrink: 0;

    color: #128C66;

    font-size: 22px;
}


@media (min-width: 768px) {

    .mobile-menu {
        display: none !important;
    }

}
/* ========================================
   HEADER MÓVIL - AJUSTE UX
======================================== */

@media (max-width: 767px) {

    header > div {
        gap: 8px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-brand {
        min-width: 0;
        flex: 1;
        gap: 7px;
    }

    .site-brand__logo {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .site-brand__name {
        font-size: 14px;
        line-height: 1.15;
        white-space: nowrap;
    }

    .site-brand__name-secondary {
        font-size: 11px;
    }

    #openMobileMenu {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    #openMobileMenu .material-symbols-outlined {
        font-size: 24px;
    }



}}
/* ========================================
   SERVICIOS
======================================== */

.services-heading {
    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 48px;
}


.services-heading h2 {
    margin: 0;
}


/* ========================================
   VIEWPORT / TRACK
======================================== */

.services-carousel {
    position: relative;

    width: 100%;
}


.services-viewport {
    width: 100%;
}


.services-track {
    display: grid;

    grid-template-columns:
        repeat(1, minmax(0, 1fr));

    gap: 24px;
}


/* ========================================
   TARJETAS
======================================== */

.service-card {
    background: #F7F9FC;

    border: 1px solid #D7E0E8;
    border-radius: 16px;

    box-shadow:
        0 12px 28px
        rgba(3, 22, 51, 0.08);
}


/* Modalidad 40 */

.service-card--featured {
    background: #031633;

    border-color: #031633;

    box-shadow:
        0 16px 36px
        rgba(3, 22, 51, 0.18);
}


/* ========================================
   MODALIDAD 40 - ENCABEZADO
======================================== */

.service-card__top {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 26px;
}


.service-card__badge {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding: 7px 10px;

    border:
        1px solid
        rgba(93, 224, 207, 0.30);

    border-radius: 999px;

    background:
        rgba(93, 224, 207, 0.12);

    color: #5DE0CF;

    font-size: 11px;
    line-height: 1;
    font-weight: 700;

    white-space: nowrap;
}


.service-card__badge
.material-symbols-outlined {
    font-size: 17px;

    font-variation-settings:
        'FILL' 1;
}


/* ========================================
   CONTROLES CARRUSEL
======================================== */

.services-carousel__arrow {
    display: none;
}


.services-carousel__dots {
    display: none;
}


/* Swipe hint */

.services-swipe-hint {
    display: none;
}


/* ========================================
   TABLET
======================================== */

@media (min-width: 768px) {

    .services-track {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/* ========================================
   DESKTOP
======================================== */

@media (min-width: 1024px) {

    .services-track {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }


    .service-card--featured {
        grid-column:
            span 2 / span 2;
    }

}


/* ========================================
   SERVICIOS - EXPERIENCIA MÓVIL
======================================== */

@media (max-width: 767px) {

    #servicios {
        padding-top: 48px;
        padding-bottom: 52px;

        overflow: hidden;

        background: #F5F8FB;
    }


    /* Título */

    .services-heading {
        display: flex;
        align-items: center;
        justify-content: center;

        margin-bottom: 28px;
    }


    .services-heading h2 {
        margin: 0;

        font-size: 26px;
        line-height: 1.2;

        text-align: center;
    }


    /* ========================================
       CARRUSEL
    ======================================== */

    .services-carousel {
        position: relative;

        width: 100%;

        margin: 0 auto;
    }


    .services-viewport {
        width: 100%;

        overflow: hidden;

        border-radius: 18px;
    }


    .services-track {
        display: flex;

        width: 100%;

        gap: 0;

        transition:
            transform 0.42s
            cubic-bezier(
                0.22,
                1,
                0.36,
                1
            );

        will-change: transform;

        touch-action: pan-y;
    }


    /* ========================================
       TARJETAS
    ======================================== */

    .service-card {
        min-width: 100%;
        width: 100%;

        flex: 0 0 100%;

        margin-right: 0;

        min-height: 340px;

        padding: 26px 22px;

        box-sizing: border-box;
    }


    .service-card--featured {
        min-height: 360px;
    }


    .service-card h3,
    .service-card p {
        max-width: 100%;

        overflow-wrap: break-word;
    }


    .service-card--featured h3 {
        font-size: 23px;
        line-height: 1.25;
    }


    .service-card--featured p {
        font-size: 15px;
        line-height: 1.6;
    }


    .service-card__top {
        margin-bottom: 24px;
    }


    .service-card__badge {
        padding: 6px 8px;

        font-size: 9px;
    }


    .service-card__badge
    .material-symbols-outlined {
        font-size: 15px;
    }


    /* ========================================
       FLECHAS
    ======================================== */

    .services-carousel__arrow {
        position: absolute;

        top: 50%;

        z-index: 5;

        width: 48px;
        height: 48px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 0;

        border: 1px solid #DBE3EA;
        border-radius: 50%;

        background: #FFFFFF;
        color: #031633;

        box-shadow:
            0 6px 18px
            rgba(3, 22, 51, 0.10);

        cursor: pointer;

        transform: translateY(-50%);
    }


    .services-carousel__arrow--prev {
        left: -14px;
    }


    .services-carousel__arrow--next {
        right: -14px;
    }


    .services-carousel__arrow:disabled {
        opacity: 0.32;

        cursor: default;
    }


    .services-carousel__arrow
    .material-symbols-outlined {
        font-size: 28px;
    }


    /* ========================================
       DOTS
    ======================================== */

    .services-carousel__dots {
        display: flex;
        align-items: center;
        justify-content: center;

        gap: 9px;

        margin-top: 24px;
    }


    .services-carousel__dot {
        width: 9px;
        height: 9px;

        padding: 0;

        border: none;
        border-radius: 999px;

        background: #C4CED8;

        cursor: pointer;

        transition:
            width 0.25s ease,
            background-color 0.25s ease;
    }


    .services-carousel__dot.is-active {
        width: 38px;

        background: #18A979;
    }


    /* ========================================
       PISTA DE INTERACCIÓN
    ======================================== */

    .services-swipe-hint {
        display: flex;
        align-items: center;
        justify-content: center;

        margin-top: 16px;

        color: #687581;

        font-size: 12px;
        font-weight: 600;

        text-align: center;
    }

}