/* ========================================
   CSS UNIFICADO - Sistema de Retos de Tenis
   ======================================== */

/* ========================================
   VARIABLES CSS GLOBALES
   ======================================== */

:root {
    /* Colores principales */
    --primary-color: #4594be;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    
    /* Espaciado y dimensiones */
    --border-radius: 0px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Tipografía */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
}

/* ========================================
   RESET Y ESTILOS BASE
   ======================================== */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: #333;
    background-color: var(--light-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   LAYOUT PRINCIPAL - STICKY FOOTER
   ======================================== */

/* Contenedor principal que empuja el footer hacia abajo */
.main-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* Contenido que se expande para llenar el espacio disponible */
.content-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* Footer que se mantiene en la parte inferior */
footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Estilos específicos para el footer */
footer .col-md-6:first-child {
    text-align: left;
}

footer .col-md-6:last-child {
    text-align: right;
}

/* Centrar textos del footer en móvil */
@media (max-width: 768px) {
    footer .col-md-6:first-child,
    footer .col-md-6:last-child {
        text-align: center !important;
        margin-bottom: 1rem;
    }
    
    footer .col-md-6:last-child {
        margin-bottom: 0;
    }
    
    /* Centrar el elemento flex del nombre de la app y versión */
    footer .col-md-6:first-child .d-flex {
        justify-content: center !important;
    }
}

/* ========================================
   HERO SECTION - PRIORIDAD MÁXIMA
   ======================================== */

.hero-section {
    background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)), url('/assets/img/banner.png'), linear-gradient(135deg, #4594be 0%, #764ba2 100%) !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 60vh !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    margin-top: 0 !important;
    padding-top: 20px !important;
}

/* ========================================
   MANTENIMIENTO (alineado al home)
   ======================================== */

#maintenance-page .card {
    border-radius: var(--border-radius);
}

#maintenance-page .maintenance-info.card {
    border-left: 4px solid var(--primary-color);
}

#maintenance-page .progress {
    height: 8px;
    border-radius: 4px;
}

#maintenance-page .status-badge {
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
    border-radius: 25px;
    font-weight: 600;
}

#maintenance-page .alert-success i,
#maintenance-page .alert-info i,
#maintenance-page .alert-warning i {
    width: 18px;
    text-align: center;
}

/* Overlay y modal de mantenimiento */
.maintenance-no-navbar body { padding-top: 0 !important; }

.maintenance-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 2000;
}

.maintenance-modal {
    max-width: 760px;
    width: 95%;
}

/* ========================================
   TIPOGRAFÍA
   ======================================== */

h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-color);
}

h1{
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* ========================================
   ENLACES
   ======================================== */

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* ========================================
   COMPONENTES DE TARJETAS
   ======================================== */

.card {
    border: none;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-radius: var(--border-radius);
}

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

.dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.stats-card {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stats-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   FORMULARIOS
   ======================================== */

.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(69, 148, 190, 0.25);
}

/* ========================================
   BOTONES
   ======================================== */

.btn-challenge {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
    transition: var(--transition);
}

.btn-challenge:hover {
    background-color: #c82333;
    border-color: #bd2130;
    color: white;
    transform: translateY(-2px);
}

.btn-accept {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
    transition: var(--transition);
}

.btn-accept:hover {
    background-color: #218838;
    border-color: #1e7e34;
    color: white;
    transform: translateY(-2px);
}

.btn-retar {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1.1rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .btn-retar {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   RANKING Y TABLAS
   ======================================== */

.ranking-table {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ranking-table th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
}

.ranking-table tbody tr:hover {
    background-color: rgba(69, 148, 190, 0.1);
}

/* Tarjeta de posición actual */
.position-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.position-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.position-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.3);
}

.position-icon i {
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.position-number .badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a9bc8 100%) !important;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(69, 148, 190, 0.3);
    font-weight: bold;
    letter-spacing: 1px;
}

