/* ====================================
   TANCAT - Sistema Cliente Main CSS
   Archivo: cliente-main.css
   Descripción: Estilos unificados y consolidados para la página principal del cliente.
   Refactorizado: eliminación de todas las clases duplicadas y conflictos de estilos.
   ==================================== */

/* ====================================
   RESET Y VARIABLES
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-dark:       #2c3e50;
    --primary-medium:     #34495e;
    --primary-light:      #95a5a6;
    --accent-red:         #e74c3c;
    --accent-red-dark:    #c0392b;
    --accent-red-darker:  #a93226;
    --text-secondary:     #7f8c8d;
    --background-light:   #f8f9fa;
    --background-lighter: #ecf0f1;
    --white:              #ffffff;
    --success-green:      #27ae60;
    --text-muted:         #bdc3c7;
    --shadow-light:       rgba(0, 0, 0, 0.1);
    --shadow-medium:      rgba(0, 0, 0, 0.15);
    --shadow-dark:        rgba(0, 0, 0, 0.3);
    --transition-smooth:  all 0.3s ease;
}

/* ====================================
   ESTILOS GENERALES
   ==================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--primary-dark);
    background-color: var(--background-light);
}

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

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--primary-dark);
    font-weight: bold;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-red);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ====================================
   BOTONES
   ==================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 16px;
    line-height: 1.4;
}

.btn-primary {
    background: var(--accent-red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.full-width {
    width: 100%;
    display: block;
}

/* Accesibilidad */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

/* ====================================
   HEADER Y NAVEGACIÓN
   ==================================== */
.main-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px var(--shadow-medium);
}

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

.logo-section .logo {
    font-size: 32px;
    font-weight: bold;
    color: var(--accent-red);
    letter-spacing: 2px;
}

.logo-section .tagline {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: -5px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-red);
    background-color: rgba(255, 255, 255, 0.1);
}

.login-btn {
    background: var(--accent-red) !important;
    color: var(--white) !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 20px !important;
}

.login-btn:hover {
    background: var(--accent-red-dark) !important;
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero-section {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 73, 94, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23f8f9fa" width="1200" height="600"/><circle fill="%23e74c3c" cx="300" cy="150" r="50" opacity="0.1"/><circle fill="%232c3e50" cx="900" cy="450" r="75" opacity="0.1"/></svg>');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    padding: 80px 20px 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-buttons .btn {
    min-width: 180px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* ====================================
   SECCIÓN DE SEDES
   ==================================== */
.sedes-section {
    padding: 5rem 0;
    background: var(--white);
}

.sedes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Tarjeta de sede — visible por defecto, animada al entrar */
.sede-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-light);
    border: 1px solid var(--background-lighter);
    transition: all 0.6s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sede-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-red-dark));
}

.sede-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--shadow-medium);
}

/* Animación de entrada controlada por JS */
.sede-card.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.sede-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.sede-header h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

/* Badge de sede dentro de tarjetas */
.sede-card .sede-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sede-card .sede-badge.principal {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.sede-card .sede-badge.sucursal {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.sede-info {
    margin-bottom: 2rem;
}

/* info-item general (sedes) */
.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
    font-size: 14px;
    color: var(--text-secondary);
}

.info-item .icon {
    margin-right: 0.8rem;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sede-deportes h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.deportes-lista {
    display: grid;
    gap: 0.5rem;
}

.deporte-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.8rem;
    background: rgb(240, 239, 239);
    border-radius: 8px;
    border-left: 3px solid var(--accent-red);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.deporte-item:hover {
    background: var(--background-lighter);
    transform: translateX(5px);
}

.deporte-nombre {
    font-weight: 600;
    color: var(--primary-dark);
}

.deporte-canchas {
    font-size: 12px;
    color: var(--primary-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
}

.deporte-precio {
    color: var(--accent-red);
    font-weight: bold;
    font-size: 0.9rem;
}

.sede-actions {
    margin-top: auto;
    padding-top: 1.5rem;
}

.btn-consultar {
    width: 100%;
    background: linear-gradient(135deg, var(--success-green), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-consultar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

/* ====================================
   SECCIÓN DE DEPORTES
   ==================================== */
.deportes-section {
    padding: 5rem 0;
    background: var(--background-light);
}

.deportes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjeta de deporte — visible por defecto */
.deporte-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-light);
    border: 1px solid var(--background-lighter);
    transition: all 0.6s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.deporte-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--accent-red), var(--primary-light));
    transition: var(--transition-smooth);
}

.deporte-card.featured::before {
    background: linear-gradient(90deg, var(--accent-red), var(--accent-red-dark));
    height: 4px;
}

.deporte-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--shadow-medium);
}

