/* ================================================================
   SEDEDE - Componentes y Layout Principal
   ================================================================ */

/* Top gradient line */
.top-gradient-line {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--clr-red) 0%, var(--clr-yellow) 50%, var(--clr-green) 100%);
    box-shadow: 0 2px 10px rgba(255, 204, 0, 0.2);
    position: fixed;
    top: 0; left: 0; z-index: 1001;
}

/* Navbar */
#navbar {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 1000;
    height: var(--navbar-h); 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Línea Tricolor Elegante (Efecto UX/UI) */
#navbar::after {
    content: '';
    position: absolute;
    bottom: 0; 
    left: 0; 
    width: 100%; 
    height: 3px;
    background: linear-gradient(90deg, var(--clr-red) 0%, var(--clr-yellow) 50%, var(--clr-green) 100%);
    box-shadow: 0 -1px 10px rgba(255, 204, 0, 0.3);
}

body.dark-theme #navbar { 
    background: rgba(15, 23, 42, 0.75);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
}

body.dark-theme .top-gradient-line,
body.dark-theme #navbar::after {
    box-shadow: 0 0 25px rgba(218, 37, 29, 0.6), 0 0 45px rgba(249, 225, 30, 0.4), inset 0 -2px 10px rgba(255, 255, 255, 0.3);
}

.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 100%; 
    max-width: var(--container-max); 
    margin: 0 auto; 
    padding: 0 var(--space-xl); 
}

.nav-brand { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.brand-icon {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--clr-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--clr-heading);
    flex-shrink: 0;
}
.brand-icon i {
    transform: translateX(-2px) skewX(-10deg);
}
.brand-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    background-color: var(--clr-yellow);
    border-radius: 50%;
    right: 4px;
    bottom: 12px;
}
.brand-text {
    display: flex;
    flex-direction: column;
}
.brand-name {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--clr-heading);
    line-height: 1;
    font-family: 'Arial Black', Impact, sans-serif;
}
.brand-line {
    height: 3px;
    background-color: var(--clr-yellow);
    width: 100%;
    margin: 4px 0 2px;
    border-radius: 2px;
    position: relative;
}
.brand-line::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 5px solid var(--clr-yellow);
}
.brand-sub {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--clr-heading);
    line-height: 1.2;
}
.nav-links { display: flex; gap: 10px; }
.nav-link { 
    font-weight: 800; 
    font-size: 0.85rem; 
    text-transform: uppercase; 
    padding: 8px 0; 
    margin: 0 12px;
    border-radius: 0; 
    transition: all var(--transition-fast); 
    color: var(--clr-text);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.nav-link i.bx {
    font-size: 1.25rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; width: 0%; height: 2px;
    background: var(--clr-green-dark);
    transition: width 0.3s ease;
}

.nav-link.active::after, .nav-link:hover::after { width: 100%; }
.nav-link.active { background: transparent; color: var(--clr-green-dark); }
.nav-link:hover { color: var(--clr-green-dark); background: transparent; }

body.dark-theme .nav-link { color: rgba(255,255,255,0.8); }
body.dark-theme .nav-link::after { background: var(--clr-yellow); }
body.dark-theme .nav-link:hover { color: #FFF; }
body.dark-theme .nav-link.active { background: transparent; color: #FFF; }

/* Theme Toggle inside Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 15px; }

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}
.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--clr-text);
    transition: all var(--transition-fast);
}
body.dark-theme .nav-toggle span { background-color: white; }


/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    transition: all var(--transition-fast);
    text-align: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--clr-green-dark);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 95, 39, 0.2);
}

.btn-primary:hover {
    background-color: var(--clr-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 95, 39, 0.3);
}

.btn-outline {
    border: 2px solid var(--clr-green-dark);
    color: var(--clr-green-dark);
}

.btn-outline:hover {
    background-color: var(--clr-green-dark);
    color: white;
}

body.dark-theme .btn-outline {
    border-color: rgba(255,255,255,0.3); 
    color: #FFF; 
}
body.dark-theme .btn-outline:hover { 
    border-color: var(--clr-green); 
    color: var(--clr-green); 
    background: transparent; 
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}


/* Cards (Noticias, Comunicados) */
.card { 
    background: var(--clr-surface); 
    border-radius: 20px; 
    overflow: hidden; 
    position: relative; 
    transition: 0.4s; 
    box-shadow: var(--shadow-sm); 
    display: flex; 
    flex-direction: column; 
    border: 1px solid var(--clr-border);
}

/* Service Cards (Home) */
.service-card {
    position: relative;
    padding: 30px;
    align-items: center;
    border-top: none !important; /* Overriding old inline styles just in case */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--clr-red) 0%, var(--clr-yellow) 50%, var(--clr-green) 100%);
    opacity: 0.7;
    transition: all var(--transition-normal);
}

.service-card:hover::before {
    opacity: 1;
    height: 6px;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.4);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--clr-bg-2);
    color: var(--clr-green-dark);
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--clr-green-light);
}