.reto-activo-info .alert {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.reto-activo-info .alert i {
    color: #856404;
    font-size: 1.2rem;
}

.reto-disponible-info .alert {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.reto-disponible-info .alert i {
    color: #155724;
    font-size: 1.2rem;
}

/* Estilos para información detallada de retos */
.estado-detalle {
    font-size: 0.7rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 2px;
    line-height: 1.2;
    opacity: 0.8;
    display: block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.estado-detalle:hover {
    opacity: 1;
    white-space: normal;
    word-wrap: break-word;
    max-width: 200px;
    transition: all 0.3s ease;
}

/* Mejoras para la columna de estado */
.estado-columna {
    min-width: 120px;
    max-width: 180px;
}

.stats-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    display: inline-block;
    min-height: 20px;
    line-height: 1.2;
    white-space: nowrap;
    margin-bottom: 2px;
}

/* ========================================
   INFORMACIÓN DE POSICIÓN ACTUAL Y DISPONIBILIDAD
   ======================================== */

/* Estilos para la información de posición actual y disponibilidad */
.alert-info {
    font-size: 1.1rem;
    padding: 20px 25px;
    border-radius: var(--border-radius);
    border: 2px solid #0dcaf0;
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    box-shadow: 0 4px 15px rgba(13, 202, 240, 0.2);
}

.alert-info .badge {
    font-size: 1.2rem;
    padding: 8px 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.alert-info strong {
    font-size: 1.2rem;
    font-weight: 700;
}

.alert-info .text-warning,
.alert-info .text-success {
    font-size: 1.1rem;
    font-weight: 600;
}

.alert-info .text-warning i,
.alert-info .text-success i {
    font-size: 1.2rem;
    margin-right: 8px;
}

/* Hacer más grande el icono de medalla */
.alert-info .fas.fa-medal {
    font-size: 1.5rem;
    margin-right: 10px;
}

/* ========================================
   CLASIFICACIÓN ESPECÍFICA
   ======================================== */

.clasificacion-card {
    transition: transform 0.2s ease-in-out;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 6px;
    overflow: hidden;
    min-height: auto;
}

.clasificacion-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.posicion-badge {
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50%;
    padding: 6px;
    color: white;
    margin: 0 auto 4px auto;
}

.jugador-info {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

/* Optimización adicional para reducir altura de tarjetas */
.clasificacion-card .card-body {
    padding-top: 0.3rem !important;
    padding-bottom: 0.3rem !important;
    position: relative;
}

@media (min-width: 992px) {
    .clasificacion-card .card-body {
        display: flex;
        align-items: center;
        gap: 1.25rem;
    }

    .clasificacion-card .card-body > .row {
        order: 1;
        flex: 1 1 auto;
        width: 100%;
    }
}

.clasificacion-card .estado-semanal-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    position: absolute;
    top: 1.5rem;
    right: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.1;
    min-width: 80px;
}

@media (min-width: 992px) {
    .clasificacion-card .estado-semanal-top {
        position: static;
        order: 2;
        min-width: 150px;
        text-align: right;
        align-items: flex-end;
        margin-top: 0;
    }
}

.clasificacion-card .estado-semanal-top i {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.clasificacion-card .estado-semanal-top small {
    display: block;
    width: auto;
    text-align: center;
}

@media (min-width: 992px) {
    .clasificacion-card .estado-semanal-top small {
        text-align: right;
        align-self: flex-end;
    }
}

.clasificacion-card .row {
    margin: 0;
}

.clasificacion-card .col-md-1,
.clasificacion-card .col-md-6,
.clasificacion-card .col-md-5,
.clasificacion-card .col-2,
.clasificacion-card .col-8,
.clasificacion-card .col-12 {
    padding: 0.3rem;
}

/* Asegurar que la columna de posición tenga un ancho fijo para alineación vertical */
.clasificacion-card .col-md-1,
.clasificacion-card .col-2 {
    min-width: 60px;
    max-width: 60px;
    flex: 0 0 60px;
}

/* Estilos para las etiquetas de estadísticas */
.clasificacion-card .text-success small,
.clasificacion-card .text-danger small,
.clasificacion-card .text-info small {
    font-size: 0.75rem;
    line-height: 1.9;
    font-weight: 600;
    text-align: center;
    word-wrap: break-word;
    max-width: 100%;
}

.jugador-foto {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dee2e6;
    flex-shrink: 0;
}

.top-3 {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: 2px solid #ffc107;
}

.top-3 .posicion-badge {
    background: #ffc107 !important;
    color: #000 !important;
}

.posicion-2 {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    border: 2px solid #6c757d;
}

.posicion-3 {
    background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
    border: 2px solid #b8860b;
}

/* ========================================
   FLECHAS DE CAMBIO DE POSICIÓN
   ======================================== */

.posicion-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

.cambio-posicion {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.1;
    padding: 3px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    min-width: 35px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    animation: aparecerFlecha 0.5s ease-out;
}

@keyframes aparecerFlecha {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Wrapper para mantener consistencia en la posición */
.cambio-posicion-wrapper {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 2px;
}

/* Placeholder invisible para mantener el espacio */
.cambio-posicion-placeholder {
    width: 35px;
    height: 32px;
    visibility: hidden;
}

.cambio-posicion.text-success {
    background: rgba(40, 167, 69, 0.15);
    border: 2px solid rgba(40, 167, 69, 0.4);
    color: #28a745;
}

.cambio-posicion.text-danger {
    background: rgba(220, 53, 69, 0.15);
    border: 2px solid rgba(220, 53, 69, 0.4);
    color: #dc3545;
}

.cambio-posicion.text-info {
    background: rgba(23, 162, 184, 0.15);
    border: 2px solid rgba(23, 162, 184, 0.4);
    color: #17a2b8;
}

.cambio-posicion.text-muted {
    background: rgba(108, 117, 125, 0.15);
    border: 2px solid rgba(108, 117, 125, 0.4);
    color: #6c757d;
}

.cambio-posicion.igual {
    background: rgba(108, 117, 125, 0.15);
    border: 2px solid rgba(108, 117, 125, 0.4);
    color: #6c757d;
    justify-content: center;
    text-align: center;
}

.cambio-posicion i {
    font-size: 0.75rem;
    margin: 0;
    display: inline-block;
    vertical-align: middle;
}

.cambio-posicion small {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Efectos hover para las flechas */
.cambio-posicion:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsividad para dispositivos móviles */
@media (max-width: 768px) {
    .posicion-container {
        gap: 2px;
    }
    
    .cambio-posicion-wrapper {
        min-height: 28px;
        margin-bottom: 6px;
    }
    
    .cambio-posicion-placeholder {
        width: 30px;
        height: 28px;
    }
    
    .cambio-posicion {
        padding: 2px 4px;
        min-width: 30px;
        font-size: 0.7rem;
    }
    
    .cambio-posicion i {
        font-size: 0.65rem;
    }
    
    .cambio-posicion small {
        font-size: 0.6rem;
    }
    
    .jugador-foto {
        width: 50px;
        height: 50px;
    }
    
    .posicion-badge {
        font-size: 0.9rem;
        min-width: 30px;
        padding: 6px;
    }
}

.cambio-posicion.text-success:hover {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.6);
}

.cambio-posicion.text-danger:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.6);
}

.cambio-posicion.text-info:hover {
    background: rgba(23, 162, 184, 0.2);
    border-color: rgba(23, 162, 184, 0.6);
}

.cambio-posicion.text-muted:hover {
    background: rgba(108, 117, 125, 0.2);
    border-color: rgba(108, 117, 125, 0.6);
}

.cambio-posicion.igual:hover {
    background: rgba(108, 117, 125, 0.2);
    border-color: rgba(108, 117, 125, 0.6);
}

/* ========================================
   DASHBOARD RANKING
   ======================================== */

.position-badge {
    min-width: 40px;
    text-align: center;
}

.points-cell {
    font-weight: bold;
    text-align: center;
}

.current-user {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.ranking-table td {
    vertical-align: middle;
    height: 60px;
}

.player-info {
    min-width: 120px;
}

.player-photo {
    width: 30px !important;
    height: 30px !important;
}

.player-name {
    font-size: 0.85rem;
    line-height: 1.2;
}

.player-email {
    font-size: 0.75rem;
}

.player-phone {
    font-size: 0.75rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.action-buttons .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.stats-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    display: inline-block;
    min-height: 20px;
    line-height: 1.2;
    white-space: nowrap;
}

/* Notificaciones: badge y cursor consistente con otras tarjetas */
.notif-card-clickable {
    cursor: pointer;
}

/* Retos Pendientes: cursor para indicar que es clickeable */
.retos-card-clickable {
    cursor: pointer;
}

#notif-badge-dashboard {
    font-size: 0.75rem;
    padding: 0.25rem 0.45rem;
    min-height: 20px;
    line-height: 1.2;
}

/* Texto de estado de notificaciones en dashboard */
#notif-dashboard-label {
    font-size: 0.95rem; /* un poco más grande que small */
}

/* ========================================
   IMÁGENES Y AVATARES
   ======================================== */

.player-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

.player-avatar:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.ranking-player-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
    background-color: var(--light-color);
    transition: var(--transition);
}

.ranking-player-image:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--box-shadow);
}

