/* =============================================
   MUNDIAL 2026 — Stylesheet
   Estética: Deportiva, Bold, Oscura con detalles dorados
============================================= */

:root {
    --bg: #001224;
    --bg2: #12121a;
    --bg3: #1a1a26;
    --card: #001b33;
    --card2: #1e1e2e;
    --border: #003040;
    --gold: #75bd2d;
    --gold2: #e8b800;
    --red: #e63946;
    --green: #2dc653;
    --blue: #4361ee;
    --text: #75bd2d;
    --text2: #fafafa;
    --text3: #f9f9f9;
    --radius: 12px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Barlow', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: 
        radial-gradient(ellipse at 20% 0%, rgba(245,200,66,0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(67,97,238,0.05) 0%, transparent 60%);
}

/* ============ HEADER ============ */
.main-header {
    background: rgba(10,10,15,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 1.5rem;
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
}

.logo-icon { 
    font-size: 1.8rem; 
    /*
    animation: spin-slow 8s linear infinite; 
    */
}
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.logo-group {
    display: flex;
    align-items: center; /* Centrado vertical perfecto */
    gap: 0.5rem;         /* Espacio entre la imagen y el texto */
}

.logo-img-small {
    height: 50px;        /* Ajusta el tamaño de la imagen fifa2026 según necesites */
    width: auto;
}

.logo-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: #ffffff;    
    line-height: normal; /* Cambiado de 1 a normal para evitar recortes */
    display: inline-block;
}

/* Ajuste adicional al padre principal para asegurar que todo el header esté alineado */
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-year {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--text2);
    display: block;
    line-height: 1;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    color: var(--text2);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s;
    text-transform: uppercase;
}
.main-nav a:hover { color: var(--text); background: var(--bg3); }

.nav-admin { color: var(--gold) !important; }
.nav-logout { color: var(--red) !important; }
.nav-user { 
    color: var(--text2); 
    font-size: 0.8rem; 
    padding: 0.4rem 0.75rem;
    background: var(--bg3);
    border-radius: 6px;
}

.nav-btn {
    border: 1px solid var(--border) !important;
    background: var(--bg3) !important;
    color: var(--text) !important;
}
.nav-btn-primary {
    background: var(--gold) !important;
    color: var(--bg) !important;
    border-color: var(--gold) !important;
}
.nav-btn-primary:hover { background: var(--gold2) !important; }

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1.2rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
}

/* ============ MAIN CONTENT ============ */
.main-content {    
    flex: 1;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 1.5rem;
}

/* ============ HERO ============ */
.hero {
    margin-top: 0px; /* Asegura que no haya margen superior */
    padding-top: 4rem;
    text-align: center;    
    display: flex; 
    flex-direction: column;
    justify-content: flex-end; 
    min-height: 80vh; 
    /* 1. SEGURO CLAVE: Corta cualquier elemento que intente salirse */
    overflow: hidden; 
}

.hero::before {
    content: "";
    position: absolute;
    /* 2. REAJUSTE DE BORDES: Forzar el encuadre exacto */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-image: url('../img/messi_beso_copa.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    /* 3. CONTROL INTEGRAL: Ajusta la foto sin deformarla */
    background-size: contain;
    
    opacity: 0.7; 
    z-index: 1; 
}

.hero-btn {
    position: relative; 
    z-index: 2; 
    padding: 50px; 
    text-align: center;
    width: auto;
}


.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: var(--bg);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 4px;
    padding: 0.3rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-top: 0; 
    font-size: 3rem; /* El ajuste que ya tenías para evitar que rompa */
    font-family: 'Bebas Neue', sans-serif;    
    letter-spacing: 6px;
    line-height: 0.9;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--gold) 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text2);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-flags {
    font-size: 2rem;
    letter-spacing: 0.5rem;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius);
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,200,66,0.3); }

.btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.btn-danger { background: var(--red); color: #fff; }
.btn-success { background: var(--green); color: var(--bg); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }

/* ============ CARDS ============ */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.card-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.card-header h2, .card-header h3 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    font-size: 1.3rem;
    color: var(--gold);
}

.card-body { padding: 1.5rem; }

/* ============ STATS GRID ============ */
.stats-grid-index {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;    
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--gold); }

.stat-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--gold);
    line-height: 1;
    display: block;
}
.stat-label {
    color: var(--text2);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.25rem;
}

/* ============ PARTIDO CARD ============ */
.partido-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}
.partido-card:hover { border-color: rgba(245,200,66,0.3); background: var(--card2); }

