@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;900&family=Barlow:wght@400;500;600&display=swap');

* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    margin: 0;
    color: #333;
}

header {
    background-color: #2e7d32;
    color: white;
    padding: 1rem;
    text-align: center;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input,
select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn {
    background-color: #2e7d32;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
}

.btn:hover {
    background-color: #1b5e20;
}

.grid-partidos {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.partido-item {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 24px;
    border-radius: 24px;
    border-left: 8px solid #10b981;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
}

.partido-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
}

.partido-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    pointer-events: none;
    z-index: 1;
}

.partido-item .jugadores-list {
    margin: 0;
    gap: 0.8rem;
}

.partido-item .jugador-avatar {
    width: 44px;
    height: 44px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 2px solid white;
}

.partido-item .jugador-avatar.placeholder {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    color: #94a3b8;
    box-shadow: none;
}


/*///////////////////////////////////////
/* ESTILOS PARA INDEX */
/*/////////////////////////////////////////                        

/* Estilos para la botonera de Fechas */
.date-grid {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-bottom: 0.5rem;
}

@media (min-width: 769px) {
    .date-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        overflow-x: visible;
    }
}

/* Truco pro: Ocultamos la barrita gris del scroll para que quede súper limpio */
.date-grid::-webkit-scrollbar {
    display: none;
}

.date-btn {
    flex-shrink: 0;
    /* 🚨 REGLA DE ORO: Evita que el celular intente aplastarlos 🚨 */
    white-space: nowrap;
    /* Evita que el texto baje a un segundo renglón */

    /* --- Tus estilos originales quedan intactos --- */
    padding: 0.5rem 0.5rem;
    background-color: white;
    border: 2px solid #2e7d32;
    color: black;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 0.75rem;
}

.date-btn:hover {
    background-color: #e8f5e9;
}

.date-btn.selected {
    background-color: #2e7d32;
    color: white;
}

/* Estilos para la botonera de horarios */
.time-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /* 7 columnas para alinear con los días */
    gap: 0.5rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .time-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

.time-btn {
    position: relative;
    padding: 0.75rem 0.5rem;
    background-color: white;
    border: 2px solid #2e7d32;
    color: black;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.time-btn:hover {
    background-color: #e8f5e9;
}

.time-btn-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #69f50b;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 2;
    pointer-events: none;
    line-height: 1;
}

/* Evitar que el badge quede opaco si el botón está seleccionado */
.time-btn.selected .time-btn-badge {
    border: 1px solid #fff;
}

/* Estilos para la botonera de Canchas */
.cancha-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.cancha-btn {
    width: 100%;
    padding: 0.65rem 1rem;
    background-color: white;
    border: 2px solid #2e7d32;
    color: black;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.cancha-btn:hover {
    background-color: #e8f5e9;
}

.cancha-btn.selected {
    background-color: #2e7d32;
    color: white;
}

/* Botonera redondeada de Nivel del Partido (1 a 8) */
.nivel-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.nivel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #cbd5e1;
    color: black;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nivel-btn:hover {
    border-color: #2e7d32;
    color: #2e7d32;
    background-color: #e8f5e9;
}

.nivel-btn.selected {
    background-color: #2e7d32;
    border-color: #2e7d32;
    color: white;
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.35);
}

/* Celular: los 8 niveles en una sola fila */
@media (max-width: 768px) {
    .nivel-grid {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: 0.35rem;
    }

    .nivel-btn {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        max-width: 40px;
        justify-self: center;
        font-size: 0.85rem;
        border-width: 1.5px;
    }
}

/* Clase dinámica cuando el usuario hace clic */
.time-btn.selected {
    background-color: #2e7d32;
    color: white;
}

/* Estilo para los botones de horario cuando están ocupados */
.time-btn:disabled {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    color: #bdbdbd;
    cursor: not-allowed;
    text-decoration: line-through;
    /* Una línea tachando la hora */
}

