/* ============================================================
   IMPERDIBLES — favoritos.css
   Estilos del sistema de Favoritos e Itinerario Personal
   ============================================================ */

/* ── BOTÓN CORAZÓN EN LAS TARJETAS ──────────────────────── */
.btn-favorito {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  backdrop-filter: blur(4px);
}

.btn-favorito:hover {
  transform: scale(1.15);
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn-favorito svg {
  width: 18px;
  height: 18px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Corazón vacío (estado por defecto) */
.btn-favorito .ico-heart-outline {
  display: block;
  stroke: #888;
  fill: none;
  stroke-width: 2;
}
.btn-favorito .ico-heart-filled {
  display: none;
  fill: #e84545;
  stroke: none;
}

/* Corazón lleno (estado activo) */
.btn-favorito.es-favorito .ico-heart-outline { display: none; }
.btn-favorito.es-favorito .ico-heart-filled  { display: block; }

.btn-favorito.es-favorito {
  background: #fff0f0;
}

/* Animación de "pop" al agregar */
@keyframes heartPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.btn-favorito.pop {
  animation: heartPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ── CONTADOR EN NAVBAR ──────────────────────────────────── */
.nav-favoritos-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.nav-favoritos-link:hover {
  color: #f5c518 !important;
}

.nav-favoritos-counter {
  background: #e84545;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.2s ease;
}

.nav-favoritos-counter.hidden { display: none; }

.nav-favoritos-counter.bump {
  animation: heartPop 0.3s ease forwards;
}

/* ── TOAST NOTIFICATION ──────────────────────────────────── */
.fav-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(30, 20, 10, 0.92);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 30px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  z-index: 9999;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.fav-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.fav-toast .toast-icon { margin-right: 6px; }

/* ── PÁGINA DE ITINERARIO ────────────────────────────────── */
.itinerario-hero {
  background: linear-gradient(135deg, #1a2e1a 0%, #0f1f0f 100%);
  padding: 80px 0 56px;
  text-align: center;
}

.itinerario-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  color: #fff;
  margin-bottom: 12px;
}

.itinerario-hero p {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  max-width: 440px;
  margin: 0 auto 28px;
}

.itinerario-contador {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.3);
  color: #f5c518;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 30px;
}

.section-itinerario-grid {
  padding: 56px 0 72px;
  background: var(--crema-oscura, #f2ede6);
}

.itinerario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* Tarjeta de favorito en itinerario */
.fav-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1.5px solid rgba(0,0,0,0.05);
  position: relative;
}

.fav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.fav-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.fav-card-body {
  padding: 16px 18px 18px;
}

.fav-card-zona {
  font-size: 0.68rem;
  font-weight: 700;
  color: #C8793A;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.fav-card-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  margin-bottom: 8px;
}

.fav-card-municipio {
  font-size: 0.78rem;
  color: #7a6552;
  margin-bottom: 14px;
}

.fav-card-actions {
  display: flex;
  gap: 8px;
}

.btn-ver-experiencia {
  flex: 1;
  padding: 8px 0;
  border-radius: 30px;
  background: #1a2e1a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease;
}
.btn-ver-experiencia:hover { background: #2d4a1e; }

.btn-quitar-favorito {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #e8d5c8;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e84545;
  font-size: 1rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.btn-quitar-favorito:hover {
  background: #fff0f0;
  border-color: #e84545;
}

/* Estado vacío de itinerario */
.itinerario-vacio {
  text-align: center;
  padding: 80px 20px;
  grid-column: 1 / -1;
}

.itinerario-vacio .vacio-icono {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

.itinerario-vacio h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: #3b2f24;
  margin-bottom: 12px;
}

.itinerario-vacio p {
  color: #7a6552;
  font-size: 0.95rem;
  max-width: 400px;
  margin: 0 auto 24px;
}

.btn-explorar-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a2e1a;
  color: #fff;
  padding: 12px 32px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-explorar-primary:hover {
  background: #2d4a1e;
  transform: translateY(-2px);
}

/* Botón compartir */
.itinerario-acciones {
  text-align: center;
  margin-top: 40px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-compartir {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: 30px;
  border: 1.5px solid #25D366;
  background: transparent;
  color: #25D366;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}
.btn-compartir:hover {
  background: #25D366;
  color: #fff;
}

.btn-limpiar-itinerario {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 28px;
  border-radius: 30px;
  border: 1.5px solid #e8d5c8;
  background: transparent;
  color: #9e8672;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}
.btn-limpiar-itinerario:hover {
  border-color: #e84545;
  color: #e84545;
}