/* Clases para reemplazar estilos inline */
.avatar-100 {
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.avatar-50 {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.avatar-40 {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.avatar-150 {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.logo-120 {
    height: 120px;
    object-fit: contain;
}

.logo-80 {
    height: 80px;
    object-fit: contain;
}

.logo-40 {
    height: 40px;
    object-fit: contain;
}

/* ========================================
   BADGES Y ESTADOS
   ======================================== */

.status-badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
}

.status-pendiente {
    background-color: var(--warning-color);
    color: #212529;
}

.status-aceptado {
    background-color: var(--success-color);
    color: white;
}

.status-finalizado {
    background-color: #6c757d;
    color: white;
}

.status-cancelado {
    background-color: var(--danger-color);
    color: white;
}

/* ========================================
   ACORDIÓN
   ======================================== */

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(69, 148, 190, 0.25);
}

/* ========================================
   PERFIL DE USUARIO
   ======================================== */

.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px 0;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

/* ========================================
   NOTIFICACIONES Y ALERTAS
   ======================================== */

.alert-custom {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ========================================
   NAVEGACIÓN Y NAVBAR
   ======================================== */

.navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 0.5rem 0;
}

.navbar-brand {
    padding: 0.25rem 0;
}

.navbar-brand img {
    height: 32px !important;
}

.navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
}

.navbar-toggler {
    padding: 0.25rem 0.5rem;
}

/* Mejorar contraste de enlaces del navbar en móvil y escritorio */
.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-brand {
    color: rgba(255, 255, 255, 0.98) !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff !important;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.navbar-dark .navbar-nav .nav-link i {
    color: inherit !important;
    opacity: 1;
}

/* Suavizar la transición del resaltado */
.navbar .nav-link {
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* Mantener el énfasis cuando el dropdown está abierto */
.navbar-dark .navbar-nav .show > .nav-link {
    background-color: rgba(255, 255, 255, 0.22);
    border-radius: 6px;
}

/* Estilos para las acciones rápidas de administración */
.navbar .dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.navbar .dropdown-menu .dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Resaltar las acciones rápidas */
.navbar .nav-link[href*="admin"] {
    font-weight: 600;
}

/* Separador visual para las acciones rápidas */
.navbar .dropdown-divider {
    margin: 0.5rem 0;
    border-color: #dee2e6;
}

/* Espacio para el contenido debajo del navbar */
body {
    padding-top: 56px;
}

/* Ajustar el primer elemento para compensar el navbar */
.container:first-of-type,
section:first-of-type {
    margin-top: 0;
}

/* Ajustes específicos para la página de inicio */

/* Ajustes para páginas de autenticación */
.bg-light {
    padding-top: 0;
}

/* Override específico para el selector de semana en registrar resultado */
.semana-selector-header {
    padding-top: 0.75rem !important;
}

/* ========================================
   PERSONALIZACIÓN DE BOOTSTRAP
   ======================================== */

:root {
    --bs-primary: #4594be !important;
    --bs-primary-rgb: 69, 148, 190 !important;
}

.btn-primary {
    background-color: #4594be !important;
    border-color: #4594be !important;
}

.btn-primary:hover {
    background-color: #3a7fa3 !important;
    border-color: #3a7fa3 !important;
}

.btn-outline-primary {
    color: #4594be !important;
    border-color: #4594be !important;
}

.btn-outline-primary:hover {
    background-color: #4594be !important;
    border-color: #4594be !important;
    color: white !important;
}

/* Botones de filtro en retos (mejor legibilidad) */
.btn-filter {
    font-weight: 600;
    padding: 0.45rem 0.9rem;
}

.btn-filter i {
    vertical-align: text-bottom;
}

.btn-outline-primary:hover i {
    color: white !important;
}

.btn-outline-primary.show,
.btn-outline-primary[aria-expanded="true"] {
    background-color: #4594be !important;
    border-color: #4594be !important;
    color: white !important;
}

.btn-outline-primary.show i,
.btn-outline-primary[aria-expanded="true"] i {
    color: white !important;
}

.bg-primary {
    background-color: #4594be !important;
}

.text-primary {
    color: #4594be !important;
}

.bg-primary .text-primary {
    color: #ffffff !important;
}

.border-primary {
    border-color: #4594be !important;
}

.table-primary {
    background-color: #4594be !important;
}

.badge.bg-primary {
    background-color: #4594be !important;
}

.accordion-button:not(.collapsed) {
    background-color: #4594be !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(69, 148, 190, 0.25) !important;
}

/* ========================================
   TABLAS DE PRECIOS
   ======================================== */

.pricing-table {
    background: #343a40;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#precios .row.justify-content-center {
    align-items: stretch;
}

.pricing-table:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.pricing-header {
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

.pricing-header-oferta {
    background-color: #ffc107;
    color: #000;
}

.pricing-header-basico {
    background-color: #4594be;
    color: #fff;
}

.badge-oferta {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #dc3545;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    padding-top: 10px;
}

.pricing-body {
    background-color: #343a40;
    color: #fff;
    padding: 30px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    min-height: 0;
}

.pricing-features li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    min-height: 48px;
    box-sizing: border-box;
}

.pricing-features li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-features li i {
    color: inherit;
}

.pricing-table-oferta .pricing-features li i {
    color: #ffc107;
}

.pricing-table-basico .pricing-features li i {
    color: #4594be;
}

.pricing-price {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0;
    padding: 20px 0;
    flex-shrink: 0;
}

.price-amount {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
}

.price-period {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-table-oferta .price-period {
    color: #ffc107;
}

.pricing-table-basico .price-period {
    color: #4594be;
}

.pricing-btn {
    width: 100%;
    padding: 15px 30px;
    border: 2px solid;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.pricing-btn-oferta {
    border-color: #ffc107;
    color: #fff;
}

.pricing-btn-oferta:hover {
    background-color: #ffc107;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.pricing-btn-basico {
    border-color: #4594be;
    color: #fff;
}

.pricing-btn-basico:hover {
    background-color: #4594be;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(69, 148, 190, 0.4);
}

.pricing-footer {
    text-align: center;
    padding-top: 15px;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.pricing-footer-empty {
    height: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oferta-texto {
    margin: 0;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #dc3545;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oferta-texto i {
    color: #dc3545;
    font-size: 1rem;
}

/* Responsive para tablas de precios */
@media (max-width: 768px) {
    .pricing-table {
        margin-bottom: 30px;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .pricing-title {
        font-size: 1.25rem;
    }
}

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

@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .form-container {
        margin: 20px;
        padding: 20px;
    }
    
    .ranking-player-image {
        width: 60px;
        height: 60px;
    }
    
    .player-avatar {
        width: 60px;
        height: 60px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    /* Clasificación responsive */
    .jugador-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .jugador-foto {
        width: 40px;
        height: 40px;
    }
    
    /* Dashboard ranking responsive */
    .ranking-table {
        font-size: 0.9rem;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .player-info {
        min-width: 120px;
    }
    
    .player-photo {
        width: 30px !important;
        height: 30px !important;
    }
    
    .player-name {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .player-email {
        font-size: 0.75rem;
    }
    
    .player-phone {
        font-size: 0.75rem;
    }
    
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-buttons .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .stats-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Padding-top para páginas de autenticación solo en móvil */
    .bg-light {
        padding-top: 40px;
    }
}

@media (max-width: 576px) {
    .ranking-player-image {
        width: 50px;
        height: 50px;
    }
    
    .player-avatar {
        width: 50px;
        height: 50px;
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    /* Dashboard ranking responsive pequeño */
    .ranking-table {
        font-size: 0.8rem;
    }
    
    .ranking-table th,
    .ranking-table td {
        padding: 0.25rem 0.1rem;
    }
    
    .player-info {
        min-width: 100px;
    }
    
    .player-photo {
        width: 25px !important;
        height: 25px !important;
    }
    
    .player-name {
        font-size: 0.8rem;
    }
    
    .player-email {
        display: none;
    }
    
    .player-phone {
        display: none;
    }
    
    /* Altura automática en móvil */
    .ranking-table td {
        height: auto;
        min-height: 50px;
    }
    
    .ranking-table th {
        height: auto;
        min-height: 40px;
    }
    
}

/* ========================================
   UTILIDADES
   ======================================== */

.shadow-custom {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) 1;
}

.modal-hidden {
    display: none;
}

/* ========================================
   CHAT DE RETOS
   ======================================== */

.chat-button {
    position: relative;
}

.chat-unread-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc3545;
    color: #fff;
    border-radius: 999px;
    font-size: 0.7rem;
    padding: 2px 6px;
    box-shadow: 0 0 0 2px #fff;
}

.chat-highlight {
    animation: chatPulse 1.5s infinite;
}

@keyframes chatPulse {
    0% { box-shadow: 0 0 0 0 rgba(69, 148, 190, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(69, 148, 190, 0); }
    100% { box-shadow: 0 0 0 0 rgba(69, 148, 190, 0); }
}

.chat-message-content {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Suavizar desplazamiento en el contenedor de mensajes del chat */
.chat-smooth {
    scroll-behavior: smooth;
}

/* ========================================
   NAVBAR MOBILE OPTIMIZATIONS
   ======================================== */

/* Ajustes de elementos en móvil */
@media (max-width: 991.98px) {
    .navbar-brand .brand-text {
        display: inline-block !important;
        font-size: 0.95rem;
        margin-left: 0.35rem;
    }
    
    .navbar-nav .nav-item.d-none.d-lg-block {
        display: none !important;
    }
    
    /* Asegurar que el menú se vea a la derecha */
    .navbar-collapse {
        justify-content: flex-end !important;
    }
    
    .navbar-nav {
        margin-left: auto !important;
        text-align: right;
    }
    
    /* Mejorar el espaciado del menú móvil */
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Estilo para el dropdown en móvil */
    .navbar-nav .dropdown-menu {
        border: none;
        background-color: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }
    
    .navbar-nav .dropdown-item {
        color: white;
        padding: 0.75rem 1rem;
    }
    
    .navbar-nav .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.2);
        color: white;
    }
    
    /* Mejorar el botón hamburguesa */
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    /* Asegurar que el logo se vea bien en móvil */
    .navbar-brand img {
        height: 35px;
        width: auto;
    }
}

/* Estilos adicionales para pantallas muy pequeñas */
@media (max-width: 575.98px) {
    .navbar-brand img {
        height: 30px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   MENÚ MÓVIL: BARRA INFERIOR + SHEET
   ======================================== */
@media (max-width: 991.98px) {
    /* Reservar espacio para la barra inferior */
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    /* Barra inferior */
    .mobile-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        height: 64px;
        background: #ffffff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .mobile-bottom-bar .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        height: 64px;
        color: #6c757d;
        font-size: 0.75rem;
        font-weight: 700;
        text-decoration: none;
    }
    .mobile-bottom-bar .mobile-nav-item i {
        font-size: 1.25rem;
        line-height: 1;
    }
    .mobile-bottom-bar .mobile-nav-item.active,
    .mobile-bottom-bar .mobile-nav-item:hover,
    .mobile-bottom-bar .mobile-nav-item:focus {
        color: var(--primary-color);
        text-decoration: none;
    }

    /* Offcanvas inferior estilo hoja */
    .mobile-menu-sheet.offcanvas-bottom {
        height: auto;
        max-height: 75vh;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25);
    }
    .mobile-menu-sheet .offcanvas-header {
        border-bottom: 1px solid #e9ecef;
    }
    .mobile-menu-sheet .list-group-item {
        font-size: 1rem;
        padding: 0.875rem 0.75rem;
        border: none;
    }
    .mobile-menu-sheet .list-group-item i {
        width: 1.25rem;
        text-align: center;
    }
    .mobile-menu-sheet .section-title {
        background: #f8f9fa;
    }

    /* Acciones rápidas (campana + perfil) en el navbar móvil */
    .mobile-quick-actions a {
        color: #ffffff !important;
        text-decoration: none;
    }
    .mobile-quick-actions a:focus,
    .mobile-quick-actions a:hover {
        color: #ffffff !important;
        opacity: 0.9;
        text-decoration: none;
    }
}

/* ========================================
   PÁGINA DE RETOS - OPTIMIZACIONES MÓVILES
   ======================================== */

/* Tarjetas de retos móviles */
.reto-card {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.reto-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.reto-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.reto-card .card-body {
    padding: 1rem;
}

.reto-card .card-body .row > div {
    margin-bottom: 0.5rem;
}

.reto-card .card-body strong {
    color: #495057;
    font-weight: 600;
}

.reto-card .card-body .ms-2 {
    color: #6c757d;
}

/* Estadísticas móviles */
.stats-card-mobile {
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stats-card-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.stats-card-mobile h4 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stats-card-mobile small {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Optimizaciones específicas para pantallas muy pequeñas */
@media (max-width: 575.98px) {
    .reto-card .card-header h6 {
        font-size: 0.9rem;
    }
    
    .reto-card .card-body {
        padding: 0.75rem;
    }
    
    .reto-card .card-body .row > div {
        margin-bottom: 0.75rem;
    }
    
    .reto-card .card-body strong {
        font-size: 0.85rem;
    }
    
    .reto-card .card-body .ms-2 {
        font-size: 0.85rem;
    }
    
    .stats-card-mobile h4 {
        font-size: 1.25rem;
    }
    
    .stats-card-mobile small {
        font-size: 0.75rem;
    }
}

/* Estados de las tarjetas de retos */
.reto-card[data-estado="pendiente"] {
    border-left: 4px solid #ffc107;
}

.reto-card[data-estado="aceptado"] {
    border-left: 4px solid #28a745;
}

.reto-card[data-estado="finalizado"] {
    border-left: 4px solid #17a2b8;
}

.reto-card[data-estado="cancelado"] {
    border-left: 4px solid #dc3545;
}

/* Animaciones para las tarjetas */
.reto-card {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejoras para los botones de acción en móvil */
.reto-card .btn-group {
    flex-wrap: wrap;
    gap: 0.25rem;
}

.reto-card .btn-group .btn {
    flex: 1;
    min-width: 80px;
    font-size: 0.8rem;
    padding: 0.375rem 0.5rem;
}

 /* Estilos para los badges de estado en móvil */
 .reto-card .badge {
     font-size: 0.75rem;
     padding: 0.375rem 0.5rem;
 }
 
 /* ========================================
    PAGINACIÓN MÓVIL - RETOS
    ======================================== */
 
 /* Paginación optimizada para móvil */
 .pagination-sm .page-link {
     padding: 0.375rem 0.5rem;
     font-size: 0.875rem;
     line-height: 1.2;
 }
 
 .pagination-sm .page-item .page-link {
     border-radius: 0.25rem;
     margin: 0 0.125rem;
 }
 
 .pagination-sm .page-item.active .page-link {
     background-color: var(--primary-color);
     border-color: var(--primary-color);
     color: white;
 }
 
 .pagination-sm .page-item .page-link:hover {
     background-color: var(--primary-color);
     border-color: var(--primary-color);
     color: white;
 }
 
 .pagination-sm .page-item.disabled .page-link {
     color: #6c757d;
     background-color: transparent;
     border-color: #dee2e6;
 }
 
 /* Optimizaciones para pantallas muy pequeñas */
 @media (max-width: 575.98px) {
     .pagination-sm .page-link {
         padding: 0.25rem 0.375rem;
         font-size: 0.8rem;
     }
     
     .pagination-sm .page-item .page-link {
         margin: 0 0.0625rem;
     }
 }
 
 /* Animación para la paginación */
 .pagination-sm .page-item .page-link {
     transition: all 0.2s ease-in-out;
 }
 
 .pagination-sm .page-item .page-link:hover {
     transform: translateY(-1px);
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
 }

/* ========================================
   ESTILOS PARA POLÍTICA DE PRIVACIDAD
   ======================================== */

.politica-privacidad .content h2 {
    color: #5396be;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.politica-privacidad .content h2:first-child {
    margin-top: 0;
}

.politica-privacidad .content ul {
    margin-bottom: 1.5rem;
}

.politica-privacidad .content li {
    margin-bottom: 0.5rem;
}

.politica-privacidad .content a {
    color: #0d6efd;
    text-decoration: none;
}

.politica-privacidad .content a:hover {
    text-decoration: underline;
}

/* ========== ESTILOS PARA EL ESTADO WO ========== */

/* Badge para el estado WO */
.badge.bg-wo {
    background-color: #ff8000 !important;
    color: white;
}

/* Botones outline para el estado WO */
.btn-outline-wo {
    color: #ff8000;
    border-color: #ff8000;
}

.btn-outline-wo:hover {
    background-color: #ff8000;
    border-color: #ff8000;
    color: white;
}

/* Botones sólidos para el estado WO */
.btn-wo {
    background-color: #ff8000;
    border-color: #ff8000;
    color: white;
}

.btn-wo:hover {
    background-color: #e67300;
    border-color: #e67300;
    color: white;
}

/* Texto con color WO */
.text-wo {
    color: #ff8000 !important;
}

/* Fondo con color WO */
.bg-wo {
    background-color: #ff8000 !important;
}

/* Texto blanco para headers con fondo WO */
.bg-wo h1,
.bg-wo h2,
.bg-wo h3,
.bg-wo h4,
.bg-wo h5,
.bg-wo h6,
.bg-wo .mb-0,
.bg-wo .card-title,
.bg-wo .card-header h4,
.bg-wo .card-header h5,
.bg-wo .card-header h6 {
    color: white !important;
}

.bg-wo .text-wo {
    color: #ff8000 !important;
}

/* Fondo con color WO y opacidad */
.bg-wo.bg-opacity-10 {
    background-color: rgba(255, 128, 0, 0.1) !important;
}

/* Estilos adicionales para botones WO */
.btn-wo:focus {
    background-color: #e67300;
    border-color: #e67300;
    color: white;
    box-shadow: 0 0 0 0.2rem rgba(255, 128, 0, 0.25);
}

.btn-wo:active {
    background-color: #cc6600;
    border-color: #cc6600;
    color: white;
}

.btn-wo:disabled {
    background-color: #ffb366;
    border-color: #ffb366;
    color: white;
    opacity: 0.65;
}

/* ========================================
   CLASES ESPECÍFICAS PARA GANADOR WO
   ======================================== */

.ganador-wo {
    color: #ff8000 !important;
}

.ganador-wo i {
    color: #ff8000 !important;
}

/* ========================================
   BLOQUE DE POSICIÓN EN PERFIL
   ======================================== */

.position-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #4594be 100%);
    border: none;
    transition: var(--transition);
}

.position-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.position-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.trophy-icon {
    margin-bottom: 1rem;
}


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

.position-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.position-label {
    font-size: 0.9rem;
    color: #34495e;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive para el bloque de posición */
@media (max-width: 768px) {
    .position-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .position-info {
        text-align: center;
    }
    
    .trophy-icon {
        font-size: 2rem;
    }
    
    .position-number {
        font-size: 2rem;
    }
} 