/* ===== Fondo de página azul clarito (todas las páginas, EXCEPTO
   header/footer de includes, que mantienen su propio fondo blanco) ===== */
body {
    background: #eaf3fb;
}

/* ===== Fondo azul-rosado exclusivo de Ángeles Plus (ver angeles-plus.php,
   que define $bodyClass = "page-plus" antes de incluir el header).
   Se aplica a <main> y no a <body> porque header.css pinta una capa
   decorativa fija (body::before) por encima del fondo del body; en
   cambio <main>, al ser hijo directo del body, ya viene elevado por
   la regla "body > * { z-index: 1 }" de header.css y sí se ve. ===== */
body.page-plus main {
    background: linear-gradient(135deg, #e8f2ff 0%, #f3e8fb 50%, #fde8f0 100%);
    background-attachment: fixed;
    display: block;
    min-height: 100vh;
    padding-bottom: 5rem;
}

/* El espacio de separación ahora lo pone el padding de arriba,
   para que quede cubierto por el degradado y no se vea el fondo
   pálido del body entre el final de main y el footer */
body.page-plus .site-footer {
    margin-top: 0;
}

/* ===== Dropdown de "Nosotros": hover en PC, toque en móvil ===== */
.dropdown-hover {
    position: relative;
}

.dropdown-hover > .nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-hover__chevron {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.dropdown-hover__menu {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.dropdown-hover__menu a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: #144d63;
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-hover__menu a:hover {
    background: rgba(7, 62, 140, 0.08);
    color: #073e8c;
}

/* --- Escritorio: aparece con hover, flotando debajo del link --- */
@media (min-width: 992px) {
    .dropdown-hover__menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 240px;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 14px 32px rgba(20, 77, 99, 0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        z-index: 1001;
    }

    .dropdown-hover:hover .dropdown-hover__menu,
    .dropdown-hover:focus-within .dropdown-hover__menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-hover:hover .dropdown-hover__chevron,
    .dropdown-hover:focus-within .dropdown-hover__chevron {
        transform: rotate(180deg);
    }

    /* Pequeño puente invisible para que el mouse no "pierda" el menú
       al moverse del link hacia abajo */
    .dropdown-hover__menu::before {
        content: "";
        position: absolute;
        top: -8px;
        left: 0;
        right: 0;
        height: 8px;
    }
}

/* --- Móvil: se abre/cierra al tocar la flechita, sin necesidad de hover --- */
@media (max-width: 991.98px) {
    .dropdown-hover__menu {
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.3s ease;
    }

    .dropdown-hover__menu.is-open {
        max-height: 260px;
        padding: 0.3rem 0 0.5rem 0.8rem;
    }

    .dropdown-hover__chevron {
        cursor: pointer;
        padding: 6px;
        margin: -6px;
    }

    .dropdown-hover__chevron.is-open {
        transform: rotate(180deg);
    }
}
/* ===== Scroll suave para links con ancla (#odontologia, etc.) =====
   scroll-padding-top compensa el navbar sticky: sin esto, al saltar a un
   ancla el navbar tapa el principio de la sección de destino. Ajusta este
   valor si tu navbar mide más o menos alto (mídelo en DevTools). */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ===== Animación de aparición al hacer scroll ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* ===== Separador decorativo entre secciones ===== */
.section-divider {
    position: relative;
    width: 100vw;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: calc(-50vw + 50%);
}

.section-divider__wave {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.section-divider__wave path {
    fill: none;
    stroke: #073e8c;
    stroke-width: 2.5;
    stroke-linecap: round;
    opacity: 0.35;
}

.section-divider__medallion {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    color: #073e8c;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(20, 77, 99, 0.18);
}

.section-divider__medallion svg {
    width: 18px;
    height: 18px;
}

/* Variante rosada, para las uniones con la sección Ángeles Plus */
.section-divider--pink .section-divider__wave path {
    stroke: #d4537e;
}

.section-divider--pink .section-divider__medallion {
    color: #d4537e;
    box-shadow: 0 6px 16px rgba(212, 83, 126, 0.22);
}

/* ===== Utilidades compartidas ===== */
.home-section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #144d63;
    margin-bottom: 0.4rem;
}

.home-section-title--left {
    text-align: left;
}

.home-section-subtitle {
    text-align: center;
    color: #5f6b73;
    margin-bottom: 2.2rem;
}

/* ===== Servicios destacados ===== */
.home-services {
    padding: 4rem 0 3rem;
}

.home-services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.home-service-card {
    display: block;
    background: #ffffff;
    border-radius: 14px;
    padding: 1.75rem 1.4rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 20px rgba(20, 77, 99, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(20, 77, 99, 0.14);
    color: inherit;
}

.home-service-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(7, 62, 140, 0.1);
    color: #073e8c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-service-card__icon svg {
    width: 26px;
    height: 26px;
}

.home-service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #144d63;
    margin-bottom: 0.4rem;
}

.home-service-card p {
    font-size: 0.9rem;
    color: #5f6b73;
    margin: 0;
}

.home-service-card--all {
    background: linear-gradient(135deg, #144d63, #073e8c);
    color: #ffffff;
}

.home-service-card--all h3,
.home-service-card--all p {
    color: #ffffff;
}

.home-service-card--all .home-service-card__icon {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* ===== Quiénes somos + video ===== */
.home-about {
    padding: 3rem 0;
}

.home-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.home-about__text p {
    color: #3d474c;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.home-about__video {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(20, 77, 99, 0.16);
    aspect-ratio: 16 / 9;
    background: #000;
}

.home-about__video-el {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ===== Banner Ángeles Plus ===== */
.home-plus-banner {
    padding: 3rem 0;
}

.home-plus-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.home-plus-banner__eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: #5f6b73;
    font-weight: 700;
    margin: 0 0 0.3rem;
}

.home-plus-banner__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
}

/* Solo el nombre "Ángeles Plus" va en rosado, el resto del bloque usa
   los colores normales del sitio */
.home-plus-banner__brand {
    color: #d4537e;
}

.home-plus-banner__desc {
    color: #3d474c;
    margin: 0;
    max-width: 460px;
}

/* Botón moderno: pill, sombra suave e icono que se desliza al pasar el
   mouse. La variante --pink usa el rosado de marca de Ángeles Plus */
.home-plus-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    white-space: nowrap;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-plus-banner__btn--pink {
    background: linear-gradient(135deg, #d4537e, #993556);
    box-shadow: 0 10px 24px rgba(212, 83, 126, 0.32);
}

.home-plus-banner__btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.home-plus-banner__btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.home-plus-banner__btn--pink:hover {
    box-shadow: 0 14px 30px rgba(212, 83, 126, 0.42);
}

.home-plus-banner__btn:hover svg {
    transform: translateX(4px);
}

/* ===== Sedes ===== */
.home-locations {
    padding: 3rem 0 4rem;
}

.home-locations__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.home-location-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.1rem;
    text-decoration: none;
    color: #144d63;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(20, 77, 99, 0.08);
    transition: transform 0.2s ease;
}

.home-location-card:hover {
    transform: translateY(-3px);
    color: #144d63;
}

.home-location-card svg {
    width: 20px;
    height: 20px;
    color: #073e8c;
    flex-shrink: 0;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .home-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-about__grid {
        grid-template-columns: 1fr;
    }

    .home-locations__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Noticias: carrusel tipo coverflow ===== */
.home-news {
    padding: 3rem 0 4rem;
    overflow: hidden;
}

.home-news .home-section-subtitle {
    margin-bottom: 0.8rem;
}

.news-carousel {
    position: relative;
    height: 780px;
    max-width: 1200px;
    margin: 1.2rem auto 0;
}

.news-carousel__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.news-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 380px;
    cursor: pointer;
    transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
    transform: translate(-50%, -50%);
}

.news-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(20, 77, 99, 0.18);
}

/* Fondo azul + "contain" para que la imagen se vea completa, sin
   recortar nada, sin importar su proporción original */
.news-card__media {
    position: relative;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #144d63, #073e8c);
}

.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Título + descripción + tiempo, debajo de la imagen (fuera de la foto) */
.news-card__caption {
    padding: 0.9rem 1.1rem 1.2rem;
}

.news-card__time {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #073e8c;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.news-card__caption h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #144d63;
    margin: 0 0 0.35rem;
}

.news-card__caption p {
    font-size: 0.82rem;
    color: #5f6b73;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* La tarjeta central se ve nítida y "activa"; el resto, de fondo */
.news-slide[style*="z-index: 10"] .news-card {
    box-shadow: 0 22px 44px rgba(20, 77, 99, 0.28);
}

.news-carousel__arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #144d63;
    box-shadow: 0 8px 20px rgba(20, 77, 99, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.news-carousel__arrow svg {
    width: 20px;
    height: 20px;
}

.news-carousel__arrow:hover {
    background: #144d63;
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.news-carousel__arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.news-carousel__arrow:disabled:hover {
    background: #ffffff;
    color: #144d63;
    transform: translateY(-50%);
}

.news-carousel__arrow--prev {
    left: 0;
}

.news-carousel__arrow--next {
    right: 0;
}

@media (max-width: 768px) {
    .news-carousel {
        height: 540px;
    }

    .news-slide {
        width: 220px;
    }

    .news-carousel__arrow {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .home-services__grid {
        grid-template-columns: 1fr;
    }

    .home-plus-banner__inner {
        text-align: center;
        justify-content: center;
    }
}

/* ===== Modal / lightbox de noticias: solo imagen + flechas ===== */
.news-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.news-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.news-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 16, 22, 0.94);
}

.news-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    transform: scale(0.97);
    transition: transform 0.3s ease;
}

.news-modal.is-open .news-modal__dialog {
    transform: scale(1);
}

.news-modal__dialog img {
    max-width: 96vw;
    max-height: 96vh;
    border-radius: 6px;
    object-fit: contain;
    display: block;
}

.news-modal__close {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #144d63;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.news-modal__close svg {
    width: 18px;
    height: 18px;
}

.news-modal__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #144d63;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.news-modal__nav svg {
    width: 24px;
    height: 24px;
}

.news-modal__nav:hover {
    background: #144d63;
    color: #ffffff;
    transform: translateY(-50%) scale(1.08);
}

.news-modal__nav--prev {
    left: 24px;
}

.news-modal__nav--next {
    right: 24px;
}

@media (max-width: 700px) {
    .news-modal__close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
    }

    .news-modal__nav {
        width: 42px;
        height: 42px;
    }

    .news-modal__nav--prev {
        left: 10px;
    }

    .news-modal__nav--next {
        right: 10px;
    }
}

/* ===== Banner de página (título superior) ===== */
.page-banner {
    background: linear-gradient(120deg, #144d63, #073e8c);
    padding: 3.5rem 0 4rem;
    text-align: center;
    color: #ffffff;
}

.page-banner__eyebrow {
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 0.5rem;
}

.page-banner__title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
}

.page-banner__subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 520px;
    margin: 0 auto;
}