/* ── Modal de Confirmación — Diseño Premium ── */
@keyframes modalBackdropIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 2000;
    padding: 0 0 env(safe-area-inset-bottom, 0);
    animation: modalBackdropIn 0.22s ease both;
}

@media (min-width: 540px) {
    .modal-overlay {
        align-items: center;
    }
}

.modal-content {
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 440px;
    padding: 28px 24px 28px;
    box-shadow:
        0 -4px 40px rgba(0, 0, 0, 0.14),
        0 2px 8px rgba(0, 0, 0, 0.06);
    animation: modalSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    position: relative;
    overflow: hidden;
}

@media (min-width: 540px) {
    .modal-content {
        border-radius: 24px;
        width: 90%;
        padding: 32px 28px 28px;
    }
}

/* Pill handle (mobile) */
.modal-content::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 99px;
    margin: -12px auto 20px;
}

@media (min-width: 540px) {
    .modal-content::before {
        display: none;
    }
}

/* Subtle gradient accent strip at top */
.modal-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #16a34a, #4ade80, #16a34a);
    background-size: 200% 100%;
    animation: shimmerBar 3s linear infinite;
}

@keyframes shimmerBar {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ── Modal header ── */
.modal-header-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.5rem;
}

.modal-content h3 {
    margin: 0 0 4px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    margin: 0 0 20px;
    font-size: 0.85rem;
    color: #64748b;
    text-align: center;
}

/* ── Modal data rows ── */
.modal-datos {
    background: #f8fafc;
    border: 1px solid #e8ecf4;
    border-radius: 16px;
    padding: 6px 16px;
    margin: 0 0 20px;
    text-align: left;
    overflow: hidden;
}

.modal-datos p {
    margin: 0.5rem 0;
}

.modal-dato-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
}

.modal-dato-row+.modal-dato-row,
#modal-precio-row .modal-dato-row {
    border-top: 1px solid #e8ecf4;
}

/* El wrapper no debe agregar espacio propio — la fila interna se ve igual que DÍA/HORARIO/CANCHA */
#modal-precio-row {
    display: contents;
}

/* Cuando contiene el chip (descuento activo), volver a bloque con padding y separador */
#modal-precio-row:has(.precio-chip) {
    display: block;
    padding: 8px 0 4px;
    border-top: 1px solid #e8ecf4;
}

.modal-dato-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
}

.modal-dato-label svg {
    width: 14px;
    height: 14px;
    stroke: #94a3b8;
    flex-shrink: 0;
}

.modal-dato-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    text-align: right;
}

.modal-dato-value.precio {
    color: #16a34a;
    font-size: 1.05rem;
}

/* ── Modal buttons ── */
.modal-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.modal-buttons .btn {
    border-radius: 14px;
    padding: 14px 12px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.modal-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.25);
}

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

