.album-viewer {
    text-align: center;
    margin-top: 1.5em;
    background-color: transparent;

}

.btn-close-overlay {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0 1em;
    transition: 1s;
}


.btn-close-overlay :hover {
    background-color: #333;
}

.btn-close-overlay_bottom {}



.user-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    /* Se activa con una clase .is-visible */
    backdrop-filter: blur(5px);
}

.user-overlay__container {
    max-width: 600px;
    margin: 20px auto;
    /* background-color: var(--bg-body); */
    background-color: #fff;

    height: calc(100vh - 40px);
    border-radius: 15px;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Mejora el scroll en iOS */
    scroll-behavior: smooth;
    /* Opcional: hace que los saltos internos sean suaves */
}

.user-info {
    text-align: center;
    font-size: 1.5em;
}


/* Progreso de Estrellas */
.stars-container {
    /* display: grid;
    grid-template-columns: repeat(4, 1/4);
    gap: 10px;
    margin-top: 15px; */

    display: flex;
    grid-template-columns: repeat(4, 1/4);
    gap: 10px;
    margin-top: 15px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.progress-bar {
    background: #eee;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    background: gold;
    height: 100%;
    transition: width 0.5s ease;
}

.category-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;

}


.category-header img {
    max-width: 100px;

}

/* Grilla de Cromos */
.cromos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
/* Estilo del contenedor del cromo dentro de Swiper */
.cromo-slot {
    display: flex;
    flex-direction: column;
    aspect-ratio: 3/4; 
    border-radius: 10px;
    background: #fff; 
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

/* Contenedor interno para que la imagen ocupe el espacio principal */
.cromo-image-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.cromo-img-sticker {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Área del Nombre */
.cromo-metadata {
    background: #2c3e50; /* Un fondo sutilmente diferente para el texto */
    padding: 6px 4px;
    text-align: center;
    border-top: 1px solid #333;
}

.cromo-name {
    display: block;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Corta con "..." si el nombre es extremadamente largo */
}

/* Estado Bloqueado: Silueta en escala de grises y oscurecida */
.cromo-slot.is-locked .cromo-img-sticker {
    /* filter: grayscale(100%) brightness(35%); */
    filter:grayscale(1);
    transition: filter 0.3s ease;
    opacity: 0.1;
}

/* Estado Desbloqueado: Color total */
.cromo-slot.is-collected .cromo-img-sticker {
    opacity: 1;
    filter: grayscale(0%) brightness(100%);
}
.cromo-slot.is-collected .cromo-name {
    color: #64b6e6; /* El nombre resalta con el color de tu app */
}
/* Capa superior con el candado */
.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2); /* Sutil capa oscura */
}

.lock-icon {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* --- ESTADO DESBLOQUEADO (Feedback visual) --- */
.cromo-slot.is-collected:hover {
    transform: scale(1.05); /* Efecto zoom al pasar el mouse */
    box-shadow: 0 6px 15px rgba(100, 182, 230, 0.4); /* Brillo del color de tu app */
    cursor: pointer;
}


/* Ajuste de contenedores Swiper */
.swiper {
    position: relative;
    width: 100%;
    padding-left: 30px !important; /* Espacio para que las flechas no pisen las cartas */
    padding-right: 30px !important;
}

/* Customización de las flechas de Swiper */
.swiper-button-prev,
.swiper-button-next {
    color: #64b6e6; /* Cambia al color de tu interfaz */
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 18px; /* Flechas más sutiles y elegantes */
    font-weight: bold;
}


.swiper-wrapper{
    max-width: 200px;
    height: auto;

}

.swiper-slide img{
        max-height: 100%;
        /* max-width: fit-content; */
}

/* ---------------------------------------------------------------------------
   Dashboard conectado a Supabase.
   Reemplaza los estilos inline que tenía el snippet.
--------------------------------------------------------------------------- */

.section-hint {
    font-size: 12px;
    color: #777;
    margin: 8px 0 16px;
    line-height: 1.4;
}

.stats__rank {
    display: block;
    font-size: 11px;
    color: #888;
    text-align: right;
}

.star-label {
    display: block;
    font-size: 10px;
    color: #888;
    text-align: center;
    margin-top: 4px;
}

/* --- Circuitos --- */
.circuitos-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.circuito-item {
    background: #fdfdfd;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.circuito-item__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.circuito-item__head h3 {
    margin: 0;
    font-size: 16px;
    color: #000;
    font-weight: bold;
}

.circuito-item__count {
    font-size: 13px;
    font-weight: bold;
    color: #888;
}

.circuito-item.is-complete .circuito-item__count {
    color: #4CAF50;
}

.circuito-item .progress-bar {
    background: #f0f0f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.circuito-item .progress-fill {
    background: #64b6e6;
    height: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.circuito-item.is-complete .progress-fill {
    background: #4CAF50;
}

.circuito-item__done {
    color: #4CAF50;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 5px;
    display: block;
}

/* --- Álbum --- */
.album-section {
    margin-bottom: 35px;
    position: relative;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.category-header__count {
    font-size: 13px;
    font-weight: bold;
    color: #000;
    background: #eee;
    padding: 4px 10px;
    border-radius: 12px;
}

.album-section .swiper {
    position: relative;
    padding: 10px 40px;
}

/* --- Login de la home --- */
.login-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 0;
}

.login-form input[type="email"] {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    min-width: 220px;
}

.btn-secundario {
    background: transparent;
    border: 1px solid currentColor;
}

.login-msg {
    font-size: 13px;
    min-height: 1.2em;
    margin-top: 10px;
}

.login-msg.is-error {
    color: #e53935;
}

.login-status {
    font-size: 14px;
    margin-bottom: 10px;
}