/* ===== Foto de reseña histórica (mismo estilo que el video de Quiénes
   somos en el home: bordes redondeados + sombra) ===== */
.empresa-photo {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(20, 77, 99, 0.16);
    aspect-ratio: 4 / 3;
}

.empresa-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Objetivos institucionales ===== */
.empresa-objetivos {
    padding: 3rem 0;
}

.empresa-objetivos__card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(20, 77, 99, 0.1);
    padding: 2rem 2.2rem;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
}

.empresa-objetivos__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.empresa-objetivos__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.empresa-objetivos__list svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #073e8c;
    background: rgba(7, 62, 140, 0.1);
    border-radius: 50%;
    padding: 4px;
    box-sizing: content-box;
}

.empresa-objetivos__list span {
    color: #3d474c;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== Misión, visión y valores ===== */
.empresa-mvv {
    padding: 3rem 0 4rem;
}

.empresa-mvv__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    margin-top: 2rem;
    align-items: start;
}

.empresa-mvv__card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(20, 77, 99, 0.1);
    padding: 2rem 1.8rem;
    height: 100%;
}

.empresa-mvv__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(7, 62, 140, 0.1);
    color: #073e8c;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.empresa-mvv__icon svg {
    width: 24px;
    height: 24px;
}

.empresa-mvv__card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #144d63;
    margin: 0 0 0.8rem;
}