/* ── Modal Resultado (éxito / error) ── */
.modal-resultado-content {
    text-align: center;
    padding: 36px 28px 32px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.modal-resultado-content::before {
    display: none !important;
}

.modal-resultado-icon {
    margin-bottom: 8px;
    animation: resultIconPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes resultIconPop {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-resultado-titulo {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 4px 0 0;
    letter-spacing: -0.01em;
}

.modal-resultado-msg {
    font-size: 0.95rem;
    color: #64748b;
    margin: 4px 0 12px;
    line-height: 1.5;
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
    box-shadow: none !important;
    transform: translateY(-1px) !important;
}

/* ── Toggle de Visibilidad (Público / Privado) ── */
.vis-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
    display: block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.visibilidad-toggle {
    display: flex;
    justify-content: center;
}

.vis-track {
    position: relative;
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    gap: 0;
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 300px;
}

.vis-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: #ffffff;
    border-radius: 9px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.vis-indicator.privado {
    transform: translateX(calc(100% + 0px));
}

.vis-btn {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.vis-btn svg {
    flex-shrink: 0;
    transition: stroke 0.2s ease;
}

.vis-btn.active-publico {
    color: #16a34a;
}

.vis-btn.active-privado {
    color: #7c3aed;
}

.vis-desc {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 10px;
    text-align: center;
    font-style: italic;
    transition: color 0.2s;
}


/* Colores para los nuevos botones */
.btn-salir {
    background-color: #ff9800;
}

.btn-salir:hover {
    background-color: #e68a00;
}

.btn-cancelar {
    background-color: #f44336;
}

.btn-cancelar:hover {
    background-color: #d32f2f;
}

.botones-partido {
    display: flex;
    gap: 0.5rem;
    margin-top: 10px;
    flex-wrap: wrap;
}


/*////////////////////////////////////////////////////
/* Estilos para el perfil de usuario */
/*//////////////////////////////////////////////////////*/

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.btn-logout {
    background-color: #d32f2f;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    margin-left: 10px;
}

/* Estilos para el Menú Desplegable del Perfil */
.perfil-container {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: white;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dropdown-header {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
}

.dropdown-item {
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: background-color 0.2s;
    cursor: pointer;
    display: block;
}

.dropdown-item:hover {
    background-color: #f1f1f1;
}

.dropdown-item.danger {
    color: #d32f2f;
    border-top: 1px solid #eee;
}

/* Estilos para la lista de jugadores en cada partido */
.jugadores-list {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    justify-content: flex-start;
}

.jugador-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px;
}

.jugador-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2e7d32;
    background-color: white;
}

/* Estilo para los lugares libres (huecos vacíos) */
.jugador-avatar.placeholder {
    background-color: #f5f5f5;
    border: 2px dashed #bdbdbd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9e9e9e;
    font-weight: bold;
    font-size: 1.2rem;
}

.jugador-nombre {
    font-size: 0.7rem;
    margin-top: 4px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.jugador-mini.vacio .jugador-nombre {
    color: #9e9e9e;
}

/* Estilos para el ítem de la lista del Ranking */
.ranking-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    /* Ajustamos el padding para un mejor equilibrio */
    background-color: white;

    /* MODIFICADO: Agregamos una separación sutil entre jugadores */
    margin-bottom: 8px;
    border-radius: 8px;
    /* Bordes redondeados para la tarjeta */
    border: 1px solid #eaeaea;
    /* Borde sutil */

    /* MODIFICADO: Efecto de sombra sutil */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);

    transition: transform 0.2s, box-shadow 0.2s;
    /* Para un efecto hover opcional */
}

/* MODIFICADO: Efecto hover opcional para mayor interactividad */
.ranking-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* MODIFICADO: Estilos para la foto del jugador */
.ranking-foto {
    width: 40px;
    /* Tamaño un poco más chico (antes 45px o 50px) */
    height: 40px;
    /* Altura igual al ancho para mantener proporción circular */
    border-radius: 50%;
    /* Hace la foto completamente redonda */
    object-fit: cover;
    /* Asegura que la imagen cubra el círculo sin deformarse */
    margin-right: 15px;
    /* Espacio entre la foto y el nombre */
    border: 2px solid #eaeaea;
    /* Borde sutil alrededor de la foto */
}

/* --- BOTÓN DE GOOGLE RESPONSIVO --- */
.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    color: #444;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-google img {
    width: 18px;
    height: 18px;
}

@media (max-width: 600px) {

    /* 1. Ocultamos el texto del botón de Google */
    .google-text {
        display: none !important;
    }

    /* 2. Ajustamos la barra verde (header) para achicar márgenes */
    header {
        padding: 10px 5px !important;
        /* Quitamos espacio inútil a los costados */
        gap: 5px !important;
        /* Juntamos un poquito más los elementos */
    }

    /* 3. Achicamos un poco el título principal */
    header h1 {
        font-size: 1.1rem !important;
        line-height: 1.1 !important;
    }

    /* 4. Achicamos la letra de los links (Torneos, Ranking) */
    header a {
        font-size: 0.85rem !important;
        padding: 5px !important;
    }

    /* 5. Convertimos el botón de Google en un círculo perfecto */
    .btn-google {
        padding: 6px !important;
        border-radius: 50% !important;
        width: 36px;
        height: 36px;
        justify-content: center;
        margin: 0 !important;
    }

    table,
    .table-container {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        /* Evita que los textos se aprieten hacia abajo */
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
        /* Hace que el deslizamiento con el dedo sea súper suave */
    }

    /* Achicamos un poco la letra de la tabla para que entre más info en la pantalla */
    table th,
    table td {
        padding: 8px !important;
        font-size: 0.9rem !important;
    }

    /* --- SCROLL HORIZONTAL PARA LOS DÍAS --- */
    .contenedor-dias {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        /* Espacio entre los botones */
        padding-bottom: 10px;
        /* Un respirito abajo para que no se pegue la barra de scroll */

        /* 🍏 El truco de oro para que el scroll en iPhone/iOS sea súper suave: */
        -webkit-overflow-scrolling: touch;
    }

    /* Evitamos que el navegador intente aplastar los botones para que entren todos */
    .contenedor-dias>* {
        flex-shrink: 0;
    }

    /* Opcional: Hacemos la barrita de scroll más finita y elegante */
    .contenedor-dias::-webkit-scrollbar {
        height: 4px;
    }

    .contenedor-dias::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 4px;
    }

}

