/* =========================================================
   favoritos.css — Página "Mis Favoritos"
   ========================================================= */

/* ─── Glows decorativos (compartidos con perfil) ─── */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    opacity: .30;
}
.hero-glow-1 {
    width: 500px; height: 500px;
    background: #f9d423;
    top: -160px; right: -140px;
}
.hero-glow-2 {
    width: 440px; height: 440px;
    background: #99f2c8;
    bottom: -120px; left: -100px;
}

/* ─── Layout principal ─── */
.favs-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* ─── Cabecera ─── */
.favs-header {
    text-align: center;
    padding: 32px 16px 28px;
    position: relative;
    z-index: 2;
}

.favs-heart-icon {
    width: 40px;
    height: 40px;
    fill: var(--accent, #f9d423);
    flex-shrink: 0;
    transition: transform .2s;
}

.favs-header h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    color: #fff;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.favs-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, .65);
    margin: 0;
}

/* ─── Contenedor ─── */
.favs-container {
    position: relative;
    z-index: 2;
    padding: 0 0 100px;
}

.favs-count {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, .45);
    margin: 0 0 16px;
}

/* ─── Grid de tarjetas ─── */
.favs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

@media (max-width: 600px) {
    .favs-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Tarjeta ─── */
.fav-card {
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 20px;
    padding: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .18s ease, background .18s ease;
    position: relative;
    overflow: hidden;
}

.fav-card:hover {
    background: rgba(255, 255, 255, .15);
    transform: translateY(-2px);
}

.fav-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.fav-icon {
    font-size: 34px;
    line-height: 1;
}

/* Botón quitar */
.fav-remove {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 80, 80, .12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s, transform .12s;
    -webkit-tap-highlight-color: transparent;
}

.fav-remove svg {
    width: 18px;
    height: 18px;
    fill: rgba(255, 120, 120, .9);
    transition: fill .15s;
}

.fav-remove:hover {
    background: rgba(255, 80, 80, .28);
}

.fav-remove:hover svg {
    fill: #ff6b6b;
}

.fav-remove:active {
    transform: scale(.9);
}

/* Texto */
.fav-nombre {
    font-size: 17px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 5px;
    line-height: 1.3;
}

.fav-cat {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent, #f9d423);
    margin: 0 0 3px;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.fav-ciudad {
    font-size: 12px;
    color: rgba(255, 255, 255, .5);
    margin: 0 0 10px;
}

.fav-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, .72);
    line-height: 1.45;
    margin: 0 0 14px;
}

/* Footer de la tarjeta */
.fav-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .10);
    gap: 8px;
}

.fav-fecha {
    font-size: 11px;
    color: rgba(255, 255, 255, .38);
    flex-shrink: 0;
}

.fav-ver-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: rgba(249, 212, 35, .14);
    border: 1px solid rgba(249, 212, 35, .30);
    color: var(--accent, #f9d423);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: background .15s;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.fav-ver-btn svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    flex-shrink: 0;
}

.fav-ver-btn:hover {
    background: rgba(249, 212, 35, .26);
}

.fav-ver-btn:active {
    transform: scale(.97);
}

/* ─── Estado vacío ─── */
.favs-empty {
    text-align: center;
    padding: 64px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.favs-empty-icon {
    font-size: 72px;
    line-height: 1;
    filter: drop-shadow(0 8px 24px rgba(249, 212, 35, .25));
}

.favs-empty h2 {
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 900;
    color: #fff;
    margin: 0;
}

.favs-empty p {
    font-size: 15px;
    color: rgba(255, 255, 255, .65);
    max-width: 32ch;
    line-height: 1.55;
    margin: 0;
}

/* ─── Animación de eliminación ─── */
.fav-card {
    transition: transform .25s ease, opacity .25s ease, background .18s ease;
}
