 :root {
            --color-bg: #f8f9f7;
            --color-bg-alt: #ffffff;
            --color-text: #1a2e1a;
            --color-text-muted: #4a5c4a;
            --color-primary: #1e5631;
            --color-primary-dark: #143d22;
            --color-accent: #d4a84b;
            --color-accent-light: #e8c878;
            --color-border: #d4ddd4;
            --color-shadow: rgba(30, 86, 49, 0.08);
            --color-shadow-strong: rgba(30, 86, 49, 0.15);
            --color-link: #1e5631;
            --color-link-hover: #d4a84b;
            --color-blockquote-bg: #eef3ee;
            --color-code-bg: #e8ede8;
            --gradient-hero: linear-gradient(135deg, #1e5631 0%, #2d7a46 50%, #1a4a2a 100%);
            --gradient-accent: linear-gradient(90deg, #d4a84b, #e8c878);
            --font-heading: 'Georgia', 'Times New Roman', serif;
            --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
            --space-xs: 0.5rem;
            --space-sm: 1rem;
            --space-md: 1.5rem;
            --space-lg: 2.5rem;
            --space-xl: 4rem;
            --radius-sm: 4px;
            --radius-md: 8px;
            --radius-lg: 16px;
            --transition-fast: 0.2s ease;
            --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --max-width: 75ch;
        }

        @media (prefers-color-scheme: dark) {
            :root {
                --color-bg: #0d1a0f;
                --color-bg-alt: #142116;
                --color-text: #e8ede8;
                --color-text-muted: #a8b8a8;
                --color-primary: #4aba6a;
                --color-primary-dark: #3d9a58;
                --color-accent: #e8c878;
                --color-accent-light: #f0d898;
                --color-border: #2a3d2a;
                --color-shadow: rgba(0, 0, 0, 0.3);
                --color-shadow-strong: rgba(0, 0, 0, 0.5);
                --color-link: #4aba6a;
                --color-link-hover: #e8c878;
                --color-blockquote-bg: #1a2d1c;
                --color-code-bg: #1a2d1c;
                --gradient-hero: linear-gradient(135deg, #142116 0%, #1e3a24 50%, #0d1a0f 100%);
            }
        }

        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
            -webkit-text-size-adjust: 100%;
        }

        body {
            font-family: var(--font-body);
            font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
            line-height: 1.7;
            color: var(--color-text);
            background-color: var(--color-bg);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        header {
            background: var(--gradient-hero);
            min-height: 4rem;
        }

        main {
            flex: 1;
            width: 100%;
            max-width: var(--max-width);
            margin: 0 auto;
            padding: var(--space-lg) var(--space-md);
        }

        footer {
            background: var(--color-bg-alt);
            border-top: 1px solid var(--color-border);
            min-height: 3rem;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: var(--font-heading);
            font-weight: 700;
            line-height: 1.25;
            color: var(--color-text);
            text-wrap: balance;
        }

        h1 {
            font-size: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
            margin-bottom: var(--space-lg);
            letter-spacing: -0.02em;
            position: relative;
            padding-bottom: var(--space-md);
        }

        

        h2 {
            font-size: clamp(1.5rem, 1.25rem + 1.25vw, 2.25rem);
            margin-top: var(--space-xl);
            margin-bottom: var(--space-md);
            color: var(--color-primary);
            position: relative;
            padding-left: var(--space-md);
        }

        h2::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.2em;
            bottom: 0.2em;
            width: 4px;
            background: var(--color-accent);
            border-radius: var(--radius-sm);
        }

        h3 {
            font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.625rem);
            margin-top: var(--space-lg);
            margin-bottom: var(--space-sm);
            color: var(--color-primary-dark);
        }

        @media (prefers-color-scheme: dark) {
            h2, h3 {
                color: var(--color-primary);
            }
        }

        p {
            margin-bottom: var(--space-md);
            max-width: 100%;
        }

        p:last-child {
            margin-bottom: 0;
        }

        a {
            color: var(--color-link);
            text-decoration: underline;
            text-decoration-thickness: 1px;
            text-underline-offset: 3px;
            transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
        }

        a:hover, a:focus {
            color: var(--color-link-hover);
            text-decoration-color: var(--color-link-hover);
        }

        a:focus {
            outline: 2px solid var(--color-accent);
            outline-offset: 3px;
            border-radius: var(--radius-sm);
        }

        strong {
            font-weight: 600;
            color: var(--color-text);
        }

        em {
            font-style: italic;
        }

        ul, ol {
            margin-bottom: var(--space-md);
            padding-left: var(--space-lg);
        }

        li {
            margin-bottom: var(--space-xs);
            padding-left: var(--space-xs);
        }

       

        ul li {
            list-style-type: disc;
        }

        ol li {
            list-style-type: decimal;
        }

        li > ul, li > ol {
            margin-top: var(--space-xs);
            margin-bottom: 0;
        }

        blockquote {
            margin: var(--space-lg) 0;
            padding: var(--space-md) var(--space-lg);
            background: var(--color-blockquote-bg);
            border-left: 4px solid var(--color-accent);
            border-radius: 0 var(--radius-md) var(--radius-md) 0;
            font-style: italic;
            position: relative;
        }

        blockquote::before {
            content: '"';
            position: absolute;
            top: -0.25em;
            left: var(--space-sm);
            font-size: 3rem;
            font-family: var(--font-heading);
            color: var(--color-accent);
            opacity: 0.5;
            line-height: 1;
        }

        blockquote p {
            position: relative;
            z-index: 1;
        }

        figure {
            margin: var(--space-lg) 0;
        }

        figure img,
        .hero-image,
        .article-image {
            width: 100%;
            height: auto;
            border-radius: var(--radius-md);
            box-shadow: 0 4px 20px var(--color-shadow-strong);
            transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
        }

        figure img:hover,
        .article-image:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px var(--color-shadow-strong);
        }

        .hero-image {
            margin-bottom: var(--space-lg);
            border-radius: var(--radius-lg);
        }

        figcaption {
            margin-top: var(--space-sm);
            font-size: 0.875rem;
            color: var(--color-text-muted);
            text-align: center;
            font-style: italic;
        }

        code {
            font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
            font-size: 0.9em;
            background: var(--color-code-bg);
            padding: 0.15em 0.4em;
            border-radius: var(--radius-sm);
        }

        pre {
            background: var(--color-code-bg);
            padding: var(--space-md);
            border-radius: var(--radius-md);
            overflow-x: auto;
            margin-bottom: var(--space-md);
        }

        pre code {
            background: none;
            padding: 0;
        }

        hr {
            border: none;
            height: 2px;
            background: var(--gradient-accent);
            margin: var(--space-xl) 0;
            border-radius: var(--radius-sm);
            opacity: 0.5;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin: var(--space-lg) 0;
            font-size: 0.95rem;
        }

        th, td {
            padding: var(--space-sm);
            text-align: left;
            border-bottom: 1px solid var(--color-border);
        }

        th {
            background: var(--color-bg-alt);
            font-weight: 600;
            color: var(--color-primary);
        }

        tr:hover {
            background: var(--color-blockquote-bg);
        }

        nav[aria-label="Tabla de contenidos"] {
            background: var(--color-bg-alt);
            border: 1px solid var(--color-border);
            border-radius: var(--radius-md);
            padding: var(--space-md);
            margin: var(--space-lg) 0;
        }

        nav[aria-label="Tabla de contenidos"] ul {
            list-style: none;
            padding-left: 0;
            margin: 0;
        }

        nav[aria-label="Tabla de contenidos"] li {
            padding-left: 0;
            margin-bottom: var(--space-xs);
        }

        nav[aria-label="Tabla de contenidos"] a {
            display: inline-block;
            padding: var(--space-xs) 0;
            text-decoration: none;
            transition: color var(--transition-fast), transform var(--transition-fast);
        }

        nav[aria-label="Tabla de contenidos"] a:hover {
            color: var(--color-link-hover);
            transform: translateX(4px);
        }

        ::selection {
            background: var(--color-accent);
            color: var(--color-text);
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }

        @media (max-width: 640px) {
            main {
                padding: var(--space-md) var(--space-sm);
            }

            h2 {
                padding-left: var(--space-sm);
            }

            blockquote {
                padding: var(--space-sm) var(--space-md);
                margin-left: 0;
                margin-right: 0;
            }

            blockquote::before {
                font-size: 2rem;
            }
        }

        @media print {
            body {
                font-size: 12pt;
                color: #000;
                background: #fff;
            }

            header, footer {
                display: none;
            }

            main {
                max-width: 100%;
                padding: 0;
            }

            a {
                color: #000;
                text-decoration: underline;
            }

            h1, h2, h3 {
                color: #000;
                page-break-after: avoid;
            }

            img, figure {
                page-break-inside: avoid;
            }
        }

        /* --- MENU CONTAINER CENTERING --- */