/* =========================================
           📱 DISEÑO RESPONSIVO (MENÚ DESLIZABLE)
           ========================================= */
.mobile-header {
    display: none;
}

.overlay-menu {
    display: none;
}

@media (max-width: 768px) {
    body {
        display: block;
    }

    /* Barrita superior verde para celulares */
    .mobile-header {
        display: flex;
        align-items: center;
        background-color: #2e7d32;
        color: white;
        padding: 10px 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 900;
        box-sizing: border-box;
    }

    .mobile-header button {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0;
    }

    .mobile-header h2 {
        margin: 0 0 0 15px;
        font-size: 1.2rem;
    }

    /* El Menú Lateral (Oculto a la izquierda por defecto) */
    .sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        /* Escondido fuera de la pantalla */
        width: 250px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        /* Animación de deslizamiento */
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    }

    /* Cuando JavaScript le agrega esta clase, el menú entra a la pantalla */
    .sidebar.abierto {
        left: 0;
    }

    /* Fondo oscuro transparente atrás del menú */
    .overlay-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
        /* Oculto por defecto */
    }

    .overlay-menu.activo {
        display: block;
        /* Se muestra cuando el menú está abierto */
    }

    /* Ajustes para que el contenido no quede tapado por la barrita superior */
    .main-content {
        margin-top: 60px;
        /* Espacio para la barrita */
        padding: 15px 10px;
    }

    /* La tabla para que se pueda scrollear hacia los costados */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
    }

    #form-crear-torneo {
        grid-template-columns: 1fr !important;
    }
}


/* ── NAV UNIVERSAL ── */
header,
.mobile-header {
    display: none !important;
}

/* oculta header viejo si existe */

.nav-universal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(90deg, #062814 0%, #0a381d 55%, #072c16 100%);
    border-bottom: 1px solid rgba(34, 197, 94, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
}

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    color: #4caf50;
    text-decoration: none;
    white-space: nowrap;
}

.nav-logo span {
    color: #fff;
    font-family: inherit;
}

/* ── Logo del club (plan premium) ── */
.nav-logo-club {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    animation: navClubFadeIn .4s ease both;
}

