/* ==========================================================================
   ESTILOS SITIO WEB PÚBLICO (BROTA)
   ========================================================================== */

/* Fuentes e Identidad */
body.web-public-page {
    background-color: #ffffff !important;
    color: #4a5568;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    height: auto !important;
    overflow: auto !important;
}

body.web-public-page>.navbar-web,
body.web-public-page>.footer-web {
    flex-shrink: 0;
}

body.web-public-page>.footer-web {
    margin-top: auto;
}

/* ===== NAVBAR WEB PÚBLICO ===== */
/* ==========================================================================
   NAVBAR WEB PÚBLICO
   ========================================================================== */

.navbar-web {
    background: #fff;
    padding: 18px 0;
    box-shadow: none;
}

.navbar-web .navbar-toggler {
    border: 1.5px solid #00304D;
    color: #00304D;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    outline: none !important;
}

.navbar-web .navbar-toggler .navbar-toggler-icon-fa {
    font-size: 1.25rem;
    vertical-align: middle;
}

.navbar-web .container {
    max-width: 1600px;
    width: 100%;
    padding-left: 25px;
    padding-right: 25px;
}

.navbar-web .navbar-brand {
    margin-right: auto;
    padding: 0;
}

.navbar-web .navbar-brand img,
.navbar-web .navbar-brand-logo {
    height: 50px;
    width: auto;
}

.navbar-web .navbar-collapse {
    justify-content: flex-end;
}

.navbar-web .navbar-nav {
    margin-left: auto;
    align-items: center;
}

.navbar-web .nav-item {
    margin-left: 20px;
}

.navbar-web .nav-item:first-child {
    margin-left: 0;
}

.navbar-web .nav-link {
    font-size: 13.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #00304D !important;
    padding: .45rem 1.1rem !important;
    border-radius: 999px;
    transition: color .2s ease, background .2s ease;
}

.navbar-web .nav-link:hover {
    color: #39A900 !important;
    background: rgba(57, 169, 0, 0.08);
}

/* Ítem activo: solo texto verde, sin fondo */
.navbar-web .nav-item.active .nav-link,
.navbar-web .nav-link-active {
    background: transparent !important;
    color: #39A900 !important;
    font-weight: 700;
}

.navbar-web .search-icon-btn {
    background: transparent;
    border: none;
    color: #39A900;
    font-size: 15px;
    padding: 0;
    cursor: pointer;
    transition: transform .2s;
}

.navbar-web .search-icon-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 991.98px) {
    .navbar-web .navbar-collapse {
        background: transparent;
        border-radius: 0;
        padding: 1rem 0;
        margin-top: 0;
        box-shadow: none;
        border: none;
    }
    
    .navbar-web .navbar-nav {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .navbar-web .nav-item {
        margin-left: 0 !important;
        margin-bottom: 0.75rem;
        width: 100%;
    }
    
    .navbar-web .nav-item:last-child {
        margin-bottom: 0;
    }
    
    .navbar-web .nav-link {
        display: inline-block;
        width: auto;
        padding: 0.6rem 1.5rem !important;
        font-size: 14px;
    }
    
    .navbar-web .search-icon-btn {
        padding: 0.6rem 1.5rem;
        display: inline-block;
    }
}

/* Overlay de búsqueda global */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.55);
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
}