.empresa-mvv__card p {
    color: #3d474c;
    line-height: 1.65;
    font-size: 0.92rem;
    margin: 0;
}

.empresa-mvv__values {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.empresa-mvv__values li {
    position: relative;
    padding-left: 1.1rem;
    color: #3d474c;
    font-size: 0.92rem;
    line-height: 1.5;
}

.empresa-mvv__values li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #073e8c;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .empresa-objetivos__card {
        grid-template-columns: 1fr;
        padding: 1.6rem;
    }

    .empresa-mvv__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .page-banner__title {
        font-size: 1.7rem;
    }
}

/* ===== Botón de descarga en el banner de página ===== */
.page-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.6rem;
    background: #ffffff;
    color: #144d63;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.8rem 1.7rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-banner__btn svg {
    width: 18px;
    height: 18px;
}

.page-banner__btn:hover {
    color: #144d63;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

/* ===== Foto grande de página (debajo del banner) ===== */
.page-hero-image-section {
    padding: 3rem 0 4rem;
}

.page-hero-image {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(20, 77, 99, 0.18);

}

.page-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 700px) {
    .page-hero-image {
        aspect-ratio: 4 / 3;
    }
}

/* ===== Políticas Institucionales: grid de tarjetas ===== */
.policies {
    padding: 3rem 0 4rem;
}