@keyframes navClubFadeIn {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-club-img {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-club-nombre span {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-hamburger {
    display: none;
    background: none;
    border: 1px solid rgba(34, 197, 94, .4);
    color: #a5d6a7;
    font-size: 1.3rem;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.nav-links-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links-wrap a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

/* Separadores verticales entre botones inactivos */
.nav-links-wrap a::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.nav-links-wrap a:first-child::before,
.nav-links-wrap a.nav-active::before,
.nav-links-wrap a.nav-active+a::before,
.nav-links-wrap a:hover::before,
.nav-links-wrap a:hover+a::before {
    opacity: 0;
}

.nav-link-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.25s ease, filter 0.25s ease, transform 0.25s ease;
}

.nav-links-wrap a:hover:not(.nav-active) {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.35);
    color: #ffffff;
}

.nav-links-wrap a:hover .nav-link-icon {
    color: #ffffff;
}

.nav-links-wrap a.nav-active {
    background: radial-gradient(ellipse at center, rgba(6, 40, 20, 0.92) 35%, rgba(22, 163, 74, 0.55) 100%);
    border-color: #22c55e;
    color: #ffffff;
    box-shadow:
        0 0 16px rgba(34, 197, 94, 0.5),
        inset 0 0 12px rgba(34, 197, 94, 0.45);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.nav-links-wrap a.nav-active .nav-link-icon {
    color: #ffffff;
    filter: drop-shadow(0 0 4px rgba(74, 222, 128, 0.45));
}

.nav-links-wrap a.nav-active::after {
    content: '';
    position: absolute;
    bottom: -1.5px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 2.5px;
    background: #4ade80;
    border-radius: 999px;
    box-shadow: 0 0 8px #4ade80, 0 0 14px #22c55e;
}

.nav-links-wrap a.nav-admin {
    background: rgba(46, 26, 110, .6);
    color: #ce93d8;
    border-radius: 20px;
    padding: 6px 12px;
}

/* Auth section */
.nav-auth-section {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 16px;
    margin-left: 6px;
}

.nav-auth-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.22);
}

.btn-google-nav {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: white;
    color: #333;
    border: none;
    padding: 7px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
}

.btn-google-nav img {
    width: 16px;
    height: 16px;
}

.nav-avatar-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 999px;
    user-select: none;
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.45);
    object-fit: cover;
    cursor: pointer;
    display: block;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-avatar-trigger:hover .nav-avatar {
    box-shadow: 0 0 14px rgba(74, 222, 128, 0.75);
}

.nav-avatar-chevron {
    color: rgba(255, 255, 255, 0.9);
    transition: transform 0.25s ease, color 0.2s ease;
    flex-shrink: 0;
}

.nav-avatar-trigger.open .nav-avatar-chevron {
    transform: rotate(180deg);
    color: #4ade80;
}

.nav-dropdown {
    position: absolute;
    top: 54px;
    right: 10px;
    background: #0a2815;
    border: 1px solid rgba(34, 197, 94, .3);
    min-width: 180px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
    z-index: 200;
    overflow: hidden;
    display: none;
    flex-direction: column;
}

.nav-dropdown.open {
    display: flex;
}

.nav-dropdown-header {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(34, 197, 94, .2);
    background: #06190d;
}

.nav-dropdown-header span {
    display: block;
}

.nav-dropdown-name {
    font-weight: 700;
    color: #e8f5e9;
    font-size: 0.9rem;
}

.nav-dropdown-cat {
    font-size: 0.78rem;
    color: #6a9e6a;
    margin-top: 2px;
}

