/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a2a2a;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: linear-gradient(180deg, #a7e2d1 0%, #cdece3 30%, #e7f7ef 65%, #f7fbfb 100%);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Suavizar tipografía y espaciado para dar personalidad */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: 6rem;
}
h1,h2,h3,h4 { letter-spacing: -0.01em; }

:root {
    --radius-xl: 1.5rem;
    --radius-lg: 1rem;
    --soft-shadow: 0 10px 30px rgba(10,30,20,0.06);
}

main {
    flex: 1;
}

body:not(.home-page) main {
    padding-top: 6.5rem;
}

@media (max-width: 768px) {
    body:not(.home-page) main {
        padding-top: 5.5rem;
    }
}

:root {
    --verde: #0b6e4f;
    --verde-oscuro: #0a5a40;
    --azul: #1a5f7a;
    --azul-oscuro: #144e66;
    --dorado: #f5d742;
    --blanco: #ffffff;
    --gris: #f5f5f5;
    --sombra: 0 10px 30px rgba(0,0,0,0.06);
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    transition: all 0.4s ease-in-out;
    box-sizing: border-box;
    border-top: 4px solid rgba(10,20,25,0.85);
    border-bottom: 1px solid rgba(11,110,79,0.08);
    backdrop-filter: blur(12px);
    flex-wrap: nowrap;
    box-shadow: 0 4px 18px rgba(10,30,20,0.05);
}

.navbar > .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar.transparent {
    background-color: transparent !important;
    box-shadow: none;
    border-bottom: none;
    backdrop-filter: none;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    padding: 8px 40px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    border-bottom: 1px solid rgba(11,110,79,0.08);
}

.navbar .logo-link {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #16383a;
}

.navbar .nav-links {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: nowrap;
}

.navbar .nav-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar .nav-group.nav-primary {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    border-right: 1px solid rgba(22,56,58,0.16);
    padding-right: 25px;
}

.navbar .nav-group.nav-actions {
    justify-self: end;
    display: flex;
    gap: 15px;
    align-items: center;
}

.navbar .nav-primary a,
.navbar .nav-link-secondary,
.navbar .dropdown-toggle {
    color: #16383a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text h1 {
    font-size: 1.25rem;
}

.logo-text p {
    font-size: 0.65rem;
}

.btn-nav {
    background-color: #12756d;
    color: white !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
}

.btn-secondary.dropdown-toggle {
    background-color: white;
    color: #12756d !important;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(11,110,79,0.16);
}

/* Responsivo: en pantallas pequeñas usamos layout flex para evitar overflows */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
    }

    .navbar > .container {
        display: flex;
        justify-content: space-between;
        padding: 0;
    }

    .navbar .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 20px 35px -12px rgba(0,0,0,0.1);
        z-index: 99;
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar .nav-links.active,
    .navbar .nav-links.open {
        display: flex;
    }

    .navbar .nav-group.nav-primary {
        border-right: none;
        padding-right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .navbar .nav-group.nav-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        width: 100%;
    }

    .navbar .nav-group.nav-actions > a,
    .navbar .nav-group.nav-actions > .btn,
    .navbar .nav-group.nav-actions > .dropdown {
        width: 100%;
    }

    .navbar .nav-group.nav-actions .dropdown {
        width: 100%;
    }

    .navbar .nav-group.nav-actions .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    .navbar .nav-group.nav-actions .dropdown-menu {
        width: 100%;
    }

    .navbar .nav-links a,
    .navbar .nav-link-secondary,
    .navbar .dropdown-toggle {
        color: #16383a;
    }
}

/* ===== ALINEACIÓN VERTICAL DEL LOGO ===== */
.logo-area {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    height: 50px; /* misma altura que la imagen */
}

.logo-img {
    height: 50px;
    width: auto;
}

.editable-text-wrapper,
.editable-rich-wrapper,
.slide-img-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}
.editable-text,
.editable-rich {
    display: block;
    width: 100%;
}
.edit-btn, .edit-btn-image, .edit-btn-rich {
    position: absolute;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: none;
    background: var(--verde);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(0,0,0,0.15);
    z-index: 2;
}
.editable-text-wrapper:hover .edit-btn,
.editable-rich-wrapper:hover .edit-btn-rich,
.slide-img-wrapper:hover .edit-btn-image {
    opacity: 1;
    transform: translateY(-2px);
}
.admin-mode .edit-btn,
.admin-mode .edit-btn-image,
.admin-mode .edit-btn-rich {
    opacity: 1;
}
.edit-btn { top: 0.85rem; right: 0.85rem; }
.edit-btn-rich { top: 0.85rem; right: 0.85rem; }
.edit-btn-image { top: auto; bottom: 1rem; right: 1rem; }

.edit-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 15, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
}

.edit-modal {
    width: min(720px, 100%);
    max-height: min(90vh, 900px);
    overflow: hidden;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(15, 35, 25, 0.08);
    display: flex;
    flex-direction: column;
}

.edit-modal-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid rgba(15, 35, 25, 0.08);
}

.edit-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--azul);
}

.edit-modal-close {
    border: none;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    color: #2d4a4a;
    cursor: pointer;
}

.edit-modal-body {
    padding: 1.5rem;
    overflow: auto;
}

.edit-modal-body textarea {
    width: 100%;
    min-height: 240px;
    border-radius: 0.9rem;
    border: 1px solid rgba(15, 35, 25, 0.14);
    padding: 1rem;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    color: #1a2a3a;
}

.edit-modal-body .image-preview {
    margin-bottom: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(15, 35, 25, 0.08);
}

.edit-modal-body .image-preview img {
    width: 100%;
    display: block;
}

.edit-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1.25rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(15, 35, 25, 0.08);
}

