/* ═══════════════════════════════════════════════════════
   DISCOVER — DISEÑO DE PRUEBA v5
══════════════════════════════════════════════════════════ */

/* ─── TAG MODAL ─── */
#tag-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

#tag-modal.visible {
    display: block;
}

.tag-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.tag-modal-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 28px 28px 0 0;
    padding: 28px 20px 40px;
    max-height: 85vh;
    overflow-y: auto;
    animation: sheetUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sheetUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.tag-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f3f4f6;
    border: none;
    border-radius: 100px;
    width: 32px;
    height: 32px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: #374151;
}

.tag-modal-emoji {
    font-size: 48px;
    margin-bottom: 10px;
    text-align: center;
}

.tag-modal-titulo {
    font-size: 22px;
    font-weight: 900;
    color: #111;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.tag-modal-desc {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: center;
}

.tag-modal-places-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #FFD400;
}

.tag-modal-places {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.tag-modal-place {
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.tag-modal-place img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
}

.tag-modal-place:active img {
    transform: scale(0.96);
}

.tag-modal-place span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 12px 6px 6px;
    text-align: center;
    line-height: 1.2;
}

/* ─── HEADER ─── */
.discover-header { padding: 8px 0 16px; }

.discover-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.discover-sub {
    font-size: 14px;
    opacity: 0.65;
    font-weight: 500;
}

/* ─── FILTROS ─── */
.cat-filter {
    padding: 10px 0 14px;
    background: var(--city-bg, #FFD400);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Flecha izquierda */
.cat-filter::before {
    content: '‹';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    font-size: 22px;
    font-weight: 900;
    color: #111;
    background: linear-gradient(to left, transparent, #FFD400 55%);
    pointer-events: none;
    line-height: 36px;
    text-align: center;
    z-index: 1;
}

/* Flecha derecha */
.cat-filter::after {
    content: '›';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    font-size: 22px;
    font-weight: 900;
    color: #111;
    background: linear-gradient(to right, transparent, #FFD400 55%);
    pointer-events: none;
    line-height: 36px;
    text-align: center;
    z-index: 1;
}

.cat-filter-inner {
    padding-left: 32px;
    padding-right: 32px;
}

.cat-btn {
    background: rgba(0,0,0,0.10);
    border: none;
    border-radius: 100px;
    padding: 7px 12px;
    font-size: 11.5px;
    font-weight: 700;
    color: #111;
    transition: all 0.18s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.cat-btn:active { transform: scale(0.94); }

/* Activo — negro con texto amarillo (colores de la app) */
.cat-btn.active {
    background: #111;
    color: #FFD400;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Excursión activo — igual que todos */
.cat-btn-excursion.active,
.cat-btn-excursion.active:focus {
    background: #111 !important;
    border-color: #111 !important;
    color: #FFD400 !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* ─── GRID — 2 columnas, primera destacada ─── */
.places-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-bottom: 20px;
}

.place-card-featured {
    grid-column: 1 / -1;
}

/* ─── TARJETAS ─── */
.place-card {
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.13);
    animation: cardIn 0.4s ease both;
}

.place-card:nth-child(2) { animation-delay: 0.06s; }
.place-card:nth-child(3) { animation-delay: 0.12s; }
.place-card:nth-child(4) { animation-delay: 0.18s; }
.place-card:nth-child(5) { animation-delay: 0.24s; }
.place-card:nth-child(6) { animation-delay: 0.30s; }
.place-card:nth-child(7) { animation-delay: 0.36s; }
.place-card:nth-child(8) { animation-delay: 0.42s; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.place-card:active { transform: scale(0.97); }

/* Imagen tarjeta pequeña */
.place-card-img-wrap { aspect-ratio: 16/9; }

/* Imagen tarjeta destacada — más alta */
.place-card-featured .place-card-img-wrap { aspect-ratio: 4/3; }

/* Gradiente profundo */
.place-card-gradient {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 10%,
        rgba(0,0,0,0.08) 40%,
        rgba(0,0,0,0.92) 100%
    );
    padding: 10px 11px;
}

/* ─── TEXTO ─── */
.place-card-title {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.15;
}

.place-card-featured .place-card-title {
    font-size: 21px;
    letter-spacing: -0.3px;
}

/* Ocultar desc y ticket en tarjetas no destacadas */
.place-card:not(.place-card-featured) .place-card-desc,
.place-card:not(.place-card-featured) .place-card-ticket {
    display: none;
}

/* ─── BADGE ─── */
.place-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 100px;
}

/* ─── TAG ACTIVO ─── */
.tag-filter-active {
    background: rgba(0,0,0,0.07);
    border-radius: 14px;
    padding: 10px 16px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
}