/* 1. Center the navigation block itself */
header nav, 
.site-header-inner {
    display: flex;              /* Use flexbox for layout */
    justify-content: center;    /* Center the menu horizontally */
    align-items: center;        /* Align items vertically */
    width: 100%;                /* Take full width */
    text-align: center;         /* Fallback for older browsers */
}

/* --- GLASS MENU STYLES --- */

/* 2. The menu list (The glass pill) */
header nav ul, 
.menu {
    /* Removing the yellow bullets/dots */
    list-style: none !important;       /* Force remove standard bullets */
    list-style-type: none !important;  /* Double check for removal */
    
    /* Layout and Spacing */
    margin: 20px 0 !important;         /* Vertical spacing */
    padding: 12px 40px !important;     /* Inner spacing of the pill */
    display: inline-flex !important;   /* Shrink to fit content */
    gap: 25px;                         /* Space between links */
    justify-content: center;
    align-items: center;

    /* Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent background */
    backdrop-filter: blur(10px);       /* Blur effect behind */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    border-radius: 50px;               /* Fully rounded corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Shadow for depth */
}

/* 3. Strict removal of pseudo-elements (often used for custom bullets) */
header nav ul li::before,
.menu li::before,
header nav ul li::after,
.menu li::after {
    content: none !important;  /* Hides generated content like dots */
    display: none !important;  /* Hides the element entirely */
}

