/* ============================================================
   intereses.css — Sección "Intereses y aficiones"
   Autocontenida. Usa las variables de tokens.css y encaja con el
   sistema de componentes existente (section, kicker, cards, chips).
   ============================================================ */

/* Rejilla interna de la sección: bloques apilados con aire generoso */
.intereses__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.75rem);
}

.intereses__block {
  display: grid;
  gap: 1.25rem;
}

.intereses__block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.9rem;
}

.intereses__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.intereses__note {
  color: var(--text-muted);
  max-width: var(--measure);
}

/* ---------- Aficiones: tarjetas-etiqueta con icono ---------- */
.hobbies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 0.9rem;
}

.hobby {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.hobby:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--bg-elev-2);
}

.hobby__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.hobby__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.hobby__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.hobby__title {
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.hobby__detail {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ---------- Lectura: portadas de libro EN COLOR ---------- */
.books {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.book {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: clamp(140px, 22vw, 180px); /* ~210–270px de alto con proporción 2:3 */
}

.book__cover {
  width: 100%;
  height: auto;
  aspect-ratio: 256 / 400;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7);
  background: var(--bg-elev);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.book:hover .book__cover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.8);
}

.book__title {
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--text-muted);
  text-wrap: balance;
}

/* ---------- Viajes: chips (visitados destacados vs en el radar) ---------- */
.travel {
  display: grid;
  gap: 1.5rem;
}

.travel__lead {
  font-size: var(--fs-lead);
  color: var(--text);
  max-width: var(--measure);
  line-height: 1.5;
}

.travel__lead .accent {
  color: var(--accent-text);
  font-weight: 650;
}

.chip-group {
  display: grid;
  gap: 0.75rem;
}

.chip-group__label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.925rem;
  font-weight: 550;
  line-height: 1;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-elev);
}

.chip svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

/* Banderas de país (SVG auto-alojadas, monocolor de marca) */
.chip__flag {
  width: 1.4rem;
  height: auto;
  aspect-ratio: 3 / 2;
  flex: 0 0 auto;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--border-strong), 0 1px 3px -1px rgba(5, 11, 18, 0.3);
}

/* Destacados (visitados con buen recuerdo): acento */
.chip--star {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.chip--star svg {
  color: var(--accent-text);
}

/* En el radar: apagados y con borde punteado (pendientes) */
.chip--radar {
  border-style: dashed;
  border-color: var(--border-strong);
  color: var(--text-dim);
  background: transparent;
}

/* ---------- Hueco preparado para FOTOS de viajes ---------- */
.travel-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  gap: 0.9rem;
}

.travel-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}

.travel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder elegante mientras no hay foto real */
.travel-photo--empty {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  border-style: dashed;
  border-color: var(--border-strong);
  color: var(--text-dim);
  background: var(--bg-elev-2);
}

.travel-photo--empty svg {
  width: 1.6rem;
  height: 1.6rem;
  opacity: 0.7;
}

.travel-photo__hint {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding-inline: 0.75rem;
}

/* ---------- Respeta reduced-motion (sin transform/transiciones) ---------- */
@media (prefers-reduced-motion: reduce) {
  .hobby,
  .book__cover {
    transition: none;
  }
  .hobby:hover,
  .book:hover .book__cover {
    transform: none;
  }
}
