:root {
    --azul: #1C9CBC;
    --naranja: #EC6608;
    --verde: #51AE32;
    --verde-oscuro: #3e8e24;
    --atoms-theme: #51AE32;
}


p, li {
    text-align: justify;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Solución para que el footer baje hasta el fondo siempre */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

main {
    flex: 1;
}

section { padding: 0; display: none; will-change: opacity, transform; }
section#nosotros { display: block; }
.nav-azul, .nav-principal { background-color: var(--verde); }
.nav-azul a { color: #fff !important; }
.nav-link { font-family: "Lato", sans-serif; font-weight: 900; font-size: 22px; transition: color 0.3s ease; }
.nav-link:hover { color: #e0e0e0 !important; }

/* Control de altura del Logo para no desalinear la barra */
.logo-principal { height: 75px; width: auto; object-fit: contain; }

/* Menú Lateral: Sombras y Glow */
ul.menuLateral { list-style: none; padding-left: 0; }
ul.menuLateral li { padding: 12px 15px; margin-bottom: 5px; border-radius: 8px; transition: background-color 0.3s ease; display: flex; align-items: center; }
ul.menuLateral li:hover { background-color: rgba(0, 0, 0, 0.25); cursor: pointer; }
ul.menuLateral li a { text-decoration: none; font-weight: bold; color: white !important; flex-grow: 1; margin-left: 15px;}
ul.menuLateral li img { width: 35px; height: auto; transition: all 0.3s ease; }
ul.menuLateral li:hover img { filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)) brightness(1.1); transform: scale(1.08); }

/* ----------------------------------------------------- */
/* RED FEE MÉXICO: SUBMENÚ OFFCANVAS HOMOGENEIZADO       */
/* ----------------------------------------------------- */
.menuLateral-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05));
    margin: 1.25rem 0 0.85rem 0;
    opacity: 1;
}