.search-overlay-content {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: 16px;
    padding: 30px 24px 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.search-overlay-close {
    position: absolute;
    top: 8px;
    right: 14px;
    font-size: 32px;
    font-weight: 300;
    border: none;
    background: none;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

.search-overlay-close:hover {
    color: #333;
}

.search-input {
    border-radius: 8px !important;
}

.search-input:focus {
    box-shadow: 0 0 0 2px rgba(57, 169, 0, 0.25);
    border-color: #39A900;
}

.search-result-list {
    max-height: 320px;
    overflow-y: auto;
    border-radius: 8px;
}

.search-result-list .list-group-item {
    border-left: none;
    border-right: none;
    font-size: .9rem;
}

.search-result-list .list-group-item:first-child {
    border-top: none;
}

.search-result-list .list-group-item:last-child {
    border-bottom: none;
}

.btn-login-web {
    background: #39A900;
    color: #fff !important;
    border-radius: 30px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: .3s;
}

.btn-login-web:hover {
    background: #2f8900;
    color: #fff !important;
    text-decoration: none;
}

/* ===== PÁGINA TÉRMINOS Y CONDICIONES (CONTENEDOR LEGAL) ===== */
.legal-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.legal-title {
    font-size: 24px;
    font-weight: 800;
    color: #00304D;
    margin-bottom: 2.5rem;
    margin-top: 1rem;
}

.legal-section-title {
    font-size: 15px;
    font-weight: 800;
    color: #00304D;
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
}

.legal-text {
    font-size: 14.5px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 1.2rem;
}

.legal-text a,
.legal-link {
    color: #00304D;
    font-weight: 600;
    text-decoration: none;
}

.legal-text a:hover,
.legal-link:hover {
    text-decoration: underline;
    color: #2d8a00;
}

.legal-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.legal-list li {
    font-size: 14.5px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 0.3rem;
}

/* ===== FOOTER WEB INSTITUCIONAL ===== */
.footer-web {
    background-color: #002E4F;
    min-height: 120px;
    display: flex;
    align-items: center;
    font-family: "Work Sans", Sans-serif !important;
    font-size: 14px;
}

.footer-logo {
    filter: brightness(0) invert(1);
    height: 40px;
    margin-bottom: 10px;
}

.footer-social {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #fff;
    color: #002E4F;
    font-size: 16px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-social-btn:hover {
    opacity: 0.85;
    color: #002E4F;
    text-decoration: none;
}

.footer-contact-link {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.footer-contact-link:hover {
    text-decoration: underline;
    color: #fff;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.footer-links li {
    margin-bottom: 7px;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a {
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ===== PÁGINA CONTÁCTANOS ===== */

/* Estilos de color personalizados */
.text-dark-blue {
    color: #00304D;
}

/* Bordes redondeados más grandes para las imágenes */
.rounded-extra {
    border-radius: 24px !important;
}

/* Tamaño de las imágenes */
.contactanos-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center center;
}

/* FAQ */
.contactanos-faq-titulo {
    line-height: 1.3;
    font-weight: bold;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.8rem;
}

.contactanos-faq-card {
    border: 1px solid #e9ecef;
    border-radius: 8px !important;
    box-shadow: none;
}

.contactanos-faq-header {
    background: #f8f9fa;
    border-bottom: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 300;
    color: #2d3748;
    transition: background 0.2s;
}

.contactanos-faq-header:hover {
    background: #edf2f7;
}

/* Ocultar chevron automático de sb-admin-2 */
.card .contactanos-faq-header[data-toggle="collapse"]::after {
    display: none !important;
    content: none !important;
}

.contactanos-faq-icon {
    font-size: 0.7rem;
    color: #39A900;
    transition: transform 0.3s;
}

/* Rotar icono cuando está cerrado */
.contactanos-faq-header.collapsed .contactanos-faq-icon {
    transform: rotate(180deg);
}

.contactanos-faq-body {
    font-size: 0.88rem;
    color: #4a5568;
    line-height: 1.7;
    padding: 1rem 1.2rem;
}


.contactanos-galeria {
    position: relative;
    width: 560px;
    height: 520px;
    margin: auto;
}

.contactanos-img-superior {
    position: absolute;
    top: 0;
    left: 70px;
}

.contactanos-img-inferior {
    position: absolute;
    top: 160px;
    left: 240px;
}

.contactanos-img-wrapper {
    max-width: 230px;
    border-radius: 24px;
    overflow: hidden;
}

/* Título y subtítulo */
.contactanos-titulo {
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.3;
    max-width: 340px;
}

.contactanos-subtitulo {
    font-size: .95rem;
    max-width: 320px;
    line-height: 1.6;
}

/* ==========================================================================
   PÁGINA NOSOTROS — estilos exclusivos
   ========================================================================== */

/* ===== SECCIÓN 1: HERO ===== */
.nosotros-hero-section {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.nosotros-hero-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #00304D;
    line-height: 1.3;
}

.nosotros-hero-text {
    font-size: 0.92rem;
    color: #4a5568;
    line-height: 1.7;
    max-width: 380px;
}

.nosotros-hero-collage {
    position: relative;
    width: 100%;
    max-width: 380px;
    /* un poco más angosto */
    height: 560px;
    /* más alto en total */
    margin-left: auto;
    margin-right: 0;
}

.nosotros-img-circle-wrap {
    position: relative;
    width: 100%;
    height: 470px;
    /* 👈 esto es lo que la alarga */
    -webkit-clip-path: url(#heroScoopClip);
    clip-path: url(#heroScoopClip);
    overflow: hidden;
}

.nosotros-img-circle {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Imagen circular (vacas) superpuesta abajo a la izquierda */
.nosotros-img-rect-wrap {
    position: absolute;
    bottom: 150px;
    /* 👈 mucho más arriba, ajusta según se vea */
    left: -90px;
    width: 55%;
    aspect-ratio: 1 / 1;
    clip-path: url(#heroCircleClip);
    overflow: hidden;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.16);
    z-index: 2;
}

.nosotros-img-rect {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 991.98px) {
    .nosotros-hero-collage {
        max-width: 300px;
        height: 342px;
        margin: 1rem auto 0;
    }

    .nosotros-img-circle-wrap {
        width: 100%;
        height: 380px;
    }

    .nosotros-img-rect-wrap {
        bottom: 140px;
        left: -30px;
        width: 44%;
    }
}

@media (max-width: 767.98px) {
    .nosotros-hero-collage {
        max-width: 100%;
        height: auto;
        margin: 1rem auto 0;
    }

    .nosotros-img-circle-wrap {
        width: 100%;
        height: 320px;
        margin: 0 auto;
    }

    .nosotros-img-rect-wrap {
        width: 46%;
        left: -10px;
        bottom: 90px;
    }

    .nosotros-hero-text {
        max-width: 100%;
    }
}

/* ===== SECCIÓN 2: GALERÍA + DIRIGIDO ===== */
.nosotros-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
    max-width: 600px;
    align-items: start;
}

/* La imagen derecha (alta) se expande sobre el grid */
.nosotros-gallery-tall {
    grid-row: span 2;
}

.nosotros-gallery-item {
    border-radius: 18px;
    overflow: hidden;
}

.nosotros-gallery-img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ─────────────────────────────────────────────────────────────
   AJUSTE DE TAMAÑO INDIVIDUAL PARA CADA IMAGEN (Mantener valores previos)
   ───────────────────────────────────────────────────────────── */

/* 1. Imagen pequeña superior izquierda */
.nosotros-gallery-grid .nosotros-gallery-item:nth-child(1) .nosotros-gallery-img {
    width: 100%;
    height: 290px;
    /* Alto de la imagen superior izquierda */
}

/* 2. Imagen grande de la derecha (Alta) */
.nosotros-gallery-grid .nosotros-gallery-tall .nosotros-gallery-img {
    width: 290px;
    /* ancho usado antes */
    height: 460px;
    /* Alto de la imagen derecha */
}

/* 3. Imagen pequeña inferior izquierda */
.nosotros-gallery-grid .nosotros-gallery-item:nth-child(3) .nosotros-gallery-img {
    width: 100%;
    height: 150px;
    /* Alto de la imagen inferior izquierda */
}

.nosotros-dirigido-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #00304D;
    line-height: 1.3;
}

.nosotros-dirigido-text {
    font-size: 0.92rem;
    color: #4a5568;
    line-height: 1.8;
}

/* ===== SECCIÓN 3: MISIÓN, VISIÓN Y VALORES ===== */

.nosotros-mvv-section {
    position: relative;
    background: #f8f9fa;
    /* Gris mucho más claro y suave */
    overflow: hidden;
}

.nosotros-wave-top,
.nosotros-wave-bottom {
    line-height: 0;
}

.nosotros-wave-top {
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .05));
}

.nosotros-wave-bottom {
    filter: drop-shadow(0 -5px 8px rgba(0, 0, 0, .05));
}

.nosotros-wave-top svg,
.nosotros-wave-bottom svg {
    width: 100%;
    height: 35px;
    /* Altura óptima para mantener la curva fluida sin verse recta ni demasiado gruesa */
    display: block;
    shape-rendering: geometricPrecision;
}

/* Evitar la línea casi invisible de renderizado sub-pixel */
.nosotros-wave-top svg {
    margin-bottom: -1px;
}

.nosotros-wave-bottom svg {
    margin-top: -1px;
}

.nosotros-mvv-card {
    padding: 1rem 1.5rem 1.5rem;
}

.nosotros-mvv-icon-wrap {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.nosotros-mvv-icon {
    font-size: 1.5rem;
    /* Tamaño del icono */
    color: #39A900;
    /* Verde institucional */
    margin-right: .75rem;
    flex-shrink: 0;
}

.nosotros-mvv-label {
    font-size: 1rem;
    font-weight: 700;
    color: #00304D;
}

.nosotros-mvv-text {
    font-size: .88rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ===== SECCIÓN 4: LÍNEA DE TIEMPO ===== */
/* Pestañas */
.nosotros-tabs-wrap {
    gap: 12px;
    border-bottom: none;
    margin-bottom: 1.5rem;
}

.nosotros-tab-btn {
    padding: .45rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 999px;
    /* Bootstrap */
    background: transparent;
    color: #495057;
    font-size: .85rem;
    font-weight: 300;
    cursor: pointer;
    transition: all .25s ease;
}

.nosotros-tab-btn:hover {
    background: #e9ecef;
    color: #6c757d;
}

.nosotros-tab-active {
    background: #39A900 !important;
    color: #fff !important;
    border: 1px solid #39A900 !important;
}

.nosotros-tab-active:hover {
    background: #39A900 !important;
    color: #fff !important;
}

/* Imagen con overlay */
.nosotros-timeline-img-wrap {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
}

.nosotros-timeline-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.nosotros-timeline-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: background 0.3s ease;
}

.nosotros-timeline-img-wrap:hover .nosotros-timeline-overlay {
    background: rgba(0, 0, 0, 0.25);
}

.nosotros-timeline-quote {
    color: #fff;
    font-size: 0.88rem;
    line-height: 1.7;
    text-align: center;
    margin: 0;
}

/* ===== SECCIÓN 5: BLOQUE FINAL ===== */
.nosotros-divider {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #39A90055, #39A90099, #39A90055, transparent);
    margin-bottom: 2rem;
}

.nosotros-final-title {
    font-size: 1.35rem;
    font-weight: 500;
    color: #2d3748;
    line-height: 1.4;
    max-width: 600px;
    margin: 0 auto 1rem;
}

.nosotros-final-highlight {
    color: #00304D;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.3;
}

.nosotros-final-sub {
    font-size: 15px;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== RESPONSIVE NOSOTROS ===== */

/* --- Tablet / Pantalla Dividida (≤ 991px) --- */
/* Responsive rules moved to librerias/web.responsive.css */

/* ===== FIN PÁGINA NOSOTROS ===== */

/* ===== PAGINA UNIDADES ===== */

/* --- Hero Section --- */
.unidades-hero-section {
    padding: 3rem 0 2rem;
}

.unidades-hero-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: #00304D;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.unidades-hero-text {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.7;
    max-width: 420px;
}

/* --- Hero Collage: 3 vertical organic shapes --- */
.unidades-hero-collage {
    position: relative;
    width: 100%;
    max-width: 360px;
    height: 450px;
    margin-left: auto;
    margin-right: 0;
}

/* Shared base for the 3 hero image wrappers */
.unidades-hero-img {
    position: absolute;
    overflow: hidden;
}

.unidades-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Imagen superior izquierda — blob (Bovinos en pastoreo) */
.unidades-hero-img--top-left {
    width: 150px;
    height: 210px;
    top: 0;
    left: 0;
    clip-path: url(#unidadesBlobTop);
}

/* Imagen derecha — blob (Bovino en la montaña) */
.unidades-hero-img--right {
    width: 172px;
    height: 240px;
    top: 100px;
    left: 172px;
    clip-path: url(#unidadesBlobRight);
}

/* Imagen inferior izquierda — blob (Bovino en potrero) */
.unidades-hero-img--bottom-left {
    width: 150px;
    height: 210px;
    top: 230px;
    left: 0;
    clip-path: url(#unidadesBlobBottom);
}

/* --- Divider --- */
.unidades-divider {
    border: 0;
    height: 1px;
    background: #e9ecef;
    margin: 0;
}

/* --- Content section (categories + cards) --- */
.unidades-content-section {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
}

/* --- Categories sidebar --- */
.unidades-cat-title {
    font-size: 1rem;
    font-weight: 600;
    color: #39A900;
    margin-bottom: 1rem;

}

.unidades-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.unidades-cat-list li {
    margin-bottom: 0.55rem;
}

.unidades-cat-link {
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.unidades-cat-link:hover {
    color: #39A900;
    text-decoration: none;
}

.unidades-cat-link.active {
    color: #39A900;
    font-weight: 600;
}

/* --- Course cards --- */
.card-course-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.btn-ver-unidad {
    background: #39A900;
    color: #ffffff;
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    border: none;
    transition: background 0.2s ease;
}

.btn-ver-unidad:hover {
    background: #2e7d00;
    color: #fff;
    text-decoration: none;
}

.card h5.card-title {
    color: #00304D;
    font-size: 1rem;
}

.card .card-text.small {
    line-height: 1.55;
    color: #586067;
    font-size: 0.82rem;
}

/* Asegurar que las columnas con cards tengan la misma altura */
.unidades-content-section .row .col-md-4 {
    display: flex;
}

.unidades-content-section .row .col-md-4>.card {
    flex: 1 1 auto;
}

/* --- Responsive unidades --- */
@media (max-width: 991.98px) {
    .unidades-hero-collage {
        max-width: 280px;
        height: 350px;
        margin: 1.5rem auto 0;
    }

    .unidades-hero-img--top-left {
        width: 120px;
        height: 165px;
        left: 0;
    }

    .unidades-hero-img--right {
        width: 135px;
        height: 190px;
        top: 75px;
        left: 135px;
    }

    .unidades-hero-img--bottom-left {
        width: 120px;
        height: 165px;
        top: 180px;
        left: 0;
    }
}

@media (max-width: 767.98px) {
    .unidades-hero-collage {
        max-width: 260px;
        height: 330px;
        margin: 1rem auto 0;
    }

    .unidades-hero-img--top-left {
        width: 110px;
        height: 155px;
    }

    .unidades-hero-img--right {
        width: 125px;
        height: 175px;
        top: 70px;
        left: 125px;
    }

    .unidades-hero-img--bottom-left {
        width: 110px;
        height: 155px;
        top: 170px;
        left: 0;
    }

    .unidades-hero-text {
        max-width: 100%;
    }
}

/* ===== FIN PAGINA UNIDADES ===== */


/* ==========================================================================
   LANDING PAGE (index.php)
   ========================================================================== */
.z-index-1 {
    z-index: 1;
}

.web-home-page .navbar-web--overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: transparent;
    box-shadow: none;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.web-home-page .navbar-web--overlay .navbar-brand-logo {
    filter: brightness(0) invert(1);
    height: 46px;
}

.web-home-page .navbar-web--overlay .nav-link {
    color: #ffffff !important;
}

.web-home-page .navbar-web--overlay .nav-link:hover {
    color: #d4f5b8 !important;
}

.web-home-page .navbar-web--overlay .nav-link-active {
    background: #ffffff;
    color: #39A900 !important;
}

.web-home-page .navbar-web--overlay .search-icon-btn {
    color: #ffffff;
}

.web-home-page .navbar-web--overlay .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

.web-home-page .navbar-web--overlay .navbar-toggler-icon,
.web-home-page .navbar-web--overlay .navbar-toggler-icon-fa {
    color: #ffffff;
}

@media (max-width: 991.98px) {
    .web-home-page .navbar-web--overlay .navbar-collapse {
        background: rgba(0, 48, 77, 0.96);
        border-radius: 12px;
        padding: 0.8rem 1rem;
        margin-top: .5rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .web-home-page .navbar-web--overlay .navbar-nav {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .web-home-page .navbar-web--overlay .nav-item {
        margin-left: 0 !important;
        margin-bottom: 0.35rem;
        width: 100%;
    }
    
    .web-home-page .navbar-web--overlay .nav-item:last-child {
        margin-bottom: 0;
    }

    .web-home-page .navbar-web--overlay .nav-link {
        display: inline-block;
        padding: 0.4rem 1.2rem !important;
    }
}

.hero-inicio {
    min-height: 85vh;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
        url('../assets/inicio/img_6254.jpg') center center / cover no-repeat;
}

.hero-inicio-title {
    font-size: 2.8rem;
    line-height: 1.2;
}

.hero-inicio-subtitle {
    max-width: 580px;
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.95;
}

/* Títulos de sección (H2) */
h2.font-weight-bold.text-dark-blue {
    font-size: 1.7rem;
}

.unidad-card-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.unidad-card-img-wrap .card-img {
    width: 100%;
    height: 100%;
    min-height: 270px;
    object-fit: cover;
    display: block;
}

.unidad-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 55%);
    padding: 28px 14px 10px;
}

.unidad-card-title {
    color: #fff;
    font-weight: 700;
    margin: 0;
    font-size: .95rem;
    line-height: 1.3;
}

.unidad-card-landing {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 240px;
}

.unidad-card-landing--tall {
    min-height: 320px;
}

.unidad-card-landing-img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    display: block;
}

.unidad-card-landing-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0.05) 100%);
}

.stats-landing {
    background: #f4f6f8;
}

.stats-landing-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.stats-landing-icon svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.nosotros-landing-img-wrap {
    max-width: 320px;
}

.nosotros-landing-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(57, 169, 0, 0.12);
    color: #39A900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* ---- Tarjetas de testimonio (tamaño uniforme) ---- */
.testimonio-card-landing {
    border-radius: 16px;
    overflow: hidden;
    font-size: .85rem;
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    min-height: 420px;
}

.testimonio-card-landing-img {
    height: 180px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.card-body.testimonio-card-body {
    padding: .75rem .85rem !important;
}

.testimonio-card-text {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
}

/* ---- Carrusel infinito de testimonios ---- */
.testimonios-carousel-wrap {
    position: relative;
    overflow: hidden;
    padding-bottom: 50px;
}

.testimonios-carousel-track {
    display: flex;
    transition: transform .4s ease;
}

.testimonio-carousel-item {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 6px;
}

/* Tablet: 2 visibles */
@media (max-width: 991.98px) {
    .testimonio-carousel-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Móvil: 1 visible */
@media (max-width: 767.98px) {
    .testimonio-carousel-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Flechas de navegación */
.testimonios-control {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #003B64;
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.testimonios-control:hover {
    background: #e9ecef;
}

.testimonios-control-prev {
    left: 2px;
}

.testimonios-control-next {
    right: 2px;
}

/* Indicadores (pagination dots) */
.testimonios-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.testimonios-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: #c0cbd1;
    cursor: pointer;
    padding: 0;
    transition: background .25s, transform .25s;
}

.testimonios-dot.active {
    background: #003B64;
    transform: scale(1.35);
}

/* Modal de video de testimonio */


.testimonio-modal {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
}

/* Cambiar de: */
#modalTestimonioVideo .modal-body {
    padding: 35px;
    /* ← Original, muy espaciado */
}

/* A: */
#modalTestimonioVideo .modal-body {
    padding: 25px;
    /* ← Más compacto */
}

/* Video */

.testimonio-video-modal {
    height: 530px;
    border-radius: 28px;
    overflow: hidden;
    background: #000;
}

.testimonio-video-modal video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Texto */

.testimonio-contenido {
    padding-left: 30px;
    padding-right: 15px;
}

.comillas {
    font-size: 70px;
    color: #49B82E;
    line-height: .8;
    font-weight: bold;
}

.testimonio-contenido h3 {
    color: #003B64;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    margin-top: -10px;
}

.linea-verde {
    width: 100px;
    height: 4px;
    background: #49B82E;
    margin: 25px 0;
}

.testimonio-contenido p {
    color: #1d3557;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 35px;
}

.datos-testimonio .dato {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
    color: #003B64;
    font-size: 18px;
}

.datos-testimonio i {
    width: 30px;
    color: #49B82E;
    font-size: 20px;
    margin-top: 3px;
}

.btn-cerrar {
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 10;
    font-size: 40px;
    font-weight: 300;
    border: 0;
    background: none;
    color: #666;
}

.btn-cerrar:hover {
    color: #000;
}

@media (max-width: 767.98px) {
    .hero-inicio-title {
        font-size: 2rem;
    }

    .hero-inicio-subtitle {
        font-size: .95rem;
    }

    .stats-landing .d-flex {
        justify-content: flex-start !important;
    }

    .testimonios-carousel-wrap {
        padding-bottom: 40px;
    }
}

/* Responsive */

@media(max-width:991px) {

    .testimonio-video-modal {
        height: 350px;
    }

    .testimonio-contenido {
        padding-left: 0;
        padding-top: 30px;
    }

    .testimonio-contenido h3 {
        font-size: 26px;
    }

    .testimonio-contenido p {
        font-size: 16px;
    }

}

.rounded-input {
    border-radius: 14px !important;
}

.rounded-input:focus {
    box-shadow: 0 0 0 3px rgba(57, 169, 0, 0.2);
    border-color: #39A900;
}