.edit-modal-actions .btn {
    min-width: 120px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.logo-text h1,
.logo-text p {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.logo-text h1 {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--verde), var(--azul));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text p {
    font-size: 0.65rem;
    color: var(--azul);
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Cuando el navbar es transparente (sobre el héroe) */
.navbar.transparent .logo-text h1 {
    background: none;
    color: #fff !important;
}
.navbar.transparent .logo-text p {
    color: rgba(255,255,255,0.9) !important;
}

/* Solo los enlaces PRIMARIOS (incluyendo el toggle de dropdown) en transparente se vuelven blancos */
.navbar.transparent .nav-primary > a,
.navbar.transparent .nav-primary .dropdown-toggle {
    color: #fff !important;
}
.navbar.transparent .nav-link-secondary {
    color: #fff !important;
}
.navbar.transparent .btn-nav {
    color: #fff !important;
}

/* Aseguramos que el dropdown-menu (el contenedor) tenga fondo blanco en transparente */
.navbar.transparent .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(11,110,79,0.12) !important;
}

/* Y que los enlaces DENTRO del dropdown-menu sean oscuros */
.navbar.transparent .dropdown-menu a {
    color: #2d4a4a !important;
}
.navbar.transparent .dropdown-menu a:hover {
    background-color: #0b6e4f !important;
    color: #ffffff !important;
}

/* El botón "Portal Asociados" en transparente: fondo blanco, texto oscuro */
.navbar.transparent .nav-group.nav-actions .dropdown-toggle {
    color: #0b6e4f !important;
    background: #fff !important;
    border-color: rgba(11,110,79,0.08) !important;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-group.nav-actions {
    gap: 0.8rem;
}

.nav-link-secondary {
    color: #0b6e4f;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.btn-nav {
    padding: 0.55rem 1.2rem;
}

/* Estilo específico del botón Solicitar (más parecido a la imagen) */
.btn.btn-primary.btn-nav {
    padding: 0.6rem 1.4rem;
    border-radius: 28px;
    box-shadow: 0 10px 28px rgba(11,110,79,0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn.btn-primary.btn-nav:hover { transform: translateY(-3px); }

/* Portal Asociados estilo pálido con borde */
.btn-secondary.dropdown-toggle {
    background: #ffffff;
    border: 1px solid rgba(11,110,79,0.08);
    color: var(--color-primario);
    padding: 0.45rem 1rem;
    border-radius: 28px;
}

/* Ajustes finos: al bajar la página mantenemos la estructura pero aplicamos color distinto */
.navbar.scrolled { border-top-color: rgba(10,20,25,0.65); }

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0.25rem 0.3rem;
    transition: color 0.25s;
    font-weight: 600;
}

.dropdown-toggle:hover {
    color: var(--verde);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid rgba(11,110,79,0.12);
    box-shadow: 0 18px 38px rgba(0,0,0,0.12);
    border-radius: 1rem;
    padding: 0.5rem 0;
    z-index: 120;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #2d4a4a;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(11,110,79,0.08);
    color: var(--verde);
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
    display: block;
}

.nav-links a {
    text-decoration: none;
    color: #2d4a4a;
    font-weight: 500;
    transition: color 0.25s;
}

.nav-links a:hover {
    color: var(--verde);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--azul);
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

/* mostrar menú hamburguesa solo en responsive */
@media (max-width: 768px) {
    button.mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

/* ========== SECCIONES ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.bg-editorial { background: #fafafa; }

/* Títulos con estilo original (con borde izquierdo y subrayado) */
.section-title {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 auto 1.6rem;
    border-left: 3px solid var(--verde);
    padding-left: 0.9rem;
    color: #1e3a3a;
    letter-spacing: -0.01em;
    text-align: center;
    max-width: 960px;
}
.section-title i {
    margin-bottom: 0.4rem;
    color: var(--verde);
}
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--verde);
    margin: 0.5rem auto 0;
    border-radius: 4px;
}

/* ========== BENEFICIOS ========== */
.beneficiosSwiper { padding-bottom: 2.5rem; }
.benefit-card {
    background: var(--blanco);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.2rem;
    text-align: center;
    box-shadow: var(--soft-shadow);
    transition: transform 0.35s cubic-bezier(.2,.9,.2,1), box-shadow 0.35s ease;
    border-bottom: 0;
    height: 100%;
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.benefit-card .benefit-content {
    position: relative;
    z-index: 2;
}
.benefit-card i { font-size: 2.5rem; color: var(--dorado); margin-bottom: 1rem; }
.benefit-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; color: #fff; }
.benefit-card p { color: rgba(255,255,255,0.9); font-size: 0.95rem; }

/* ===== IMPACTO SOCIAL ===== */
.impactoSwiper .swiper-slide { height: 380px; border-radius: 1rem; overflow: hidden; }
.impacto-card {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    color: #fff;
    text-align: center;
}
.impacto-content { max-width: 550px; }
.impacto-content i { font-size: 2.8rem; margin-bottom: 1rem; opacity: 0.9; }
.impacto-content h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.5rem; }
.impacto-content p { font-size: 1rem; opacity: 0.9; margin-bottom: 1.5rem; line-height: 1.6; }

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    transform: scale(1.02);
}

/* ===== TESTIMONIOS ===== */
.testimoniosSwiper { padding-bottom: 2.5rem; }
.testimonial-card {
    background: #fff;
    padding: 1.6rem 1.4rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--soft-shadow);
    margin: 0 0.5rem;
    transition: transform 0.35s cubic-bezier(.2,.9,.2,1), box-shadow 0.35s ease;
}
.testimonial-card:hover { transform: scale(1.02); }
.testimonial-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 3px solid var(--verde);
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-card p { font-style: italic; color: #2d3a4a; font-size: 0.95rem; line-height: 1.6; margin-bottom: 1rem; }
.testimonial-card h4 { font-weight: 700; color: var(--verde); margin-bottom: 0.2rem; }
.testimonial-card span { font-size: 0.8rem; color: #5a6a7a; }

/* ===== ESTADÍSTICAS ===== */
.stats-section {
    background: linear-gradient(135deg, var(--verde), var(--azul));
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    margin: 2rem 0;
}
.stats-section .section-title { color: #fff !important; border-left-color: #fff !important; }
.stats-section .section-title::after { background: #fff; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}
.stat-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    text-align: center;
    color: #fff;
    transition: background 0.3s ease;
}
.stat-card:hover { background: rgba(255,255,255,0.18); }
.stat-number { font-size: 2.8rem; font-weight: 800; display: block; color: #fff; }
.stat-card p { font-size: 0.9rem; opacity: 0.85; margin-top: 0.3rem; }

/* ===== NEWSLETTER ===== */
.newsletter {
    background: linear-gradient(135deg, var(--verde), var(--azul));
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    color: #fff;
    margin: 2.5rem 0;
}
.newsletter h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.5rem; }
.newsletter p { opacity: 0.85; margin-bottom: 1.5rem; }
.newsletter-form {
    display: flex;
    gap: 0.8rem;
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}
.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    outline: none;
    min-width: 200px;
}
.newsletter-form .btn {
    background: var(--dorado);
    color: #1a2a2a;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}
.newsletter-form .btn:hover { background: #e8c832; }

/* ===== FOOTER ===== */
.footer {
    background: #1e2a2e;
    color: #b0bec5;
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
    flex-shrink: 0;
}
.footer { border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; font-weight: 600; }
.footer-logo { max-width: 120px; }
.contact-info p { display: flex; align-items: center; gap: 8px; margin-bottom: 0.5rem; font-size: 0.8rem; }
.contact-info i { width: 20px; color: #25D366; }

/* ======================================================
   VARIABLES Y ESTILOS INSTITUCIONALES ASOCLAMOR
========================================================= */
:root {
    --color-primario: #1A365D;
    --color-secundario: #0B6E4F;
    --color-acento: #FFD966;
    --fondo-claro: #F8F9FA;
    --texto-oscuro: #333333;
}
body { background-color: var(--fondo-claro); }

/* Menú Desplegable */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    display: none; position: absolute; background-color: #ffffff; min-width: 260px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1); border-radius: 8px; z-index: 1000; top: 100%; left: 0;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    color: var(--color-primario) !important; padding: 12px 16px !important;
    text-decoration: none; display: block; border-bottom: 1px solid #eee; transition: 0.3s;
}
.dropdown-menu a:hover { background-color: var(--color-secundario) !important; color: #ffffff !important; }

/* Timeline (Historia) */
.timeline { position: relative; max-width: 800px; margin: 2rem auto; padding-left: 2rem; border-left: 4px solid var(--color-secundario); }
.timeline-item { position: relative; margin-bottom: 2.5rem; background: #fff; padding: 1.5rem; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.timeline-item::before { content: ''; position: absolute; left: -2.7rem; top: 1.5rem; width: 20px; height: 20px; background-color: #fff; border: 4px solid var(--color-primario); border-radius: 50%; }

/* Tarjetas de Directiva e Impacto */
.grid-tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 2rem; }
.tarjeta-perfil { background: #fff; border-radius: 16px; padding: 2rem; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 5px solid var(--color-primario); transition: transform 0.3s; }
.tarjeta-perfil:hover { transform: translateY(-5px); border-top-color: var(--color-secundario); }

/* Split Screen (Verificar Certificado) */
.split-screen { display: flex; flex-wrap: wrap; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin-bottom: 3rem; }
.split-img { flex: 1; min-width: 300px; background: var(--color-primario); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.split-form { flex: 1; min-width: 300px; padding: 3rem; display: flex; flex-direction: column; justify-content: center; }

.contact-info a { color: #b0bec5; text-decoration: none; }
.contact-info a:hover { color: #25D366; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a { color: #b0bec5; text-decoration: none; font-size: 0.8rem; transition: color 0.3s; }
.footer-col ul li a:hover { color: #25D366; padding-left: 3px; }
.map-wrapper iframe { width: 100%; height: 180px; border-radius: 12px; border: 0; }
.footer-bottom { text-align: center; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.7rem; }

/* ===== BOTÓN WHATSAPP ANTIGUO (LO ELIMINAMOS PARA QUE NO INTERFIERA) ===== */
/* .whatsapp-float { ... }  YA NO SE USA */

/* ===== NUEVO BOTÓN FLOTANTE CON MENÚ (REDES SOCIALES) ===== */
.social-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Botón principal */
.social-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366; /* Color WhatsApp */
  color: #fff;
  border: none;
  font-size: 2.2rem;
  font-weight: 300;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.social-toggle:hover {
  transform: scale(1.05);
}

/* Cuando el menú está abierto, el botón cambia a "X" */
.social-toggle.active {
  background: #dc3545;
  transform: rotate(45deg);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

/* Menú de opciones */
.social-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: absolute;
  bottom: 75px; /* Justo encima del botón */
  right: 0;
  opacity: 0;
  transform: scale(0.6) translateY(20px);
  transform-origin: bottom right;
  transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none; /* No se puede interactuar mientras está oculto */
}

.social-menu.open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto; /* Activa los clics */
}

/* Cada ítem */
.social-menu li {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Al abrir el menú, cada ítem aparece con retardo */
.social-menu.open li {
  opacity: 1;
  transform: translateX(0);
}
.social-menu.open li:nth-child(1) { transition-delay: 0.05s; }
.social-menu.open li:nth-child(2) { transition-delay: 0.10s; }
.social-menu.open li:nth-child(3) { transition-delay: 0.15s; }

/* Estilo de cada enlace */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  color: #333;
  text-decoration: none;
  font-size: 1.6rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-link:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Colores específicos para cada red */
.social-link.whatsapp { background: #25D366; color: #fff; }
.social-link.tiktok { background: #000; color: #fff; }
.social-link.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  color: #fff;
}

/* Etiqueta de texto (opcional: aparece en hover en pantallas grandes) */
.social-link span {
  display: none; /* Oculto por defecto */
}

/* Responsive: en móvil el texto puede aparecer a la derecha */
@media (min-width: 768px) {
  .social-link {
    width: auto;
    padding: 0 18px;
    border-radius: 30px;
    gap: 12px;
  }
  .social-link span {
    display: inline;
    font-size: 0.9rem;
    font-weight: 500;
  }
}

/* ===== SWIPER OVERRIDES ===== */
.hero { position: relative; height: 100vh; min-height: 640px; display: flex; align-items: center; }
.hero-bg-slider { position: absolute; inset: 0; z-index: -3; }
.hero-bg-slider .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.02); transition: opacity 900ms ease, transform 900ms ease; }
.hero-bg-slider .slide.active { opacity: 1; transform: scale(1); }
.hero-overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(7,54,64,0.20), rgba(11,110,79,0.45)); pointer-events: none; }
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; width: 100%; max-width: 1100px; margin: 0 auto; padding: 2rem 1rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.6rem; background: rgba(255,255,255,0.08); color: #fff; padding: 0.4rem 0.9rem; border-radius: 999px; font-weight:600; margin-bottom: 1rem; }
.hero-title { font-family: 'Poppins', sans-serif; font-size: 5rem; line-height: 0.98; font-weight: 800; margin-bottom: 1rem; text-transform: uppercase; color: #fff; text-shadow: 0 6px 20px rgba(0,0,0,0.45); }
.hero-subtitle { color: rgba(255,255,255,0.92); font-size: 1.05rem; margin-bottom: 1.6rem; }

/* BENEFITS HORIZONTAL CAROUSEL */
.benefits-grid { display: flex; gap: 1rem; overflow-x: auto; padding: 1rem 2rem 1rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; justify-content: center; }
.benefit-item { flex: 0 0 320px; min-width: 300px; background: #fff; border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; box-shadow: var(--soft-shadow); color: #133b3a; text-align: center; scroll-snap-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.benefit-item:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(10,30,20,0.08); }
.benefit-item i { font-size: 2rem; color: var(--verde); display: block; margin-bottom: 1rem; }
.benefit-item h3 { font-size: 1.1rem; margin-bottom: 0.75rem; font-weight:700; }
.benefit-item p { font-size: 1rem; color: #516b6b; line-height: 1.8; }

/* hide visible scrollbar but keep scrolling */
.benefits-grid::-webkit-scrollbar { display: none; }
.benefits-grid { -ms-overflow-style: none; scrollbar-width: none; }

/* make benefits full-bleed similar to impact slider */
.benefits-grid {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 1rem 2rem;
    box-sizing: border-box;
}

/* ===== CTA / Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; cursor: pointer; border: none; font-weight: 700; font-family: inherit; }
.btn-primary { background: linear-gradient(90deg, var(--verde), var(--azul)); color: #fff; padding: 0.6rem 1.25rem; border-radius: 999px; box-shadow: 0 10px 30px rgba(11,110,79,0.18); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(11,110,79,0.2); }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 0.55rem 1rem; border-radius: 999px; background: #f3f8f5; color: #0b6e4f; border: 1px solid rgba(11,110,79,0.15); font-weight: 700; transition: background 0.25s ease, transform 0.25s ease; }
.btn-secondary:hover { background: #e7f3eb; }
.btn-glow { box-shadow: 0 12px 36px rgba(26,95,122,0.12); }
.btn-donar-nav { background: transparent; color: var(--verde); padding: 0.35rem 0.7rem; border-radius: 999px; border: 1px solid rgba(11,110,79,0.06); }


/* Allow mobile toggle class from inline script (`open`) and new handlers (`active`) */
@media (max-width: 768px) {
    .nav-links.open, .nav-links.active { display: flex; }
}

/* IMPACT SLIDER FULL-WIDTH */
.impact-slider-wrapper {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 2rem 0;
    box-sizing: border-box;
}
.impact-slider { position: relative; width: 100%; height: 420px; max-width: none; overflow: hidden; }
.impact-slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 900ms ease, transform 900ms ease; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; }
.impact-slide.active { opacity: 1; transform: translateZ(0); }
.impact-slide .slide-content { max-width: 740px; width: 100%; margin: 0 auto; padding: 2.5rem 1.5rem; color: #fff; text-align: center; z-index: 2; animation: slideTextFade 1s ease both; font-family: 'Poppins', sans-serif; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 1.75rem; backdrop-filter: blur(10px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.impact-slide .slide-content i { font-size: 2.2rem; margin-bottom: 1rem; }
.impact-slide .slide-content h3 { font-size: 2.5rem; margin-bottom: 1rem; line-height: 1.05; letter-spacing: -0.04em; }
.impact-slide .slide-content p { font-size: 1.05rem; line-height: 1.9; opacity: 0.96; max-width: 720px; margin: 0 auto 1.5rem; }

.btn-slide {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    color: #0b6e4f;
    border: 1px solid rgba(11,110,79,0.18);
    border-radius: 999px;
    padding: 0.9rem 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 18px 40px rgba(0,0,0,0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    cursor: pointer;
}

.btn-slide:hover {
    transform: translateY(-2px);
    background: #ffffff;
    color: #0b6e4f;
    box-shadow: 0 22px 48px rgba(0,0,0,0.18);
}

@keyframes slideTextFade {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* stronger gradient overlay on slides */
.impact-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11,110,79,0.62), rgba(26,95,122,0.52)); z-index: 1; pointer-events: none; }
.impact-dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1rem; }
.impact-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); display: inline-block; cursor: pointer; }
.impact-dots span.active { background: #fff; }
.swiper-pagination-bullet { background: var(--verde) !important; opacity: 0.5; }
.swiper-pagination-bullet-active { background: var(--azul) !important; opacity: 1; }
.swiper-button-prev,
.swiper-button-next {
    color: #fff !important;
    background: rgba(0,0,0,0.3);
    padding: 1rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}
.swiper-button-prev::after,
.swiper-button-next::after { font-size: 1rem !important; }

/* ===== MODALES ===== */
.modal-impact {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.modal-impact.active { display: flex; }
.modal-impact-content {
    background: #fff;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: relative;
    animation: modalFade 0.4s ease;
}
@keyframes modalFade {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-impact-content .close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #5a6a7a;
}
.modal-impact-content .close-modal:hover { color: #1a2a3a; }
.modal-impact-content h2 { font-size: 1.8rem; color: var(--azul); margin-bottom: 1rem; }
.modal-impact-content h2 i { color: var(--verde); margin-right: 0.75rem; }
.modal-impact-content .modal-body { color: #3a4a5a; line-height: 1.7; }
.modal-impact-content .modal-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8ecf0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.modal-impact-content .modal-footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    background: var(--verde);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}
.modal-impact-content .modal-footer a:hover { background: var(--verde-oscuro); }
.modal-impact-content .modal-footer a:last-child { background: var(--azul); }
.modal-impact-content .modal-footer a:last-child:hover { background: var(--azul-oscuro); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar { padding: 0.8rem 1rem; }
    .nav-links {
        display: none !important;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: #fff;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 20px 35px -12px rgba(0,0,0,0.1);
        z-index: 9999;
        align-items: flex-start;
    }
    .navbar.transparent .nav-links {
        background: #fff !important;
    }
    .navbar.transparent .nav-links a:not(.btn),
    .navbar.transparent .nav-links .dropdown-toggle {
        color: #2d4a4a !important;
    }
    .navbar.transparent .nav-links .btn-secondary.dropdown-toggle {
        background: #fff !important;
        color: #0b6e4f !important;
        border-color: rgba(11,110,79,0.12) !important;
    }
    .navbar.transparent .nav-links .btn.btn-primary.btn-nav {
        color: #fff !important;
    }
    .nav-links.active,
    .nav-links.open {
        display: flex !important;
    }
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 10000;
    }
    .section-title { font-size: 1.8rem; padding-left: 0.8rem; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .contact-info p { justify-content: center; }
    .impactoSwiper .swiper-slide { height: 320px; }
    .impacto-content h3 { font-size: 1.4rem; }
    .swiper-button-prev, .swiper-button-next { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .impactoSwiper .swiper-slide { height: 280px; }
    .impacto-content { padding: 1rem; }
    .impacto-content h3 { font-size: 1.2rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .newsletter-form { flex-direction: column; align-items: center; }
    .newsletter-form input { width: 100%; }
    .hero { height: 68vh; min-height: 420px; }
    .hero-title { font-size: 2.4rem; }
}

.about-hero {
    display: grid;
    grid-template-columns: 0.8fr 1.6fr; /* ampliar la columna derecha para una imagen más grande */
    gap: 3rem;
    align-items: center;
    padding: 5rem 3.5rem; /* vertical and horizontal padding to avoid content touching edges */
    border-radius: 2rem;
    background: rgba(255,255,255,0.42);
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 70px rgba(11,110,79,0.08);
}

@media (min-width: 1200px) {
    .about-hero {
        padding-right: 8rem; /* más espacio a la derecha para la imagen grande */
        width: calc(100% + 260px); /* ampliar la tarjeta para que la imagen quepa */
        margin-left: -130px; /* centrar la expansión */
    }
}

/* En páginas internas empujamos un poco hacia abajo la tarjeta grande para que no la tape el header */
body:not(.home-page) .about-hero {
    margin-top: 1.6rem;
}
.about-snapshot, .team-section {
    background: rgba(255,255,255,0.35);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 20px 55px rgba(11,110,79,0.06);
}
.about-snapshot {
    margin: 2rem 0 3rem;
}
@media (max-width: 992px) {
    .about-hero {
        background: rgba(255,255,255,0.5);
    }
}
.admin-mode .about-hero,
.admin-mode .about-snapshot,
.admin-mode .team-section {
    border: 1px dashed rgba(11,110,79,0.25);
    background: rgba(255,255,255,0.18);
}
.admin-mode .about-hero::before,
.admin-mode .about-snapshot::before,
.admin-mode .team-section::before {
    content: 'Canvas editable';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.75rem;
    color: rgba(11,110,79,0.9);
    background: rgba(255,255,255,0.85);
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
}
.admin-mode .about-hero,
.admin-mode .about-snapshot,
.admin-mode .team-section {
    position: relative;
}
.about-copy {
    max-width: 620px;
}
.about-copy .eyebrow {
    display: inline-flex;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--verde);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.about-copy h1 {
    font-size: 3.6rem;
    line-height: 1.04;
    margin-bottom: 1.25rem;
    max-width: 620px;
}
.about-copy p {
    color: #4a5960;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}
.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(210px, 1fr));
    gap: 1.4rem;
    padding-top: 0.6rem;
    align-items: start;
    position: relative;
    z-index: 3;
}
.highlight-card {
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(11,110,79,0.16);
    border-radius: 1rem;
    padding: 1.2rem;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5rem;
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 4;
}
.highlight-card strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
    color: #103f38;
}
.highlight-card span {
    color: #4a5960;
    font-size: 0.92rem;
    line-height: 1.6;
}
.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    box-shadow: 0 20px 50px rgba(10,30,20,0.08);
    background: transparent !important;
    aspect-ratio: 4 / 3;
    border: none !important;
    align-self: start; /* sitúa la imagen arriba del grid cell */
    transform: translate(78px, 34px); /* mueve la imagen más a la derecha y baja un poco */
    transition: transform 220ms ease;
    padding: 0.35rem; /* menor acolchado interior para aumentar área visible */
    min-height: 360px; /* asegurar una altura visual consistente */
    z-index: 1;
}
.about-image::before,
.about-image::after,
.about-image .slide-img-wrapper::before,
.about-image .slide-img-wrapper::after {
    content: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform-origin: center center;
    transform: scale(1.03); /* ligero zoom para cubrir espacios vacíos */
}

/* Overwrite any remaining decorative shelf/border under the image */
.about-image, .about-image *, .about-image img {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.about-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 1.6rem !important;
}
.admin-mode .about-image::after {
    content: 'Área de imagen';
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: #0b6e4f;
    background: rgba(255,255,255,0.86);
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    z-index: 2;
}

.about-snapshot {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}
.snapshot-card {
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(11,110,79,0.12);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: none;
    backdrop-filter: blur(6px);
}
.snapshot-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.9rem;
    color: #0c4e3e;
}
.snapshot-card p {
    color: #4a5960;
    line-height: 1.8;
}

.team-section {
    display: grid;
    gap: 1.5rem;
    padding-bottom: 4rem;
}
.team-section .section-top {
    max-width: 720px;
    margin: 0 auto 1rem;
    text-align: center;
}
.team-section .section-top p {
    color: #4a5960;
    font-size: 1rem;
    line-height: 1.8;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}
.team-card {
    position: relative;
    background: rgba(255,255,255,0.55);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(10,30,20,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px dashed rgba(11,110,79,0.18);
}
.admin-mode .team-card::before {
    content: 'Imagen';
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: #0b6e4f;
    background: rgba(255,255,255,0.9);
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    z-index: 2;
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 55px rgba(10,30,20,0.12);
}
.team-card img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    display: block;
}
.team-card div {
    padding: 1.5rem 1.25rem 2rem;
}
.team-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: #133b3a;
}
.team-card p {
    color: #4a5960;
    font-size: 0.95rem;
    line-height: 1.8;
}

@media (max-width: 992px) {
    .about-hero {
        grid-template-columns: 1fr;
        padding: 4rem 2rem;
    }
    .about-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .highlight-card {
        padding: 1.2rem;
        min-height: auto;
    }
    .about-image {
        transform: none;
        margin: 0 auto;
        width: min(100%, 600px);
    }
    .about-image img {
        height: 420px;
    }
    .about-copy h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    .about-hero { padding: 3rem 1.5rem; }
    .about-image img { height: 340px; }
    .about-image { width: 100%; }
    .about-copy h1 { font-size: 2.4rem; }

    .about-snapshot {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    .snapshot-card {
        width: 100%;
        padding: 1.5rem;
    }
    .snapshot-card h2 {
        font-size: 1.3rem;
    }
    .snapshot-card p {
        font-size: 1rem;
        line-height: 1.9;
    }
}

@media (max-width: 480px) {
    .about-hero { gap: 1.2rem; padding: 2rem 1rem; }
    .about-copy h1 { font-size: 2rem; }
    .about-image img { height: 260px; }
    .about-image { transform: none; width: 100%; padding: 0; }
    .about-copy p, .highlight-card span, .snapshot-card p, .team-card p { font-size: 0.98rem; }
    .about-highlights { gap: 0.9rem; }
    .highlight-card { padding: 1rem; }
    .snapshot-card {
        padding: 1.25rem;
    }
    .snapshot-card h2 {
        font-size: 1.25rem;
    }
    .snapshot-card p {
        line-height: 1.95;
        letter-spacing: 0.01em;
    }
    .about-hero .about-copy, .about-hero .about-image {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .about-hero { gap: 2rem; }
    .about-copy h1 { font-size: 2.2rem; }
    .about-image img { height: 260px; }
    .about-copy p, .highlight-card span, .snapshot-card p, .team-card p { font-size: 0.95rem; }
    .about-image { transform: translateY(0); }
}

.navbar.transparent .dropdown-menu {
    background: #ffffff !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.14) !important;
}

.navbar.transparent .dropdown-menu a,
.navbar.transparent .dropdown-menu a:link,
.navbar.transparent .dropdown-menu a:visited,
.navbar.transparent .dropdown-menu a:active {
    color: #1a2a2a !important;
}

.navbar.transparent .dropdown-menu a:hover,
.navbar.transparent .dropdown-menu a:focus {
    color: #ffffff !important;
    background-color: var(--color-secundario) !important;
}

/* ===== REDISEÑO: personalidad suave y cálida (estilos originales) ===== */
.brand-accent {
    background: linear-gradient(90deg, rgba(11,110,79,1), rgba(26,95,122,1));
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin: 2rem 0 2.5rem;
}
.featured-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(10,30,20,0.06);
    transition: transform 0.35s cubic-bezier(.2,.9,.2,1), box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}
.featured-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(10,30,20,0.08); }
.featured-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.featured-card .card-body { padding: 1rem; }
.featured-card h4 { margin-bottom: 0.4rem; color: #133b3a; font-size: 1.05rem; }
.featured-card p { font-size: 0.92rem; color: #4b6162; margin-bottom: 0.75rem; }
.featured-card .card-meta { font-size: 0.82rem; color: #7a8b8b; }

.insta-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}
.insta-strip img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; flex: 0 0 auto; box-shadow: 0 6px 20px rgba(10,30,20,0.06); }

.btn-primary { box-shadow: 0 8px 30px rgba(11,110,79,0.12); }
.btn-outline-light { border-radius: 999px; padding: 0.6rem 1.25rem; }

@media (max-width: 480px) {
    .featured-card img { height: 120px; }
    .insta-strip img { width: 96px; height: 96px; }
}

/* ===== Global layout tweaks to resemble modern landing ===== */
.container { max-width: 1100px; padding-left: 1.25rem; padding-right: 1.25rem; }
.page-header { padding: 3rem 0 2rem; }
.page-header h1 { font-size: 2.2rem; margin-bottom: 0.5rem; color: #133b3a; }
.page-header p { color: #516b6b; font-size: 1rem; }

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.about-card {
    background: linear-gradient(180deg, #ffffff, #fbfdfe);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    box-shadow: 0 8px 30px rgba(11,110,79,0.04);
    text-align: left;
}
.about-card i { color: var(--verde); font-size: 1.45rem; display:block; margin-bottom:0.6rem; }
.about-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; color: #133b3a; }
.about-card p { color: #5d7979; font-size: 0.95rem; }

.info-box { background: #fff; border-radius: var(--radius-lg); padding: 1.2rem 1.25rem; box-shadow: 0 8px 20px rgba(10,30,20,0.04); color: #3b4f4f; }

.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2rem; margin-bottom: 2rem; align-items: stretch; }
.card { background: #fff; border-radius: var(--radius-lg); padding: 1.4rem; box-shadow: 0 10px 28px rgba(10,30,20,0.04); text-align: center; }
.card-hover { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.card-hover:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(10,30,20,0.07); }
.card h3 { margin-top: 0.6rem; margin-bottom: 0.4rem; color: #133b3a; }
@media (max-width: 1024px) { .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; } }
@media (max-width: 768px) { .cards-grid { grid-template-columns: 1fr; gap: 1rem; } }

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(11,110,79,0.12);
    color: var(--verde);
    padding: 0.6rem 1rem;
    border-radius: 10px;
}

.section--muted { background: linear-gradient(180deg, rgba(245,245,245,0.6), rgba(250,250,250,0.6)); padding: 2.2rem 0; }

p { line-height: 1.7; }

.text-center { text-align: center; }

@media (max-width: 768px) {
    .page-header { padding: 2rem 0; }
    .hero-title { font-size: 2.6rem; }
}
/* ===== GALERÍA DE VIDEOS ===== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}
@media (max-width: 1024px) {
    .videos-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .videos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .videos-grid { grid-template-columns: 1fr; }
}
.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.video-thumbnail {
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background-size: cover;
    background-position: center;
    position: relative;
}
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3.5rem;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.video-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}
.video-card h3 {
    font-size: 1rem;
    font-weight: 700;
    padding: 0.8rem 1rem 0.2rem;
    color: #1a2a2a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-card p {
    font-size: 0.85rem;
    color: #4a5568;
    padding: 0 1rem 1rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* ===== MODAL DE VIDEO ===== */
.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.video-modal.active { display: flex; }
.video-modal-content {
    background: #1a1a1a;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6);
}
.video-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 40px;
    height: 40px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 10;
}
.video-modal-close:hover { transform: scale(1.1); }
#videoPlayerWrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}
#videoPlayerWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
#videoModalTitle {
    color: #fff;
    margin-top: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
}

/* ===== IMPACTO VIDEO (TAMAÑO GRANDE, BORDES NEGROS) ===== */
.impact-video-wrapper {
    position: relative;
    width: 100%;
    height: 65vh; /* Ocupa gran parte de la pantalla, similar a un modal */
    min-height: 400px;
    max-height: 700px;
    margin: 2rem auto;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    background: #000; /* Fondo negro para bordes */
}

.impact-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* Mantiene proporción, muestra bordes negros si es necesario */
    background: #000;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .impact-video-wrapper {
        height: 45vh;
        min-height: 280px;
        border-radius: 1rem;
    }
}

/* ===== FONDO BORROSO GLOBAL (RUTA CORREGIDA) ===== */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: 
        linear-gradient(135deg, rgba(11,110,79,0.12), rgba(26,95,122,0.08)),
        url('../imagenes/lol.jpg') center/cover no-repeat fixed;
    filter: blur(6px) brightness(1.1);
}
body {
    background: #f0f4f8;
    min-height: 100vh;
}

/* Asegurar que el contenido esté por encima del fondo */
main, .container, .hero, section, .ulac-grid, .benefits-grid, .stats-grid {
    position: relative;
    z-index: 1;
}
/* ===== FONDO BORROSO GLOBAL (FUERZA SOBRE OTROS ESTILOS) ===== */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

body {
    background: #f0f4f8 !important; /* Color de respaldo */
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: 
        linear-gradient(135deg, rgba(11,110,79,0.12), rgba(26,95,122,0.08)),
        url('../imagenes/lol.jpg') center/cover no-repeat fixed !important;
    filter: blur(6px) brightness(1.1);
    background-blend-mode: overlay;
}

/* Asegurar que ningún otro estilo ponga fondo en el body */
body * {
    /* No afecta a los hijos directos, solo al body */
}

/* ===== REDES SOCIALES EN FOOTER ===== */
.footer-social {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-social h4 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 1.4rem;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.social-icon.whatsapp {
    background: #25D366;
    color: #fff;
}
.social-icon.whatsapp:hover {
    background: #1da851;
}

.social-icon.tiktok {
    background: #000;
    color: #fff;
}
.social-icon.tiktok:hover {
    background: #161616;
}

.social-icon.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: #fff;
}
.social-icon.instagram:hover {
    opacity: 0.9;
}

/* ============================================================
   CORRECCIONES PARA MÓVILES (IPHONE Y ANDROID)
   ============================================================ */

/* 1. Hero: altura flexible y padding ajustado */
@media (max-width: 768px) {
    .hero {
        height: auto !important;
        min-height: 90vh !important;
        padding: 5rem 1rem 3rem !important;
        align-items: center !important;
    }
    .hero-content {
        padding: 1rem 0.5rem !important;
    }
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.1 !important;
        word-break: break-word !important;
    }
    .hero-subtitle {
        font-size: 0.95rem !important;
        padding: 0 0.5rem !important;
    }
    .hero-buttons .btn {
        font-size: 0.9rem !important;
        padding: 0.6rem 1.5rem !important;
    }
    .hero-badge {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.7rem !important;
    }
}

/* 2. Beneficios: usar grid en lugar de flex para evitar scroll y clipping */
@media (max-width: 768px) {
    .benefits-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.8rem !important;
        padding: 0.5rem 0.5rem !important;
        overflow-x: visible !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .benefit-item {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        width: 100% !important;
        padding: 1rem 0.8rem !important;
        min-height: 140px !important;
        scroll-snap-align: none !important;
    }
    .benefit-item i {
        font-size: 1.6rem !important;
        margin-bottom: 0.5rem !important;
    }
    .benefit-item h3 {
        font-size: 0.95rem !important;
        margin-bottom: 0.3rem !important;
    }
    .benefit-item p {
        font-size: 0.8rem !important;
        line-height: 1.5 !important;
    }
    /* En pantallas muy pequeñas, 1 columna */
    @media (max-width: 480px) {
        .benefits-grid {
            grid-template-columns: 1fr !important;
            gap: 0.6rem !important;
        }
        .benefit-item {
            min-height: 120px !important;
            padding: 0.8rem !important;
        }
    }
}

/* 3. Estadísticas: ajuste en móvil */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.8rem !important;
    }
    .stat-card {
        padding: 0.8rem 0.5rem !important;
    }
    .stat-number {
        font-size: 1.8rem !important;
    }
    .stat-card p {
        font-size: 0.75rem !important;
    }
    .stats-section {
        padding: 1.5rem 1rem !important;
        margin: 1rem 0 !important;
        border-radius: 1rem !important;
    }
}

/* 4. Newsletter / Donación */
@media (max-width: 768px) {
    .newsletter {
        padding: 1.5rem 1rem !important;
        margin: 1.5rem 0 !important;
        border-radius: 1rem !important;
    }
    .newsletter h3 {
        font-size: 1.2rem !important;
    }
    .newsletter p {
        font-size: 0.9rem !important;
        padding: 0 0.5rem !important;
    }
    .btn-donar {
        font-size: 0.9rem !important;
        padding: 0.6rem 1.5rem !important;
        white-space: normal !important;
    }
}

/* 5. Sección de títulos */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem !important;
        padding-left: 0.6rem !important;
        margin-bottom: 1rem !important;
    }
    .section-title::after {
        width: 30px !important;
    }
}

/* 6. Container general */
@media (max-width: 768px) {
    .container {
        padding-left: 0.8rem !important;
        padding-right: 0.8rem !important;
    }
}

/* 7. Video wrapper */
@media (max-width: 768px) {
    .impact-video-wrapper {
        margin: 0.5rem auto !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        min-height: 200px !important;
        max-height: 400px !important;
    }
}

/* 8. Ajuste para que el menú flotante no tape contenido en móvil */
@media (max-width: 480px) {
    .social-float {
        bottom: 15px !important;
        right: 15px !important;
    }
    .social-toggle {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.8rem !important;
    }
}

/* 9. Footer en móvil: mejor espaciado */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem !important;
    }
    .footer-container {
        gap: 1.5rem !important;
    }
    .footer-col {
        text-align: center !important;
    }
    .contact-info p {
        justify-content: center !important;
        font-size: 0.75rem !important;
    }
    .footer-logo {
        max-width: 100px !important;
        margin: 0 auto !important;
    }
}
/* ============================================================
   CORRECCIÓN DROPDOWN EN MÓVIL (para "Oferta Académica")
   ============================================================ */