/* --- LINK STYLES --- */

/* 4. Link appearance */
header nav ul li a,
.menu-item a {
    text-decoration: none;
    color: #cccccc;            /* Soft white/grey */
    font-family: sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none !important;   /* Ensure no borders on links */
}

/* 5. Hover Effect */
header nav ul li a:hover {
    color: #ffffff;            /* Bright white on hover */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4); /* Glow effect */
    transform: translateY(-1px);
}

/* 6. Active Item (Current Page) */
header nav ul li.current-menu-item a {
    color: #deb887;            /* Gold accent for active page */
    font-weight: 700;
}


.burger, #mobile-menu {
    display: none;
}

@media (max-width: 900px) {
    header nav ul, 
    .menu {
        display: none !important;
    }
    
    .burger {
        display: block;
    }
}

.burger {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 9999; 
    padding: 0;
}

.burger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #fff;
    margin: 6px auto;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.burger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: #deb887; 
}
.burger.is-active span:nth-child(2) {
    opacity: 0;
}
.burger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: #deb887;
}

#mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 20, 10, 0.95); 
    backdrop-filter: blur(15px); 
    z-index: 9990;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    display: flex !important; 
    justify-content: center;
    align-items: center;
}

#mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-menu-list li {
    margin: 25px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#mobile-menu.is-open .mobile-menu-list li {
    opacity: 1;
    transform: translateY(0);
}
#mobile-menu.is-open li:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.is-open li:nth-child(2) { transition-delay: 0.2s; }
#mobile-menu.is-open li:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.is-open li:nth-child(4) { transition-delay: 0.4s; }
#mobile-menu.is-open li:nth-child(5) { transition-delay: 0.5s; }

.mobile-menu-list li a {
    color: #fff;
    font-size: 24px; 
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-menu-list li a:hover {
    color: #deb887; 
}

.top-navigation-bar {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 10px 20px;
    width: 100%;
}

.site-logo svg {
    display: block;
    height: auto;
    max-width: 100%;
    width: 200px; 
}

@media (max-width: 768px) {
    .site-logo svg {
        width: 160px;
    }
}


.error-404-wrap {
    min-height: 70vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 40px; 
    text-align: center;
    background: radial-gradient(circle at center, #0f2e18 0%, #0a140a 100%); 
}

.container-404 {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 60px 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s ease-out;
}

.error-404-wrap .page-title {
    font-size: 120px;
    line-height: 1;
    font-weight: 800;
    margin: 0;
    color: transparent;
    background: linear-gradient(135deg, #fff 30%, #deb887 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.error-404-wrap .page-subtitle {
    font-size: 32px;
    color: #deb887; 
    margin: 10px 0 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.error-404-wrap .page-text {
    color: #ccc;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.btn-home {
    display: inline-block;
    padding: 15px 40px;
    background: #deb887;
    color: #0a140a;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(222, 184, 135, 0.3);
}

.btn-home:hover {
    background: #fff;
    color: #0a140a;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.football-icon {
    font-size: 50px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-20px);}
    60% {transform: translateY(-10px);}
}

@media (max-width: 600px) {
    .error-404-wrap .page-title {
        font-size: 80px;
    }
    .container-404 {
        padding: 40px 20px;
    }
}


.site-footer {
    padding: 60px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.disclaimer {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 40px;
}
.disclaimer strong { color: #ccc; }
.disclaimer a { color: #aaa; text-decoration: underline; }


.footer-menu-list {
    display: flex;             
    justify-content: center;   
    flex-wrap: wrap;           
    gap: 30px;                 
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.footer-menu-list li {
    display: block !important; 
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important; 
}



.footer-menu-list li a {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-menu-list li a:hover {
    color: #deb887;
}

@media (max-width: 600px) {
    .footer-menu-list {
        flex-direction: column;
        gap: 15px;
    }
}

.site-footer {
    background-color: #050807; 
    color: #e8efe9;
    padding: 60px 20px 30px;
    font-size: 14px;
    line-height: 1.6;
    border-top: 1px solid #1a2e1f; 
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 40px;
    margin-bottom: 50px;
}

.footer-heading {
    color: #d4a50c; 
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #2ecc71;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
    padding-left: 0;
}

.footer-links-list a {
    color: #9aab9e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-list a:hover {
    color: #ffffff; 
    text-decoration: none;
}

.help-link {
    color: #e74c3c !important; 
    font-weight: 600;
}

.warning-text {
    color: #e8efe9;
    opacity: 0.9;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #1a2e1f;
    padding-top: 30px;
    text-align: center;
    font-size: 12px;
    color: #6b7c6f;
}

.footer-bottom-content p {
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.copyright-text {
    color: #4a5d4e;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr; 
        gap: 35px;
        text-align: center;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-bottom {
        text-align: center;
    }
}

.footer-links-list,
.footer-links-list li {
    list-style: none !important;
    list-style-type: none !important;
}

.footer-links-list li::marker {
    display: none;
    content: "";
}