/* ==========================================================================
   CromoApp 2026 - Estilos Globales y Modulares (Paleta Mundial FIFA)
   ========================================================================== */

:root {
    --mundial-morado: #6a1b9a;      /* Púrpura vibrante del fondo izquierdo */
    --mundial-rojo: #d32f2f;        /* Rojo intenso central */
    --mundial-lima: #aeea00;        /* Verde lima/neón derecho */
    --mundial-oscuro: #120024;      /* Tono oscuro profundo para balancear */
    --blanco-puro: #ffffff;
    --gris-tarjeta: #ffffff;
    --texto-oscuro: #111111;
}

body {
    /* Fondo dinámico inspirado en las curvas cromáticas de la imagen */
    background: radial-gradient(circle at top left, var(--mundial-morado) 0%, var(--mundial-oscuro) 70%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--blanco-puro);
    margin: 0;
    position: relative;
}

/* Toque visual de contraste en la esquina inferior derecha imitando el diseño de la FIFA */
body::after {
    content: "";
    position: fixed;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: var(--mundial-lima);
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
}

/* Contenedor para empujar el footer hacia abajo */
.main-wrapper {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
}

/* --- Tarjeta de Login Re-diseñada (Estilo Logotipo FIFA) --- */
.login-container {
    width: 100%;
    max-width: 420px;
}

.card-login {
    background: var(--blanco-puro);
    border: 4px solid var(--mundial-rojo); /* Borde sólido e impactante */
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    color: var(--texto-oscuro);
    overflow: hidden;
}

/* Encabezado con el bloque rojo y tipografía limpia en blanco */
.card-header-custom {
    background-color: var(--mundial-rojo);
    color: var(--blanco-puro);
    text-align: center;
    padding: 2rem 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.card-header-custom h3 {
    font-size: 1.8rem;
    text-transform: uppercase;
}

/* Botón de Acción Principal (Usa el Morado de la paleta) */
.btn-custom {
    background-color: var(--mundial-morado);
    color: var(--blanco-puro);
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem;
    border-radius: 12px;
    transition: all 0.2s ease-in-out;
}

.btn-custom:hover {
    background-color: #4a0072;
    color: var(--blanco-puro);
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(106, 27, 154, 0.4);
}

/* Enfoque de campos resaltando con el verde lima */
.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
}

.form-control:focus {
    border-color: var(--mundial-morado);
    box-shadow: 0 0 0 0.25rem rgba(106, 27, 154, 0.25);
}