@media (max-width: 768px) {
    /* El menú desplegable deja de ser absoluto y pasa a ser bloque */
    .dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding-left: 1.2rem !important;
        margin-top: 0.3rem;
        border-radius: 0 !important;
        min-width: auto !important;
        width: 100%;
    }

    /* Enlaces del submenú con estilo adaptado */
    .dropdown-menu a {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(11, 110, 79, 0.08);
        color: #2d4a4a !important;
    }
    .dropdown-menu a:last-child {
        border-bottom: none;
    }

    /* Rotación de la flecha (opcional, pero mejora UX) */
    .dropdown-toggle .arrow {
        display: inline-block;
        transition: transform 0.3s ease;
    }
    .dropdown.open .dropdown-toggle .arrow {
        transform: rotate(180deg);
    }

    /* Asegura que el submenú se muestre al abrir */
    .dropdown.open .dropdown-menu {
        display: block !important;
    }
}
/* ============================================================
   CORRECCIÓN DROPDOWN EN MÓVIL - VERSIÓN DEFINITIVA
   ============================================================ */
@media (max-width: 768px) {
    /* Ocultar el submenú por defecto */
    .dropdown-menu {
        display: none !important;
        position: static !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding-left: 1.2rem !important;
        margin-top: 0.3rem;
        border-radius: 0 !important;
        min-width: auto !important;
        width: 100%;
    }

    /* Mostrar el submenú SOLO cuando .dropdown tiene la clase .open */
    .dropdown.open .dropdown-menu {
        display: block !important;
    }

    /* Ajuste de los enlaces del submenú */
    .dropdown-menu a {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(11, 110, 79, 0.08);
        color: #2d4a4a !important;
        display: block;
    }
    .dropdown-menu a:last-child {
        border-bottom: none;
    }

    /* Rotación de flecha (opcional) */
    .dropdown-toggle .arrow {
        display: inline-block;
        transition: transform 0.3s ease;
    }
    .dropdown.open .dropdown-toggle .arrow {
        transform: rotate(180deg);
    }
}

