/* Variables de color de marca */
:root {
    --primary-color: #8B1E3F; /* Un tono vino/licor elegante */
    --secondary-color: #5C5C5C;
    --bg-color: #f4f6f9;
    --card-bg: #ffffff;
    --text-color: #333333;
    --error-color: #d9534f;
    --success-color: #5cb85c;
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: var(--primary-color);
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

header .logo img {
    max-height: 60px;
    width: auto;
}

.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.card {
    background-color: var(--card-bg);
    padding: 30px 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 400px; /* Tamaño ideal para simular una app */
}

h2 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.6rem;
    text-align: center;
}

.subtitle {
    color: var(--secondary-color);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #6b142f;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: var(--text-color);
}

.alert {
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-align: center;
}

.alert.error {
    background-color: #fdf2f2;
    color: var(--error-color);
    border: 1px solid #f8baba;
}

.alert.success {
    background-color: #f2fdf2;
    color: var(--success-color);
    border: 1px solid #baf8ba;
}

.hidden {
    display: none;
}

footer {
    text-align: center;
    padding: 15px;
    font-size: 0.8rem;
    color: var(--secondary-color);
    background-color: #eaeaea;
}

/* Botón estilizado de Cerrar Sesión en el Header */
.btn-logout {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    color: var(--primary-color);
    background-color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}


/* Contenedor del área de raspado */
.canvas-wrapper {
    background: #fdfdfd;
    border: 3px dashed #ccc;
    border-radius: 8px;
    padding: 10px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}


/*JUEGOSSSS*/
.selector-juego { 
    display: flex; gap: 10px; 
    margin-bottom: 20px; 
}
.btn-opcion-juego { 
    flex: 1; 
    padding: 12px; 
    background: #fff; 
    border: 2px solid #ddd; 
    border-radius: 8px; 
    font-weight: bold; 
    cursor: pointer; 
    text-align: center; 
    font-size: 0.95rem; 
    transition: all 0.2s; 
}
.btn-opcion-juego.activo { 
    border-color: var(--primary-color, #c5221f); 
    background: #fff5f5; 
    color: var(--primary-color, #c5221f); 
}
.arco-container { 
    width: 100%; 
    max-width: 450px; 
    margin: 20px auto; 
    position: relative; 
    background: #27ae60; 
    border: 4px solid #fff; 
    border-bottom: none; 
    border-radius: 8px 8px 0 0; 
    padding: 10px; 
    box-shadow: inset 0 0 40px rgba(0,0,0,0.2); 
}
.red-arco { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    grid-template-rows: repeat(3, 80px); 
    gap: 4px; 
    background-image: linear-gradient(rgba(255,255,255,0.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px); 
    background-size: 15px 15px; border: 2px dashed #fff; 
}
.zona-penal { 
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255,255,255,0.2); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; font-weight: bold; 
    font-size: 0.8rem; cursor: pointer; 
    text-transform: uppercase; 
    transition: background 0.2s; 
    -webkit-tap-highlight-color: transparent; 
}
.zona-penal:hover { 
    background: rgba(255, 255, 255, 0.3); 
    color: #000; 
}
/* Animación del balón y portero básico */
.arquero { 
    position: absolute; 
    bottom: 0; left: 50%; 
    transform: translateX(-30%); 
    width: 50px; height: 50px; 
    background: #333; 
    border-radius: 30px 30px 30px 30px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: white; 
    font-size: 1.5rem; 
    transition: all 0.5s ease-in-out; 
    pointer-events: none; 
}
.hidden { 
    display: none !important; 
}