/* --- CSS VARIABLES --- */
:root {
    --color-bg: #0a0e10;
    --color-surface: #111a15;
    --color-green-dark: #0d3b1f;
    --color-green-neon: #18a946;
    --color-green-light: #2bc45c;
    --color-gold: #d4af37;
    --color-gold-light: #f3d562;
    --color-text: #ffffff;
    --color-text-muted: #a0aab2;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease;
}

/* --- RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Helpers */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
}

.text-gold { color: var(--color-gold); }
.text-white { color: #ffffff; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-normal);
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold), #b38f22);
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
}

.btn-social {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-text);
}

.btn-social:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border: none;
    margin-top: 20px;
}
.btn-instagram:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(220, 39, 67, 0.4);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

/* --- NAVBAR --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
    padding: 20px 0;
}

header.scrolled {
    background: rgba(10, 14, 16, 0.95);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a img {
    clip-path: circle(48% at 50% 50%);
    -webkit-clip-path: circle(48% at 50% 50%);
    filter: drop-shadow(0 0 8px rgba(212,175,55,0.5));
    border-radius: 50%;
    background-color: transparent !important;
    display: block;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    letter-spacing: 2px;
}

.logo-accent {
    color: var(--color-gold);
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

nav a:not(.btn-inscripcion)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-gold);
    transition: var(--transition-normal);
}

nav a:not(.btn-inscripcion):hover::after,
nav a.active:not(.btn-inscripcion)::after {
    width: 100%;
}

.btn-inscripcion {
    background-color: var(--color-green-neon);
    padding: 10px 24px;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(24, 169, 70, 0.3);
}

.btn-inscripcion:hover {
    background-color: var(--color-green-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(43, 196, 92, 0.5);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    background: url('assets/hero.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(10,14,16,0.3) 0%, rgba(10,14,16,0.9) 100%),
                radial-gradient(circle, rgba(13,59,31,0.4) 0%, rgba(10,14,16,0.8) 100%);
}

/* Watermark logo */
.hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    z-index: 1;
    pointer-events: none;
    animation: watermarkPulse 8s ease-in-out infinite;
}

.hero-watermark img {
    width: min(850px, 95vw);
    height: auto;
    opacity: 0.12;
    mix-blend-mode: normal;
    filter: drop-shadow(0 0 80px rgba(212, 175, 55, 0.4));
}

@keyframes watermarkPulse {
    0%, 100% { opacity: 0.15; transform: translate(-50%, -52%) scale(1); }
    50%       { opacity: 0.22; transform: translate(-50%, -52%) scale(1.04); }
}


.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero .subtitle {
    color: var(--color-green-light);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.hero .title {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 20px;
    color: white;
}

.hero .description {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    margin-top: 10px;
    font-size: 1.2rem;
}

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

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 1s; }

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SECTIONS COMMON --- */
.section {
    padding: 100px 0;
}

.dark-section {
    background-color: var(--color-bg);
}

.green-section {
    background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-bg) 100%);
    position: relative;
}
.green-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.05;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title span {
    color: var(--color-gold);
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--color-gold);
    margin: 15px auto;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* --- EL TORNEO SECTION --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-green-light);
}

.feature-icon {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--color-text-muted);
}

/* --- SEDE SECTION --- */
.sede-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.sede-list {
    margin-top: 30px;
}

.sede-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sede-image {
    width: 100%;
    height: 400px;
    background: transparent;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.sede-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
}

.stadium-placeholder {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(10,14,16,0.8);
    backdrop-filter: blur(5px);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--color-gold);
}

.stadium-placeholder h3 {
    color: white;
    font-size: 1.2rem;
}

/* --- SOCIAL BANNER --- */
.social-banner {
    padding: 60px 40px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.instagram-icon {
    font-size: 8rem;
    position: absolute;
    right: -20px;
    top: -20px;
    color: rgba(255,255,255,0.03);
    pointer-events: none;
}

.social-banner h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.social-banner p {
    color: var(--color-text-muted);
}

/* --- FORMULARIO DE CONTACTO --- */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 20px;
}

.contact-form .form-group {
    margin-bottom: 25px;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-bottom: 10px;
    color: var(--color-gold);
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-green-light);
    box-shadow: 0 0 10px rgba(43, 196, 92, 0.2);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--color-surface);
    padding: 80px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.footer-info p {
    color: var(--color-text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links h4, .footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul a {
    color: var(--color-text-muted);
}

.footer-links ul a:hover {
    color: var(--color-gold);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: white;
}

.social-icons a:hover {
    background: var(--color-gold);
    color: #000;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .sede-container {
        grid-template-columns: 1fr;
    }
    
    .hero .title {
        font-size: 3.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 14, 16, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
    }
    
    nav.open {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}
