:root {
    /* Paleta de Colores Moderna */
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --card-glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
    
    /* Colores de Equipos */
    --local-color: #00d2ff; /* Azul Cian Neón */
    --visit-color: #ff0055; /* Rosa Neón */
    
    --text-main: #ffffff;
    --text-muted: #aab0c0;
    --success: #00ff88;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    padding-bottom: 100px; /* Espacio para el menú flotante */
    min-height: 100vh;
}

/* --- HEADER --- */
.app-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(5px);
}

.logo { 
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem; 
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Corrección del error background-clip */
    background: linear-gradient(0deg, #00d2ff, #3a7bd5);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-decoration: none;
}

.status-indicator { 
    background: rgba(255, 0, 0, 0.2);
    color: #ff4757; 
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem; 
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

/* --- CONTENEDOR PRINCIPAL (Centrado) --- */
.app-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- MARCADOR --- */
.scoreboard-card {
    width: 100%;
    background: var(--card-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 30px 15px;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.team-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

.divider-vertical { 
    width: 1px; 
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent); 
    margin: 0 15px; 
}

.team-name-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    width: 100%;
    font-size: 1.2rem;
    font-family: 'Teko', sans-serif;
    letter-spacing: 1px;
}
.team-name-input:focus { outline: none; border-bottom: 2px solid var(--local-color); color: #fff; }

.score-big { 
    font-family: 'Teko', sans-serif;
    font-size: 5rem; 
    font-weight: 600; 
    line-height: 0.9; 
    text-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.team-column:first-child .score-big { color: var(--local-color); text-shadow: 0 0 15px rgba(0, 210, 255, 0.4); }
.team-column:last-child .score-big { color: var(--visit-color); text-shadow: 0 0 15px rgba(255, 0, 85, 0.4); }

.sets-badge { 
    background: rgba(0,0,0,0.3); 
    padding: 4px 12px; 
    border-radius: 12px; 
    font-size: 0.9rem; 
    color: #fff;
    border: 1px solid var(--border-glass);
}
.sets-badge span { font-weight: bold; color: var(--success); }

/* --- BOTONES --- */
.btn-giant {
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 1px solid var(--border-glass);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.2s;
}
.btn-giant:active { transform: scale(0.95); }

.secondary-actions { display: flex; gap: 8px; width: 100%; justify-content: center; }

.btn-small { 
    padding: 8px 15px; 
    border: 1px solid var(--border-glass); 
    background: transparent; 
    color: var(--text-muted); 
    border-radius: 8px; 
    font-size: 0.8rem; 
    cursor: pointer;
}

.btn-set { 
    background: rgba(0, 255, 136, 0.1); 
    color: var(--success); 
    border-color: rgba(0, 255, 136, 0.3); 
    font-weight: bold;
}

.btn-reset-text { 
    width: 100%; 
    background: transparent; 
    border: none; 
    color: var(--text-muted); 
    padding: 20px; 
    cursor: pointer;
}
.btn-reset-text:hover { color: #fff; }

/* --- CAJAS DE TEXTO (Artículos) --- */
.info-voley {
    width: 100%;
    background: var(--card-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 20px;
    text-align: left;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.info-voley h1 { font-family: 'Teko', sans-serif; font-size: 2.5rem; text-align: center; color: var(--local-color); margin-top: 0; }
.info-voley h2 { color: #fff; border-bottom: 1px solid var(--border-glass); padding-bottom: 10px; margin-top: 30px;}
.info-voley p, .info-voley li { line-height: 1.6; color: #e0e0e0; }

/* Tablas */
.tabla-voley { width: 100%; border-collapse: separate; border-spacing: 0 5px; margin-top: 20px; }
.tabla-voley th { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; padding: 10px; }
.tabla-voley td { background: rgba(255,255,255,0.03); padding: 15px; }
.tabla-voley tr td:first-child { border-radius: 10px 0 0 10px; color: var(--local-color); font-weight: bold; }
.tabla-voley tr td:last-child { border-radius: 0 10px 10px 0; }

/* Video e Imagenes */
.video-responsive, img { max-width: 100%; border-radius: 12px; display: block; margin: 0 auto 20px auto; }
.video-responsive iframe { width: 100%; height: 200px; border: 0; }

/* --- NAVEGACIÓN INFERIOR (Dock) --- */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    height: 70px;
    background: rgba(22, 22, 35, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 35px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 100;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.nav-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    font-size: 0.7rem;
    gap: 4px;
    transition: 0.3s;
    position: relative;
}

.nav-item .icon { font-size: 1.5rem; transition: 0.3s; }
.nav-item.active { color: #fff; }
.nav-item.active .icon { transform: translateY(-5px); text-shadow: 0 0 10px rgba(255,255,255,0.5); }
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    width: 5px;
    height: 5px;
    background: var(--local-color);
    border-radius: 50%;
}