/* ===================================
   CBC MANISES - ESTILOS PRINCIPALES
   =================================== */

/* Botón WhatsApp en header */
.whatsapp-header-btn {
    background: white;
    color: #25D366;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.whatsapp-header-btn:hover {
    background: #25D366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

@media (max-width: 640px) {
    .whatsapp-header-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* ===================================
   FONDO ROTATIVO
   =================================== */

.contenedor-fotos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.fondo-foto {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.fondo-foto.activa {
    opacity: 1;
}

.fondo-1 { background-image: url('../imagenes/fondo1.jpg'); }
.fondo-2 { background-image: url('../imagenes/fondo2.jpg'); }
.fondo-3 { background-image: url('../imagenes/fondo3.jpg'); }
.fondo-4 { background-image: url('../imagenes/fondo4.jpg'); }

.overlay-naranja {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(255, 247, 237, 0.88), rgba(254, 215, 170, 0.88));
    z-index: 1;
    pointer-events: none;
}

.contenido-web {
    position: relative;
    z-index: 2;
}

/* ===================================
   ESTILOS PARA ACTAS
   =================================== */

.jugador-card {
    background: white;
    border-left: 4px solid #FF6B35;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 16px;
    margin-bottom: 12px;
    transition: transform 0.2s;
}

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

.dorsal-badge {
    background: #FF6B35;
    color: white;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-block;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.stat-item {
    text-align: center;
    padding: 8px;
    background: #F9FAFB;
    border-radius: 6px;
}

.stat-label {
    font-size: 0.7rem;
    color: #6B7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: bold;
    color: #1F2937;
    margin-top: 2px;
}

.stat-porcentaje {
    font-size: 0.75rem;
    color: #FF6B35;
    font-weight: 600;
    margin-top: 2px;
}

.cuarto-badge {
    display: inline-block;
    background: #FF6B35;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: bold;
    margin: 8px 0;
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   ESTILOS PARA GRÁFICAS
   =================================== */

.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .chart-container {
        height: 250px;
    }
}

/* ===================================
   ANIMACIONES Y MICRO-INTERACCIONES
   =================================== */

/* Animación de entrada suave */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInScale 0.4s ease-out forwards;
}

/* Efectos Hover Premium */
.hover-premium {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hover-premium:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.15), 0 8px 8px -5px rgba(0, 0, 0, 0.1) !important;
}

/* ===================================
   SISTEMA DE NOTIFICACIONES (TOASTS)
   =================================== */

#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 300px;
    max-width: 450px;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: toastSlideIn 0.3s ease-out forwards;
    border-left: 6px solid #cbd5e1;
}

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

.toast.removing {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideOut {
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-success { border-left-color: #10b981; }
.toast-error { border-left-color: #ef4444; }
.toast-info { border-left-color: #3b82f6; }
.toast-warning { border-left-color: #f59e0b; }

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.875rem;
    color: #1f2937;
    margin-bottom: 0.125rem;
}

.toast-message {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.25;
}

@media (max-width: 640px) {
    #toast-container {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
    .toast {
        min-width: 0;
        width: 100%;
    }
}