/* ============================================================
   CORRECCIÓN FINAL: FONDO BORROSO + TARJETAS EQUIPO (MÓVIL)
   ============================================================ */

/* ---------- 1. FONDO BORROSO ADAPTATIVO ---------- */
/* Reemplaza cualquier body::before anterior con esto */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: 
        linear-gradient(135deg, rgba(11,110,79,0.12), rgba(26,95,122,0.08)),
        url('../imagenes/lol.jpg') center/cover no-repeat fixed !important;
    background-blend-mode: overlay;
    filter: blur(6px) brightness(1.1);
}

/* Tablets: blur moderado */
@media (max-width: 1024px) {
    body::before {
        filter: blur(4px) brightness(1.1);
    }
}

/* Móviles: blur suave para que se vea la imagen */
@media (max-width: 768px) {
    body::before {
        filter: blur(3px) brightness(1.15);
        background-blend-mode: normal !important;
        background-size: cover !important;
    }
    body {
        background: #e8f0ed !important;
    }
}

/* ============================================================
   CORRECCIÓN FINAL: FONDO BORROSO + TARJETAS EQUIPO (MÓVIL)
   ============================================================ */

/* ---------- 1. FONDO BORROSO ADAPTATIVO ---------- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: 
        linear-gradient(135deg, rgba(11,110,79,0.12), rgba(26,95,122,0.08)),
        url('../imagenes/lol.jpg') center/cover no-repeat fixed !important;
    background-blend-mode: overlay;
    filter: blur(6px) brightness(1.1);
}

@media (max-width: 1024px) {
    body::before {
        filter: blur(4px) brightness(1.1);
    }
}

@media (max-width: 768px) {
    body::before {
        filter: blur(3px) brightness(1.15);
        background-blend-mode: normal !important;
        background-size: cover !important;
    }
    body {
        background: #e8f0ed !important;
    }
}

/* ---------- 2. TARJETAS DEL EQUIPO (MÓVIL) ---------- */
@media (max-width: 768px) {
    .team-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }

    .team-card {
        border-radius: 1rem !important;
        border: 1px solid rgba(11,110,79,0.08) !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        max-height: 320px !important; /* Limita la altura total */
    }

    .team-card img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4 / 3 !important; /* Mantiene horizontal */
        object-fit: cover !important;
        min-height: unset !important;
        max-height: 180px !important; /* Limita la altura de la imagen */
    }

    .team-card div {
        padding: 0.6rem 0.5rem 1rem !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .team-role {
        font-size: 0.65rem !important;
        margin-bottom: 0.1rem !important;
    }

    .team-card h3 {
        font-size: 0.9rem !important;
        margin-bottom: 0.1rem !important;
        line-height: 1.2 !important;
    }

    .team-card p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }
}

