/*
 * index.css — Estilos específicos de la Landing Page (index.php)
 * Pop-Up Store Pokémon GO · CDMX
 *
 * Extiende global.css. Solo contiene estilos exclusivos de esta página:
 *   - Hero header (logo, título, chips de fecha, decoraciones)
 *   - Selector de días (grid de 3 tarjetas)
 *   - Selector de franjas horarias (lista de 10 filas)
 *
 * Requiere: css/global.css cargado antes.
 */

/* ═══════════════════════════════════════════════════════════════════════════
   HERO HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
.app-hero {
    position: relative;
    width: 100%;
    padding: 28px 20px 24px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 97, 175, 0.22) 0%, transparent 100%);
    border-bottom: 1px solid var(--borde);
    overflow: hidden;
}

/* Círculo decorativo tipo Poké Ball — esquina superior derecha */
.app-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 28px solid rgba(0, 97, 175, 0.12);
    pointer-events: none;
}

/* Círculo decorativo amarillo — esquina inferior izquierda */
.app-hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 20px solid rgba(245, 197, 24, 0.07);
    pointer-events: none;
}

.hero-logo {
    height: 52px;
    width: auto;
    margin-bottom: 14px;
    filter: drop-shadow(0 2px 12px rgba(0, 97, 175, 0.5));
}

.hero-titulo {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--texto-primario);
    letter-spacing: -0.3px;
}

.hero-titulo span {
    color: var(--pgo-azul-claro);
}

.hero-subtitulo {
    margin-top: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--texto-secundario);
}

/* Chips de fechas bajo el título */
.hero-fechas {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.hero-fecha-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 97, 175, 0.20);
    border: 1px solid rgba(0, 97, 175, 0.40);
    color: #7ec8ff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radio-pill);
}


/* ═══════════════════════════════════════════════════════════════════════════
   SELECTOR DE DÍAS (grid 3 columnas — ocupa el ancho disponible completo)
   ═══════════════════════════════════════════════════════════════════════════ */
.dias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.dia-label {
    display: block;
    cursor: pointer;
    min-width: 0;          /* permite que el flex/grid comprima la tarjeta */
}

.dia-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dia-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px;
    background: var(--fondo-input);
    border: 1.5px solid var(--borde);
    border-radius: var(--radio-md);
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    min-height: 90px;
    overflow: hidden;       /* impide que el texto desborde la tarjeta */
    width: 100%;            /* ocupa exactamente la celda del grid */
}

.dia-label input:checked + .dia-card {
    border-color: var(--pgo-azul);
    background: rgba(0, 97, 175, 0.15);
}

.dia-semana {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--texto-secundario);
    text-transform: uppercase;
    letter-spacing: 0.02em;   /* reducido para que "DOMINGO" quepa */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.dia-numero {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--texto-primario);
    line-height: 1.1;
    margin-top: 2px;
}

.dia-mes {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--texto-secundario);
}

.dia-cupos {
    margin-top: 5px;
    font-size: 0.62rem;     /* pequeño para caber en una sola línea */
    font-weight: 800;
    padding: 2px 5px;
    border-radius: var(--radio-pill);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SELECTOR DE FRANJAS HORARIAS (lista vertical)
   ═══════════════════════════════════════════════════════════════════════════ */
.franjas-lista {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.franja-label {
    display: block;
    cursor: pointer;
}

.franja-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.franja-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 14px;
    background: var(--fondo-input);
    border: 1.5px solid var(--borde);
    border-radius: var(--radio-md);
    transition: border-color 0.2s, background 0.2s;
    min-height: 52px;
}

.franja-label input:checked + .franja-card {
    border-color: var(--pgo-azul);
    background: rgba(0, 97, 175, 0.12);
}

.franja-hora {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--texto-primario);
}

.franja-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: var(--radio-pill);
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HORARIOS COLAPSABLES (inician colapsados hasta elegir una fecha)
   ═══════════════════════════════════════════════════════════════════════════ */
.aviso-sin-fecha {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 12px;
    margin-top: 14px;
    background: var(--fondo-input);
    border: 1.5px dashed var(--borde);
    border-radius: var(--radio-md);
    color: var(--texto-secundario);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    transition: opacity 0.2s ease;
}

.bloque-horarios-colapsable {
    display: none;
}

/* Cuando se selecciona una fecha (radio checked), se oculta el aviso y se despliegan los horarios */
form:has(input[name="fecha_evento"]:checked) .aviso-sin-fecha {
    display: none;
}

form:has(input[name="fecha_evento"]:checked) .bloque-horarios-colapsable {
    display: block;
    animation: desplegarHorarios 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes desplegarHorarios {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   BLOQUES DE HORARIOS POR FECHA (mostrados/ocultados por fecha-selector.js)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Todos los bloques empiezan ocultos — JS añade .activo al que corresponde */
.bloque-horarios-fecha {
    display: none;
}

.bloque-horarios-fecha.activo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: desplegarHorarios 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
