/* /public_html/assets/css/main.css */

:root {
    --brand-color: #0c4b7a; /* Color principal del cliente (Ej: Azul Foncor) */
    --brand-hover: #003366; /* Un tono más oscuro para el hover del botón */
    --bg-page: #f4f7fa;     /* Color de fondo de la página */
}

body {
    background-color: var(--bg-page);
}

.card-auth {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
}

/* Márgenes */
.m-top{margin-top: 32px;}

/* Botón corporativo maestro */
.btn-brand {
    background-color: var(--brand-color);
    color: #ffffff;
    border: none;
    transition: all 0.3s ease;
}

.btn-brand:hover, .btn-brand:focus {
    background-color: var(--brand-hover);
    color: #ffffff;
}

/* Texto corporativo */
.text-brand {
    color: var(--brand-color) !important;
}

/* --- AJUSTES DE FORMULARIO --- */

/* 1. Ocultar las flechas de los input tipo number (Chrome, Safari, Edge, Opera) */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
/* Ocultar las flechas en Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* 2. Arreglar el botón para que NO se ponga blanco al hacerle clic */
.btn-brand:hover, .btn-brand:focus, .btn-brand:active {
    background-color: var(--brand-hover) !important;
    color: #ffffff !important;
    border-color: var(--brand-hover) !important;
}

/* --- MIS PRONÓSTICOS --- */
/* --- TARJETAS DE PARTIDOS (CALENDARIO Y PRONÓSTICOS) --- */
.match-card {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.match-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #dee2e6;
}
.team-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}
.mi-marcador {
    background-color: #e8f4fd;
    color: #0d6efd;
    border: 2px solid #b6d4fe;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 1.2rem;
    font-weight: 900;
    display: inline-block;
}
.marcador-real {
    font-size: 0.9rem;
    font-weight: bold;
    color: #6c757d;
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
}
.puntos-box {
    background-color: #f1f8f5;
    color: #198754;
    border: 1px dashed #198754;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
    font-weight: bold;
}
.puntos-box.cero {
    background-color: #fff5f5;
    color: #dc3545;
    border-color: #dc3545;
}
.puntos-box.pendiente {
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #ced4da;
}
.date-header {
    background-color: var(--brand-color);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: bold;
}
.special-card {
    border: 2px dashed var(--brand-color);
    border-radius: 12px;
    background-color: #f8fbff;
}
        
/* El diseño exacto de los marcadores azules */
.mi-marcador {
    background-color: #e8f4fd;
    color: #0d6efd;
    border-radius: 8px;
    padding: 5px 15px;
    font-size: 1.2rem;
    font-weight: 900;
    display: inline-block;
}

/* --- ESTILOS DEL RANKING --- */
.ranking-table thead {
    background-color: var(--brand-color);
    color: white;
}
.pos-1 { background-color: #fff3cd; font-weight: bold; } /* Oro */
.pos-2 { background-color: #f8f9fa; } /* Plata */
.pos-3 { background-color: #fef5f0; } /* Bronce */

.badge-puntos {
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 10px;
}
.my-row {
    border: 2px solid var(--brand-color) !important;
}

/* --- FORM PRONÓSTICOS --- */
.mi-marcador-input { 
    background-color: #e8f4fd !important; 
    color: #0d6efd !important; 
    border: 1px solid #b6d4fe !important; 
    border-radius: 8px; 
    padding: 5px; 
    font-size: 1.4rem; 
    font-weight: 900; 
    width: 65px; 
    text-align: center; 
}
.puntos-badge {
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    border: 1px solid;
}
.puntos-ganados { background-color: #d1e7dd; color: #0f5132; border-color: #badbcc; }
.puntos-cero { background-color: #f8d7da; color: #842029; border-color: #f5c2c7; }

/* Dashboard Participante */
.stat-card {
    border-radius: 15px;
    border: none;
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }

.menu-card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    border-bottom: 4px solid transparent;
}
.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    color: inherit;
}
/* Colores de las tarjetas al hacer hover */
.card-enviar:hover { border-bottom-color: #0d6efd; }
.card-mis:hover { border-bottom-color: #198754; }
.card-posiciones:hover { border-bottom-color: #ffc107; }
.card-calendario:hover { border-bottom-color: #0dcaf0; }
.card-premios:hover { border-bottom-color: #d63384; }
.card-reglamento:hover { border-bottom-color: #6c757d; }

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* Estilo para las notificaciones del Master */
.alert-master {
    border: none;
    border-left: 5px solid #0d6efd;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    
}

/* Pag Calendario.php */
  /* 1. SCROLL SUAVE PARA TODA LA PÁGINA */
html {scroll-behavior: smooth;}

/* 2. DISEÑO DEL MENÚ FLOTANTE DE FECHAS */
.date-nav-wrapper {
    position: sticky;
    top: 0;
    background-color: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1020;
    padding: 10px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.date-scroll {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.date-scroll::-webkit-scrollbar { height: 6px; }
.date-scroll::-webkit-scrollbar-thumb {
    background-color: #adb5bd;
    border-radius: 10px;
}

/* 3. MARGEN DEL ANCLA PARA QUE EL MENÚ NO TAPE EL TÍTULO */
.seccion-fecha { scroll-margin-top: 80px; }

/* 4. BOTÓN VOLVER ARRIBA */
#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; 
    z-index: 1050;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    text-align: center;
}

.match-card {
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.2s;
}
.match-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: #dee2e6;
}
.team-name {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
}
.score-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--brand-color);
}
.date-header {
    background-color: var(--brand-color);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: bold;
}
.info-text { font-size: 0.75rem; }
.podio-card {
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}
.podio-card:hover { transform: translateY(-5px); }

/* Pág Mis Pronósticos */


/* Pág Enviar Pronósticos */
.mi-marcador-input { 
    background-color: #e8f4fd !important; 
    color: #0d6efd !important; 
    border: 1px solid #b6d4fe !important; 
    border-radius: 8px; padding: 5px; 
    font-size: 1.4rem; 
    font-weight: 900; 
    width: 60px; 
    text-align: center; 
}
.mi-marcador-input[readonly] { 
    background-color: #f8f9fa !important; 
    color: #6c757d !important; 
    border-color: #dee2e6 !important; 
}

/* =========================================
   ESTILOS DEL LOGIN (SPLIT-SCREEN)
   ========================================= */

/* Fondo de pantalla dividida */
.login-image-bg {
    background-image: url('../img/portada.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    box-shadow: inset 10px 0 20px rgba(0,0,0,0.05); 
}

/* Regla EXCLUSIVA para móviles y tablets */
@media (max-width: 991.98px) {
    .login-image-bg {
        /* Le damos una altura mínima para que se vea bien en el celular. 
           Puedes ajustar este valor (ej. 300px, 400px o 50vh) según tu gusto */
        min-height: 50vh; 
    }
}

/* Control del ancho máximo del formulario para que no se deforme en pantallas gigantes */
.login-form-wrapper {
    max-width: 450px;
}

/* Control del tamaño del logo inferior */
.logo-bottom {
    max-height: 50px;
}
