/* --- VARIABLES & CONFIG --- */
:root {
    --primary-dark: #0e2b4a;   /* Azul Logo */
    --primary-light: #3faceb;  /* Celeste Logo */
    --accent: #fbc02d;         /* Amarillo Logo */
    --text-main: #222;
    --bg-gray: #f4f7f6;
    --card-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; color: var(--text-main); line-height: 1.6; background: #fff; }

h1, h2, h3, h4, .font-title { font-family: 'Montserrat', sans-serif; font-weight: 700; }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* --- UTILIDADES --- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.section-padding { padding: 80px 0; }
.btn { display: inline-block; padding: 12px 30px; border-radius: 50px; font-weight: 700; text-transform: uppercase; border: none; cursor: pointer; font-size: 0.9rem; }
.btn-cta { background: var(--accent); color: var(--primary-dark); box-shadow: 0 4px 15px rgba(251, 192, 45, 0.4); }
.btn-cta:hover { transform: translateY(-3px); background: #fdd835; }
.btn-outline { border: 2px solid #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--primary-dark); }
.btn-sm { padding: 8px 20px; font-size: 0.8rem; }

/* --- HEADER --- */
header { background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; padding: 10px 0; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 80px; width: auto; } /* Ajustado para ser más sutil */
.nav-menu { display: flex; gap: 20px; align-items: center; }
.nav-menu a { color: var(--primary-dark); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary-light); }
.nav-btn-link { background: var(--primary-dark); color: #fff !important; padding: 8px 20px; border-radius: 30px; }
.nav-btn-link:hover { background: var(--primary-light); }
.hamburger { display: none; font-size: 1.5rem; color: var(--primary-dark); cursor: pointer; }

/* --- HERO --- */
.hero {
    background: linear-gradient(135deg, rgba(14, 43, 74, 0.92), rgba(63, 172, 235, 0.85)), url('https://images.unsplash.com/photo-1626245648836-2244a04d092d?ixlib=rb-4.0.3&w=1920&q=80');
    background-size: cover; background-position: center;
    min-height: 80vh; display: flex; align-items: center; text-align: center; color: #fff;
}
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; text-transform: uppercase; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; opacity: 0.9; }

/* --- CARDS DE TORNEOS (NUEVO) --- */
.torneos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.torneo-card {
    background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eee;
    box-shadow: var(--card-shadow); transition: transform 0.3s; display: flex; flex-direction: column;
}
.torneo-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.12); }
.torneo-header { background: var(--primary-dark); color: #fff; padding: 15px; display: flex; justify-content: space-between; align-items: center; }
.torneo-fecha { text-align: center; background: rgba(255,255,255,0.1); padding: 5px 10px; border-radius: 8px; }
.dia { font-size: 1.5rem; font-weight: 800; line-height: 1; display: block; }
.mes { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }
.torneo-body { padding: 20px; flex-grow: 1; }
.torneo-sede { font-size: 0.85rem; color: var(--primary-light); font-weight: 700; text-transform: uppercase; margin-bottom: 5px; display: block; }
.torneo-titulo { font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 15px; line-height: 1.3; }
.cats-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 20px; }
.cat-tag { font-size: 0.7rem; padding: 3px 8px; border-radius: 4px; background: #eee; color: #555; font-weight: 600; }
.cat-tag.serie-a { background: #ffebee; color: #c62828; }
.cat-tag.serie-b { background: #e8f5e9; color: #2e7d32; }
.cat-tag.serie-c { background: #e3f2fd; color: #1565c0; }

/* --- FOOTER --- */
footer { background: #051321; color: #888; padding: 60px 0 20px; font-size: 0.9rem; margin-top: auto; }
.footer-logo { height: 50px; opacity: 0.8; margin-bottom: 15px; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; flex-direction: column; padding: 20px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
    .nav-menu.active { display: flex; }
    .hamburger { display: block; }
}