.deporte-card:hover::before {
    background: linear-gradient(90deg, var(--accent-red), var(--accent-red-dark));
    height: 5px;
}

/* Animación de entrada controlada por JS */
.deporte-card.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.deporte-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.deporte-icon {
    font-size: 3rem;
    margin-right: 1rem;
    background: var(--background-light);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.deporte-header h3 {
    color: var(--primary-dark);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

.deporte-card h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: bold;
}

.deporte-card p,
.deporte-descripcion {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.deporte-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.deporte-details span {
    background: var(--background-light);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 13px;
    color: var(--primary-dark);
    font-weight: 600;
}

.deporte-stats {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background: var(--background-light);
    border-radius: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.stat-value {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 14px;
}

.deporte-sedes {
    margin-bottom: 1.5rem;
}

.sedes-label {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.sedes-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.sede-tag {
    background: var(--accent-red);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-reservar {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-reservar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

/* ====================================
   SECCIÓN DE SERVICIOS
   ==================================== */
.servicios-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--background-light), var(--white));
    position: relative;
}

.servicios-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="20"><circle cx="10" cy="10" r="0.5" fill="%23f8f9fa" opacity="0.3"/></pattern></defs><rect width="100" height="20" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.servicio-item {
    display: flex;
    align-items: flex-start;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 8px rgba(0, 0, 0, 0.06);
}

.servicio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-red));
    transition: all 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
}

.servicio-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.05) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
    border-radius: 50%;
}

.servicio-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 5px 20px rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.3);
}

.servicio-item:hover::before {
    transform: scaleX(1);
    height: 5px;
    background: linear-gradient(135deg, var(--accent-red), var(--primary-light));
}

.servicio-item:hover::after {
    transform: scale(1);
}

.servicio-icon {
    font-size: 3.5rem;
    margin-right: 2rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, var(--background-light), var(--white));
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 3;
}

.servicio-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-red));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.servicio-item:hover .servicio-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.3);
}

.servicio-item:hover .servicio-icon::before {
    opacity: 1;
}

.servicio-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.servicio-content h4 {
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    font-weight: 700;
    transition: all 0.3s ease;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.servicio-item:hover .servicio-content h4 {
    color: var(--accent-red);
    transform: translateX(5px);
}

.servicio-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    transition: all 0.3s ease;
}

.servicio-item:hover .servicio-content p {
    transform: translateX(3px);
}

/* ====================================
   SECCIÓN DE RESERVAS
   ==================================== */
.reservas-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--white);
}

.reservas-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.reservas-text h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.reservas-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.reservas-features {
    list-style: none;
    padding: 0;
}

.reservas-features li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reservas-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    color: var(--primary-dark);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.reservas-form h3 {
    margin-bottom: 2rem;
    color: var(--primary-dark);
    text-align: center;
    font-size: 1.6rem;
    font-weight: bold;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--background-lighter);
    border-radius: 10px;
    font-size: 16px;
    transition: var(--transition-smooth);
    background-color: var(--background-light);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-red);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Resultados de turnos */
.turnos-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 10px;
}

.turnos-result h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.turnos-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.turno-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--background-lighter);
    transition: var(--transition-smooth);
}

.turno-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.turno-hora {
    font-weight: 600;
    color: var(--primary-dark);
}

.turno-precio {
    color: var(--accent-red);
    font-weight: bold;
}

.turnos-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

