/* Variables y Reset - MODO CLARO */
:root {
    --bg-body: #f4f6f8;
    --bg-card: #ffffff;
    --dorado: #B8860B;
    --dorado-light: #FFD700;
    --verde-cesped: #16A34A;
    --text-main: #1a1a1a;
    --text-secondary: #4b5563;
    --border-color: #e5e7eb;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--text-main);
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-title { display: flex; align-items: center; gap: 1rem; }
.logo-title img { width: 60px; height: auto; filter: drop-shadow(0 0 5px rgba(0,0,0,0.1)); }
.title-text h1 { font-size: 1.5rem; color: var(--dorado); }
.title-text p { font-size: 0.9rem; color: var(--verde-cesped); font-weight: 600; }

/* Navegación */
nav ul { display: flex; list-style: none; gap: 2rem; align-items: center; }
nav a { color: var(--text-secondary); text-decoration: none; font-weight: 600; transition: all 0.3s ease; position: relative; }
nav a:hover { color: var(--dorado); }

.nav-cta {
    background: linear-gradient(135deg, var(--verde-cesped) 0%, #15803d 100%);
    padding: 0.5rem 1rem !important;
    border-radius: 50px;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.nav-cta:hover { transform: scale(1.05); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }

.mobile-menu-toggle { display: none; background: none; border: none; color: var(--dorado); font-size: 1.5rem; cursor: pointer; }

/* Banner Animado */
.hero-banner { margin-top: 80px; height: 70vh; min-height: 500px; position: relative; overflow: hidden; }
.banner-slider { display: flex; animation: slide 20s infinite; }
.banner-slide { min-width: 100%; height: 70vh; background-size: cover; background-position: center; position: relative; }
.banner-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%); }

.banner-content {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; z-index: 2; max-width: 900px; padding: 0 2rem;
}
.banner-content h2 { font-size: 3.5rem; color: var(--dorado-light); margin-bottom: 1rem; text-shadow: 0 0 20px rgba(255, 215, 0, 0.5); animation: fadeInUp 1s ease; }
.banner-content p { font-size: 1.5rem; color: #fff; animation: fadeInUp 1s ease 0.2s both; }

@keyframes slide { 0%, 20% { transform: translateX(0); } 25%, 45% { transform: translateX(-100%); } 50%, 70% { transform: translateX(-200%); } 75%, 95% { transform: translateX(-300%); } 100% { transform: translateX(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Contador Regresivo */
.countdown-section { background: linear-gradient(135deg, var(--dorado-light) 0%, var(--dorado) 100%); color: #fff; padding: 2rem 0; text-align: center; }
.countdown-container { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.countdown-item { background: rgba(0,0,0,0.1); padding: 1rem 2rem; border-radius: 10px; backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.2); }
.countdown-number { font-size: 2.5rem; font-weight: 800; display: block; color: #fff; }
.countdown-label { font-size: 0.9rem; font-weight: 600; color: rgba(255,255,255,0.9); }

/* Sección Principal */
main { max-width: 1400px; margin: 0 auto; padding: 3rem 5%; }

.article-main {
    background: var(--bg-card); border-radius: 20px; padding: 3rem; margin-bottom: 3rem;
    border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    transform: translateY(50px); opacity: 0; transition: all 0.6s ease;
}
.article-main.visible { transform: translateY(0); opacity: 1; }
.article-main h2 { color: var(--dorado); font-size: 2.5rem; margin-bottom: 1.5rem; text-align: center; }
.article-main h2::after { content: ''; display: block; width: 100px; height: 3px; background: var(--verde-cesped); margin: 0.5rem auto; }
.article-main h3 { color: var(--verde-cesped); font-size: 1.5rem; margin: 2rem 0 1rem; }
.article-main p { margin-bottom: 1rem; color: var(--text-secondary); }
.article-main ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-main li { margin-bottom: 0.5rem; color: var(--text-secondary); }
.article-main blockquote { border-left: 4px solid var(--verde-cesped); padding-left: 1.5rem; margin: 2rem 0; font-style: italic; color: var(--dorado); font-size: 1.2rem; background: rgba(184, 134, 11, 0.05); padding: 1rem; border-radius: 0 10px 10px 0; }

/* Tarjetas Gráficas */
.cards-section { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 3rem; }

.card {
    background: var(--bg-card); border-radius: 15px; padding: 2rem;
    border: 1px solid var(--border-color); transition: all 0.4s ease;
    position: relative; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.card::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent); transition: left 0.6s ease; }
.card:hover::before { left: 100%; }
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); border-color: var(--dorado); }
.card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.card-icon { font-size: 2.5rem; color: var(--dorado); }
.card h3 { color: var(--dorado); font-size: 1.3rem; }
.card p { color: var(--text-secondary); }

/* Estructura del Torneo */
.tournament-flow { display: flex; justify-content: space-between; align-items: center; margin: 2rem 0; flex-wrap: wrap; gap: 1rem; }
.flow-step { flex: 1; min-width: 200px; text-align: center; position: relative; }
.flow-step:not(:last-child)::after { content: '→'; position: absolute; right: -1rem; top: 50%; transform: translateY(-50%); font-size: 2rem; color: var(--dorado); }
.flow-circle { width: 80px; height: 80px; background: linear-gradient(135deg, var(--dorado-light) 0%, var(--dorado) 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-weight: 800; color: #fff; font-size: 1.5rem; box-shadow: 0 0 20px rgba(184, 134, 11, 0.3); }

/* Tabla Comparativa */
.cost-table { overflow-x: auto; margin-top: 1rem; }
table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: 10px; overflow: hidden; border: 1px solid var(--border-color); }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border-color); }
th { background: var(--dorado); color: #fff; font-weight: 700; }
td { color: var(--text-secondary); }
tr:hover td { background: rgba(255, 215, 0, 0.05); color: var(--text-main); }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.gallery-item { height: 200px; background-size: cover; background-position: center; border-radius: 10px; position: relative; cursor: pointer; overflow: hidden; border: 1px solid var(--border-color); }
.gallery-item::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.7); opacity: 0; transition: opacity 0.3s ease; }
.gallery-item:hover::before { opacity: 1; }
.gallery-item i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 2rem; color: var(--dorado); opacity: 0; transition: opacity 0.3s ease; }
.gallery-item:hover i { opacity: 1; }

/* Trofeo 3D */
.trophy-3d { text-align: center; margin: 3rem 0; perspective: 1000px; }
.trophy-container { display: inline-block; position: relative; transform-style: preserve-3d; animation: rotate3d 10s infinite linear; }
@keyframes rotate3d { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(360deg); } }
.trophy { width: 200px; height: 250px; background: linear-gradient(135deg, var(--dorado-light) 0%, var(--dorado) 100%); clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%); position: relative; box-shadow: 0 0 30px rgba(184, 134, 11, 0.5); }
.trophy::before { content: ''; position: absolute; top: 20px; left: 20px; right: 20px; bottom: 20px; background: var(--bg-body); clip-path: polygon(25% 5%, 75% 5%, 95% 25%, 95% 75%, 75% 95%, 25% 95%, 5% 75%, 5% 25%); }
.trophy::after { content: '⚽'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 3rem; filter: drop-shadow(0 0 10px var(--dorado)); }