.partido-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.partido-meta {
    font-size: 0.75rem;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partido-fase {
    font-size: 0.7rem;
    background: var(--bg3);
    border: 1px solid var(--border);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    color: var(--text2);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.partido-equipos {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.equipo-local { text-align: right; }
.equipo-visitante { text-align: left; }

.equipo-bandera { 
    font-size: 2rem; 
    display: block; 
}
.flag {
  display: inline-block;
  width: 44px;   /* Ajusta el tamaño que desees */
  height: 30px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  vertical-align: middle;
  border: 1px solid #eee; /* Un borde sutil queda muy bien */
  border-radius: 2px;
}
.equipo-nombre {
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.marcador {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 4px;
    color: var(--gold);
    min-width: 90px;
    text-align: center;
}

.marcador.finalizado { 
    border-color: rgba(44,198,83,0.4); 
    background: rgba(44,198,83,0.05);
    color: var(--green);
}
.marcador.pendiente { color: var(--text3); }

.partido-info {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--text3);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.partido-info span { display: flex; align-items: center; gap: 0.25rem; }

/* ============ TABLA GRUPOS ============ */
.grupos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 1.5rem;
}

.grupo-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.grupo-title {
    background: linear-gradient(135deg, var(--gold), var(--gold2));
    color: var(--bg);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 4px;
    padding: 0.75rem 1.25rem;
    text-align: center;
}

.grupo-table { 
    width: 100%;
    border-collapse: collapse; 
    width: 100%;
    min-width: 450px; /* Asegura que la tabla mantenga forma legible al scrollear */
}
.grupo-table th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text3);
    padding: 0.5rem 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.grupo-table th:first-child { text-align: left; }

.grupo-table td {
    padding: 0.6rem 0.75rem;
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    text-align: center;
}
.grupo-table td:first-child { text-align: left; }

.grupo-table tr:last-child td { border-bottom: none; }

.grupo-table tr:nth-child(-n+2) td { color: var(--text); }
.grupo-table tr:nth-child(n+3) td { color: var(--text2); }

.seleccion-name { display: flex; align-items: center; gap: 0.5rem; }
.seleccion-flag { font-size: 1.2rem; }

/* ============ FORMULARIO ============ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text2);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.form-control {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 0.7rem 1rem;
    font-family: 'Barlow', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245,200,66,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ============ PREDICCION CARD ============ */
.prediccion-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.75rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    transition: all 0.2s;
}
.prediccion-row:hover { border-color: rgba(245,200,66,0.3); }

.prediccion-equipo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}
.prediccion-equipo.visitante { flex-direction: row-reverse; }

.pred-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pred-input {
    width: 50px;
    text-align: center;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--gold);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    padding: 0.35rem;
    transition: border-color 0.2s;
}
.pred-input:focus { outline: none; border-color: var(--gold); }

.pred-sep {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--text3);
}

.puntos-badge {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: var(--bg3);
    border: 1px solid var(--border);
}
.puntos-10 { background: rgba(245,200,66,0.15); border-color: var(--gold); color: var(--gold); }
.puntos-7 { background: rgba(67,97,238,0.15); border-color: var(--blue); color: var(--blue); }
.puntos-5 { background: rgba(245,200,66,0.15); border-color: var(--red); color: var(--red); }
.puntos-2 { background: rgba(67,97,238,0.15); border-color: var(--orange); color: var(--orenge); }
.puntos-0 { color: var(--text3); }

/* ============ CLASIFICACION ============ */
.tabla-clasificacion { width: 100%; border-collapse: collapse; }
.tabla-clasificacion th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text3);
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.tabla-clasificacion td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.tabla-clasificacion tr:hover td { background: var(--bg3); }

.rank-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: var(--text3);
}
.rank-1 { color: var(--gold); }
.rank-2 { color: #c0c0c0; }
.rank-3 { color: #cd7f32; }

.user-nombre { font-weight: 700; }
.user-email { font-size: 0.8rem; color: var(--text2); }

.puntos-total {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--gold);
}

/* ============ ALERTAS ============ */
.alert {
    padding: 0.9rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.alert-error { background: rgba(230,57,70,0.15); border: 1px solid rgba(230,57,70,0.4); color: #ff8080; }
.alert-success { background: rgba(44,198,83,0.15); border: 1px solid rgba(44,198,83,0.4); color: #5dde87; }
.alert-info { background: rgba(67,97,238,0.15); border: 1px solid rgba(67,97,238,0.4); color: #8ba4ff; }

/* ============ PAGE TITLES ============ */
.page-hero {
    margin-bottom: 2rem;
}
.page-hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 4px;
    color: var(--gold);
    line-height: 1;
}
.page-hero p {
    color: var(--text2);
    margin-top: 0.5rem;
}

/* ============ TABS ============ */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.tab-btn {
    background: none;
    border: none;
    color: var(--text2);
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============ AUTH FORMS ============ */
.auth-container {
    max-width: 420px;
    margin: 3rem auto;
}
.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}
.auth-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 0.25rem;
}
.auth-subtitle { color: var(--text2); margin-bottom: 2rem; font-size: 0.9rem; }

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.88rem;
    color: var(--text2);
}
.auth-footer a { color: var(--gold); text-decoration: none; }

/* ============ BADGE ESTADO ============ */
.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}
.badge-pendiente { background: var(--bg3); color: var(--text2); border: 1px solid var(--border); }
.badge-finalizado { background: rgba(44,198,83,0.15); color: var(--green); border: 1px solid rgba(44,198,83,0.3); }
.badge-en-juego { background: rgba(230,57,70,0.15); color: var(--red); border: 1px solid rgba(230,57,70,0.3); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.6; } }