.nav-dropdown a {
    padding: 11px 14px;
    text-decoration: none;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background .15s;
    cursor: pointer;
    display: flex;
    align-items: center;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.nav-dropdown a:hover {
    background: rgba(34, 197, 94, .15);
}

.nav-dropdown a.danger {
    color: #ef5350;
    border-top: 1px solid rgba(34, 197, 94, .2);
}

@media (max-width: 1120px) {
    .nav-links-wrap a {
        padding: 7px 12px;
        font-size: 0.84rem;
        gap: 6px;
    }
}

@media (max-width: 920px) {
    .nav-universal {
        padding: 0.65rem 1rem;
    }

    .nav-right {
        gap: 6px;
    }

    .nav-hamburger {
        display: block;
    }

    .nav-auth-section {
        padding-left: 0;
        margin-left: 0;
    }

    .nav-avatar-trigger {
        padding: 0;
        gap: 5px;
    }

    .nav-auth-section::before {
        display: none;
    }

    .nav-links-wrap {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #072814;
        border-bottom: 1px solid rgba(34, 197, 94, .25);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
        flex-direction: column;
        padding: 10px;
        gap: 6px;
        z-index: 150;
    }

    .nav-links-wrap.open {
        display: flex;
    }

    .nav-links-wrap a {
        width: 100%;
        text-align: left;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(34, 197, 94, .18);
        border-radius: 12px;
        padding: 10px 14px;
    }

    .nav-links-wrap a::before,
    .nav-links-wrap a.nav-active::after {
        display: none;
    }

    .nav-links-wrap a.nav-active {
        background: radial-gradient(ellipse at center, rgba(6, 40, 20, 0.92) 35%, rgba(22, 163, 74, 0.5) 100%);
        border-color: #22c55e;
        box-shadow: 0 0 12px rgba(34, 197, 94, 0.35), inset 0 0 10px rgba(34, 197, 94, 0.35);
    }

    .btn-google-nav .google-text {
        display: none;
    }

    .btn-google-nav {
        padding: 7px;
        border-radius: 50%;
        width: 34px;
        height: 34px;
        justify-content: center;
    }
}

/* =========================================
   🔘 BOTONES FLOTANTES (WSP & MAPA)
   ========================================= */
.floating-buttons-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

@media (max-width: 640px) {
    .floating-buttons-container {
        bottom: 85px;
    }
}

.float-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.float-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.wsp-btn {
    background-color: #25d366;
}

.wsp-btn:hover {
    background-color: #20bd5a;
}

.map-btn {
    background-color: #ea4335;
}

.map-btn:hover {
    background-color: #d33b2e;
}

@media (max-width: 480px) {
    .club-header-nombre {
        font-size: 1.25rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 52vw;
    }
}

/* ════════════════════════════════════════════
   NOTIF BADGE — Badge en dropdown del navbar
   ════════════════════════════════════════════ */

.nav-notif-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    background: #ef4444;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 0 4px;
    margin-left: auto;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4);
    animation: fab-badge-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ════════════════════════════════════════════
   FAB NAV — Botonera flotante móvil
   Solo visible en pantallas ≤ 640px
   ════════════════════════════════════════════ */

.fab-nav {
    display: none;
    /* oculto por defecto en desktop */
}

@media (max-width: 640px) {
    .fab-nav {
        display: flex;
        position: fixed;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        min-width: 240px;
        max-width: calc(100vw - 40px);
        z-index: 1000;
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.6);
        border-radius: 999px;
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.12),
            0 2px 8px rgba(0, 0, 0, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
        padding: 6px 8px;
        gap: 2px;
    }

    .fab-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 9px 16px;
        text-decoration: none;
        color: #94a3b8;
        font-size: 0.65rem;
        font-weight: 600;
        font-family: 'DM Sans', sans-serif;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        border-radius: 999px;
        transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
        position: relative;
        -webkit-tap-highlight-color: transparent;
        white-space: nowrap;
    }

    .fab-btn:active {
        transform: scale(0.91);
    }

    .fab-btn svg {
        transition: transform 0.2s ease, stroke 0.2s ease;
        stroke-width: 1.8;
    }

    .fab-btn:hover svg,
    .fab-btn--active svg {
        transform: translateY(-1px);
    }

    /* Botón activo (página actual) */
    .fab-btn--active {
        color: #0f172a;
        background: rgba(16, 185, 129, 0.10);
    }

    .fab-btn--active svg {
        stroke: #10b981;
    }

    .fab-btn--active span:last-child {
        color: #10b981;
    }

    /* ── Badge de notificaciones ── */
    .fab-badge-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .fab-badge {
        position: absolute;
        top: -5px;
        right: -7px;
        min-width: 16px;
        height: 16px;
        background: #ef4444;
        color: #fff;
        font-size: 0.6rem;
        font-weight: 800;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
        border: 1.5px solid rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
        animation: fab-badge-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }

    @keyframes fab-badge-pop {
        from {
            transform: scale(0);
            opacity: 0;
        }

        to {
            transform: scale(1);
        }
    }
}