/* Turno vencido */
.turno-item.vencido {
    background: rgba(156, 163, 175, 0.1);
    border-color: #9ca3af;
    opacity: 0.6;
    cursor: not-allowed;
}

.turno-item.vencido .turno-info {
    text-decoration: line-through;
    opacity: 0.7;
}

.turno-estado.vencido {
    color: #6b7280;
    font-style: italic;
}

/* ====================================
   SECCIÓN DE TORNEOS
   ==================================== */
.torneos-section {
    padding: 60px 0;
    background: var(--background-light);
}

.torneos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

/* Tarjeta de torneo */
.torneo-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.torneo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-dark));
}

.torneo-card.estado-abierto::before {
    background: linear-gradient(90deg, var(--success-green), #38ef7d);
}

.torneo-card.estado-en-curso::before {
    background: linear-gradient(90deg, var(--accent-red), var(--accent-red-dark));
}

.torneo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-medium);
    border-color: var(--accent-red);
}

/* Header del torneo */
.torneo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.torneo-nombre {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-dark);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

/* Badges de estado del torneo */
.torneo-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-abierto {
    background-color: #d4edda;
    color: #155724;
}

.badge-en-curso {
    background-color: #fff3cd;
    color: #856404;
}

.badge-finalizado {
    background-color: #d1ecf1;
    color: #0c5460;
}

.badge-cancelado {
    background-color: #f8d7da;
    color: #721c24;
}

/* Información del torneo — usa un info-item contextualizado */
.torneo-info {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.torneo-info .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
    font-size: 14px;
    color: inherit;
}

.torneo-info .info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-value {
    color: var(--primary-dark);
    font-size: 14px;
    text-align: right;
    font-weight: 500;
}

