/* 
 * global.css - Foundation, Layout, Header & Footer
 * Institutional Premium Design System
 */

:root {
    /* Premium Emerald & Gold Palette */
    --primary: #064e3b;       /* Deep Emerald */
    --primary-light: #059669; /* Vibrant Green */
    --secondary: #fbbf24;     /* Premium Gold */
    --accent: #f59e0b;        /* Amber Accent */
    
    /* Backgrounds & Surfaces */
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.85);
    
    /* Text */
    --text: #334155;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    
    /* Next-Gen Soft Shadows (Apple-style) */
    --shadow-sm: 0 2px 8px -2px rgba(6, 78, 59, 0.05);
    --shadow-md: 0 12px 32px -4px rgba(6, 78, 59, 0.08);
    --shadow-lg: 0 24px 48px -12px rgba(6, 78, 59, 0.15);
    --shadow-floating: 0 32px 64px -12px rgba(6, 78, 59, 0.2);
    --shadow-glow: 0 0 20px rgba(251, 191, 36, 0.4);
    
    /* Layout */
    --radius-md: 16px;
    --radius-lg: 24px;
    --container-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: var(--background); color: var(--text); line-height: 1.6; }
h1, h2, h3, h4, .brand { font-family: 'Outfit', sans-serif; color: var(--text-dark); }
a { text-decoration: none; color: inherit; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 1rem; width: 100%; }

/* --- TOP HEADER (SOCIALS & SEARCH) --- */
.top-header {
    background: linear-gradient(135deg, #1a5c2e 0%, #0d3d1f 100%);
    height: 65px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.top-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.top-socials { display: flex; gap: 1.5rem; align-items: center; }
.social-link {
    color: #f8fafc;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
}
.social-link:hover { 
    color: var(--secondary); 
    transform: translateY(-2px); 
    opacity: 1;
}

.top-search form { position: relative; width: 220px; }
.top-search input {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 8px 12px 8px 36px;
    color: #f8fafc;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.top-search input:focus { 
    background: rgba(255,255,255,0.08); 
    outline: none; 
    border-color: var(--secondary); 
    width: 280px; /* Slight expansion */
}
.top-search button {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    transition: color 0.3s;
}
.top-search input:focus + button { color: var(--secondary); }
/* --- PREMIUM "FLOATING" HEADER --- */
header {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 3px solid var(--secondary);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    padding: 0.5rem 0;
    will-change: transform, top, width, border-radius; /* GPU Acceleration */
}

/* Scrolled State: The Floating Capsule */
header.scrolled {
    top: 15px;
    width: 95%;
    left: 2.5%;
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 50px;
    box-shadow: var(--shadow-floating);
    padding: 0.4rem 0;
    border: 1px solid rgba(251, 191, 36, 0.5); /* subtle gold border */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    transition: all 0.4s ease;
}

header.scrolled .nav-container {
    padding: 0.5rem 1.75rem;
}

/* BRAND LOGO SYSTEM */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    flex-shrink: 0;
}
.brand-icon {
    height: 40px;
    width: auto;
    margin-left:8px;
    transition: all 0.4s ease;
}
header.scrolled .brand-icon { 
    height: 32px;
    border-radius: 8px;
}
.brand-text { line-height: 1; }
.brand-title {
    font-size: 1.15rem;
    font-weight: 950;
    color: var(--primary);
    letter-spacing: -1px;
    text-transform: uppercase;
    display: block;
}
.brand-subtitle {
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li > a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.6rem 0.4rem;
    position: relative;
    transition: all 0.3s ease;
}

/* Modern Active/Hover Indicator */
.nav-links li > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 50px;
    transform: translateX(-50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links li > a:hover { color: var(--primary); }
.nav-links li > a:hover::after,
.nav-links li.active > a::after { width: 15px; }

/* --- MINIMALIST DROPDOWNS --- */
.nav-links li { position: relative; }
.nav-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.18);
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 2000;
}

.nav-dropdown.wide {
    width: 850px;
    padding: 2.25rem;
}