.menuLateral-heading {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    padding: 0.25rem 0.5rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menuLateral-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

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

ul.menuLateral.menuLateral-red li {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    margin-bottom: 4px;
    border-radius: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
}

ul.menuLateral.menuLateral-red li:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

ul.menuLateral.menuLateral-red li img {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.25s ease, filter 0.25s ease;
    margin-left: 0 !important;
}

ul.menuLateral.menuLateral-red li:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

ul.menuLateral.menuLateral-red li a {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    text-decoration: none;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-left: 0 !important;
}

ul.menuLateral.menuLateral-red li a .link-ext-icon {
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
}

ul.menuLateral.menuLateral-red li:hover a .link-ext-icon {
    color: #ffffff;
    transform: translate(2px, -2px);
}

ul.menuLateral.menuLateral-red li.menuLateral-current {
    background-color: rgba(255, 255, 255, 0.15);
    border-left: 3px solid #ffffff;
}

.badge-actual {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

body.atoms-contrast .menuLateral-red li a {
    color: #ffffff !important;
}

body.atoms-contrast .badge-actual {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

/* Icono Hamburguesa a Tache */
.menu-icon-toggle span { font-size: 45px !important; transition: transform 0.3s ease; }

/* Formulario Minimalista */
.minimalist-form .form-control { border: none; border-bottom: 2px solid #e0e0e0; border-radius: 0; padding-left: 0; background-color: transparent; transition: border-color 0.3s ease; box-shadow: none;}
.minimalist-form .form-control:focus { border-bottom-color: var(--verde); }
.minimalist-form .form-floating label { padding-left: 0; color: #888; }
.btn-enviar-custom { background-color: var(--verde); border-radius: 30px; padding: 12px 20px; font-weight: bold; letter-spacing: 0.5px; transition: all 0.3s ease; }
.btn-enviar-custom:hover { background-color: var(--verde-oscuro); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(81, 174, 50, 0.4); }

.footer-email-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.92) !important;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.footer-email-link:hover {
    color: #ffffff !important;
    text-decoration: underline;
    transform: translateY(-1px);
}

.offcanvas-email-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--verde) !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.offcanvas-email-link:hover {
    color: var(--verde-oscuro) !important;
    text-decoration: underline;
}

/* Botones del Footer */
.btn-contacto-footer, .btn-proceso-footer { background-color: transparent; color: #fff !important; border: 2px solid #fff; border-radius: 30px; padding: 8px 25px; font-weight: 700; transition: all 0.3s ease; }
.btn-contacto-footer:hover, .btn-proceso-footer:hover { background-color: #fff; color: var(--verde) !important; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

/* Firma Atom's */
.firma-atoms { color: rgba(255, 255, 255, 0.6); transition: all 0.4s ease; cursor: default; }
.firma-atoms:hover { color: #ffffff !important; text-shadow: 0 0 8px rgba(255, 255, 255, 0.8); }

/* ----------------------------------------------------- */
/* LOGOS DEL FOOTER HOMOGENEIZADOS (RED FEE MÉXICO)      */
/* ----------------------------------------------------- */
.img-container,
.img-container-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (min-width: 992px) {
    .img-container,
    .img-container-footer {
        justify-content: flex-end !important;
        gap: 24px !important;
    }
}

.img-container a,
.img-container-footer a,
.footer-link-ecocampus {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 60px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
}

.img-container a:hover,
.img-container-footer a:hover,
.footer-link-ecocampus:hover {
    transform: translateY(-2px) scale(1.08) !important;
}

/* Logos en footer calibrados con proporción óptica uniforme (Red FEE México) */
.img-container img,
.img-container-footer img {
    height: 52px !important;
    max-height: 52px !important;
    width: auto !important;
    max-width: 68px !important;
    min-width: 0 !important;
    object-fit: contain !important;
    transform: none !important;
    filter: brightness(0) invert(1) !important;
    opacity: 0.9 !important;
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease !important;
    margin: 0 !important;
}

/* Ajuste óptico para logos cuadrados/anchos (Blue Flag, YRE) */
.img-container img[src*="blue"],
.img-container-footer img[src*="blue"],
.img-container img[src*="YRE"],
.img-container-footer img[src*="YRE"] {
    height: 50px !important;
    max-height: 50px !important;
}

/* Ajuste óptico para logos verticales esbeltos (Leaf, FEE México) */
.img-container img[src*="leaf"],
.img-container-footer img[src*="leaf"],
.img-container img[src*="Leaf"],
.img-container-footer img[src*="Leaf"],
.img-container img[src*="fee"],
.img-container-footer img[src*="fee"],
.img-container img[src*="Fee"],
.img-container-footer img[src*="Fee"] {
    height: 56px !important;
    max-height: 56px !important;
    width: auto !important;
    max-width: 68px !important;
    object-fit: contain !important;
}

/* Ajuste óptico y centrado al nivel de todos para el logo de Eco-Schools */
.img-container img[src*="eco"],
.img-container-footer img[src*="eco"] {
    height: 50px !important;
    max-height: 50px !important;
    width: auto !important;
    max-width: 66px !important;
    object-fit: contain !important;
    transform: translateY(-2px) !important;
}

.img-container img[src*="EcoCampus"],
.img-container-footer img[src*="EcoCampus"],
.footer-img-ecocampus {
    height: 50px !important;
    max-height: 50px !important;
    width: auto !important;
    max-width: 60px !important;
    object-fit: contain !important;
}

.img-container a:hover img,
.img-container-footer a:hover img,
.footer-link-ecocampus:hover img {
    opacity: 1 !important;
    filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(255, 255, 255, 0.7)) !important;
}

@media (max-width: 768px) {
    .img-container,
    .img-container-footer {
        justify-content: center !important;
        gap: 18px !important;
        margin-top: 15px !important;
    }

    .img-container a,
    .img-container-footer a,
    .footer-link-ecocampus {
        height: 50px !important;
    }

    .img-container img,
    .img-container-footer img {
        height: 44px !important;
        max-height: 44px !important;
    }

    .img-container img[src*="blue"],
    .img-container-footer img[src*="blue"],
    .img-container img[src*="YRE"],
    .img-container-footer img[src*="YRE"] {
        height: 42px !important;
        max-height: 42px !important;
    }

    .img-container img[src*="leaf"],
    .img-container-footer img[src*="leaf"],
    .img-container img[src*="Leaf"],
    .img-container-footer img[src*="Leaf"] {
        height: 48px !important;
        max-height: 48px !important;
        width: auto !important;
        max-width: 56px !important;
    }

    .img-container img[src*="eco"],
    .img-container-footer img[src*="eco"] {
        height: 42px !important;
        max-height: 42px !important;
        width: auto !important;
        max-width: 56px !important;
        transform: translateY(-2px) !important;
    }

    .img-container img[src*="EcoCampus"],
    .img-container-footer img[src*="EcoCampus"],
    .footer-img-ecocampus {
        height: 42px !important;
        max-height: 42px !important;
        width: auto !important;
        max-width: 50px !important;
    }
}

/* Tablas y utilidades */
table#tablou { border-collapse: collapse; background-color: var(--verde); color: white; width: 100%; }
table#tablou thead { background-color: var(--azul); }
table#tablou th, table#tablou td { border: 2px solid var(--azul); padding: 8px; }
.custom-span, .custom-spanH { display: inline-block; width: 100px; background-color: var(--verde); }
.custom-span { height: 15px; } .custom-spanH { height: 25px; }
#containerM {
    width: 100%;
    min-height: 520px;
    aspect-ratio: 16 / 10;
}
rect.highcharts-background { fill: transparent; }

@media (max-width: 768px) {
    .logo-principal { height: 55px; }
    #containerM { min-height: 360px; height: 380px !important; aspect-ratio: auto; }
}

/* 1. Forzar que todas las imágenes/logos del menú lateral sean de color blanco sólido */
#menu-dinamico img,
#offcanvasExample img {
    filter: brightness(0) invert(1) !important;
}

@media (max-width: 576px) {
    .offcanvas.offcanvas-start {
        max-width: 85vw !important;
    }
}

/* 2. Eliminar el fondo oscuro, sombreado o color de estado "activo" en los botones */
#menu-dinamico li,
#menu-dinamico a,
#offcanvasExample .active {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Opcional: Asegurar que el texto de los botones también sea siempre blanco */
#menu-dinamico a,
#menu-dinamico span {
    color: #ffffff !important;
}

/* ----------------------------------------------------- */
/* EFECTOS Y DETALLES DE VANGUARDIA (ATOMS TECH)         */
/* ----------------------------------------------------- */
main section {
    animation: atomsSectionFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes atomsSectionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Indicador activo sutil en navegación */
.nav-link {
    position: relative;
    transition: opacity 0.25s ease;
}

.nav-link.active-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 10%;
    width: 80%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    animation: atomsUnderlineIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes atomsUnderlineIn {
    from { transform: scaleX(0); opacity: 0; }
    to { transform: scaleX(1); opacity: 1; }
}

/* Botón Volver Arriba Minimalista */
.btn-scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--verde);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1040;
}

.btn-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-scroll-top:hover {
    background: var(--verde);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(81, 174, 50, 0.35);
}

/* Glassmorphism en modales y offcanvas */
.modal-backdrop.show, .offcanvas-backdrop.show {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background-color: rgba(10, 25, 20, 0.45);
}

.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

/* ==========================================================================
   ATOMS TECHNOLOGIES - VANGUARD SUITE (A11Y, COUNTERS, SHARE, LIGHTBOX)
   ========================================================================== */

/* =========================================================
   MÓDULO DE ACCESIBILIDAD WEB (A11Y) - GREEN KEY MÉXICO
========================================================= */
.accessibility-widget {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 2500;
}

.btn-accessibility-toggle {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0B2416 0%, #153D25 100%);
    color: #ffffff;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(11, 36, 22, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    outline: none;
}

.btn-accessibility-toggle:hover,
.btn-accessibility-toggle:focus-visible {
    background: linear-gradient(135deg, #153D25 0%, #2D8A4E 100%);
    border-color: #ffffff;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 30px rgba(45, 138, 78, 0.55);
}

.btn-accessibility-toggle.panel-open {
    background: #2D8A4E;
    border-color: #ffffff;
    transform: scale(0.95);
}

/* Badge contador */
.a11y-badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: #51AE32;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0B2416;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* Tooltip al hacer hover */
.a11y-tooltip {
    position: absolute;
    left: calc(100% + 14px);
    background-color: rgba(11, 36, 22, 0.95);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-accessibility-toggle:hover .a11y-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Panel emergente de accesibilidad */
.accessibility-panel {
    position: fixed;
    bottom: 90px;
    left: 25px;
    width: 360px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 120px);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(11, 36, 22, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 2501;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.accessibility-panel.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Header del panel */
.a11y-header {
    background: linear-gradient(135deg, #0B2416 0%, #153D25 100%);
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.a11y-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.a11y-header-title > i {
    font-size: 1.6rem;
    color: #51AE32;
}

.a11y-header-title h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
}

.a11y-subtitle {
    font-size: 0.76rem;
    color: #a7f3d0;
    display: block;
}

.a11y-close-btn {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.a11y-close-btn:hover {
    background: #2D8A4E;
    transform: scale(1.1);
}

/* Contenido */
.a11y-content {
    padding: 18px 20px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.a11y-content::-webkit-scrollbar {
    width: 6px;
}
.a11y-content::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.a11y-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.a11y-section-title {
    font-size: 0.82rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.a11y-section-title i {
    color: #2D8A4E;
}

/* Control de Fuente */
.a11y-font-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px 12px;
}

.a11y-font-btn {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #0B2416;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.a11y-font-btn:hover {
    background: #2D8A4E;
    color: #ffffff;
    border-color: #2D8A4E;
}

.a11y-font-indicator {
    font-weight: 800;
    font-size: 1.05rem;
    color: #0B2416;
    min-width: 55px;
    text-align: center;
}

/* Cuadrícula de opciones */
.a11y-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.a11y-btn {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    text-align: center;
    outline: none;
}

.a11y-btn-icon {
    font-size: 1.25rem;
    color: #0B2416;
    transition: transform 0.2s ease, color 0.2s ease;
}

.a11y-btn-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.2;
}

.a11y-btn:hover {
    background: #ffffff;
    border-color: #2D8A4E;
    box-shadow: 0 4px 12px rgba(45, 138, 78, 0.15);
    transform: translateY(-2px);
}

.a11y-btn:hover .a11y-btn-icon {
    color: #2D8A4E;
    transform: scale(1.15);
}

.a11y-btn.active {
    background: #2D8A4E;
    border-color: #2D8A4E;
    box-shadow: 0 4px 14px rgba(45, 138, 78, 0.35);
}

.a11y-btn.active .a11y-btn-icon,
.a11y-btn.active .a11y-btn-text {
    color: #ffffff;
    font-weight: 700;
}

/* Lector de voz */
.a11y-speech-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.a11y-speech-btn,
.a11y-read-section-btn {
    min-height: 65px;
}

.a11y-speech-status {
    margin-top: 10px;
    background: #f0fdf4;
    border: 1.5px solid #51AE32;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.82rem;
    color: #166534;
    font-weight: 600;
}

.speech-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #51AE32;
    box-shadow: 0 0 0 0 rgba(81, 174, 50, 0.7);
    animation: speechPulseAnim 1.6s infinite;
    flex-shrink: 0;
}

.speech-msg {
    flex-grow: 1;
    line-height: 1.25;
}

.a11y-stop-btn {
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.a11y-stop-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Footer / Restablecer */
.a11y-footer {
    padding-top: 4px;
}

.a11y-reset-btn {
    width: 100%;
    background: #f1f5f9;
    border: 1.5px dashed #cbd5e1;
    color: #475569;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.a11y-reset-btn:hover {
    background: #fee2e2;
    border-color: #ef4444;
    color: #dc2626;
}

.a11y-speaking-active {
    outline: 3px solid #51AE32 !important;
    outline-offset: 4px !important;
    background-color: rgba(81, 174, 50, 0.15) !important;
    border-radius: 6px !important;
    transition: background-color 0.2s ease, outline 0.2s ease !important;
}

/* =========================================================
   ESTILOS DE ACCESIBILIDAD ACTIVADOS (GREEN KEY)
========================================================= */

/* Alto Contraste */
body.a11y-high-contrast {
    background-color: #000000 !important;
    color: #ffffff !important;
}

body.a11y-high-contrast nav,
body.a11y-high-contrast .navbar {
    background-color: #000000 !important;
    border-bottom: 3px solid #51AE32 !important;
}

body.a11y-high-contrast .nav-link {
    color: #ffffff !important;
}

body.a11y-high-contrast .nav-link.active,
body.a11y-high-contrast .nav-link:hover {
    background-color: #51AE32 !important;
    color: #000000 !important;
    font-weight: 800 !important;
}

body.a11y-high-contrast h1,
body.a11y-high-contrast h2,
body.a11y-high-contrast h3,
body.a11y-high-contrast h4,
body.a11y-high-contrast h5,
body.a11y-high-contrast h6 {
    color: #ffff00 !important;
}

body.a11y-high-contrast p,
body.a11y-high-contrast li,
body.a11y-high-contrast span,
body.a11y-high-contrast td,
body.a11y-high-contrast th {
    color: #ffffff !important;
}

body.a11y-high-contrast a {
    color: #51AE32 !important;
    text-decoration: underline !important;
}

body.a11y-high-contrast .card,
body.a11y-high-contrast .atoms-stat-card,
body.a11y-high-contrast .atoms-stats-ribbon,
body.a11y-high-contrast .modal-content,
body.a11y-high-contrast .offcanvas,
body.a11y-high-contrast section,
body.a11y-high-contrast footer {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #51AE32 !important;
    box-shadow: none !important;
}

body.a11y-high-contrast .accessibility-panel {
    background-color: #000000 !important;
    border: 3px solid #51AE32 !important;
    box-shadow: 0 0 25px rgba(81, 174, 50, 0.4) !important;
}

body.a11y-high-contrast .a11y-header {
    background: #000000 !important;
    border-bottom: 2px solid #51AE32 !important;
}

body.a11y-high-contrast .a11y-btn,
body.a11y-high-contrast .a11y-font-controls,
body.a11y-high-contrast .a11y-font-btn,
body.a11y-high-contrast .a11y-reset-btn {
    background: #000000 !important;
    border: 2px solid #51AE32 !important;
    color: #51AE32 !important;
}

body.a11y-high-contrast .a11y-btn.active {
    background: #51AE32 !important;
    color: #000000 !important;
}

body.a11y-high-contrast .a11y-btn.active .a11y-btn-icon,
body.a11y-high-contrast .a11y-btn.active .a11y-btn-text {
    color: #000000 !important;
}

/* Modo Oscuro Green Key */
body.a11y-dark-mode {
    background-color: #07180e !important;
    color: #e2e8f0 !important;
}

body.a11y-dark-mode nav,
body.a11y-dark-mode .navbar {
    background-color: #05120a !important;
    border-bottom: 1px solid #153D25 !important;
}

body.a11y-dark-mode .nav-link {
    color: #94a3b8 !important;
}

body.a11y-dark-mode .nav-link:hover,
body.a11y-dark-mode .nav-link.active {
    color: #51AE32 !important;
}

body.a11y-dark-mode .card,
body.a11y-dark-mode .atoms-stat-card,
body.a11y-dark-mode .modal-content,
body.a11y-dark-mode .offcanvas {
    background-color: #0d2719 !important;
    color: #e2e8f0 !important;
    border-color: #1b4a2d !important;
}

body.a11y-dark-mode h1,
body.a11y-dark-mode h2,
body.a11y-dark-mode h3,
body.a11y-dark-mode h4,
body.a11y-dark-mode h5,
body.a11y-dark-mode h6 {
    color: #f8fafc !important;
}

body.a11y-dark-mode p,
body.a11y-dark-mode li {
    color: #cbd5e1 !important;
}

body.a11y-dark-mode footer {
    background-color: #05120a !important;
    border-top: 1px solid #153D25 !important;
}

body.a11y-dark-mode .accessibility-panel {
    background: #0d2719 !important;
    border: 1px solid #1b4a2d !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7) !important;
}

body.a11y-dark-mode .a11y-content::-webkit-scrollbar-track {
    background: #0d2719 !important;
}

body.a11y-dark-mode .a11y-content::-webkit-scrollbar-thumb {
    background: #1b4a2d !important;
}

body.a11y-dark-mode .a11y-btn,
body.a11y-dark-mode .a11y-font-controls {
    background: #07180e !important;
    border-color: #1b4a2d !important;
}

body.a11y-dark-mode .a11y-btn-icon,
body.a11y-dark-mode .a11y-btn-text,
body.a11y-font-indicator,
body.a11y-font-btn {
    color: #f8fafc !important;
}

body.a11y-dark-mode .a11y-font-btn {
    background: #0d2719 !important;
    border-color: #1b4a2d !important;
}

body.a11y-dark-mode .a11y-reset-btn {
    background: #07180e !important;
    border-color: #1b4a2d !important;
    color: #94a3b8 !important;
}

/* Escala de Grises */
html.a11y-grayscale {
    filter: grayscale(100%) !important;
}

/* Fuente Legible */
body.a11y-readable-font,
body.a11y-readable-font * {
    font-family: Arial, "Helvetica Neue", Helvetica, Verdana, sans-serif !important;
    letter-spacing: 0.035em !important;
}

/* Resaltar Enlaces */
body.a11y-highlight-links a {
    text-decoration: underline 3px #2D8A4E !important;
    background-color: rgba(45, 138, 78, 0.2) !important;
    color: #0B2416 !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    padding: 1px 4px !important;
}

/* Espaciado de Texto */
body.a11y-text-spacing p,
body.a11y-text-spacing li,
body.a11y-text-spacing h1,
body.a11y-text-spacing h2,
body.a11y-text-spacing h3,
body.a11y-text-spacing h4,
body.a11y-text-spacing span,
body.a11y-text-spacing a {
    line-height: 1.95 !important;
    letter-spacing: 0.08em !important;
    word-spacing: 0.14em !important;
}

/* Detener Animaciones */
body.a11y-stop-animations *,
body.a11y-stop-animations *::before,
body.a11y-stop-animations *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
}

/* Cursor Grande */
body.a11y-big-cursor,
body.a11y-big-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24' fill='%230B2416' stroke='%23ffffff' stroke-width='1.5'%3E%3Cpath d='M3 3l7 18 3-7 7-3L3 3z'/%3E%3C/svg%3E"), auto !important;
}

body.a11y-big-cursor a,
body.a11y-big-cursor button,
body.a11y-big-cursor [role='button'],
body.a11y-big-cursor input,
body.a11y-big-cursor select,
body.a11y-big-cursor textarea {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24' fill='%232D8A4E' stroke='%23ffffff' stroke-width='1.5'%3E%3Cpath d='M3 3l7 18 3-7 7-3L3 3z'/%3E%3C/svg%3E"), pointer !important;
}

@media (max-width: 768px) {
    .accessibility-widget {
        bottom: 20px;
        left: 16px;
    }
    .btn-accessibility-toggle {
        width: 46px;
        height: 46px;
        font-size: 1.3rem;
    }
    .accessibility-panel {
        bottom: 76px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        border-radius: 16px;
    }
    .a11y-content {
        padding: 14px 16px;
        max-height: 65vh;
        gap: 14px;
    }
    .a11y-btn {
        padding: 10px 8px;
    }
    .a11y-btn-text {
        font-size: 0.76rem;
    }
}

/* 4. BOTÓN FLOTANTE DE COMPARTIR */
.btn-share-floating {
    position: fixed;
    bottom: 85px;
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1039;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-share-floating:hover {
    background: var(--atoms-theme);
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

/* 5. TOAST NOTIFICACIÓN ATOMS TECH */
.atoms-toast {
    position: fixed;
    top: 25px;
    right: 25px;
    min-width: 290px;
    max-width: 90vw;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1099;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.atoms-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.atoms-toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}
.atoms-toast-icon {
    color: #10b981;
    font-size: 22px;
}
.atoms-toast-msg {
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.atoms-toast-progress {
    height: 3px;
    background: var(--atoms-theme);
    border-radius: 2px;
    width: 100%;
    transform-origin: left;
    transition: transform 3s linear;
}
.atoms-toast.show .atoms-toast-progress {
    transform: scaleX(0);
}

/* 6. CONTADORES NUMÉRICOS ANIMADOS */
.atoms-stats-ribbon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.5));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 28px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
.atoms-stat-card {
    padding: 10px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.atoms-stat-card:hover {
    transform: translateY(-4px);
}
.atoms-stat-number {
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    font-weight: 900;
    color: var(--atoms-theme);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    margin-bottom: 6px;
}
.atoms-counter-suffix {
    font-size: 0.7em;
    font-weight: 700;
    margin-left: 2px;
    opacity: 0.9;
}
.atoms-stat-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

/* 7. LIGHTBOX PARA IMÁGENES */
.atoms-lightbox-enabled {
    cursor: zoom-in;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.atoms-lightbox-enabled:hover {
    transform: scale(1.02);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}
.atoms-lightbox {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.atoms-lightbox.show {
    opacity: 1;
    visibility: visible;
}
.atoms-lightbox-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 15, 25, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.atoms-lightbox-dialog {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1101;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.atoms-lightbox.show .atoms-lightbox-dialog {
    transform: scale(1);
}
.atoms-lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}
.atoms-lightbox-caption {
    margin-top: 14px;
    color: #f1f5f9;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    max-width: 80vw;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
.atoms-lightbox-close {
    position: absolute;
    top: -45px;
    right: -5px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.atoms-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Responsividad para móviles */
@media (max-width: 576px) {
    .btn-share-floating {
        bottom: 72px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
    .atoms-toast {
        top: 16px;
        right: 16px;
        left: 16px;
        min-width: auto;
    }
}