.policies__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.6rem;
}

.policy-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.8rem 1.6rem;
    box-shadow: 0 12px 28px rgba(20, 77, 99, 0.1);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease,
                box-shadow 0.25s ease, translate 0.25s ease;
}

/* Animación escalonada: cada tarjeta aparece un poco después que la
   anterior, cuando la sección entra en pantalla */
.reveal.is-visible .policy-card {
    opacity: 1;
    transform: translateY(0);
}

.reveal.is-visible .policy-card:nth-child(1) { transition-delay: 0.05s; }
.reveal.is-visible .policy-card:nth-child(2) { transition-delay: 0.15s; }
.reveal.is-visible .policy-card:nth-child(3) { transition-delay: 0.25s; }
.reveal.is-visible .policy-card:nth-child(4) { transition-delay: 0.35s; }
.reveal.is-visible .policy-card:nth-child(5) { transition-delay: 0.45s; }

.policy-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(20, 77, 99, 0.18);
}

.policy-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    flex-shrink: 0;
}

.policy-card__icon svg {
    width: 24px;
    height: 24px;
}

.policy-card__icon--orange   { background: rgba(224, 122, 63, 0.14); color: #c8672f; }
.policy-card__icon--purple   { background: rgba(155, 81, 224, 0.14); color: #8433c9; }
.policy-card__icon--teal     { background: rgba(31, 158, 130, 0.14); color: #167f68; }
.policy-card__icon--indigo   { background: rgba(7, 62, 140, 0.12);   color: #073e8c; }
.policy-card__icon--green    { background: rgba(97, 158, 63, 0.16);  color: #4f7f2f; }

.policy-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #144d63;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.policy-card p {
    font-size: 0.88rem;
    color: #5f6b73;
    line-height: 1.55;
    margin: 0 0 1.4rem;
    flex-grow: 1;
}

.policy-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    align-self: flex-start;
    background: linear-gradient(135deg, #144d63, #073e8c);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 18px rgba(20, 77, 99, 0.22);
}

.policy-card__btn svg {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
}

.policy-card__btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(20, 77, 99, 0.3);
}

.policy-card__btn:hover svg {
    transform: translateX(3px);
}

/* ===== Estados Financieros: tarjetas por año ===== */
.finance {
    padding: 3rem 0 4rem;
}

.finance__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.6rem;
}

.finance-card {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    padding: 2rem 1.6rem 1.8rem;
    box-shadow: 0 12px 28px rgba(20, 77, 99, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease,
                box-shadow 0.25s ease;
}

.reveal.is-visible .finance-card {
    opacity: 1;
    transform: translateY(0);
}

.reveal.is-visible .finance-card:nth-child(1) { transition-delay: 0.05s; }
.reveal.is-visible .finance-card:nth-child(2) { transition-delay: 0.15s; }
.reveal.is-visible .finance-card:nth-child(3) { transition-delay: 0.25s; }
.reveal.is-visible .finance-card:nth-child(4) { transition-delay: 0.35s; }
.reveal.is-visible .finance-card:nth-child(5) { transition-delay: 0.45s; }
.reveal.is-visible .finance-card:nth-child(6) { transition-delay: 0.55s; }

.finance-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(20, 77, 99, 0.18);
}

/* La tarjeta del año más reciente se distingue un poco del resto */
.finance-card--latest {
    background: linear-gradient(160deg, #ffffff 55%, rgba(7, 62, 140, 0.06));
    box-shadow: 0 16px 34px rgba(7, 62, 140, 0.18);
}

.finance-card__tag {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #144d63, #073e8c);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    white-space: nowrap;
}

.finance-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(7, 62, 140, 0.1);
    color: #073e8c;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.finance-card__icon svg {
    width: 24px;
    height: 24px;
}

.finance-card__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5f6b73;
    margin: 0 0 0.2rem;
}

/* El año, bien grande, es el protagonista de la tarjeta */
.finance-card__year {
    font-size: 2.4rem;
    font-weight: 800;
    color: #144d63;
    line-height: 1.1;
    margin: 0 0 1.3rem;
}

.finance-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #144d63, #073e8c);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 18px rgba(20, 77, 99, 0.22);
}