.dropdown-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-inner { display: flex; flex-direction: column; gap: 0.35rem; }
.dropdown-grid, .dropdown-grid-4 {
    display: grid;
    gap: 0.5rem;
}
.dropdown-grid { grid-template-columns: repeat(3, 1fr); }
.dropdown-grid-4 { grid-template-columns: repeat(4, 1fr); }
.dropdown-label {
    font-size: 0.65rem;
    font-weight: 900;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 1.25rem 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 0.5rem;
}
.nav-dropdown.wide .dropdown-label {
    grid-column: span 3;
    padding: 0 0 0.75rem;
    margin-bottom: 1rem;
}
.dropdown-inner a {
    display: block;
    padding: 0.85rem 1.25rem;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.2s ease;
}
.dropdown-inner a:hover { background: #f8fafc; color: var(--primary); padding-left: 1.75rem; }
.nav-dropdown.wide .dropdown-inner a {
    padding: 0.65rem 1rem;
}
.nav-dropdown.wide .dropdown-inner a:hover {
    padding-left: 1.35rem;
}

/* --- "APPLE-INSPIRED" SEARCH BAR --- */
.nav-search-professional form { 
    position: relative; 
    width: 240px; 
    transition: all 0.3s ease;
}

.nav-search-professional input {
    width: 100%;
    padding: 0.75rem 1.25rem 0.75rem 3rem;
    background: #f1f5f9;
    border: 1.5px solid transparent;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-search-professional input:focus { 
    background: #fff; 
    border-color: var(--primary); 
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.15);
    outline: none;
    width: 300px; /* Expands on focus */
}

.nav-search-professional button {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-search-professional input:focus + button { color: var(--primary); }

/* Desktop Navigation Layout */
nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE HAMBURGER TOGGLE — 3-bar animated icon
═══════════════════════════════════════════════════════════════════════ */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 44px;
    height: 44px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    margin-right:8px;
    cursor: pointer;
    z-index: 3100;
    padding: 0;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    flex-shrink: 0;
}
.menu-toggle:hover {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(26,92,46,0.12);
}

/* Three individual bars */
.menu-toggle .bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 4px;
    position: absolute;
    left: 50%;
    transform-origin: center;
    transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1),
                opacity   0.25s ease,
                top       0.38s cubic-bezier(0.23, 1, 0.32, 1);
}
.menu-toggle .bar-1 { top: 13px; transform: translateX(-50%); }
.menu-toggle .bar-2 { top: 20px; transform: translateX(-50%); }
.menu-toggle .bar-3 { top: 27px; transform: translateX(-50%); }