/* Grilla responsive para Configuración de Precios */
.config-precios-grid {
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 2.5rem 2.5rem;
}

@media (max-width: 768px) {
    .config-precios-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem 1.5rem;
        gap: 20px;
    }
}

/* ══════════════════════════════════════
   PRECIO CHIP — Componente de precio con descuento
   Fondo del modal: blanco (#fff) / gris claro (#f8fafc)
══════════════════════════════════════ */
.precio-chip {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    min-height: 52px;
}

.precio-chip__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dcfce7;
    color: #16a34a;
    width: 44px;
    min-height: 52px;
    flex-shrink: 0;
    border-right: 1.5px solid #bbf7d0;
}

.precio-chip__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 12px;
    flex: 1;
    gap: 2px;
}

.precio-chip__label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    color: #64748b;
    text-transform: uppercase;
    line-height: 1;
}

.precio-chip__nums {
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: wrap;
}

.precio-chip__original {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 400;
    line-height: 1;
}

.precio-chip__original:empty {
    display: none;
}

.precio-chip__final {
    font-size: 1.35rem;
    font-weight: 800;
    color: #14532d;
    line-height: 1;
    letter-spacing: -0.01em;
}

.precio-chip__badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0 12px;
    min-height: 52px;
    white-space: nowrap;
    border-left: 1.5px solid #bbf7d0;
    letter-spacing: 0.02em;
}

.precio-chip__badge:empty {
    display: none;
    border-left: none;
    padding: 0;
}

/* Dark mode override — cuando el body tiene un tema oscuro */
body.dark .precio-chip,
[data-theme="dark"] .precio-chip {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(74, 222, 128, 0.25);
}

body.dark .precio-chip__icon,
[data-theme="dark"] .precio-chip__icon {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-right-color: rgba(74, 222, 128, 0.2);
}

body.dark .precio-chip__label,
[data-theme="dark"] .precio-chip__label {
    color: rgba(255, 255, 255, 0.45);
}

body.dark .precio-chip__original,
[data-theme="dark"] .precio-chip__original {
    color: rgba(255, 255, 255, 0.35);
}

body.dark .precio-chip__final,
[data-theme="dark"] .precio-chip__final {
    color: #f0fdf4;
}

body.dark .precio-chip__badge,
[data-theme="dark"] .precio-chip__badge {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border-left-color: rgba(74, 222, 128, 0.2);
}

/* ═══════════════════════════════════════════════
   TARJETA DE PARTIDO DISPONIBLE (turnos de pádel)
   ═══════════════════════════════════════════════ */
.partido-item.partido-card {
    gap: 18px;
    padding: 24px 22px 22px;
}

.partido-card .pc-deco {
    position: absolute;
    top: 46px;
    right: -26px;
    width: 120px;
    height: 120px;
    color: #10b981;
    opacity: 0.13;
    pointer-events: none;
    z-index: 1;
}

.partido-card .pc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.partido-card .pc-fecha,
.partido-card .pc-hora {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.partido-card .pc-hora {
    margin-top: 8px;
}

.partido-card .pc-fecha svg,
.partido-card .pc-hora svg {
    width: 26px;
    height: 26px;
    color: #15803d;
    flex-shrink: 0;
}

.partido-card .pc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    white-space: nowrap;
}

.partido-card .pc-badge.privado {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}

.partido-card .pc-badge svg {
    width: 16px;
    height: 16px;
}

.partido-card .pc-info {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    position: relative;
    z-index: 2;
}

.partido-card .pc-cancha {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    color: #1e293b;
    flex: 1 1 auto;
    min-width: 0;
}

.partido-card .pc-cancha svg {
    width: 20px;
    height: 20px;
    color: #16a34a;
    flex-shrink: 0;
}