.finance-card__btn svg {
    width: 15px;
    height: 15px;
}

.finance-card__btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(20, 77, 99, 0.3);
}

/* ===== Frase institucional (banda inferior) ===== */
.finance-quote {
    background: linear-gradient(120deg, #144d63, #073e8c);
    padding: 3rem 0;
    text-align: center;
}

.finance-quote__mark {
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.8rem;
}

.finance-quote p {
    max-width: 720px;
    margin: 0 auto;
    color: #ffffff;
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.6;
}

@media (max-width: 576px) {
    .finance-card__year {
        font-size: 2rem;
    }

    .finance-quote p {
        font-size: 1rem;
    }
}

/* ===== Página de Servicios: acordeón por clic ===== */
.services-page {
    padding: 3rem 0 4rem;
}

/* Barra de navegación rápida por categorías */
.services-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2.2rem;
}

.services-nav a {
    background: #ffffff;
    border: 1px solid rgba(20, 77, 99, 0.15);
    color: #144d63;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.services-nav a:hover {
    background: #073e8c;
    color: #ffffff;
    border-color: #073e8c;
}

.services-page__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    align-items: start;
}

.service-block {
    grid-column: span 1;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(20, 77, 99, 0.09);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.service-block--wide {
    grid-column: 1 / -1;
}

.service-block:hover {
    box-shadow: 0 16px 32px rgba(20, 77, 99, 0.16);
}

.service-block__header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: none;
    border: none;
    padding: 1.1rem 1.3rem;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.service-block__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(7, 62, 140, 0.1);
    color: #073e8c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-block__icon svg {
    width: 22px;
    height: 22px;
}

.service-block__title {
    flex: 1;
    font-size: 1.02rem;
    font-weight: 700;
    color: #144d63;
}

.service-block__chevron {
    width: 18px;
    height: 18px;
    color: #5f6b73;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.service-block__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease;
}

.service-block__body ul {
    list-style: none;
    margin: 0;
    padding: 0 1.3rem 1.3rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.service-block__body li {
    position: relative;
    padding-left: 1.1rem;
    color: #3d474c;
    font-size: 0.88rem;
    line-height: 1.5;
}

.service-block__body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #073e8c;
}

.service-block__note {
    margin: 0;
    padding: 0 1.3rem 0.6rem 1.3rem;
    color: #073e8c;
    font-weight: 700;
    font-size: 0.85rem;
}

/* La lista larga de "Consulta Especializada" se reparte en columnas */
.service-block__body--columns ul {
    columns: 2 280px;
    column-gap: 2rem;
}

.service-block__body--columns li {
    break-inside: avoid;
    margin-bottom: 0.2rem;
}

.service-block.is-open .service-block__body {
    max-height: 1400px;
}

.service-block.is-open .service-block__chevron {
    transform: rotate(180deg);
}

