/* ==========================================================================
   1. VARIABLES Y BASE (De Index)
   ========================================================================== */
:root {
    --vcg-green-primary: #28a745;
    --vcg-green-dark: #1e7e34;
    --vcg-green-light: #d1e7dd;
    /* --vcg-green-oscuro: #083f02; */
    --vcg-green-oscuro: #0a4d1e;

    --vcg-green-ranking: #053400;
    --vcg-bg: #f0f2f5;
    --vcg-white: #ffffff;
    --vcg-border: #edf0f2;
    --vcg-text: #333;
    --vcg-text-muted: #6c757d;
    --vcg-blue-dark: #191970;
    /* TIPOGRAFÍAS */
    --font-main: 'Roboto', sans-serif;
    --font-data: 'Roboto Condensed', sans-serif;
}

body {
    background-color: var(--vcg-bg);
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-family: var(--font-main);
    color: var(--vcg-text);
    margin: 0;
}

.TOP24 {
    color: green;
}

.ORO {
    color: #c5a028; /* Un oro más legible que el amarillo */
}

.PLATA {
    color: #8a8a8a;
}

.BRONCE {
    color: #b0703d;
}
.bg-success-claro {
    background-color: var(--vcg-green-light);
}
.bg-verde-dark {
    background-color: var(--vcg-green-ranking);
}

.colores-ranking {
    background-color: var(--vcg-green-oscuro);
    color: white;
}

button:focus,
input:focus {
    outline: none;
    box-shadow: none !important;
    border: 1px solid var(--vcg-green-dark) !important;
}

.btn-outline-light {
    color: var(--vcg-text-muted) !important;
}
.btn-outline-light:hover {
    /* background-color: var(--vcg-text); */
    background-color: var(--bs-btn-hover-bg);
    color: var(--vcg-text-muted) !important;
}

.font-tabla {
    font-family: var(--font-data);
}

.main-container {
    max-width: 850px;
    /* margin: 0; */
    margin: 0 auto;
    /* padding: 0 15px 15px 15px; */
}

[v-cloak] {
    display: none !important;
}

/* ==========================================================================
   2. COMPONENTES COMUNES (Unificados)
   ========================================================================== */

/* Tarjeta base - Prima el diseño de Index con sombras */
.vc-card {
    background: var(--vcg-white);
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

/* Handicap Box - Unificado usando el verde claro de Index */
.hdp-box {
    background-color: var(--vcg-green-light);
    color: var(--vcg-green-dark);
    border-radius: 8px;
    padding: 8px 15px;
    display: inline-block;
}

/* Items de Torneo (Lista) */
.tournament-item {
    border-left: 4px solid var(--vcg-green-primary);
    transition: all 0.2s ease;
    background: var(--vcg-white);
}
.tournament-item:hover {
    background-color: #f8f9fa;
    transform: translateX(3px);
}

/* Botones con estilo Pill */
.btn {
    border-radius: 50px !important;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-success {
    background-color: var(--vcg-green-primary) !important;
    border-color: var(--vcg-green-primary) !important;
}

/* ==========================================================================
   3. MENÚ PRINCIPAL (Grid)
   ========================================================================== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 15px;
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.menu-item {
    background: #ecf7f2;

    border: 1px solid var(--vcg-border);
    border-radius: 10px;
    padding: 18px 10px;
    text-align: center;
    text-decoration: none;
    color: var(--vcg-green-primary);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.menu-item:hover {
    border-color: var(--vcg-green-primary);
    background-color: var(--vcg-green-light);
    /* color: var(--vcg-green-primary); */
    color: var(--vcg-green-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.menu-item i {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--vcg-green-primary);
    opacity: 0.7 !important;
}
.menu-item:hover i {
    opacity: 1 !important;
}

/* ==========================================================================
   4. ESPECÍFICO CALENDARIO (Adaptado a Index)
   ========================================================================== */
.semana-container {
    background: var(--vcg-white);
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 50px;
    z-index: 100;
}

.semana-scroll {
    /* display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 5px 15px;
    scrollbar-width: none; */
    display: flex;
    width: 100%;
    max-width: 600px;
    justify-content: center;
    margin: 0 auto;
    gap: 8px;
    box-sizing: border-box;
}
.semana-scroll::-webkit-scrollbar {
    display: none;
}
.dia-item {
    flex: 1; /* Coge el espacio de forma proporcional (1 de 7) */
    min-width: 0; /* Permite que el elemento se encoja si es necesario */

    background: #f1f3f5;
    border-radius: 10px; /* Bordes un poco más pequeños para que no se vea tosco */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid transparent; /* Borde más fino */
    transition: 0.2s;
}
/* .dia-item {
    min-width: 60px;
    
    background: #f1f3f5;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
} */

.dia-item.active {
    background: var(--vcg-green-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
    border-color: var(--vcg-green-primary);
}

.dia-nombre {
    font-size: 0.7rem;
    text-transform: uppercase;
    opacity: 0.8;
}
.dia-numero {
    font-size: 1.2rem;
    font-weight: 800;
}

.club-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid var(--vcg-border);
}

/* Badges de Score en Calendario */
.score-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    background: #eee;
}
.score-badge .label {
    font-size: 0.55rem;
    font-weight: bold;
    text-transform: uppercase;
}
.score-badge .value {
    font-size: 0.9rem;
    font-weight: 800;
}

/* ==========================================================================
   5. DROPDOWNS Y UTILIDADES (UI Moderna)
   ========================================================================== */
.dropdown-menu {
    border: none !important;
    border-radius: 1.25rem !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    animation: menuAppear 0.3s ease-out;
}

.badge-hora {
    background-color: #f0f7f0;
    color: var(--vcg-green-dark);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--vcg-green-light);
    font-weight: 500;
}