/* Animated X state */
.menu-open .menu-toggle { background: var(--primary); border-color: var(--primary); }
.menu-open .menu-toggle .bar   { background: #fff; }
.menu-open .menu-toggle .bar-1 { top: 20px; transform: translateX(-50%) rotate(45deg); }
.menu-open .menu-toggle .bar-2 { opacity: 0; transform: translateX(-50%) scaleX(0); }
.menu-open .menu-toggle .bar-3 { top: 20px; transform: translateX(-50%) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE BACKDROP OVERLAY
═══════════════════════════════════════════════════════════════════════ */
.mobile-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 2800;
    opacity: 0;
    transition: opacity 0.35s ease;
}

@media (max-width: 950px) {
    /* ── Show hamburger, hide desktop nav ─────────────────────────── */
    .menu-toggle { display: flex; }
    nav { display: none; }
    .nav-search-professional { display: none; }

    /* ── Header lock when menu open ───────────────────────────────── */
    .menu-open header {
        z-index: 3000 !important;
        top: 0 !important;
        width: 100% !important;
        left: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 2px solid var(--secondary) !important;
        background: #ffffff !important;
        box-shadow: 0 2px 20px rgba(0,0,0,0.08) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .menu-open .nav-container {
        padding: 0 1.25rem !important;
    }

    /* ── Backdrop ─────────────────────────────────────────────────── */
    .menu-open .mobile-backdrop {
        display: block;
        opacity: 1;
    }

    /* ── Drawer: slides in from right ─────────────────────────────── */
    .menu-open nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: min(85vw, 340px);
        height: 100dvh;
        background: #fff;
        z-index: 3000;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0 0 3rem;
        animation: drawerSlideIn 0.42s cubic-bezier(0.23, 1, 0.32, 1) forwards;
        box-shadow: -12px 0 60px rgba(0,0,0,0.18);
    }
    @keyframes drawerSlideIn {
        from { transform: translateX(100%); opacity: 0.5; }
        to   { transform: translateX(0);   opacity: 1; }
    }

    /* ── Drawer header strip ──────────────────────────────────────── */
    .menu-open nav::before {
        content: 'MENÚ';
        display: block;
        font-size: 0.6rem;
        font-weight: 900;
        letter-spacing: 3px;
        color: #94a3b8;
        text-align: center;
        padding: 1.25rem 1.5rem 1rem;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 0.5rem;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 2;
    }

    /* ── Nav list inside drawer ───────────────────────────────────── */
    .menu-open .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        padding: 0 1rem 1.5rem;
    }

    /* ── Each nav item ────────────────────────────────────────────── */
    .menu-open .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f8fafc;
        padding: 0;
    }
    .menu-open .nav-links li:last-child { border-bottom: none; }

    /* ── Direct link items (INICIO, NOTICIAS…) ────────────────────── */
    .menu-open .nav-links li:not(.has-dropdown) > a {
        display: flex !important;
        align-items: center;
        padding: 1rem 0.75rem !important;
        font-size: 0.9rem !important;
        font-weight: 800 !important;
        color: var(--text-dark) !important;
        border-radius: 12px;
        transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
        letter-spacing: 0.5px;
    }
    .menu-open .nav-links li:not(.has-dropdown) > a:hover,
    .menu-open .nav-links li:not(.has-dropdown) > a:active {
        background: #f0fdf4;
        color: var(--primary) !important;
        padding-left: 1.25rem !important;
    }
    .menu-open .nav-links li.active:not(.has-dropdown) > a {
        color: var(--primary) !important;
        background: #f0fdf4;
        border-left: 3px solid var(--primary);
        padding-left: 1rem !important;
    }

    /* ── Dropdown trigger buttons ─────────────────────────────────── */
    .menu-open .nav-drop-btn {
        display: flex !important;
        align-items: center;
        justify-content: space-between !important;
        width: 100%;
        padding: 1rem 0.75rem !important;
        font-size: 0.9rem !important;
        font-weight: 800 !important;
        color: var(--text-dark) !important;
        border-radius: 12px;
        transition: background 0.2s ease, color 0.2s ease;
        letter-spacing: 0.5px;
    }
    .menu-open .nav-drop-btn:hover {
        background: #f8fafc;
        color: var(--primary) !important;
    }
    .menu-open .has-dropdown.open > .nav-drop-btn {
        background: #f0fdf4;
        color: var(--primary) !important;
        border-radius: 12px 12px 0 0;
    }

    /* Chevron icon */
    .drop-icon {
        transition: transform 0.32s cubic-bezier(0.23, 1, 0.32, 1);
        opacity: 0.45;
        flex-shrink: 0;
    }
    .has-dropdown.open .drop-icon {
        transform: rotate(180deg);
        opacity: 1;
        color: var(--primary);
    }

    /* ── Sub-menu accordion panel ─────────────────────────────────── */
    .menu-open .nav-dropdown {
        display: none;
        position: static !important;
        transform: none !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        background: #f8fafc;
        border: 1px solid #e8f5ed;
        border-top: none;
        border-radius: 0 0 14px 14px;
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }
    .menu-open .has-dropdown.open .nav-dropdown {
        display: block;
        animation: accordionIn 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    }
    @keyframes accordionIn {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* ── Sub-menu label ───────────────────────────────────────────── */
    .menu-open .dropdown-label {
        display: block !important;
        grid-column: 1 / -1 !important;
        font-size: 0.6rem;
        font-weight: 900;
        letter-spacing: 2px;
        color: var(--primary);
        text-transform: uppercase;
        padding: 0.25rem 0.5rem 0.75rem;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 0.5rem;
        text-align: left;
    }

    /* ── Sub-menu grid ────────────────────────────────────────────── */
    .menu-open .dropdown-inner {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
    .menu-open .dropdown-grid-4,
    .menu-open .dropdown-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.4rem;
    }

    /* ── Sub-menu link cards ──────────────────────────────────────── */
    .menu-open .dropdown-inner a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        text-align: center;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        color: #374151 !important;
        background: #fff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 10px !important;
        padding: 0.6rem 0.4rem !important;
        line-height: 1.3;
        transition: background 0.18s ease, color 0.18s ease,
                    border-color 0.18s ease, transform 0.18s ease !important;
    }
    .menu-open .dropdown-inner a:hover {
        background: var(--primary) !important;
        color: #fff !important;
        border-color: var(--primary) !important;
        transform: translateY(-1px) !important;
        padding-left: 0.4rem !important;
    }

    /* ── Mobile search at bottom of drawer ───────────────────────── */
    .mobile-only-search {
        display: block !important;
        padding: 1rem;
        margin-top: 0.5rem;
    }
    .mobile-only-search form {
        position: relative;
        width: 100%;
    }
    .mobile-only-search input {
        width: 100%;
        padding: 0.85rem 3.5rem 0.85rem 1.25rem;
        border-radius: 50px;
        border: 1.5px solid #e2e8f0;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--text-dark);
        background: #f8fafc;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .mobile-only-search input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(26,92,46,0.1);
        background: #fff;
    }
    .mobile-only-search button {
        position: absolute;
        right: 0.35rem;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background: var(--primary);
        color: #fff;
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.2s ease;
    }
    .mobile-only-search button:hover, .mobile-only-search button:active {
        background: var(--primary-light);
        transform: translateY(-50%) scale(0.95);
    }
}