@media (max-width: 1100px) {
    .services-page__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .services-page__grid {
        grid-template-columns: 1fr;
    }

    .service-block__body--columns ul {
        columns: 1;
    }
}

/* ===== Vista previa hover/clic en las tarjetas de servicios del home ===== */
.home-service-card {
    position: relative;
    cursor: pointer;
}

.home-service-card__preview {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    text-align: left;
}

.home-service-card__preview ul {
    list-style: none;
    margin: 0.9rem 0 0;
    padding: 0.9rem 0 0;
    border-top: 1px solid rgba(20, 77, 99, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.home-service-card__preview li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.83rem;
    color: #5f6b73;
}

.home-service-card__preview li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #073e8c;
}

.home-service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.8rem;
    color: #073e8c;
    font-weight: 700;
    font-size: 0.83rem;
    text-decoration: none;
}

.home-service-card__link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.home-service-card__link:hover {
    color: #144d63;
}

.home-service-card__link:hover svg {
    transform: translateX(3px);
}

.home-service-card.is-open .home-service-card__preview {
    max-height: 220px;
}

/* ===== Aviso de respaldo si el video no carga ===== */
.home-about__video {
    position: relative;
}

.home-about__video-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #144d63, #073e8c);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 1.5rem;
}

.home-about__video-fallback svg {
    width: 40px;
    height: 40px;
    opacity: 0.8;
}

.home-about__video-fallback p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.home-about__video-fallback code {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
}

/* ===== Sedes: filas en zigzag con foto + contacto ===== */
.sedes-list {
    padding: 1rem 0 2rem;
}

.sede-row {
    padding: 3rem 0;
}

.sede-row:nth-child(even) {
    background: rgba(7, 62, 140, 0.035);
}

.sede-row__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.sede-row--reverse .sede-row__inner {
    direction: rtl;
}

.sede-row--reverse .sede-row__inner > * {
    direction: ltr;
}

.sede-row__photo {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(20, 77, 99, 0.18);
    aspect-ratio: 4 / 3;
}

.sede-row__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.sede-row__photo:hover img {
    transform: scale(1.06);
}

.sede-row__badge {
    display: inline-block;
    background: rgba(7, 62, 140, 0.1);
    color: #073e8c;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 0.8rem;
}

.sede-row__info h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #144d63;
    margin: 0 0 0.3rem;
}

.sede-row__subtitle {
    color: #073e8c;
    font-weight: 600;
    font-size: 0.92rem;
    margin: 0 0 1rem;
}

.sede-row__contact {
    list-style: none;
    margin: 1.2rem 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sede-row__contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.sede-row__contact svg {
    width: 19px;
    height: 19px;
    color: #073e8c;
    flex-shrink: 0;
    margin-top: 2px;
}

.sede-row__contact span {
    color: #3d474c;
    font-size: 0.92rem;
    line-height: 1.5;
}

.sede-row__contact a {
    color: #144d63;
    font-weight: 600;
    text-decoration: none;
}

.sede-row__contact a:hover {
    color: #073e8c;
    text-decoration: underline;
}

.sede-row__maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: linear-gradient(135deg, #144d63, #073e8c);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(7, 62, 140, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sede-row__maps-btn svg {
    width: 17px;
    height: 17px;
}

.sede-row__maps-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(7, 62, 140, 0.36);
}

@media (max-width: 860px) {
    .sede-row__inner,
    .sede-row--reverse .sede-row__inner {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .sede-row {
        padding: 2.2rem 0;
    }
}
/* ===== Franja de marca Ángeles Plus (mini-hero, no un navbar) ===== */
.plus-header {
    padding: 3.2rem 0 2.6rem;
}

.plus-header__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.1rem;
}

.plus-header__logo img {
    height: 76px;
    width: auto;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(160, 60, 130, 0.18));
}

.plus-header__tagline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.plus-header__tagline p {
    margin: 0;
    color: #144d63;
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1.3;
}

.plus-header__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.7);
    color: #ad1763;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(160, 60, 130, 0.12);
}

.plus-header__phone svg {
    width: 14px;
    height: 14px;
}

.plus-header__phone:hover {
    background: #ffffff;
    color: #ad1763;
}