.badge-hora:hover {
    background-color: var(--vcg-green-primary);
    color: white;
}

/* ==========================================================================
   6. TÍTULOS Y CABECERAS (UI Structure)
   ========================================================================== */

/* Título de sección (ej: "PRÓXIMOS TORNEOS") */
.section-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--vcg-green-dark);
    text-transform: uppercase;
    padding: 20px 20px 5px 20px;
    letter-spacing: 0.8px; /* Un poco más de aire para legibilidad */
    display: flex;
    align-items: center;
}

/* Opcional: una línea sutil al lado del título para un look más moderno */
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--vcg-border);
    margin-left: 15px;
    opacity: 0.5;
}

/* Cabecera Logo (Navbar) */
.logo-header img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition:
        transform 0.3s ease,
        height 0.3s ease;
}

/* Cabecera de Perfil con degradado */
.profile-header {
    background: linear-gradient(135deg, var(--vcg-green-primary) 0%, var(--vcg-green-dark) 100%);
    color: white;
    padding: 22px;
    border-radius: 0 0 20px 20px; /* Redondeamos solo la base */
    margin-bottom: 15px;
}

.forma-cabecera {
    background: linear-gradient(135deg, var(--vcg-green-primary) 0%, var(--vcg-green-dark) 100%);
    color: white;
    border-radius: 0 0 20px 20px; /* Redondeamos solo la base */
}