/* --- ACCORDION & CONTENT STYLES --- */
.accordion-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-item.active { border-color: var(--primary); box-shadow: var(--shadow-md); }
.accordion-header {
    width: 100%; padding: 1.75rem 2.5rem;
    display: flex; justify-content: space-between; align-items: center;
    background: none; border: none; cursor: pointer; text-align: left;
}
.accordion-header:hover { background: #fcfdfe; }
.accordion-header h4 { margin: 0; font-size: 1.15rem; font-weight: 850; }
.accordion-icon { color: var(--primary); font-size: 1.2rem; transition: transform 0.4s; }
.accordion-item.active .accordion-icon { transform: rotate(180deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.accordion-item.active .accordion-content { max-height: 2500px; }
.accordion-inner { padding: 0 2.5rem 2.5rem; }

.content-styles h2 { font-size: 1.85rem; margin: 2rem 0 1.25rem; font-weight: 850; color: var(--text-dark); }
.content-styles h3 { font-size: 1.4rem; margin: 2rem 0 1rem; color: var(--primary); font-weight: 800; }
.content-styles p { font-size: 1.05rem; line-height: 1.85; color: #475569; margin-bottom: 2rem; }

/* --- RESULT PAGE UTILS --- */
.result-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) { .result-info-grid { grid-template-columns: 1fr; } }

/* --- FOOTER (REMASTERED) --- */
footer { 
    background: #111827; 
    color: #9ca3af; 
    padding: 7rem 0 5rem; 
    margin-top: 8rem; 
    border-top: 5px solid var(--secondary);
}
.footer-sitemap {
    display: grid;
    grid-template-columns: 40% 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}
.footer-col h3 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 2.25rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: #9ca3af; font-size: 0.95rem; font-weight: 600; transition: all 0.25s; }
.footer-links a:hover { color: var(--secondary); padding-left: 10px; }

.footer-bottom {
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

@media (max-width: 768px) {
    .top-search { display: none; }
    .top-nav-inner { justify-content: center; }
    footer { padding: 4rem 0 3rem; margin-top: 4rem; }
    .footer-sitemap { 
        grid-template-columns: 1fr; 
        gap: 3rem; 
        text-align: center;
    }
    .footer-col { min-width: 100% !important; }
    .footer-col h3 { margin-bottom: 1.5rem; }
    .footer-col div { justify-content: center !important; }
    .footer-links li a:hover { padding-left: 0; }
    /* Smart Analyzer Section Mobile Optimizations */
    .smart-analyzer-section {
        padding: 1.25rem !important;
        border-radius: 16px !important;
        margin-bottom: 2rem !important;
    }
    .analyzer-title {
        font-size: 1.15rem !important;
        margin-bottom: 1rem !important;
        gap: 0.5rem !important;
    }
    .analyzer-title span {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }
    
    /* Accordion Mobile Optimizations */
    .accordion-header {
        padding: 1.25rem 1.25rem !important;
    }
    .accordion-header h3,
    .accordion-header h4 {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }
    .accordion-inner {
        padding: 0 1.25rem 1.25rem !important;
    }
    .accordion-inner.content-styles p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.25rem !important;
    }
    .accordion-inner.content-styles h5 {
        font-size: 1rem !important;
        margin-top: 1.25rem !important;
    }
    
    /* Sidebar Widgets Mobile Optimizations (Explorar Más, etc.) */
    .sidebar-widget {
        padding: 1.25rem !important;
        border-radius: 16px !important;
    }
    .widget-title {
        font-size: 0.95rem !important;
        margin-bottom: 1rem !important;
    }
}

/* Utilities */
.text-shadow-sm { text-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.text-shadow-md { text-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.animate-fadeInUp { animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Header Height Spacer */
/* Header Height Spacer */
.header-spacer { height: 85px; }

@media (max-width: 768px) {
    .menu-toggle {
        margin-right: 0.5rem;
    }
}
/* --- SEARCH RESULTS (ELITE DASHBOARD) --- */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Default desktop: 5 */
    gap: 1.5rem;
    margin-top: 2.5rem;
}

@media (min-width: 1440px) {
    .search-results-grid { grid-template-columns: repeat(6, 1fr); }
}

.card-result-search {
    background: var(--surface);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.card-result-search:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-floating);
    border-color: var(--primary);
}

.card-result-tag {
    font-size: 0.65rem;
    font-weight: 850;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
}

.card-result-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.05));
    transition: transform 0.3s ease;
}
.card-result-search:hover .card-result-img { transform: scale(1.1); }

.card-result-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1;
    margin: 0.25rem 0 0.5rem;
    letter-spacing: -1px;
}