.plus-header__actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.4rem;
}

/* ===== Botones de marca Ángeles Plus ===== */
.plus-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plus-btn--pink {
    background: linear-gradient(135deg, #e0217a, #ad1763);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(224, 33, 122, 0.3);
}

.plus-btn--teal {
    background: linear-gradient(135deg, #1fd1b0, #12987f);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(23, 184, 160, 0.3);
}

.plus-btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.plus-btn--lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

/* ===== Espaciado de la sección (el fondo ahora lo pone body.page-plus) ===== */
.plus-bg {
    padding: 3rem 0 6rem;
}

/* ===== Gráficas promocionales ===== */
.plus-promos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
    margin-bottom: 1rem;
}

.plus-promo-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(160, 60, 130, 0.16);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.plus-promo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px rgba(160, 60, 130, 0.24);
}

.plus-promo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Beneficios (texto real, accesible) ===== */
.plus-benefits {
    padding: 1rem 0 2rem;
    text-align: center;
}

.plus-benefits__title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #144d63;
    margin: 0 0 0.4rem;
}

.plus-benefits__subtitle {
    color: #5f6b73;
    margin: 0 0 2rem;
}

.plus-benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
    text-align: left;
}

.plus-benefit-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 1.6rem 1.4rem;
    box-shadow: 0 10px 26px rgba(160, 60, 130, 0.1);
}

.plus-benefit-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(224, 33, 122, 0.12), rgba(23, 184, 160, 0.12));
    color: #ad1763;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.plus-benefit-card__icon svg {
    width: 22px;
    height: 22px;
}

.plus-benefit-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #144d63;
    margin: 0 0 0.4rem;
}

.plus-benefit-card p {
    font-size: 0.85rem;
    color: #5f6b73;
    line-height: 1.5;
    margin: 0;
}

/* ===== CTA final ===== */
.plus-cta {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #edf0f8, #fce8f1);
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(160, 60, 130, 0.12);
}

.plus-cta h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #144d63;
    margin: 0 0 0.5rem;
}

.plus-cta p {
    color: #5f6b73;
    margin: 0 0 1.6rem;
}

.plus-cta__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .plus-promos {
        grid-template-columns: 1fr;
    }

    .plus-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .plus-header {
        padding: 2.4rem 0 2rem;
    }

    .plus-header__logo img {
        height: 58px;
    }

    .plus-header__tagline p {
        font-size: 1.1rem;
    }

    .plus-header__actions {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .plus-header__actions .plus-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 576px) {
    .plus-benefits__grid {
        grid-template-columns: 1fr;
    }

    .plus-cta__actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== Asociación de Usuarios (reutiliza page-banner y finance-card
   para los documentos; junta directiva y contacto tienen su propio
   estilo simple) ===== */
.assoc-body {
    padding: 3rem 0 3.5rem;
}

.assoc-section__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #144d63;
    text-align: center;
    margin: 0 0 1.8rem;
}

.assoc-body__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2.5rem 3rem;
    align-items: start;
}

.assoc-text p {
    text-align: justify;
    color: var(--text, #1f2b3a);
    margin-bottom: 1.2rem;
    line-height: 1.75;
}

.assoc-text p:last-child {
    margin-bottom: 0;
}

.assoc-board {
    text-align: center;
}

.assoc-board__member {
    margin-bottom: 1.5rem;
}

.assoc-board__member:last-child {
    margin-bottom: 0;
}

.assoc-board__member h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text, #1f2b3a);
    text-transform: uppercase;
    margin: 0 0 0.3rem;
}

.assoc-board__member p {
    color: var(--muted, #64748b);
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .assoc-body__grid {
        grid-template-columns: 1fr;
    }
}

/* Título del documento dentro de la finance-card (reemplaza al
   número de año grande, que no aplica aquí) */
.assoc-doc__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #144d63;
    line-height: 1.4;
    margin: 0 0 1.3rem;
}

.finance-card__btn--disabled {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    box-shadow: none;
}

.finance-card__btn--disabled:hover {
    transform: none;
    box-shadow: none;
}

.assoc-contact-section {
    padding: 1rem 0 3.5rem;
}