/* Links en el cuerpo del Login */
.login-footer-links a {
    color: var(--mundial-morado);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.login-footer-links a:hover {
    color: var(--mundial-rojo);
    text-decoration: underline;
}

/* --- Footer Modular Adaptado --- */
.footer-custom {
    background-color: rgba(18, 0, 36, 0.85); /* Fondo oscuro translúcido para fundirse con el body */
    backdrop-filter: blur(10px);
    color: #b3a2c2;
    padding: 25px 0;
    font-size: 0.85rem;
    border-top: 3px solid var(--mundial-lima); /* Línea de acento verde neón */
    width: 100%;
    flex-shrink: 0;
}

.footer-custom h5.text-dark {
    color: var(--blanco-puro) !important; /* Forzamos blanco en el entorno oscuro */
}

.footer-custom .badge-tech {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--mundial-lima);
    border: 1px solid var(--mundial-lima);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.footer-custom a.korsario-link {
    color: var(--mundial-lima);
    text-decoration: none;
    font-weight: bold;
}

.footer-custom a.korsario-link:hover {
    color: var(--blanco-puro);
    text-decoration: underline;
}




/* --- Estilos para el Entorno de Usuario (Home / Navbar) --- */

.style-navbar {
    background-color: var(--mundial-morado) !important;
    border-bottom: 3px solid var(--mundial-lima);
}

.text-lima {
    color: var(--mundial-lima) !important;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

/* Tarjetas contenedoras de opciones en el Home */
.card-home-option {
    background-color: var(--blanco-puro);
    border: none;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-home-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4) !important;
}

/* Figuras circulares para albergar los íconos dentro de las tarjetas */
.icon-shape {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.bg-morado {
    background-color: var(--mundial-morado);
}

.bg-rojo {
    background-color: var(--mundial-rojo);
}




/* --- Estilos para las tarjetas de Álbumes Activos (Home) --- */

.card-album {
    background-color: var(--blanco-puro);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-album:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

.album-cover {
    height: 180px;
    object-fit: cover; /* Mantiene la proporción de la imagen sin deformarla */
    width: 100%;
}

.bg-morado {
    background-color: var(--mundial-morado) !important;
}

.text-morado {
    color: var(--mundial-morado) !important;
}

/* Clases auxiliares para destacar los repetidos en rojo suave */
.bg-rojo-suave {
    background-color: #ffebee !important;
}
.text-danger-custom {
    color: var(--mundial-rojo) !important;
    font-weight: 500;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}




/* ==========================================================================
   VISTA DE DETALLE INTEGRAL (CROMOS EN CÍRCULOS Y COMPONENTES)
   ========================================================================== */

/* 1. Header con Imagen de fondo al 50% */
.card-album-header {
    background-color: var(--blanco-puro);
    border: none;
    border-radius: 18px;
}

.header-overlay-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.5; /* 50% Transparencia solicitada */
    pointer-events: none;
    z-index: 1;
}

/* Enlace retorno */
.link-retorno:hover {
    color: var(--mundial-lima) !important;
}

/* 2. Corrección del grupo de botones de filtro */
 

 

 
 

.selector-grupo-custom {
    min-width: 180px;
    background-color: var(--blanco-puro);
    color: var(--dark);
    font-weight: 600;
    border: 2px solid var(--mundial-morado);
}

/* 3. Dashboard del avance de grupo */
.card-group-dashboard {
    background-color: var(--blanco-puro);
    border: none;
    border-radius: 14px;
}

.group-thumb-container {
    width: 80px;
    height: auto;
    overflow: hidden;
    background-color: #f0f0f0;
}

.dot-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* 4. Estructura de Cromos en Círculos Perfectos */
.circle-cromo-wrapper {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.circle-cromo-wrapper:hover {
    transform: scale(1.1);
}

.circle-cromo-content {
    text-align: center;
    position: relative;
    width: 100%;
}

.circle-num {
    font-weight: 800;
    font-size: 1.3rem;
    display: block;
    line-height: 1;
}

/* Estados de los Círculos */
.circle-cromo-faltante {
    background-color: rgba(255, 255, 255, 0.12);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.35);
}

.circle-cromo-faltante:hover {
    background-color: rgba(255, 255, 255, 0.22);
    color: #fff;
    border-style: solid;
}

.circle-cromo-adquirido {
    background-color: var(--blanco-puro);
    border: 3px solid var(--blanco-puro);
    color: var(--mundial-morado);
}

.circle-cromo-adquirido:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.4) !important;
}

.circle-cromo-especial {
    border: 3px solid var(--mundial-lima) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f1ff9c 100%);
}

.holo-dot-icon {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #7cb342;
}

/* Badge circular flotante para repetidos */
.badge-circle-repetido {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--mundial-rojo);
    color: var(--blanco-puro);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 3;
}

/* 5. Zona de Estampas Recientes */
.card-recent-stamps {
    background-color: rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--mundial-lima) !important;
    border-radius: 14px;
}

.mini-circle {
    width: 55px;
    height: 55px;
}
.mini-circle .circle-num {
    font-size: 1rem;
}

/* 6. Zona de WhatsApp */
.card-whatsapp-share {
    background-color: var(--blanco-puro);
    border-radius: 16px;
}

.text-area-wa-format {
    background-color: #f4f6f9;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #2c3e50;
    border: 1px solid #dcdfe3;
    border-radius: 10px;
    resize: none;
}

/* Densidad responsiva optimizada para círculos (hasta 10 por fila en pantallas grandes) */
@media (min-width: 1200px) {
    .row-cols-lg-10 > * {
        flex: 0 0 auto;
        width: 10%;
    }
}




/* --- Ajustes Estéticos para el Modal de Control --- */
#cromoModal .bg-morado {
    background-color: var(--mundial-morado) !important;
}

#cromoCant:focus {
    border-color: var(--mundial-morado);
    box-shadow: none;
}

.modal-content {
    background-color: var(--blanco-puro) !important;
}