/* CSS Reset & Variables */
:root {
    /* Colors */
    --primary-red: #C41E3A;
    /* Crimson/Ruby */
    --primary-red-dark: #8a1529;
    --gold: #FFD700;
    --gold-dark: #DAA520;
    --gold-light: #FFF8DC;
    --black: #0A0A0A;
    --dark-grey: #1A1A1A;
    --grey: #2A2A2A;
    --text-light: #F0F0F0;
    --text-dark: #333333;
    --white: #FFFFFF;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Modern Gradients */
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    --gradient-red: linear-gradient(135deg, #C41E3A 0%, #800000 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #050505 100%);
    --gradient-body: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #000000 100%);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(10px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(196, 30, 58, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 20%);
    background-attachment: fixed;
}

.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold);
}

.mt-4 {
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.6);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-outline {
    border: 2px solid var(--gold);
    color: var(--gold);
    background: transparent;
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--black);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Header */
.header {
    background-color: rgba(5, 5, 5, 0.85);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Increased Logo Size */
.logo img {
    height: 135px;
    /* Increased from 90px */
    transition: var(--transition);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    /* Adds a subtle glow */
}

@media (max-width: 768px) {
    .logo img {
        height: 60px;
        /* Keep it smaller on mobile so it doesn't break layout */
    }
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    color: var(--white);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('assets/images/hero_bg_v2.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

/* We need a better hero background. I'll use a dark gradient for now to look premium */
/* Modern Hero Gradient */
.hero {
    background: radial-gradient(circle at center, #2a050d 0%, #050505 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDIxNSwwLDAuMDUpIiAvPjwvc3ZnPg==');
    opacity: 0.3;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--black), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, #FFF, #FFD700, #FFF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #CCC;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Sections */
.section {
    padding: var(--section-padding);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 15px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--gold);
    margin: 0 auto 30px;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto 50px;
    color: #AAA;
}

/* About / Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--glass-bg);
    padding: 40px 30px;
    border-radius: 16px;
    border: var(--glass-border);
    text-align: center;
    transition: var(--transition);
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--white);
}

.feature-card p {
    color: #999;
}

/* Games Section */
.games {
    background-color: var(--dark-grey);
}

.games-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.tab-btn {
    background: none;
    border: 1px solid #444;
    color: #FFF;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.game-card {
    background-color: var(--black);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.game-card:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

.game-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 3rem;
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 5px;
}

.game-info p {
    font-size: 0.9rem;
    color: var(--gold);
}

/* Locations Section */
.locations {
    background-color: #111;
}

.locations-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.location-card {
    background: var(--glass-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    border: var(--glass-border);
    flex: 1 1 300px;
    max-width: 350px;
    backdrop-filter: var(--glass-blur);
}

.location-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Location Image */
.location-image {
    height: 420px;
    position: relative;
    overflow: hidden;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.location-card:hover .location-image img {
    transform: scale(1.1);
}

.location-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.location-card:hover .location-overlay {
    opacity: 1;
}

.location-overlay i {
    font-size: 3rem;
    color: var(--gold);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.location-info {
    padding: 25px;
    text-align: left;
}

.location-info h3 {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 10px;
}

.location-address {
    color: #999;
    margin-bottom: 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-address::before {
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-red);
}

.btn-text {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.btn-text:hover {
    gap: 10px;
    color: var(--white);
}

/* CTA */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(rgba(196, 30, 58, 0.9), rgba(138, 21, 41, 0.9)), url('assets/images/logo.png');
    /* Overlay on pattern */
    color: var(--white);
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background-color: #050505;
    padding-top: 80px;
    border-top: 3px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #888;
}

.footer-col ul li a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.contact-info li {
    color: #888;
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--gold);
    color: var(--black);
}

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid #222;
    color: #555;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #777;
    margin-left: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .header-actions {
        display: none;
        /* Hide CTA on mobile header to save space */
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.8rem;
        color: var(--gold);
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        background-color: rgba(0, 0, 0, 0.98);
        width: 100%;
        height: 100vh;
        padding: 80px 20px 40px;
        transition: var(--transition);
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Center items vertically */
        backdrop-filter: blur(10px);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .nav-link {
        font-size: 1.5rem;
        /* Larger text for mobile */
    }

    .hero-title {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Conocenos Section (Mission/Vision) */
.conocenos {
    background-color: var(--black);
}

.mv-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.mv-tab-btn {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 10px 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Playfair Display', serif;
    border-radius: 30px;
}

.mv-tab-btn.active,
.mv-tab-btn:hover {
    background: var(--gold);
    color: var(--black);
}

.mv-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    min-height: 250px;
}

.mv-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.mv-pane.active {
    display: block;
}

.mv-card {
    background: linear-gradient(135deg, #222, #111);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #333;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mv-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.mv-card h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.mv-card p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Documentos Page Helpers */
.year-title {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-top: 60px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.year-title:first-child {
    margin-top: 0;
}

/* Contact Page Styles */
.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)), url('assets/images/hero_bg_v2.png');
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--black), transparent);
}

.contact-section {
    padding: 80px 0;
    background-color: transparent;
    /* Changed from #111 */
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-box,
.contact-form-box {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 20px;
    border: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--gold);
    margin-right: 20px;
    min-width: 30px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(218, 165, 32, 0.2);
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .contact-info-box,
    .contact-form-box,
    .feature-card,
    .mv-card {
        padding: 25px 20px;
    }

    .header {
        padding: 10px 0;
    }

    .section {
        padding: 60px 0;
    }

    .docs-grid {
        grid-template-columns: 1fr;
    }

    .footer-col {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
    }
}