body.dark-theme .service-card:hover .service-icon {
    background: rgba(34, 197, 94, 0.2);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--clr-heading);
}

.service-card p {
    color: var(--clr-text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.card:hover { 
    box-shadow: var(--shadow-md); 
    transform: translateY(-4px); 
}

body.dark-theme .card { 
    background: var(--clr-surface-2);
    border: 1px solid rgba(255,255,255,0.05); 
}

.card-img, .card-image img { 
    width: 100%; 
    height: 280px; 
    object-fit: contain;
    background-color: var(--clr-bg-2);
    padding: 5px;
    box-sizing: border-box;
}

.card-image {
    position: relative;
    width: 100%;
    background-color: var(--clr-bg-2);
}

.card-body { 
    padding: 30px; 
    display: flex; 
    flex-direction: column; 
    flex: 1; 
}

.card-title { 
    font-size: 1.4rem; 
    font-weight: 800; 
    line-height: 1.2; 
    margin-bottom: 12px; 
    color: var(--clr-text);
}
.card-title a:hover { color: var(--clr-green); }

.card-date, .card-meta { 
    font-size: 0.85rem; 
    color: var(--clr-green); 
    font-weight: 800; 
    margin-bottom: 12px; 
    letter-spacing: 1px; 
}

.card-excerpt { 
    font-size: 0.95rem; 
    color: var(--clr-text-muted); 
    margin-bottom: 25px; 
    line-height: 1.5; 
}

/* Footer Principal */
#footer {
    position: relative;
    color: var(--clr-text);
    padding-top: 5rem;
    margin-top: auto;
    border-top: none;
    overflow: hidden;
    background: #f8fafc;
}

/* Línea superior con colores y efecto */




.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.brand-logo-small {
    width: 40px;
    height: 40px;
    background: #0f766e;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-display);
}

.brand-logo-lg {
    width: 56px;
    height: 56px;
    background: #0f766e;
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-display);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.footer-brand h3 {
    color: #0f766e;
    margin: 0;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}



.footer-brand p {
    color: #134e4a;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 300px;
}

.footer-col h4 {
    color: #0f766e;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 12px;
}



.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: var(--clr-green);
    border-radius: 3px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-col ul li a {
    color: #134e4a;
    font-weight: 500;
    transition: all var(--transition-normal);
    display: inline-block;
    position: relative;
}

.footer-col ul li a:hover {
    color: var(--clr-green);
    transform: translateX(8px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: #134e4a;
    font-weight: 500;
    line-height: 1.5;
    transition: all var(--transition-normal);
}

.footer-contact-item:hover {
    color: var(--clr-green-dark);
    transform: translateX(5px);
}



.footer-contact-item .icon {
    font-size: 1.25rem;
    color: var(--clr-green);
}

.social-links, .footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a, .footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text);
    font-size: 1.2rem;
    font-weight: 700;
    transition: all var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.05);
}



.social-links a:hover, .footer-social a:hover {
    background: var(--clr-yellow);
    color: var(--clr-green-dark);
    transform: translateY(-5px);
    border-color: var(--clr-yellow);
}

.footer-bottom {
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--clr-border);
    background: rgba(255,255,255,0.5);
    text-align: center;
    color: #134e4a;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}




/* Responsive */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--navbar-h);
        left: 0;
        width: 100%;
        background: var(--clr-surface);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle { display: flex; }
    
    .nav-actions { gap: 5px; } /* Reduce gap on mobile */
    .nav-brand { transform: scale(0.65); transform-origin: left center; } /* Shrink entire logo */
    
    .grid-3, .footer-grid, .footer-contact-grid { grid-template-columns: 1fr; }
}

/* Footer Dark Mode Overrides */
body.dark-theme #footer {
    border-top: none;
    background: #0f172a;
}

body.dark-theme 

body.dark-theme .footer-brand p,
body.dark-theme .footer-col ul li a,
body.dark-theme .footer-contact-item {
    color: #cbd5e1;
    font-weight: 400;
}

