/* Historia de Popayán (historia.html). Usa los tokens y piezas de styles.css. */

.historia-portada { position: relative; overflow: hidden; background: var(--acento); color: #fff; padding: 28px 0 56px; }
.patron-historia { position: absolute; inset: -40px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 40px; padding: 20px; opacity: .1; pointer-events: none; }
.patron-historia svg { width: 110px; height: 110px; justify-self: center; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.patron-historia svg .r { fill: #fff; fill-opacity: .14; stroke: none; }
.historia-portada-contenido { position: relative; }
.logo-claro { color: #fff; text-decoration: none; }
.logo-claro em { color: #ffd6c4; }
.historia-etiqueta { margin: 36px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffe4d8; }
.historia-portada h1 { font-family: "Fraunces", serif; font-weight: 800; font-size: clamp(40px, 8vw, 76px); line-height: 1; letter-spacing: -.02em; margin: 8px 0 12px; }
.historia-lema { font-size: clamp(17px, 2.4vw, 21px); color: #ffe4d8; max-width: 52ch; margin: 0; }
.historia-indice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.historia-indice a { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .5); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; transition: background-color .2s; }
.historia-indice a:hover { background: rgba(255, 255, 255, .28); }

.historia-main { max-width: 860px; padding-bottom: 56px; }
.bloque { margin-top: 56px; scroll-margin-top: 20px; }
.bloque-etiqueta { margin: 0; color: var(--acento); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.bloque h2 { font-family: "Fraunces", serif; font-size: clamp(26px, 4vw, 34px); line-height: 1.15; margin: 6px 0 14px; }
.entrada, .bloque > p { color: var(--tinta-suave); line-height: 1.7; font-size: 17px; margin: 0 0 20px; }
.bloque strong { color: var(--tinta); }
.bloque a:not([class]) { color: var(--acento); font-weight: 600; }

/* Línea de tiempo */
.linea-tiempo { list-style: none; margin: 8px 0 0; padding: 0 0 0 22px; border-left: 3px solid var(--borde); display: grid; gap: 18px; }
.linea-tiempo li { position: relative; }
.linea-tiempo li::before { content: ""; position: absolute; left: -31px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--acento); box-shadow: 0 0 0 4px var(--fondo); }
.anio { display: inline-block; font: 800 18px "Fraunces", serif; color: var(--acento); }
.linea-tiempo p { margin: 4px 0 0; color: var(--tinta-suave); line-height: 1.6; }

/* Platos */
.platos { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.plato { background: var(--superficie); border: 1px solid var(--borde); border-radius: 20px; padding: 18px; transition: transform .2s, box-shadow .2s; }
.plato:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(42, 33, 28, .08); }
.plato-icono { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--cat-fondo); color: var(--cat); }
.plato-icono .portada-icono { width: 34px; height: 34px; }
.plato h3 { font-family: "Fraunces", serif; font-size: 19px; margin: 12px 0 6px; }
.plato p { margin: 0; color: var(--tinta-suave); font-size: 14px; line-height: 1.5; }

/* Gente */
.tarjetas-gente { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tarjetas-gente article { background: var(--superficie); border: 1px solid var(--borde); border-radius: 20px; padding: 20px; }
.tarjetas-gente h3 { font-family: "Fraunces", serif; font-size: 20px; margin: 0 0 8px; }
.tarjetas-gente p { margin: 0; color: var(--tinta-suave); line-height: 1.6; font-size: 15px; }

/* Qué conocer */
.lugares-ver { margin: 0 0 20px; padding-left: 20px; display: grid; gap: 10px; color: var(--tinta-suave); line-height: 1.6; }

/* Botones */
.bloque-botones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.boton-historia {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--acento); color: #fff; font-weight: 700; text-decoration: none; transition: transform .15s, background-color .2s;
}
.boton-historia:hover { background: var(--acento-oscuro); transform: translateY(-2px); }
.boton-historia.claro { background: var(--superficie); color: var(--acento); border: 2px solid var(--acento); }
.boton-historia.claro:hover { background: #fff7f2; }

/* Popayum */
.bloque-popayum { position: relative; background: var(--superficie); border: 1px solid var(--borde); border-radius: 26px; padding: 32px; }
.sello-popayum { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 14px; }

/* Preguntas */
.preguntas { display: grid; gap: 10px; }
.preguntas details { background: var(--superficie); border: 1px solid var(--borde); border-radius: 16px; padding: 14px 18px; }
.preguntas summary { cursor: pointer; font-weight: 700; }
.preguntas details p { margin: 10px 0 0; color: var(--tinta-suave); line-height: 1.6; }

@media (max-width: 600px) {
  .tarjetas-gente { grid-template-columns: 1fr; }
  .platos { grid-template-columns: 1fr 1fr; gap: 10px; }
  .plato { padding: 14px; }
  .bloque-popayum { padding: 22px; }
  .boton-historia { width: 100%; justify-content: center; }
}