/* Descripción del torneo */
.torneo-descripcion {
    background-color: var(--background-light);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.torneo-descripcion p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

/* Premio */
.torneo-premio {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(255, 215, 0, 0.3);
}

.premio-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.premio-text {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

/* Participantes */
.torneo-participantes {
    margin-bottom: 16px;
}

.participantes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.participantes-label {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 14px;
}

.participantes-count {
    font-weight: bold;
    color: var(--accent-red);
    font-size: 14px;
}

.participantes-barra {
    height: 8px;
    background-color: var(--background-lighter);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.participantes-progreso {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.participantes-disponibles {
    color: var(--success-green);
    font-size: 13px;
    margin: 0;
    font-weight: 500;
}

.participantes-completo {
    color: var(--accent-red);
    font-size: 13px;
    margin: 0;
    font-weight: 600;
}

/* Barra de progreso alternativa */
.torneo-progreso {
    margin-bottom: 20px;
}

.progreso-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.progreso-barra {
    height: 10px;
    background: var(--background-lighter);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progreso-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progreso-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

/* Acciones del torneo */
.torneo-acciones {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    gap: 10px;
}

.btn-inscribirse,
.btn-inscribirse-disabled {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-inscribirse {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    color: var(--white);
}

.btn-inscribirse:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, var(--accent-red-dark) 0%, var(--accent-red-darker) 100%);
}

.btn-inscribirse:active {
    transform: translateY(0);
}

.btn-inscribirse-disabled {
    background-color: var(--primary-light);
    color: var(--white);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-inscripcion {
    flex: 1;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
}

.btn-inscripcion:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Estados vacío y error en torneos */
.torneos-empty,
.torneos-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.torneos-empty h3,
.torneos-error h3 {
    color: var(--primary-dark);
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.torneos-empty p,
.torneos-error p {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
}

/* Sin torneos */
.no-torneos-message {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-light);
}

.no-torneos-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-torneos-message h3 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.no-torneos-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.btn-reintentar {
    margin-top: 20px;
    padding: 12px 32px;
    background: var(--accent-red);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reintentar:hover {
    background: var(--accent-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-reintentar:active {
    transform: translateY(0);
}

/* ====================================
   SECCIÓN DE CONTACTO
   ==================================== */
.contacto-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contacto-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 3rem;
}

.contacto-intro {
    margin-bottom: 3rem;
    text-align: center;
}

.contacto-intro h3 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contacto-intro p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Sedes de contacto */
.sedes-contacto {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.sede-contacto {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    border-left: 5px solid var(--accent-red);
}

.sede-contacto.sede-sucursal {
    border-left-color: var(--primary-light);
}

/* Badge dentro de la sección contacto (posición absoluta) */
.sede-contacto .sede-badge {
    position: absolute;
    top: 10px;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sede-contacto .sede-badge.principal {
    background: var(--accent-red);
    color: var(--white);
}

.sede-contacto .sede-badge.sucursal {
    background: var(--primary-light);
    color: var(--white);
}

.sede-contacto h4 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.sede-details {
    display: grid;
    gap: 1.2rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.detail-item .icon {
    font-size: 1.3rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.detail-content strong {
    color: var(--primary-dark);
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.detail-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Métodos de contacto */
.contacto-metodos {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contacto-metodos h4 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
}

.metodos-grid {
    display: grid;
    gap: 1rem;
}

.metodo-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.metodo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.metodo-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.metodo-content strong {
    color: var(--primary-dark);
    display: block;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.metodo-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* Sidebar de contacto */
.contacto-sidebar {
    display: grid;
    gap: 1.5rem;
}

.contacto-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: var(--transition-smooth);
}

.contacto-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.contacto-icon {
    font-size: 2rem;
    margin-right: 1rem;
    width: 50px;
    text-align: center;
}

.contacto-item h4 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contacto-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* Info cards de sidebar */
.info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-light);
}

.info-card.sistema {
    border-top-color: var(--success-green);
}

.info-card.historia {
    border-top-color: var(--accent-red);
}

.info-card.ubicacion {
    border-top-color: var(--primary-light);
}

.info-card h4 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.sistema-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature {
    font-size: 0.9rem;
    color: var(--success-green);
    font-weight: 500;
}

/* Timeline */
.timeline {
    display: grid;
    gap: 1rem;
}

.timeline-item {
    padding-left: 1rem;
    border-left: 2px solid var(--background-lighter);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0.2rem;
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
}

.timeline-item strong {
    color: var(--accent-red);
    font-weight: 700;
    display: block;
    margin-bottom: 0.2rem;
}

.timeline-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.ubicacion-note {
    background: var(--background-light);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-light);
}

.ubicacion-note small {
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Redes sociales */
.redes-sociales {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.redes-sociales h4 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-medium));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    transition: var(--transition-smooth);
    color: var(--white);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* ====================================
   FOOTER
   ==================================== */
.main-footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-section p {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-medium);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* ====================================
   LOADING Y ERROR STATES
   ==================================== */

/* Spinner de sección (contenedor grande) */
.loading-spinner {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

/* Elemento spinner giratorio */
.spinner {
    border: 4px solid var(--background-lighter);
    border-top: 4px solid var(--accent-red);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

/* Spinner inline para botones */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.loading-mini {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
    font-style: italic;
}

.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 16px;
}

.loading-placeholder::before {
    content: "⏳ ";
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
}

.loading-placeholder p {
    font-size: 1.1rem;
    margin: 0;
}

/* Error de sección */
.error-message {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--accent-red);
}

.error-message h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.error-message p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.error-mini {
    color: var(--accent-red);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
    font-style: italic;
}

/* Icono de error (usado en múltiples contextos) */
.empty-icon,
.error-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.7;
    display: block;
}

/* ====================================
   TOAST DE ERRORES
   ==================================== */
.error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    animation: slideInRight 0.3s ease-out;
    max-width: 400px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
}

.error-content {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 16px 20px;
    border-radius: 10px;
    border-left: 4px solid #dc3545;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.error-text {
    flex: 1;
    font-weight: 500;
    line-height: 1.4;
}

.error-close {
    background: none;
    border: none;
    color: #721c24;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.error-close:hover {
    background: rgba(114, 28, 36, 0.15);
    transform: scale(1.1);
}

.error-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.error-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-cerrar-error {
    background: #6c757d;
    color: var(--white);
}

.btn-actualizar-turnos {
    background: #dc3545;
    color: var(--white);
}

/* ====================================
   BOTÓN ACTUALIZAR
   ==================================== */
.btn-actualizar {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem auto;
    display: block;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-actualizar:hover:not(.updating):not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-actualizar.updating,
.btn-actualizar:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    animation: pulse 1.5s infinite;
}

/* ====================================
   MODAL DE INSCRIPCIÓN AL TORNEO
   ==================================== */
.modal-inscripcion-torneo {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-inscripcion-torneo.active {
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-inscripcion-torneo.active .modal-container {
    transform: scale(1);
}

/* Header del modal (unificado — usa el design system) */
.modal-header {
    padding: 24px;
    border-bottom: 2px solid var(--background-lighter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: var(--white);
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.modal-footer {
    padding: 16px 24px;
    border-top: 2px solid var(--background-lighter);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: var(--background-light);
}

/* Contenido del modal de torneo */
.torneo-info-modal {
    background: var(--background-light);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid var(--accent-red);
}

.torneo-info-modal h4 {
    margin: 0 0 16px 0;
    color: var(--primary-dark);
    font-size: 20px;
}

.info-grid {
    display: grid;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.info-row .label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
}

.info-row .value {
    color: var(--primary-dark);
    font-weight: 500;
    text-align: right;
}

/* Métodos de contacto en modal */
.metodos-contacto {
    margin-bottom: 24px;
}

.metodos-contacto h5 {
    margin: 0 0 16px 0;
    color: var(--primary-dark);
    font-size: 16px;
    font-weight: 600;
}

.btn-contacto {
    width: 100%;
    padding: 16px;
    margin-bottom: 12px;
    border: 2px solid var(--background-lighter);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.btn-contacto:hover {
    border-color: var(--accent-red);
    background: var(--background-light);
    transform: translateX(4px);
}

.btn-contacto .icono {
    font-size: 32px;
    flex-shrink: 0;
}

.btn-contacto .texto {
    text-align: left;
    flex: 1;
}

.btn-contacto .texto strong {
    display: block;
    color: var(--primary-dark);
    font-size: 16px;
    margin-bottom: 2px;
}

.btn-contacto .texto small {
    color: var(--text-secondary);
    font-size: 13px;
}

.btn-contacto.whatsapp:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.05);
}

.btn-contacto.telefono:hover {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}

.btn-contacto.presencial:hover {
    border-color: var(--accent-red);
    background: rgba(231, 76, 60, 0.05);
}

/* Info adicional en modal */
.info-adicional {
    background: #fff3cd;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin-top: 20px;
}

.info-adicional p {
    margin: 0 0 8px 0;
    color: #856404;
    font-weight: 600;
}

.info-adicional ul {
    margin: 0;
    padding-left: 20px;
}

.info-adicional li {
    color: #856404;
    margin-bottom: 4px;
    font-size: 14px;
}

.info-adicional li.urgente {
    color: #d32f2f;
    font-weight: 600;
}

/* Pasos de inscripción */
.inscripcion-pasos {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.inscripcion-pasos li {
    padding: 12px;
    margin-bottom: 10px;
    background: var(--background-light);
    border-radius: 8px;
    border-left: 4px solid var(--accent-red);
    font-size: 1rem;
    color: var(--primary-dark);
}

.btn-secundario,
.btn-cerrar {
    padding: 10px 24px;
    border: 2px solid var(--background-lighter);
    background: var(--white);
    color: var(--primary-dark);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secundario:hover,
.btn-cerrar:hover {
    background: var(--background-light);
    border-color: var(--primary-light);
}

/* Modal backdrop */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
}

/* ====================================
   MODAL DE RESERVAS
   ==================================== */
.modal-reserva-overlay,
.modal-confirmacion-overlay {
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.7);
}

.modal-reserva-container,
.modal-confirmacion-container {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-visible .modal-reserva-container,
.modal-visible .modal-confirmacion-container {
    animation: modalEnter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-continuar:hover,
.btn-confirmar:hover:not(:disabled) {
    box-shadow: 0 12px 30px rgba(231, 76, 60, 0.4);
    transform: translateY(-3px);
}

.btn-volver:hover,
.btn-cancelar:hover {
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
    transform: translateY(-2px);
}

.btn-confirmar:disabled {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ====================================
   ANIMACIONES — (Una sola definición cada una)
   ==================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(100%); opacity: 0; }
}

@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%);  }
}

@keyframes pulse {
    0%   { opacity: 0.7; }
    50%  { opacity: 1; }
    100% { opacity: 0.7; }
}

@keyframes modalEnter {
    0%   { opacity: 0; transform: scale(0.8) translateY(60px); }
    50%  { opacity: 0.8; transform: scale(1.02) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Animaciones de entrada automáticas (sin JS) */
@media (prefers-reduced-motion: no-preference) {
    .sede-card:not(.animate-in),
    .deporte-card:not(.animate-in) {
        animation: fadeInUp 0.6s ease-out;
    }

    .sede-card:nth-child(2) { animation-delay: 0.1s; }
    .deporte-card:nth-child(2) { animation-delay: 0.1s; }
    .deporte-card:nth-child(3) { animation-delay: 0.2s; }
    .deporte-card:nth-child(4) { animation-delay: 0.3s; }
    .deporte-card:nth-child(5) { animation-delay: 0.4s; }
}

/* ====================================
   HOVER MEJORADO (DISPOSITIVOS CON HOVER)
   ==================================== */
@media (hover: hover) {
    .btn-primary:hover {
        box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    }

    .nav-link:hover {
        transform: translateY(-1px);
    }
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Tablet grande */
@media (max-width: 1024px) {
    .reservas-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contacto-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sedes-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .torneos-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

/* Móvil grande */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-section {
        padding: 100px 15px 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .sedes-section {
        padding: 3rem 0;
    }

    .sedes-grid,
    .deportes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sede-card,
    .deporte-card {
        padding: 1.5rem;
    }

    .deporte-header {
        flex-direction: column;
        text-align: center;
    }

    .deporte-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .servicio-item {
        padding: 2rem;
        flex-direction: column;
        text-align: center;
    }

    .servicio-icon {
        margin-right: 0;
        margin-bottom: 1.5rem;
        width: 70px;
        height: 70px;
        font-size: 3rem;
    }

    .servicio-item:hover {
        transform: translateY(-8px) scale(1.01);
    }

    .torneos-section {
        padding: 40px 0;
    }

    .torneos-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .torneo-card {
        padding: 20px;
    }

    .torneo-header {
        flex-direction: column;
        gap: 8px;
    }

    .torneo-badge {
        align-self: flex-start;
    }

    .torneo-nombre {
        font-size: 18px;
    }

    .torneos-empty h3,
    .torneos-error h3 {
        font-size: 20px;
    }

    .empty-icon,
    .error-icon {
        font-size: 60px;
    }

    .contacto-content {
        gap: 2rem;
    }

    .sede-contacto {
        padding: 1.5rem;
    }

    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .metodo-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .contacto-intro h3 {
        font-size: 1.6rem;
    }

    .modal-container {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h3 {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .btn-contacto {
        padding: 14px;
    }

    .btn-contacto .icono {
        font-size: 28px;
    }

    .btn-contacto .texto strong {
        font-size: 15px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .info-row .value {
        text-align: left;
    }

    .error-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .error-content {
        padding: 14px 16px;
    }

    .error-text {
        font-size: 14px;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .reservas-form {
        padding: 1.5rem;
    }

    .servicio-item {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .servicio-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }

    .servicio-content h4 {
        font-size: 1.2rem;
    }

    .servicio-content p {
        font-size: 0.9rem;
    }

    .torneo-card {
        padding: 16px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .info-value {
        text-align: left;
    }

    .contacto-section {
        padding: 3rem 0;
    }

    .sedes-contacto {
        gap: 1.5rem;
    }

    .sede-contacto .sede-badge {
        position: relative;
        top: 0;
        right: 0;
        display: inline-block;
        margin-bottom: 1rem;
    }

    .modal-container {
        border-radius: 12px;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-body {
        padding: 16px;
    }

    .torneo-info-modal {
        padding: 16px;
    }
}