/* ==========================================================================
   1. VARIABLES Y BASE (ACCESIBILIDAD)
   ========================================================================== */
:root {
    --color-principal: #15a4a4; /* Verde azulado del logo (disclam) */
    --color-secundario: #1e184c; /* Azul índigo oscuro del texto inferior */
    --color-fondo: #f4f5f9; /* Tono muy suave para fondo general */
    --color-blanco: #ffffff;
    --color-texto: #2c2b36; /* Gris oscuro para mejor legibilidad */
    --color-destacado: #edeaf5; /* Lila clarito basado en las piezas del puzzle */
    --sombra-suave: 0 5px 20px rgba(30, 24, 76, 0.08); /* Sombra adaptada al tono oscuro */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   2. ESTRUCTURA DE LA PÁGINA (LAYOUT)
   ========================================================================== */
.layout-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
}

main {
    flex: 1 0 auto;
    width: 95%;
    max-width: 1000px;
    margin: 40px auto;
    background-color: var(--color-blanco);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--sombra-suave);
}

.content-main {
    flex-grow: 1;
    max-width: 900px;
}

.layout-principal {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 30px 0;
    align-items: flex-start;
}

/* ==========================================================================
   3. NAVEGACIÓN Y MENÚ
   ========================================================================== */
nav.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-blanco);
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: relative;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

#menu-toggle, 
.hamburger {
    display: none;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 10px;
    margin: 0;
    flex-wrap: wrap;
}

.nav-links li {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.drop-btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-secundario);
    font-weight: bold;
    padding: 10px 15px;
    transition: color 0.3s, background-color 0.3s;
    border-radius: 5px;
}

.nav-links a:hover {
    color: var(--color-principal);
    background-color: var(--color-fondo);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-blanco);
    min-width: 250px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1001;
    list-style: none;
    padding: 10px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li a {
    display: block;
    padding: 12px 20px;
    color: var(--color-texto);
    font-weight: normal;
    border-bottom: 1px solid var(--color-fondo);
}

.dropdown-content li a:hover {
    background-color: var(--color-fondo);
    color: var(--color-principal);
    padding-left: 25px;
}

.btn-cta { display: inline-flex; align-items: center; justify-content: center; border-radius: 50px !important; margin-left: 10px; padding: 10px 18px; }
.btn-urgente { background-color: #15a4a4 !important; color: white !important; }
.btn-voluntario { background-color: #4bc0d9 !important; color: white !important; border: 2px solid white; }

/* ==========================================================================
   4. CABECERA (HEADER)
   ========================================================================== */
.main-header {
    position: relative;
    width: 100%;
    height: 400px; /* Aumentado ligeramente para dar aire al video */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-secundario);
    flex-shrink: 0;
    z-index: 1;
}

/* El video ocupa todo el fondo sin deformarse */
.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Capa de contraste para asegurar que el texto sea legible */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 24, 76, 0.5); /* Usando tu variable color-secundario con transparencia */
    z-index: 2;
}

/* Contenido del header (Texto) */
.header-content {
    position: relative;
    color: var(--color-blanco) !important;
    text-align: center;
    z-index: 3; /* Por encima del video y el overlay */
    padding: 0 20px;
}

.header-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Tamaño fluido según pantalla */
    margin-bottom: 10px;
    letter-spacing: 4px;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.header-content p {
    font-size: 1.2rem;
    margin-bottom: 0;
    opacity: 0.9;
    letter-spacing: 1px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .main-header {
        height: 300px;
    }
}
/* ==========================================================================
   5. CONTENIDO: TEXTO E IMÁGENES
   ========================================================================== */
main h1 {
    color: var(--color-secundario);
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.2rem;
}

main h2 {
    color: var(--color-principal);
    margin: 35px 0 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--color-fondo);
    padding-bottom: 5px;
}

main p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

main a {
    color: var(--color-principal);
    transition: 0.3s;
}

main a:hover {
    color: var(--color-secundario);
}

main img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
    margin: 30px auto;
    border: 4px solid var(--color-fondo);
}

