/* Estilos principales para la aplicación del club deportivo */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 2rem;
    font-weight: bold;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: rgba(255,255,255,0.2);
}

.btn-login {
    background-color: #e74c3c;
    border: none;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #c0392b;
}

/* Main content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 160px);
}

.equipos-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 2.5rem;
}

/* Grid de equipos */
.equipos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.equipo-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.equipo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.equipo-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.equipo-header h3 {
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.equipo-actions {
    padding: 1.5rem;
    text-align: center;
}

.btn-ver-equipo {
    background: linear-gradient(135deg, #e57373, #f8bbd0);
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-ver-equipo:hover {
    background: linear-gradient(135deg, #219a52, #27ae60);
    transform: scale(1.05);
}

/* Página de equipo individual */
.equipo-info {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.equipo-title {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

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

.info-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 5px solid #3498db;
}

.info-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.info-card li:last-child {
    border-bottom: none;
}

/* Semáforo de asistencias */
.asistencia-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    margin: 0.5rem 0;
    border-radius: 5px;
    background: #f8f9fa;
}

.asistencia-verde {
    border-left: 5px solid #27ae60;
}

.asistencia-amarilla {
    border-left: 5px solid #f39c12;
}

.asistencia-roja {
    border-left: 5px solid #e74c3c;
}

.porcentaje {
    font-weight: bold;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    color: white;
}

.porcentaje.verde {
    background-color: #27ae60;
}

.porcentaje.amarillo {
    background-color: #f39c12;
}

.porcentaje.rojo {
    background-color: #e74c3c;
}

/* Botones */
.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #219a52;
}

.btn-volver {
    background-color: #95a5a6;
    color: white;
    margin-bottom: 2rem;
}

.btn-volver:hover {
    background-color: #7f8c8d;
}

/* Formularios */
.form-container {
    max-width: 400px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ecf0f1;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

/* Mensajes de error */
.error-message {
    background-color: #e74c3c;
    color: white;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .equipos-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .equipo-title {
        font-size: 2rem;
    }
}

.no-equipos {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    grid-column: 1 / -1;
    padding: 2rem;
}

.logo-container {
    text-align: center;
    padding: 10px 0;
}

.logo-container img {
    width: 120px;
    height: auto;
}

.historial-observaciones {
    font-size: 0.85em;
    color: #555;
    margin-left: 1rem;
    font-style: italic;
}