/* ============ FOOTER ============ */
.main-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: center;
    background: var(--bg2);
}
.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.main-footer p { color: var(--text3); font-size: 0.82rem; margin-top: 0.25rem; }

/* ============ ADMIN ============ */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-link {
    display: block;
    text-decoration: none;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s;
}
.admin-link:hover { border-color: var(--gold); transform: translateY(-2px); }
.admin-link .icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.admin-link strong { display: block; color: var(--text); font-size: 0.95rem; margin-bottom: 0.25rem; }
.admin-link span { color: var(--text2); font-size: 0.8rem; }

/* ============ TABLES ============ */
.table-responsive { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; }
table.data-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text3);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
table.data-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.9rem;
}
table.data-table tr:hover td { background: var(--bg3); }

/* ============ UTIL ============ */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text2); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; gap: 1rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }
    .main-nav.open { display: flex; }
    .menu-toggle { display: block; }

    .form-row { grid-template-columns: 1fr; }
    .partido-equipos { gap: 0.5rem; }
    .equipo-nombre { font-size: 0.75rem; }
    .prediccion-row { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .prediccion-row > *:last-child { grid-column: 1/-1; text-align: center; }
    .auth-card { padding: 1.5rem; }
    .grupo-table th, 
    .grupo-table td {
        padding: 0.5rem 0.4rem; /* Reducimos el espacio interno */
        font-size: 0.75rem;     /* Fuente un poco más pequeña */
    }

    .puntos-badge {
        font-size: 0.9rem;      /* Ajuste del badge de puntos */
        padding: 0.2rem 0.4rem;
    }

    .hero h1 {
        font-size: 3rem;        /* Evitamos que el título rompa el layout */
    }
    .logo-title {
        display: none !important;
    }
    .grupos-grid {    
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));    
    }
    .hero {
        /* Mantiene tu imagen pero le superpone una capa oscura para dar contraste */
        background-image: linear-gradient(rgba(0, 18, 36, 0.85), rgba(0, 18, 36, 0.95)), url('../ruta-de-tu-imagen.jpg');
        background-size: cover;
        background-position: center;
        padding: 3rem 1rem; /* Más compacto en pantallas chicas */
        text-align: center;
        min-height: 10vh;
    }
    .hero::before {
        content: "";
        position: absolute;
        /* 2. REAJUSTE DE BORDES: Forzar el encuadre exacto */
        top: 80px;
        left: 0;
        width: 100%;
        height: 100%;
        
        background-image: url('../img/messi_beso_copa.jpg');
        background-repeat: no-repeat;
        background-position: top center;
        /* 3. CONTROL INTEGRAL: Ajusta la foto sin deformarla */
        background-size: contain;
        
        opacity: 0.7; 
        z-index: 1; 
    }
    /* Contenedor de los botones */
    .hero-actions, .hero-buttons { 
        display: flex;
        flex-direction: column; /* Apila un botón sobre otro */
        gap: 1rem; /* Espacio entre los dos botones */
        width: 100%;
        padding: 0 1.5rem; /* Margen a los costados */
    }

    /* Estilo para los botones en mobile */
    .hero-btn {
        position: relative; 
        z-index: 2; 
        padding: 10px 10px 0px 0px; 
        margin-top:60px;
        text-align: center;
        width: auto;
        display: flex;
        gap: 15px;
    }
    .btn-primary, .btn-secondary, .hero .button {         
        display: block;
        width: 100%;
        padding: 1rem; /* Más alto para que sea fácil de tocar con el dedo */
        font-size: 1.1rem;
        font-weight: bold;
        text-align: center;
        border-radius: 8px;
        text-transform: uppercase;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        transition: transform 0.2s;
    }

    /* Si querés diferenciar el botón principal del secundario por color */
    .btn-primary {
        background-color: var(--gold); /* El verde/dorado llamativo de tu paleta */
        color: var(--bg);
    }

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

}

/* Estructura básica del desplegable */
.dropdown {
    display: inline-block;
    position: relative;
}

.dropdown-content {
    display: none;
    margin-top: 2px;
    position: absolute;
    background-color: rgba(220, 222, 220, 0.15);
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

/* Enlaces dentro del submenú */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: rgba(44,198,83,0.15);
}

/* Mostrar al hacer hover */
.dropdown:hover .dropdown-content {
    display: block;
}

.contenedor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Divide el contenedor en 3 partes iguales */
  gap: 20px; /* Separación entre columnas */
}

.contenedor-grid-fase {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Divide el contenedor en 3 partes iguales */
  gap: 20px; /* Separación entre columnas */
}

.columna {
  padding: 20px;  
}