/* Formulario */
.form-section { background: var(--bg-card); border-radius: 20px; padding: 3rem; margin-bottom: 3rem; border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
.form-section h2 { color: var(--dorado); font-size: 2rem; margin-bottom: 2rem; text-align: center; }
.form-group { margin-bottom: 1.5rem; }
label { display: block; color: var(--verde-cesped); font-weight: 600; margin-bottom: 0.5rem; }
input, select, textarea { width: 100%; padding: 1rem; background: #f8fafc; border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main); font-family: 'Roboto', sans-serif; transition: all 0.3s ease; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--dorado); box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1); background: #fff; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.player-data { background: #f0fdf4; padding: 1.5rem; border-radius: 10px; border: 1px solid #dcfce7; margin-top: 1rem; }
.player-data h4 { color: var(--text-main); }

.btn { background: linear-gradient(135deg, var(--dorado-light) 0%, var(--dorado) 100%); color: #fff; padding: 1rem 3rem; border: none; border-radius: 50px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; font-size: 1.1rem; display: block; margin: 2rem auto 0; box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3); }
.btn:hover { transform: scale(1.05); box-shadow: 0 10px 30px rgba(184, 134, 11, 0.4); }

/* Footer */
footer { background: #1f2937; border-top: 4px solid var(--dorado); padding: 3rem 0; text-align: center; }
.footer-content { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.footer-contact { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; margin-bottom: 2rem; }
.contact-item { display: flex; align-items: center; gap: 0.5rem; color: #d1d5db; }
.contact-item:hover { color: var(--dorado); }
.contact-item i { color: var(--dorado-light); font-size: 1.2rem; }
.social-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
.social-links a { width: 50px; height: 50px; background: #374151; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.1); }
.social-links a:hover { background: var(--dorado); color: #000; transform: scale(1.1); }

/* Responsive */
@media (max-width: 768px) {
    .header-content { flex-wrap: wrap; }
    nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card); flex-direction: column; padding: 1rem; border-top: 1px solid var(--border-color); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    nav ul.active { display: flex; }
    .mobile-menu-toggle { display: block; }
    .banner-content h2 { font-size: 2rem; }
    .banner-content p { font-size: 1rem; }
    .tournament-flow { flex-direction: column; }
    .flow-step:not(:last-child)::after { content: '↓'; right: 50%; top: 100%; transform: translateX(50%); font-size: 2rem; }
}

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Loading Animation */
.loader { position: fixed; inset: 0; background: #fff; display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.5s ease; }
.loader.hidden { opacity: 0; pointer-events: none; }
.loader-content { text-align: center; }
.loader-ball { width: 60px; height: 60px; background: var(--dorado); border-radius: 50%; position: relative; animation: bounce 1s infinite; margin: 0 auto 1rem; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-30px); } }

/* Modal Bootstrap en Modo Claro */
.modal-content { background: var(--bg-card); color: var(--text-main); }
.modal-header { border-bottom: 1px solid var(--border-color); }
.btn-close:focus { box-shadow: none; }
/* =============================================
   CARRUSEL PATROCINADORES (Estilo Landing)
   ============================================= */
.sponsors-section {
    padding: 2rem 0;
    margin-bottom: 3rem;
}

.carrusel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 1rem 0;
}

.carrusel-track {
    display: flex;
    gap: 20px;
    animation: scroll 25s linear infinite;
    align-items: center;
}

.carrusel-item {
    flex: 0 0 auto;
    width: 120px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.carrusel-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.carrusel-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%); /* Opcional: Blanco y negro por defecto */
    transition: filter 0.3s ease;
}

.carrusel-item:hover img {
    filter: grayscale(0%); /* Color al pasar el mouse */
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}