body.dark-theme .footer-brand h3,
body.dark-theme .footer-contact-item:hover,
body.dark-theme .footer-col ul li a:hover {
    color: white;
}

body.dark-theme .footer-col h4 {
    color: var(--clr-green-light);
}

body.dark-theme .social-links a, 
body.dark-theme .footer-social a {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255,255,255,0.05);
}

body.dark-theme .social-links a:hover, 
body.dark-theme .footer-social a:hover {
    background: var(--clr-yellow);
    color: var(--clr-bg-dark);
}

body.dark-theme .footer-bottom {
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
}

/* ================================================================
   Document List Items (Comunicados, Instructivos)
   ================================================================ */
.doc-list-item {
    display: flex;
    align-items: center;
    padding: 1.2rem 0;
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 0;
    transition: all 0.2s ease;
}

.doc-list-item:last-child {
    border-bottom: none;
}

body.dark-theme .doc-list-item {
    border-bottom-color: rgba(255,255,255,0.05);
}

.doc-list-item:hover {
    background-color: rgba(0,0,0,0.02);
    border-color: var(--clr-green);
    transform: translateX(4px);
}

body.dark-theme .doc-list-item:hover {
    background-color: rgba(255,255,255,0.02);
}

.doc-list-icon {
    font-size: 1.5rem;
    margin-right: 1.5rem;
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--clr-text);
    flex-shrink: 0;
}

body.dark-theme .doc-list-icon {
    background: rgba(255,255,255,0.05);
}

.doc-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* for text truncation */
}

.doc-list-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--clr-text);
    margin: 0 0 0.3rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-list-desc {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-list-meta {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--clr-green);
    font-weight: 600;
    margin: 0 2rem;
    flex-shrink: 0;
}

.doc-list-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .doc-list-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1rem;
    }
    .doc-list-icon {
        margin-right: 0;
    }
    .doc-list-meta {
        margin: 0;
    }
    .doc-list-actions {
        width: 100%;
        justify-content: flex-start;
        margin-top: 0.5rem;
    }
}

/* ================================================================
   PDF Modal Overlay (Visor de Documentos Elegante)
   ================================================================ */
.pdf-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pdf-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pdf-modal-content {
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: var(--clr-surface);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
}

.pdf-modal-overlay.active .pdf-modal-content {
    transform: scale(1) translateY(0);
}

.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--clr-border);
    background: var(--clr-bg);
}

body.dark-theme .pdf-modal-header {
    background: var(--clr-surface-2);
}

.pdf-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--clr-text);
    font-weight: 800;
}

.pdf-modal-close {
    background: rgba(255,0,0,0.1);
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--clr-red);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pdf-modal-close:hover {
    background: var(--clr-red);
    color: white;
}

.pdf-modal-body {
    flex: 1;
    width: 100%;
    background: #e2e8f0;
}

body.dark-theme .pdf-modal-body {
    background: #0f172a;
}

/* ================================================================
   Footer Minimalista Moderno
   ================================================================ */
.footer-minimal {
    padding: 2.5rem 0 1.5rem 0;
    margin-top: auto;
    background: var(--clr-bg-2);
    border-top: 1px solid var(--clr-border);
}

.footer-minimal-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-minimal-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-minimal-brand .brand-logo {
    width: 48px; height: 48px; font-size: 1.5rem;
}

.footer-minimal-brand h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--clr-green-dark);
    font-family: var(--font-display);
    letter-spacing: -0.5px;
}
body.dark-theme .footer-minimal-brand h3 { color: white; }