.assoc-contact {
    text-align: center;
}

.assoc-contact p {
    color: var(--primary-dark, #144d63);
    font-weight: 600;
    margin: 0;
}

.assoc-contact a {
    color: var(--primary-dark, #144d63);
    text-decoration: underline;
}

/* ===== PQRS ===== */

.pqrs-form-section {
    background: #ffffff;
    padding: 3rem 0 3.5rem;
}

.pqrs-alert {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text, #1f2b3a);
    display: inline-block;
    border-bottom: 3px solid #1f9e82;
    padding-bottom: 0.4rem;
    margin: 0 0 1.1rem;
}

.pqrs-form-section__text {
    max-width: 980px;
    color: var(--muted, #64748b);
    line-height: 1.7;
    margin: 0 0 2rem;
}

.pqrs-alert-box {
    border-radius: 10px;
    padding: 1rem 1.3rem;
    margin-bottom: 1.6rem;
    font-size: 0.95rem;
}

.pqrs-alert-box--success {
    background: rgba(31, 158, 130, 0.12);
    color: #167f68;
    font-weight: 600;
}

.pqrs-alert-box--error {
    background: rgba(179, 38, 30, 0.08);
    color: #b3261e;
}

.pqrs-alert-box--error ul {
    margin: 0;
    padding-left: 1.2rem;
}

.pqrs-form {
    border: 2px solid #0f2436;
    border-radius: 14px;
    padding: 2.2rem 2.4rem;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.pqrs-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem 2.2rem;
}

.pqrs-field--full {
    grid-column: 1 / -1;
}

.pqrs-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #33475a;
    margin-bottom: 0.4rem;
}

.pqrs-required {
    color: #d3273e;
}

.pqrs-field input[type="text"],
.pqrs-field input[type="tel"],
.pqrs-field input[type="email"],
.pqrs-field select,
.pqrs-field textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.65rem 0.8rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text, #1f2b3a);
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pqrs-field input:focus,
.pqrs-field select:focus,
.pqrs-field textarea:focus {
    border-color: var(--primary, #1f6f8b);
    box-shadow: 0 0 0 3px rgba(31, 111, 139, 0.15);
}

.pqrs-field textarea {
    resize: vertical;
}

.pqrs-field input[type="file"] {
    font-size: 0.85rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.pqrs-hint {
    font-size: 0.8rem;
    color: var(--muted, #64748b);
    margin: 0.4rem 0 0;
}

.pqrs-radio-row {
    display: flex;
    gap: 1.6rem;
    align-items: center;
    padding-top: 0.3rem;
}

.pqrs-radio-row--wrap {
    flex-wrap: wrap;
    gap: 0.6rem 1.8rem;
}

.pqrs-radio {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
    color: var(--text, #1f2b3a);
    font-weight: 500;
    cursor: pointer;
}

.pqrs-radio input {
    accent-color: var(--primary, #1f6f8b);
    width: 16px;
    height: 16px;
}

.pqrs-recaptcha {
    margin-top: 1.8rem;
}

.pqrs-form__submit {
    margin-top: 1.8rem;
    text-align: center;
}

.pqrs-form__submit button {
    border: none;
    background: #1361d6;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 0.75rem 2.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pqrs-form__submit button:hover {
    background: #0d4aa8;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .pqrs-form__grid {
        grid-template-columns: 1fr;
    }

    .pqrs-form {
        padding: 1.6rem 1.4rem;
    }

    /* El widget de Google reCAPTCHA tiene un ancho fijo (~304px) que
       no se adapta solo; lo escalamos para que quepa en pantallas
       angostas sin generar scroll horizontal. */
    .pqrs-recaptcha {
        width: 100%;
        overflow: hidden;
    }

    .pqrs-recaptcha .g-recaptcha {
        transform: scale(0.92);
        transform-origin: left top;
    }

    .pqrs-radio-row,
    .pqrs-radio-row--wrap {
        gap: 0.6rem 1.2rem;
    }
}

@media (max-width: 380px) {
    .pqrs-form {
        padding: 1.2rem 1rem;
    }

    .pqrs-recaptcha .g-recaptcha {
        transform: scale(0.8);
    }
}