/* ============================================================
   EQUIPO: 2 COLUMNAS, IMAGEN COMPLETA Y TEXTO VISIBLE
   ============================================================ */

@media (max-width: 768px) {
    .team-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
        max-width: 600px !important;
        margin: 0 auto !important;
    }

    .team-card {
        display: flex !important;
        flex-direction: column !important;
        background: rgba(255, 255, 255, 0.85) !important;
        border-radius: 1rem !important;
        overflow: hidden !important;
        border: 1px solid rgba(11, 110, 79, 0.1) !important;
        height: auto !important;
        max-height: none !important;
    }

    /* La imagen se ajusta al ancho y la altura es automática (sin recorte) */
    .team-card img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: contain !important; /* Muestra la imagen completa sin recortar */
        aspect-ratio: auto !important; /* Quitamos la restricción de proporción forzada */
        max-height: none !important;
        min-height: unset !important;
    }

    .team-card div {
        padding: 0.6rem 0.5rem 0.8rem !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        text-align: center !important;
        gap: 0.1rem !important;
    }

    .team-role {
        font-size: 0.7rem !important;
        font-weight: 700 !important;
        color: #0b6e4f !important;
        text-transform: uppercase !important;
        letter-spacing: 0.04em !important;
        margin-bottom: 0.1rem !important;
    }

    .team-card h3 {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        margin: 0 0 0.1rem 0 !important;
        line-height: 1.2 !important;
        color: #1a2a2a !important;
    }

    .team-card p {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        color: #4a5960 !important;
        overflow: visible !important;
        white-space: normal !important;
        display: block !important;
    }
}

