/* ==========================================================================
   Rutas y Sendas · Componentes para páginas interiores
   Usan los mismos tokens que home.css (cárgalo antes que este archivo).
   ========================================================================== */

/* ---------- Migas de pan ---------- */
.migas { font-size: .85rem; color: var(--piedra); padding-block: 1rem; }
.migas ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.migas li { display: flex; align-items: center; gap: .5rem; }
.migas li + li::before { content: "/"; color: var(--salvia); }
.migas a { color: var(--tinta); text-decoration: none; border-bottom: 1px solid var(--linea); padding: .15rem 0; display: inline-block; }
.migas a:hover { color: var(--terracota-texto); border-color: currentColor; }
.migas [aria-current="page"] { color: var(--piedra); }

/* ---------- Tarjeta de destino ---------- */
.destino { background: var(--crema); display: flex; flex-direction: column; }
.destino img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.destino__texto { padding: 1rem 1.25rem 1.4rem; text-align: center; }
.destino h3 { font-family: var(--f-manuscrita); font-size: 2.1rem; line-height: 1.1; margin-bottom: .6rem; }
.destino h3 a { color: var(--tinta); text-decoration: none; }
.destino__lista { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1rem; text-align: left; font-size: .9rem; }
.destino__lista a { color: var(--terracota-texto); text-decoration: none; display: inline-block; padding: .15rem 0; }
.destino__lista a:hover { text-decoration: underline; }

/* ---------- Galería tipo polaroid ---------- */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem 1.5rem; padding: 1rem .5rem; }
.galeria .polaroid { position: relative; width: auto; left: auto; top: auto; }
.galeria .polaroid:nth-child(3n + 1) { transform: rotate(-2.5deg); }
.galeria .polaroid:nth-child(3n + 2) { transform: rotate(1.5deg); }
.galeria .polaroid:nth-child(3n) { transform: rotate(-1deg); }
.galeria .polaroid figcaption { font-size: 1.2rem; }

/* ---------- Bloque editorial (texto + imagen alterna) ---------- */
.bloque-editorial { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.bloque-editorial--invertido > :first-child { order: 2; }
.bloque-editorial__imagen { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--sombra); }
.bloque-editorial h2 { font-family: var(--f-titular); font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.bloque-editorial p { color: var(--piedra); }

@media (max-width: 899px) {
  .bloque-editorial { grid-template-columns: 1fr; }
  .bloque-editorial--invertido > :first-child { order: 0; }
}