.filaCategoria {
    background: linear-gradient(135deg, var(--vcg-green-primary) 0%, var(--vcg-green-dark) 100%);
    color: white;
    font-weight: 800; /* Un poco más de peso para que destaque */
    font-family: var(--font-data);
    /* text-transform: uppercase; */
    letter-spacing: 1px;
    border-bottom: 2px solid var(--vcg-green-dark);
    /* Efecto de sutil relieve superior */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.filaCategoria td {
    padding: 12px 15px !important;
    vertical-align: middle;
}
/* Animaciones */
@keyframes menuAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animar-cambio-jugador {
    animation: menuAppear 0.4s ease-out;
}

.fs-06 {
    font-size: 0.6rem;
}
.fs-07 {
    font-size: 0.7rem;
}
.fs-08 {
    font-size: 0.8rem;
}
.fs-09 {
    font-size: 0.9rem;
}
.puntero {
    cursor: pointer !important;
}

/* Clase de utilidad por si quieres usarla manualmente en el HTML */
.text-condensed {
    font-family: var(--font-data) !important;
}

/* Aplicación automática a tus componentes actuales */
.dia-numero, 
.hdp-box span, 
.score-badge .value, 
.badge-hora,
.tournament-item .fs-08, /* Datos del torneo */
.clasificacion-tabla td {
    font-family: var(--font-data);
    font-weight: 700;
    letter-spacing: -0.3px; /* Mejora el look de los números pegados */
}

/* Los títulos de sección se ven muy bien en Condensed también */
.section-title {
    font-family: var(--font-data);
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   7. RESULTADOS Y CLASIFICACIONES (Leaderboard)
   ========================================================================== */
.table-golf,
.table-golf th,
.table-golf td {
    box-sizing: border-box; /* Fundamental para que el cálculo sea exacto */
}

/* --- CONFIGURACIÓN BASE --- */
.tabla-resultados {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-data);
}

.tabla-resultados td,
.tabla-resultados th {
    vertical-align: middle;
    box-sizing: border-box;
    padding: 8px 4px;
}

/* --- MÓVIL (Por defecto: < 550px) --- */

/* 1. Posición */
/* .tabla-resultados .col-pos {
    width: 35px;
    min-width: 35px;
    text-align: center;
} */

/* 2. Nombre / Jugador (Elástico) */
.tabla-resultados .col-nombre {
    width: auto;

    /* Restamos columnas fijas + paddings del contenedor (15+15) */
    /* min-width: calc(100vw - 180px);
    max-width: calc(100vw - 180px); */
    text-align: left;
    white-space: normal; /* Permite 2 líneas  */
    word-break: break-word;
    line-height: 1.2;
    /* font-size: 1.1rem; */
    font-weight: 400 !important;
    padding-left: 10px !important;
    /* color:silver; */
    font-family: var(--font-data);
}

/* 3. Completados / Thru */
.tabla-resultados .col-completados {
    width: 1%; /* Se ajustan al contenido mínimo */
    min-width: auto;
    white-space: nowrap;
    /* background-color: transparent !important; */
    border-left: none !important;
    padding: 1px 1px !important;
    text-align: center;
    color: var(--vcg-text-muted);
}
.th-completados,
.th-valorF {
    padding: 0px 0px !important;
}

.tabla-resultados .fuente-grande {
    font-size: 1.1rem !important; /* Aumenta un 25-30% */
}
/*  el nombre resalte aún más en modo grande */
.fuente-grande .col-nombre {
    font-size: 1.2rem;
}
/* 4. Score y ValorF (Totales) */
.tabla-resultados .col-score,
.tabla-resultados .col-valorF {
    width: 5px;
    min-width: 5px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
}
.tabla-resultados .col-neto,
.tabla-resultados .col-bruto {
    width: 90px;
    min-width: 90px;
}

/* 5. Columnas de Rondas (Scroll Lateral) */
/* Se aplica a las col-estrecha que no son las fijas anteriores */
.tabla-resultados .col-estrecha:not(.col-pos):not(.col-nombre):not(.col-completados):not(.col-score):not(.col-valorF) {
    min-width: 90px;
    text-align: center;
    /* Gris sutil para notar la zona de scroll */
    /* background-color: #f8f9fa;  */
    border-left: 1px solid #dee2e6;
}

/* --- MODO PANTALLA GRANDE (Tablet / Desktop > 550px) --- */
@media (min-width: 551px) {
    /* .tabla-resultados .col-nombre {
        min-width: auto;
        max-width: none;
        width: 100%; 
        white-space: nowrap; 
    } */

    .tabla-resultados .col-pos,
    .tabla-resultados .col-completados,
    .tabla-resultados .col-score,
    .tabla-resultados .col-valorF,
    .tabla-resultados .col-estrecha {
        width: 1%; /* Se ajustan al contenido mínimo */
        min-width: auto;
        white-space: nowrap;
        /* background-color: transparent !important; */
        border-left: none !important;
        padding: 10px 15px; /* Más espacio para lectura cómoda */
    }
}

/* Badges de Resultado (Score) */
.badge-golf {
    display: inline-block;
    padding: 4px 6px;
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
    border-radius: 4px;
    line-height: 1.2em;
    font-family: var(--font-data);
}

/* Colores específicos de Score */
.bg-par {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}
.bg-subpar {
    background-color: #d9534f;
    color: white;
} /* Rojo */
.bg-overpar {
    background-color: #212529;
    color: white;
} /* Negro/Gris muy oscuro */
.bg-puntos {
    background-color: var(--vcg-green-primary);
    color: white;
} /* Verde para stableford */
.bg-bruto {
    background-color: #495057;
    color: white;
}

.recto-derecha {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Cabeceras Verticales (para ahorrar espacio) */
.th-vertical {
    height: 100px;
    vertical-align: bottom;
    padding-bottom: 10px;
}
.vertical-text {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    text-align: left;
    margin: 0 auto;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ==========================================================================
   8. BUSCADOR Y FILTROS (Interactividad)
   ========================================================================== */

.barra-filtros-container {
    background-color: var(--vcg-white);
    border-top: 1px solid var(--vcg-border);
    position: sticky;
    top: 0;
    z-index: 1020;
}

/* Animaciones del Buscador */
.search-transition {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scaleX(0.5);
    opacity: 0;
    width: 0%;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    pointer-events: none;
}

.search-open {
    width: 100% !important;
    opacity: 1 !important;
    transform: translate(-50%, -50%) scaleX(1) !important;
    visibility: visible !important;
    pointer-events: all !important;
}

.rounded-start-pill {
    border-top-left-radius: 50px !important;
    border-bottom-left-radius: 50px !important;
}
.rounded-end-pill {
    border-top-right-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
}

/* ==========================================================================
   9. UTILIDADES EXTRA
   ========================================================================== */
.filaCategoria {
    background: linear-gradient(135deg, var(--vcg-green-primary) 0%, var(--vcg-green-dark) 100%);
    color: white;
    font-weight: bold;
}

.delay-1 {
    animation-delay: 1s !important;
}

.animate-pulse-bola {
    animation: pulse-white-bola 2s infinite ease-in-out;
    display: inline-block; /* ¡Fundamental para que funcione el transform! */
    transform-origin: center;
    vertical-align: middle;
}

@keyframes pulse-white-bola {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2); /* Crece un 10% */
        opacity: 0.7; /* Casi ni se nota el cambio de transparencia */
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulse-white 2s infinite ease-in-out;
}
@keyframes pulse-white {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.avatar-liga {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--vcg-border);
}

/* Animación de brillo */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.skeleton-row td {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 104px;
    height: 45px; /* Altura similar a tus filas reales */
    border-bottom: 5px solid white; /* Espaciador */
    animation: shimmer 1.5s infinite linear;
}

/* Diferentes anchos para las barritas dentro de la celda */
.skeleton-text {
    height: 12px;
    background: #e2e5e7;
    border-radius: 10px;
    display: inline-block;
}

/* para cuando resultados esta dentro de apuntame */
/* Quitamos márgenes y bordes superiores al hijo */
.apuntame-container .resultados-hijo-wrapper {
    border-top: 1px solid var(--vcg-border);
    margin-top: 10px;
    background: white;
}

/* Reducimos el padding de la cabecera de la tabla en el hijo */
.apuntame-container .table-golf thead th {
    background-color: #f8f9fa !important;
    border-top: none !important;
    font-size: 0.7rem;
    color: #888;
}

/* Hacemos que la columna "pegajosa" coincida con el fondo */
.apuntame-container .col-nombre {
    background-color: white !important;
}

/* Ocultamos elementos que sobran en la vista de inscripción */
/* Por ejemplo, si en resultados tienes un buscador o filtros que aquí no quieres */
.apuntame-container .barra-filtros-container {
    display: none;
}

/*para las utilidades */
.dropdown-menu-desplegable {
    list-style: none; /* Quita los puntos */
    padding-left: 0; /* Elimina el margen que deja el navegador para los puntos */
    margin: 0;
}

.dropdown-menu-desplegable li {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0; /* Una línea sutil entre opciones */
    transition: background 0.2s;
}

.dropdown-menu-desplegable li:last-child {
    border-bottom: none; /* El último no lleva línea */
}

.dropdown-menu-desplegable li:hover {
    background-color: #f8f9fa; /* Efecto al pasar el ratón o tocar */
}

/*el tiempo*/
.bg-success-light {
    background-color: rgba(25, 135, 84, 0.1);
}

.no-scrollbar::-webkit-scrollbar {
    /* display: none; */
}

.hora-activa {
    background-color: rgba(25, 135, 84, 0.1) !important;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.hoyo-salida {
    /* background-color: #79b48f !important; */
    background-color: #bfe0ce !important;

    transition: background-color 0.3s ease;
}
.border-tarjeta {
    /* border: 1px solid rgba(25, 135, 84, 0.2) !important; */
    border: 1px solid #79b48f !important;
}
.eltiempo-page .card {
    transition: transform 0.2s ease;
}

.eltiempo-page .card:active {
    transform: scale(0.98);
}

.table-responsive {
    cursor: grab;
}

.table-responsive:active {
    cursor: grabbing;
}

/* Redondear las esquinas de la tabla en móvil */
.rounded-4 {
    border-radius: 1.2rem !important;
}

/* Animación para los iconos de viento */
.bi-arrow-up {
    display: block;
    line-height: 1;
}

/* Estilo para el texto de los días no seleccionados */
.btn-white {
    background-color: #ffffff;
    color: #6c757d;
}

@keyframes pulse-red {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 1;
    }
}
.animate-pulse {
    animation: pulse-red 2s infinite;
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spinner {
    /* 8 segundos para una vuelta completa: suave y elegante */
    animation: spin-slow 8s linear infinite;
}

#radarTiempo2 {
    filter: grayscale(0.2) contrast(1.1); /* Toque estético para que no brille tanto */
}

/* Tarjeta juego*/

/* Colores de recorridos con texto blanco para legibilidad */
.recorrido-verde {
    background-color: #28a745 !important;
    color: white;
}
.recorrido-naranja {
    background-color: #fd7e14 !important;
    color: white;
}
.recorrido-rojo {
    background-color: #dc3545 !important;
    color: white;
}
.recorrido-azul {
    background-color: #007bff !important;
    color: white;
}
.recorrido-amarillo {
    background-color: #ffc107 !important;
    color: black;
}

/* Ajuste general de la tabla */
.table th,
.table td {
    padding: 8px 4px !important;
}

a {
    color: var(--vcg-green-dark);
}
.hover-transparent-success {
    text-decoration: none;
    cursor: pointer;
    background:
        /* linear-gradient(to right,  var(--bs-warning), var(--bs-warning)), */ linear-gradient(to right, transparent, transparent), linear-gradient(to right, var(--bs-success), var(--bs-success), var(--bs-success));
    background-size:
        100% 0.1em,
        0 0.1em;
    background-position:
        100% 100%,
        0 100%;
    background-repeat: no-repeat;
    transition: background-size 400ms;
    padding-bottom: 2px; /* Espacio para que el subrayado luzca más */
    display: inline-block;
}
.hover-transparent-success:hover,
.hover-transparent-success:focus {
    background-size:
        0 0.2em,
        100% 0.2em;
}

/*golf play*/
/* Forzamos el contenedor principal al borde de la pantalla */
.gp-main-wrapper-play {
    width: calc(100% + 30px);
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden; /* Evita scrolls raros verticales */
    /*compensar los margenes del main-container */
    margin-left: -15px !important;
    /* margin-right: -60px !important;  */
}

/* Eliminamos el radio y márgenes de la card para que pegue al borde */
.gp-main-wrapper-play .card {
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    border-left: none !important;
    border-right: none !important;
}

.sticky-name-play {
    position: sticky;
    left: 0;
    /* Calculamos el ancho basándonos en el contenedor de la tabla */
    /* Usamos 92vw aprox para que ocupe casi todo el ancho del móvil sin salirse */
    width: 94vw;
    max-width: 400px;
    z-index: 5;
    /* background-color: #f8f9fa;  */
    /* Color bg-light */
    display: block; /* Necesario para que el sticky funcione en celdas */
    /* border-right: 2px solid #dee2e6; */
}
.table-responsive-play {
    position: relative;
    overflow-x: auto;
}

/*golfplay*/
/* Clase base para que todos midan lo mismo */
.clsResultados {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
    border-radius: 50%;
}

.par,
.eagle,
.birdie,
.bogey,
.doublebogey {
    /* width: 24px; 
    height: 24px; */
    width: 1.5em;
    height: 1.5em;
    line-height: 1.5em;
    font-size: 1em;
    display: inline-block;
    text-align: center;
    border-radius: 50%;

    font-weight: bold;
    box-sizing: border-box; /* ¡Clave! El borde no suma tamaño al círculo */
}

.eagle {
    background-color: #ffb81c;
    color: white;
    border: 1px solid white;
    box-shadow: 0 0 0 2px #ffb81c; /* Crea un segundo anillo exterior */
    margin: 2px; /* Espacio para que el anillo no choque con otros */
}

.birdie {
    background-color: var(--bs-danger);
    color: white;
    border: 1px solid transparent; /* Para que ocupe el mismo espacio que el eagle */
}

.par {
    background-color: var(--vcg-text-muted);
    color: var(--vcg-white);
    /* border-radius: 0%; */
}
.bogey {
    background-color: var(--bs-dark);
    color: var(--vcg-white);
    border-radius: 0%;
}
.doublebogey {
    width: 30px; /* Aumentamos el tamaño total */
    height: 30px;
    line-height: 24px; /* Mantenemos el centrado del número */
    background-color: var(--vcg-blue-dark);
    color: var(--vcg-white);
    border-radius: 0%;
    border: 3px double white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* .doublebogey {
    background-color: var(--vcg-blue-dark);
    color: var(--vcg-white);
    border-radius: 0%;
    border: 3px double white !important; 
} */
.raya-x {
    color: var(--bs-gray-500);
    font-weight: normal;
} /* Estilo para la X */

/* para los rankings*/
.tabla-rankings {
    table-layout: fixed !important; /* Fundamental para que respeten el % */
    width: 100% !important;
    min-width: 400px; /* Asegura que no se aplaste demasiado en móviles micro */
}

/* Columna 1: POS */
.tabla-rankings th:nth-child(1),
.tabla-rankings td:nth-child(1) {
    width: 45px;
    text-align: center;
    padding-left: 8px;
}

/* Columna 2: NOMBRE */
.tabla-rankings th:nth-child(2),
.tabla-rankings td:nth-child(2) {
    width: auto; /* Que use el resto del espacio disponible */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Columna 3: SCORE (o la que toque tercera) */
.tabla-rankings th:nth-child(3),
.tabla-rankings td:nth-child(3) {
    width: 75px;
    text-align: center;
    font-weight: bold;
}

/* A partir de la cuarta columna: Columnas extra con scroll */
.tabla-rankings th:nth-child(n + 4),
.tabla-rankings td:nth-child(n + 4) {
    width: 100px; /* Ancho fijo para que "fuercen" el scroll hacia la derecha */
    text-align: center;
    color: var(--vcg-green-light);
}

/*categorias en resultados*/
.separator-row {
    /* font-size: 0.85rem; */
    /* letter-spacing: 0.5px; */
    font-family: var(--font-data);
}
.separator-row td {
    background-color: #b8e2cb !important;
    color: var(--vcg-green-dark) !important;
    font-weight: 800;
    /* padding: 10px 15px !important; */
    /* border-left: 6px solid var(--vcg-green-primary) !important; El detalle del borde que hablamos */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Animaciones del Modal */
.modal-fade {
    animation: fadeIn 0.3s ease-out;
}
.modal-pop {
    animation: modalZoom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalZoom {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Transición para el cambio de tarjeta entre rondas */
.fade-ronda-enter-active,
.fade-ronda-leave-active {
    transition: all 0.2s ease;
}
.fade-ronda-enter-from,
.fade-ronda-leave-to {
    opacity: 0;
    transform: translateY(10px);
}

/* Efecto de pulsación en botones de ronda */
.ronda-btn {
    transition: all 0.2s ease;
    cursor: pointer;
}
.ronda-btn:active {
    transform: scale(0.95);
}

.completados-css {
    position: absolute;
    opacity: 0.7;
    margin-left: -1.4em;
    width: 1.4em;
    height: 1.4em;
    border-width: 1px !important;
    border-left-color: transparent;
}

.dropdown-menu-end {
    right: 0 !important; /* Alinea al borde derecho del botón */
    left: auto !important; /* Evita que se estire desde la izquierda */
    transform: none !important; /* Evita que Popper.js lo mueva si usas Bootstrap completo */
}
.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #f0fdf4; /* Un verde muy suave de fondo */
    color: #198754; /* Texto en verde oscuro */
}

/* Color cuando el elemento está activo/seleccionado */
.dropdown-item:active,
.dropdown-item.active {
    background-color: #198754 !important; /* Verde fuerte */
    color: white !important;
}
.img-dentro-circle {
    width: 100%; /* Ocupa todo el ancho del botón (menos el padding) */
    height: 100%; /* Ocupa todo el alto para mantener el círculo */
    object-fit: cover;
    object-position: center top;
    border-radius: 50%; /* Fuerza la forma circular de la imagen interna */
    display: block;
}

.spinner-border {
    border-width: 0.15em;
    animation-duration: 1.5s;
}

/* Esta clase anula el pull-to-refresh */
.no-scroll-refresh {
    overscroll-behavior-y: none !important;
    /* Opcional: evita rebotes elásticos en iOS */
    overflow: hidden;
    height: 100%;
}
/* Base común: Tipografía fina y elegante */
.thead-golf th {
    font-weight: 300 !important; /* fw-light */
    letter-spacing: 0.3px;
    border: none !important;
}

/* Fila 1: HOYOS (Tu anterior MTS - El más "fuerte" de los claros) */
.thead-golf tr:nth-child(1) th {
    background-color: #d1e9db !important;
    color: #2c3e50 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Fila 2: PAR (Un paso más hacia el blanco) */
.thead-golf tr:nth-child(2) th {
    background-color: #def0e6 !important;
    color: #555 !important;
}

/* Fila 3: MTS (Casi blanco con matiz menta) */
.thead-golf tr:nth-child(3) th {
    background-color: #e9f4ee !important;
    color: #666 !important;
}

/* Fila 4: HCP (El fondo más neutro) */
.thead-golf tr:nth-child(4) th {
    background-color: #f4f9f6 !important;
    color: #888 !important;
}

/* Ajuste para el Hoyo Actual: Que destaque sin romper la sutileza */
.thead-golf th.bg-success {
    background-color: #79b48f !important; /* Tu verde original como acento */
    color: white !important;
    font-weight: 500 !important; /* Un poco más de peso para leerlo rápido */
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1); /* Sutil relieve */
}
.resaltar-hoyo-actual {
    background-color: #79b48f !important;
    color: white !important;
    font-weight: 700 !important; /* Un poco más de grosor para el número */
    border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.3) !important;
    /* Efecto de profundidad para que parezca que está "seleccionado" */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1) !important;
}
.resaltar-golpes-actual {
    background-color: #def0e6 !important;
    font-weight: 700 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.3) !important;

    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1) !important;
}

.esfera-reloj {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* Lo hace redondo */
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
    background-color: white; /* Color de fondo por defecto */
    color: black; /* Color de las agujas */
    /* border: 1px solid rgba(0, 0, 0, 0.1);  */
    /* Un bordecito sutil */
}

@keyframes bounceHorizontal {
    0%,
    100% {
        right: 15px;
    }
    50% {
        right: 25px;
    }
}

.aviso-scroll {
    position: absolute;
    right: 15px;
    /* top: 50%; */
    transform: translateY(-50%);
    z-index: 9999;
    pointer-events: none;
    animation: bounceHorizontal 2s infinite ease-in-out;
}

.btn-scanning {
    position: relative;
    overflow: hidden;
}

/* El subrayado animado */
.btn-scanning::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40%; /* La barrita mide el 40% del botón */
    height: 2px;
    /* background: #ffc107; 
    box-shadow: 0 0 8px #ffc107; */

    /* Usa el color del texto del botón */
    background: currentColor;
    /* El resplandor también usará el mismo color */
    box-shadow: 0 0 8px currentColor;

    /* animation: scan-move 2s infinite ease-in-out; */
    /* animation: scan-move 3s cubic-bezier(0.4, 0, 0.2, 1) infinite; */
    animation: scan-move 3s cubic-bezier(0.2, 0.9, 0.9, 0.2) infinite;
}

@keyframes scan-move {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(250%);
    }
    100% {
        transform: translateX(-100%);
    }
}