/* Pantallas muy pequeñas (≤420px) */
@media (max-width: 420px) {
    .team-grid {
        gap: 0.6rem !important;
        max-width: 100% !important;
    }

    .team-card div {
        padding: 0.4rem 0.3rem 0.6rem !important;
    }

    .team-role {
        font-size: 0.6rem !important;
    }

    .team-card h3 {
        font-size: 0.8rem !important;
    }

    .team-card p {
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
    }
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: 
        linear-gradient(135deg, rgba(11,110,79,0.12), rgba(26,95,122,0.08)),
        image-set(
            url('../imagenes/lol.jpg') 1x,
            url('../imagenes/lol-mobile.webp') 0.5x
        ) center/cover no-repeat fixed !important;
    filter: blur(6px) brightness(1.1);
    background-blend-mode: overlay;
}

@media (max-width: 768px) {
    body::before {
        filter: blur(2px) brightness(1.15);
    }
}

/* ============================================================
   FONDO: IMAGEN CON BLUR EN PC, DEGRADADO EN MÓVIL
   ============================================================ */

/* PC: imagen con blur */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background: 
        linear-gradient(135deg, rgba(11,110,79,0.12), rgba(26,95,122,0.08)),
        url('../imagenes/lol.jpg') center/cover no-repeat fixed !important;
    background-blend-mode: overlay;
    filter: blur(6px) brightness(1.1);
}

/* Móviles (≤ 768px): solo degradado, sin imagen ni blur */
@media (max-width: 768px) {
    body::before {
        background: 
            linear-gradient(135deg, 
                #d9ebe4 0%, 
                #cdece3 30%, 
                #e7f7ef 65%, 
                #f7fbfb 100%
            ) !important;
        filter: none !important;
        background-blend-mode: normal !important;
        opacity: 1;
    }
    body {
        background: #f0f4f8 !important;
    }
}

/* Color de respaldo para navegadores antiguos */
body {
    background: #f0f4f8 !important;
}