.footer-minimal-socials {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-minimal-socials a {
    width: 45px; height: 45px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.footer-minimal-socials a img {
    width: 100%; height: 100%; object-fit: cover;
}

.footer-minimal-socials a:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.footer-minimal-bottom {
    max-width: var(--container-max);
    margin: 2rem auto 0 auto;
    padding: 1.5rem var(--space-xl) 0 var(--space-xl);
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
body.dark-theme .footer-minimal-bottom { border-top-color: rgba(255,255,255,0.05); }

.footer-minimal-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

@media (max-width: 600px) {
    .footer-minimal-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

.map-container iframe {
    width: 100% !important;
    height: 350px !important;
    display: block;
    border: none;
}

/* ==========================================================================
   TARJETAS DE COMUNICADOS E INSTRUCTIVOS (Verticales)
   ========================================================================== */

#comunicados-list, #instructivos-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
    gap: 1.5rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.doc-card-vertical {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.doc-card-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
body.dark-theme .doc-card-vertical {
    background: var(--clr-surface-2);
    border-color: rgba(255,255,255,0.05);
}

.doc-card-thumb {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--clr-red);
}
body.dark-theme .doc-card-thumb { 
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(153, 27, 27, 0.2) 100%); 
}
.doc-card-icon {
    width: 100%;
    height: 160px;
    background: rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    color: var(--clr-green-dark);
}

.doc-card-content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.doc-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.2rem 0;
    color: var(--clr-text);
    line-height: 1.3;
}
.doc-card-date {
    font-size: 0.85rem;
    color: var(--clr-green);
    font-weight: 600;
    margin: 0 0 0.8rem 0;
}
.doc-card-desc {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    margin: 0 0 1rem 0;
    flex: 1;
}

.doc-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: auto;
}
.doc-card-actions .btn {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================================
   DISEÑO ULTRA PREMIUM ESCENARIOS (GLASSMORPHISM)
   ========================================= */

#escenarios-list {
    display: flex;
    flex-direction: column;
    gap: 4rem; /* Espaciado generoso */
    padding-bottom: 3rem;
}

.escenario-luxury-card {
    position: relative;
    width: 100%;
    min-height: 450px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: grid;
    grid-template-columns: 5fr 7fr; /* 40% imagen / 60% texto */
    background: var(--clr-bg-2);
    border: 1px solid var(--clr-border);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.escenario-luxury-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 122, 51, 0.2);
}

.escenario-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Evita que el zoom de la imagen se salga */
}

.escenario-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    display: block;
}

.escenario-luxury-card:hover .escenario-bg {
    transform: scale(1.08); /* Suave zoom de imagen */
}

.escenario-glass-panel {
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.escenario-info-lux {
    color: var(--clr-text);
}

.escenario-info-lux .title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
    color: var(--clr-primary);
    line-height: 1.2;
}

.escenario-info-lux .desc {
    font-size: 1.05rem;
    color: var(--clr-text-muted);
    margin-top: 1rem;
    line-height: 1.6;
}

.escenario-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.tag-lux {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--clr-bg);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid var(--clr-border);
    color: var(--clr-text);
}

.tag-lux i {
    color: var(--clr-primary);
    font-size: 1.2rem;
}

.escenario-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-map-lux {
    background: var(--clr-gold);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 122, 51, 0.4);
    align-self: flex-start; /* Evita que el botón ocupe todo el ancho */
}

.btn-map-lux:hover {
    background: var(--clr-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 51, 0.6);
}

.btn-map-lux i {
    font-size: 1.5rem;
}

/* =========================================
   MODAL DE MAPA PREMIUM
   ========================================= */
.map-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.map-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.map-modal-content {
    background: var(--clr-surface);
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--clr-border);
}

.map-modal-overlay.active .map-modal-content {
    transform: scale(1);
}

.map-modal-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--clr-border);
}

.map-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--clr-text);
}

.btn-close-modal {
    background: rgba(255,0,0,0.1);
    color: #e74c3c;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-modal:hover {
    background: #e74c3c;
    color: white;
}

.map-modal-body {
    flex-grow: 1;
    width: 100%;
    background: #e9e5dc; /* Color base típico de mapas */
}

.map-modal-body iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

@media (max-width: 900px) {
    .escenario-luxury-card {
        grid-template-columns: 1fr;
    }
    .escenario-img-wrapper {
        height: 300px; /* Imagen en bloque superior en móviles */
    }
    .escenario-glass-panel {
        padding: 2rem;
    }
    .escenario-info-lux .title {
        font-size: 2rem;
    }
}

/* =========================================
   LUXURY SLIDER (CARRUSEL DE ESCENARIOS)
   ========================================= */
.lux-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--clr-bg-2);
}

.lux-slider {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none; /* IE y Edge */
    scrollbar-width: none; /* Firefox */
}

.lux-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari y Opera */
}

.lux-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lux-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover para que el slider siempre se vea lleno */
}

.lux-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    opacity: 0;
}

.lux-slider-container:hover .lux-slider-nav {
    opacity: 1;
}

.lux-slider-nav:hover {
    background: var(--clr-gold);
    transform: translateY(-50%) scale(1.1);
}

.lux-nav-prev {
    left: 10px;
}

.lux-nav-next {
    right: 10px;
}

.lux-slider-nav i {
    font-size: 1.5rem;
}

.lux-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.lux-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.lux-dot.active {
    background: var(--clr-gold);
    width: 24px;
    border-radius: 4px;
}