.destacado {
    color: var(--color-secundario);
    font-weight: bold;
    background-color: var(--color-destacado);
    padding: 3px 8px;
    border-radius: 4px;
}

.intro-box {
    background-color: var(--color-destacado);
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid var(--color-principal);
    margin-bottom: 30px;
    font-style: italic;
}

.highlight {
    color: var(--color-principal);
    font-weight: bold;
}

/* ==========================================================================
   6. LISTAS Y VIÑETAS
   ========================================================================== */
main ul:not(.nav-links):not(.dropdown-content) {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

main ul:not(.nav-links):not(.dropdown-content) li {
    background: #f4f7fb;
    margin-bottom: 15px;
    padding: 18px 25px;
    border-radius: 10px;
    border-left: 6px solid #4bc0d9;
    transition: transform 0.2s ease;
}

main ul:not(.nav-links):not(.dropdown-content) li:hover {
    transform: translateX(5px);
}

main ol, 
.lista-leyes {
    padding: 0;
    counter-reset: leyes-counter;
    list-style: none;
    margin-top: 30px;
}

main ol li, 
.lista-leyes li {
    counter-increment: leyes-counter;
    background: var(--color-blanco);
    border: 1px solid #e0e6ed;
    padding: 25px 25px 25px 65px;
    margin-bottom: 20px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

main ol li:hover, 
.lista-leyes li:hover {
    border-color: var(--color-principal);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(21, 164, 164, 0.15);
}

main ol li::before, 
.lista-leyes li::before {
    content: counter(leyes-counter);
    position: absolute;
    left: 15px;
    top: 22px;
    background-color: var(--color-principal);
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.1rem;
}

/* ==========================================================================
   7. SIDEBAR (ASIDE) Y TARJETAS
   ========================================================================== */
.sidebar-main {
    width: 320px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.sidebar-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #8a67ab;
}

.sidebar-card h3 {
    margin-top: 0;
    color: var(--color-secundario);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.info-card p {
    line-height: 1.5;
    color: #555;
    font-size: 0.95rem;
    margin: 0;
}

.date {
    background-color: var(--color-destacado);
    color: #8a67ab;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-right: 12px;
    white-space: nowrap;
}

.event-desc {
    font-size: 0.9rem;
    color: #444;
}

.btn-ver-mas {
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #8a67ab;
    text-decoration: none;
    font-weight: 600;
}

.btn-ver-mas:hover {
    text-decoration: underline;
}

.contenedor-img {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

.tarjeta-galeria {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tarjeta-galeria img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.tarjeta-galeria:hover {
    transform: translateY(-5px);
}

.lupa {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tarjeta-galeria:hover .lupa {
    opacity: 1;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999 !important;
    padding: 20px;
}

.modal-overlay:target {
    display: flex;
}

/* Testimonios */
.testimonio {
    background: var(--color-blanco);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: var(--sombra-suave);
}

.testimonio h3 {
    color: var(--color-principal);
    margin-bottom: 10px;
}

.testimonio p {
    font-style: italic;
}

.modal-overlay img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    border: 3px solid white;
}

.boton-cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 50px;
    color: white;
    text-decoration: none;
}

.contenedor-tarjetas {
    flex: 0 0 380px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--sombra-suave);
    border: 1px solid #e0e6ed;
    overflow: hidden;
}

.tarjeta-header {
    background-color: var(--color-secundario);
    color: white;
    padding: 20px;
    font-weight: bold;
    text-align: center;
    font-size: 1.2rem;
}

.tarjeta-body {
    padding: 25px;
}

.tarjeta-body ul li {
    background: none !important;
    border-left: none !important;
    padding: 10px 0 10px 25px !important;
    position: relative;
}

.tarjeta-body ul li::before {
    content: "•";
    color: var(--color-principal);
    font-size: 1.8rem;
    position: absolute;
    left: 0;
    top: -5px;
    background: none !important;
    width: auto !important;
    height: auto !important;
}

/* ==========================================================================
   8. BOTONES
   ========================================================================== */
.botones-container, 
.row, 
.botones-enlaces {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
    justify-content: center;
}

.boton, 
.boton1, 
.boton-login, 
.row a, 
.botones-container a {
    background-color: var(--color-principal);
    color: white !important;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
    transition: 0.3s ease;
    border: none;
    text-align: center;
    letter-spacing: 0.5px;
}

.boton:hover, 
.boton1:hover, 
.row a:hover, 
.botones-container a:hover {
    background-color: var(--color-secundario);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 24, 76, 0.2);
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */
.main-footer {
    flex-shrink: 0;
    background-color: var(--color-secundario);
    color: white !important;
    padding: 60px 20px 30px;
    width: 100%;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.main-footer h3, 
.main-footer p, 
.main-footer a, 
.brand-name {
    color: white !important;
    text-decoration: none;
}

.footer-column h3 {
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.main-logo-card {
    background-color: white;
    padding: 10px;
    width: 90px;
    height: 90px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
    margin: 0 auto 10px;
    transition: all 0.3s ease;
}

.main-logo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.1);
}

.footer-logo-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.brand-name {
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: white;
    margin-top: 8px;
    display: block;
    text-align: center;
    opacity: 0.9;
}

.social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-icons a {
    width: 45px;
    height: 45px;
    color: white !important;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.social-icons a.facebook { background: #1877F2; }
.social-icons a.x-twitter { background: #000000; }
.social-icons a.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icons a.linkedin { background: #0077B5; }
.social-icons a.whatsapp { background: #25D366; }
.social-icons a.email { background: #607D8B; }

.social-icons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.member-logos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
    align-items: center;
}

.member-logo {
    height: 45px;
    width: auto;
    background-color: white;
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.1);
}

.footer-bottom {
    max-width: 1200px;
    margin: 50px auto 0;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom a {
    color: white !important;
    text-decoration: underline;
    margin-left: 20px;
    transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
    opacity: 0.8;
}

/* ==========================================================================
   10. ACCESIBILIDAD Y MODO CONCENTRACIÓN
   ========================================================================== */
:root {
    --dislexia-bg: #fdfaf3;
    --dislexia-text: #2c2c2c;
    --accent-color: #007bff;
}

.dyslexia-active {
    font-family: 'Lexend', sans-serif !important;
    background-color: var(--dislexia-bg) !important;
    color: var(--dislexia-text) !important;
    line-height: 1.8 !important;
    word-spacing: 0.3em !important;
    letter-spacing: 0.05em !important;
}

#accessibility-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.2s ease;
}

#accessibility-btn:hover {
    transform: scale(1.1);
}

#reading-guide {
    position: fixed;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(0, 123, 255, 0.15);
    pointer-events: none;
    display: none;
    z-index: 9999;
    border-radius: 4px;
}

.dyslexia-active #reading-guide {
    display: block;
}

#focus-mode-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.2s ease;
}

#focus-mode-btn:hover {
    transform: scale(1.1);
}

.focus-active {
    background-color: #f8fcff !important;
}

@media (max-width: 1024px) {
    .layout-container { flex-direction: column; align-items: center; }
    .sidebar-main { width: 100%; position: static; }
}

@media (max-width: 900px) {
    main { padding: 25px; }
    .hamburger { display: block; font-size: 32px; color: var(--color-principal); cursor: pointer; }
    .nav-links {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--color-blanco);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }
    #menu-toggle:checked ~ .nav-links { display: flex; }
    .dropdown-content { position: static; box-shadow: none; padding-left: 20px; background-color: var(--color-fondo); }
    .layout-principal { flex-direction: column; }
    .contenedor-tarjetas { flex: 1; width: 100%; }
    .footer-container { flex-direction: column; text-align: center; align-items: center; }
    .footer-column h3 { margin: 0 auto 20px; display: inline-block; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   12. COOKIES
   ========================================================================== */
.cookie-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 420px;
    background-color: #006064;
    color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    z-index: 10000;
    display: none;
    line-height: 1.5;
}

.cookie-content h3 {
    margin: 0 0 12px 0;
    font-size: 22px;
    color: #4dd0e1;
}

.cookie-content p {
    font-size: 13.5px;
    color: #e0f7fa;
    margin-bottom: 20px;
    text-align: justify;
}

.cookie-content a {
    color: #4dd0e1;
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.btn-accept {
    background: #00bcd4;
    color: white;
    border: none;
    padding: 12px;
    flex: 1;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
    font-size: 14px;
}

.btn-customize {
    background: transparent;
    color: #4dd0e1;
    border: 2px solid #00bcd4;
    padding: 12px;
    flex: 1;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-accept:hover {
    background: #00acc1;
}

.btn-customize:hover {
    background: rgba(0, 188, 212, 0.1);
    color: white;
}

.cookie-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 550px;
    background: white;
    color: #333;
    padding: 35px;
    border-radius: 12px;
    z-index: 10001;
    display: none;
    box-shadow: 0 0 100px rgba(0,0,0,0.6);
    font-family: sans-serif;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 38, 41, 0.85);
    z-index: 10000;
    display: none;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cookie-option h4 {
    margin: 0;
    font-size: 16px;
    color: #006064;
}

.cookie-option p {
    margin: 5px 0 0;
    font-size: 12.5px;
    color: #666;
    line-height: 1.3;
}

.cookie-modal-title {
    color: #006064;
    margin-top: 0;
}

.cookie-modal-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 25px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cookie-actions .btn-accept {
    flex: 1;
}

.btn-cancel {
    background: #eee;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
}

.btn-cancel:hover {
    background: #dcdcdc;
}

.cookie-option > div {
    padding-right: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 22px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #00bcd4;
}

input:checked + .slider:before {
    transform: translateX(22px);
}

@media (max-width: 480px) {
    .cookie-container { width: calc(100% - 40px); left: 20px; padding: 20px; }
    .cookie-buttons { flex-direction: column; }
}

/* ==========================================================================
   11. SECCIONES ESPECÍFICAS (ASOCIACIONES / LEGAL)
   ========================================================================== */
.asociaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 40px 5%;
}

.card-aso {
    position: relative;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #4bc0d9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.card-aso > div:first-of-type {
    padding-right: 75px;
    display: block;
}

.card-aso:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.logo-aso {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 55px;
    height: auto;
    object-fit: contain;
    background-color: white;
    padding: 4px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.federacion-destacada {
    background: #e9ecef;
    padding: 30px;
    text-align: center;
    margin: 20px 5%;
    border-radius: 12px;
}

.tag {
    background: #8a67ab;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.footer-note {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid var(--color-fondo);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-mail-pill {
    text-decoration: none;
    color: var(--color-principal) !important;
    font-weight: bold;
    background-color: var(--color-destacado);
    padding: 8px 15px;
    border-radius: 50px;
    border: 1px solid var(--color-principal);
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.contact-mail-pill:hover {
    background-color: var(--color-principal);
    color: white !important;
}

.contact-mail-pill i {
    margin-right: 8px;
}

.mail-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==========================================================================
   12. BOTONES "MÁS INFO" CON LOGO PERSONALIZADO (NUEVO)
   ========================================================================== */
.link-aso-btn {
    display: inline-block;
    position: relative;
    margin-top: 15px;
    padding: 15px 25px;
    color: var(--color-secundario);
    font-weight: 900;
    text-decoration: none;
    border: 2px solid var(--color-principal);
    border-radius: 8px;
    overflow: hidden;
    z-index: auto;
    background-color: #f0f2f5;
    text-align: center;
    width: 100%;
}

.link-aso-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.25;
    z-index: -1;
    transition: all 0.3s ease;
}

/* --- Contenedor Principal del Muro --- */
.muro-digital-seccion {
    border: 1px solid #007bff;
    margin: 30px 0;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

/* --- Parte superior: Título y Texto --- */
.muro-header {
    padding: 20px;
    text-align: left;
}

.muro-header h3 {
    color: #1a202c;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.muro-header p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* --- Parte inferior: El Botón como Franja --- */
.muro-boton-full {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #f8fbff;
    border-top: 1px solid #007bff;
    color: #007bff;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s;
}

.muro-boton-full:hover {
    background-color: #eef6ff;
    color: #0056b3;
}