.card-result-meta {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.card-result-footer {
    margin-top: auto;
    font-size: 0.6rem;
    font-weight: 700;
    color: #94a3b8;
    background: #f8fafc;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    width: 100%;
    white-space: nowrap;
}

@media (max-width: 1200px) { .search-results-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
@media (max-width: 992px) { .search-results-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .search-results-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (max-width: 480px) { .search-results-grid { grid-template-columns: 1fr; } }

/* --- PREMIUM DRAWING SCHEDULE WIDGET --- */
.schedule-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.schedule-group-title {
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0.5rem 0 0.25rem 0;
}
.schedule-group-title.weekday {
    color: var(--primary-light);
}
.schedule-group-title.sunday {
    color: #db2777;
}
.schedule-group-title.daily {
    color: var(--primary);
}
.day-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.schedule-group-title.weekday .day-dot {
    background-color: var(--primary-light);
    box-shadow: 0 0 8px var(--primary-light);
}
.schedule-group-title.sunday .day-dot {
    background-color: #db2777;
    box-shadow: 0 0 8px #db2777;
}
.schedule-group-title.daily .day-dot {
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 0.5rem;
}
.schedule-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
    font-weight: 800;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    transition: all 0.2s ease-in-out;
    text-align: center;
    user-select: none;
}
.schedule-pill.weekday-pill {
    border-left: 3px solid var(--primary-light);
}
.schedule-pill.sunday-pill {
    border-left: 3px solid #db2777;
}
.schedule-pill.daily-pill {
    border-left: 3px solid var(--primary);
}

.schedule-pill:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(6, 78, 59, 0.08);
}
.schedule-pill.weekday-pill:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}
.schedule-pill.sunday-pill:hover {
    border-color: #db2777;
    color: #db2777;
}
.schedule-pill.daily-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.no-draws-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-left: 4px solid #e53e3e;
    border-radius: 10px;
    color: #c53030;
    font-size: 0.8rem;
    font-weight: 700;
}
.no-draws-icon {
    font-size: 1rem;
}