.partido-card .pc-divider {
    flex-shrink: 0;
    width: 1px;
    height: 24px;
    background: #e2e8f0;
}

.partido-card .pc-categoria {
    flex-shrink: 0;
    background: #dcfce7;
    color: #166534;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.partido-card .pc-jugadores {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px;
    position: relative;
    z-index: 2;
}

.partido-card .pc-jug-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.partido-card .pc-jug-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1e293b;
}

.partido-card .pc-jug-title svg {
    width: 22px;
    height: 22px;
    color: #16a34a;
    flex-shrink: 0;
}

.partido-card .pc-contador {
    background: #e2e8f0;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
}

.partido-card .pc-contador.completo {
    background: #dcfce7;
    color: #166534;
}

.partido-card .pc-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.partido-card .pc-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.partido-card .pc-avatar-wrap {
    position: relative;
    width: 100%;
    max-width: 58px;
    aspect-ratio: 1 / 1;
}

.partido-card .pc-avatar {
    display: block;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #22c55e;
    padding: 2px;
    background: #fff;
}

.partido-card .pc-check {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partido-card .pc-check svg {
    width: 11px;
    height: 11px;
}

.partido-card .pc-vacio {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px dashed #86efac;
    background: rgba(220, 252, 231, 0.35);
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partido-card .pc-vacio svg {
    width: 40%;
    height: 40%;
}

.partido-card .pc-nombre {
    max-width: 100%;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.partido-card .pc-slot.libre .pc-nombre {
    color: #94a3b8;
    font-weight: 500;
}

.partido-card .pc-acciones {
    margin-top: auto;
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.partido-card .pc-acciones:empty {
    display: none;
}

.partido-card .pc-btn {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 18px;
    border: none;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.partido-card .pc-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.partido-card .pc-btn-sep {
    width: 1px;
    height: 20px;
    background: currentColor;
    opacity: 0.35;
}

.partido-card .pc-btn-primary,
.partido-card .pc-btn-primary:hover {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    color: #fff;
}

.partido-card .pc-btn-primary {
    box-shadow: 0 8px 20px -6px rgba(22, 163, 74, 0.55);
}

.partido-card .pc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(22, 163, 74, 0.6);
}

.partido-card .pc-btn-salir {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

.partido-card .pc-btn-salir:hover {
    background: #ffedd5;
    transform: translateY(-2px);
}

.partido-card .pc-btn-cancelar {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.partido-card .pc-btn-cancelar:hover {
    background: #fecaca;
    transform: translateY(-2px);
}

.partido-card .pc-btn-disabled,
.partido-card .pc-btn-disabled:hover {
    background: #e5e7eb;
    color: #6b7280;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

@media (max-width: 480px) {
    .partido-item.partido-card {
        padding: 20px 16px 18px;
        gap: 16px;
    }

    .partido-card .pc-fecha,
    .partido-card .pc-hora {
        font-size: 1.25rem;
        gap: 10px;
    }

    .partido-card .pc-fecha svg,
    .partido-card .pc-hora svg {
        width: 22px;
        height: 22px;
    }

    .partido-card .pc-jugadores {
        padding: 14px 12px;
    }

    .partido-card .pc-jug-title {
        font-size: 0.72rem;
        letter-spacing: 0.06em;
    }
}

/* Partido destacado al ingresar por link de invitación */
.partido-item.partido-destacado {
    box-shadow: 0 0 0 3px #16a34a, 0 16px 32px -8px rgba(22, 163, 74, 0.45);
    animation: pulse-destacado 1.4s ease-in-out 4 alternate;
}

@keyframes pulse-destacado {
    0% {
        box-shadow: 0 0 0 3px #16a34a, 0 10px 24px -6px rgba(22, 163, 74, 0.35);
    }

    100% {
        box-shadow: 0 0 0 5px #22c55e, 0 20px 40px -6px rgba(34, 197, 94, 0.6);
    }
}