/* JaviGoTravel — fichas de destino e itinerarios de muestra (HTML estático, sin la app).
   Kit de marca 1.0: ciruela para la acción principal, ámbar para descubrir (siempre con texto tinta),
   verde para afinidad y datos verificados, Instrument Serif solo en titulares, Manrope en la interfaz.
   Sin estilos en línea (compatible con style-src 'self'). Objetivos táctiles de 44 px o más. */

@font-face { font-family: Manrope; src: url(/fonts/Manrope-Variable.woff) format("woff"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/InstrumentSerif-Regular.woff) format("woff"); font-weight: 400; font-display: swap; }

:root {
  --plum: #4A285F; --plum-deep: #331A43; --plum-soft: #EFE8F3;
  --amber: #D77A38; --amber-soft: #F8E6D8; --warn-ink: #6B3410;
  --green: #2F756A; --green-soft: #E4EFEC;
  --sand: #F5F0E8; --ink: #1D1A20; --mist: #FBFAF8; --muted: #5E5662; --rule: #DED6DF;
  --ui: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --organic: 22px 22px 22px 6px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 2px rgba(29, 26, 32, .05), 0 10px 30px rgba(74, 40, 95, .10);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 16px/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--plum); text-underline-offset: 3px; }
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--plum); letter-spacing: -.01em; line-height: 1.05; margin: 0 0 .35em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); }
h3 { font-size: 1.05rem; margin: 0 0 .4em; color: var(--plum); }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 16px; z-index: 100; background: #fff; padding: 12px 14px; min-height: 44px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.ico { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.22em; }
.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------- botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 8px;
  border: 1.5px solid var(--plum); background: transparent; color: var(--plum); font: 700 .95rem/1.2 var(--ui); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--plum-soft); }
.btn.primary { background: var(--plum); color: var(--mist); }
.btn.primary:hover { background: var(--plum-deep); }
.btn.discover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn.discover:hover { background: #c96c2c; }
.btn.small { min-height: 44px; padding: 8px 14px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------------------------------------------------------------- encabezado y pie */
.fx-top { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 248, .94); border-bottom: 1px solid var(--rule); }
.fx-top .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.fx-top .brand { flex: none; line-height: 0; }
.fx-top .brand img { width: 200px; height: auto; }
.fx-nav { display: none; gap: 4px; margin-left: auto; }
.fx-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink); font-weight: 600; text-decoration: none; }
.fx-nav a:hover, .fx-nav a[aria-current="page"] { background: var(--plum-soft); color: var(--plum); }
.fx-top .btn { margin-left: auto; }
@media (min-width: 900px) { .fx-nav { display: flex; } .fx-top .btn { margin-left: 8px; } }
@media (max-width: 420px) { .fx-top .wrap { gap: 10px; } .fx-top .btn { padding: 8px 12px; font-size: .85rem; } }

.crumbs { font-size: .85rem; color: var(--muted); padding-top: 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--rule); }
.crumbs a, .crumbs span { color: var(--muted); display: inline-block; padding: 11px 0; line-height: 22px; }

.fx-foot { background: var(--plum-deep); color: rgba(251, 250, 248, .86); margin-top: 72px; padding: 44px 0 28px; font-size: .9rem; }
.fx-foot img { width: 200px; height: auto; margin-bottom: 14px; }
.fx-foot .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 32px; margin: 18px 0; }
.fx-foot strong { display: block; color: var(--mist); margin-bottom: 4px; }
.fx-foot a { color: var(--mist); display: flex; align-items: center; min-height: 44px; }
.fx-foot .fine { font-size: .8rem; color: rgba(251, 250, 248, .7); max-width: 72ch; }

/* ---------------------------------------------------------------- portada de la ficha */
.hero { display: grid; gap: 22px; padding-block: 10px 8px; align-items: center; }
.hero-photo { border-radius: var(--organic); overflow: hidden; aspect-ratio: 16 / 10; background: var(--sand); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.kicker { font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green); margin-bottom: .5em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr 1fr; gap: 44px; padding-block: 26px 10px; } .hero-photo { aspect-ratio: 4 / 3.4; order: 2; } }

.level { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: 999px; background: var(--sand); color: var(--ink); margin: 4px 0 0; }
.level::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.level.verificado { background: var(--green-soft); }
.level.verificado::before { background: var(--green); }
.level.parcial { background: var(--amber-soft); color: var(--warn-ink); }
.level.parcial::before { background: var(--amber); }
.level-note { font-size: .85rem; color: var(--muted); margin-top: 8px; max-width: 62ch; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--sand); color: var(--ink); white-space: nowrap; }
.chip.ok { background: var(--green-soft); color: #1f5048; }
.chip.act { background: var(--amber-soft); color: var(--warn-ink); }
.chip.low { background: #eee9ef; color: var(--muted); }

/* ---------------------------------------------------------------- secciones */
.sec { padding-top: 56px; }
.sec > header { max-width: 70ch; margin-bottom: 18px; }
.sec > header p { color: var(--muted); }
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 26px 0 0; padding: 0; list-style: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule); background: #fff; color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none; }
.subnav a:hover { border-color: var(--plum); color: var(--plum); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; margin: 26px 0 0; }
.fact { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; }
.fact dt { font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 4px 0 0; font-size: 1.05rem; font-weight: 700; }
.fact dd small { display: block; font-weight: 500; font-size: .85rem; color: var(--muted); margin-top: 4px; }
.fact .big { font-family: var(--serif); font-weight: 400; font-size: 2.1rem; line-height: 1; color: var(--plum); }

.src { font-size: .8rem; color: var(--muted); margin: 6px 0 0; overflow-wrap: anywhere; }
.src a { color: var(--muted); }

/* ---------------------------------------------------------------- clima de 12 meses */
.clim-wrap { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 14px; }
.clim { width: 100%; border-collapse: separate; border-spacing: 2px; table-layout: fixed; font-size: .82rem; text-align: center; }
.clim caption { text-align: left; font-weight: 700; padding: 0 2px 8px; }
.clim th { font-weight: 700; color: var(--muted); padding: 4px 0; }
.clim thead th { font-size: .78rem; }
.clim tbody th { text-align: left; width: 74px; font-size: .78rem; }
.clim td { padding: 7px 0; border-radius: 6px; font-variant-numeric: tabular-nums; }
.clim thead th.best { color: var(--green); }
.clim thead th.best abbr::after { content: "●"; display: block; font-size: .6rem; line-height: 1; }
.clim abbr { text-decoration: none; }
.t1 { background: #e7eef6; } .t2 { background: #eef3ea; } .t3 { background: #f6efdc; } .t4 { background: #f8e3cf; } .t5 { background: #f3cfb6; }
.r0 { background: #f7f5f2; } .r1 { background: #e9e4f0; } .r2 { background: #d9cfe6; } .r3 { background: #c4b4d8; } .r4 { background: #a991c4; color: #fff; }
.clim-v { display: none; }
.clim-v thead th { font-size: .75rem; }
.clim-v tbody th { width: auto; font-size: .88rem; color: var(--ink); font-weight: 600; }
.clim-v tbody th.best { color: var(--green); font-weight: 800; }
@media (max-width: 560px) { .clim-wrap { padding: 10px; } .clim-h { display: none; } .clim-v { display: table; font-size: .88rem; } .clim-v td { padding: 6px 0; } }
.when { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-bottom: 14px; }
.when > div { border-radius: 12px; padding: 16px 18px; background: var(--green-soft); }
.when > div.avoid { background: var(--sand); }
.when strong { display: block; font-size: 1.15rem; }

/* ---------------------------------------------------------------- requisitos de entrada */
.pp-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.pp-pick label { font-weight: 700; }
.pp-pick select { min-height: 44px; min-width: min(100%, 260px); max-width: 100%; padding: 8px 12px; border: 1.5px solid var(--plum); border-radius: 8px; background: #fff; font: 600 1rem var(--ui); color: var(--ink); }
.pp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pp-list > li { background: #fff; border: 1px solid var(--rule); border-radius: 12px; }
.pp-list > li.picked { border-color: var(--plum); box-shadow: var(--shadow); }
.pp-list summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 52px; padding: 10px 16px; cursor: pointer; list-style: none; }
.pp-list summary::-webkit-details-marker { display: none; }
.pp-list summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--plum); line-height: 1; }
.pp-list details[open] summary::after { content: "–"; }
.pp-list summary b { min-width: 9.5em; }
.pp-body { padding: 0 16px 14px; font-size: .95rem; }
.pp-body .facts-line { color: var(--muted); font-size: .88rem; }
.pp-body .warn { background: var(--amber-soft); color: var(--warn-ink); padding: 8px 12px; border-radius: 8px; font-size: .9rem; }
.pp-body blockquote { margin: 8px 0 0; padding: 8px 12px; border-left: 3px solid var(--rule); color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.js .pp-list.filtered > li:not(.picked) { display: none; }
.pp-all { margin-top: 10px; }

/* ---------------------------------------------------------------- itinerario */
.profile { background: var(--plum-soft); border-radius: 12px; padding: 14px 18px; font-size: .92rem; margin-bottom: 18px; }
.profile strong { color: var(--plum); }
.kpis { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.kpis li { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 10px 14px; font-size: .85rem; color: var(--muted); }
.kpis b { display: block; font-size: 1.25rem; color: var(--ink); }
.day { background: #fff; border: 1px solid var(--rule); border-radius: var(--organic); padding: 18px clamp(14px, 3vw, 26px); margin-bottom: 16px; }
.day > h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin-bottom: 4px; }
.day > h3 small { font-family: var(--ui); font-size: .9rem; color: var(--muted); font-weight: 600; }
.weather { font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
.weather.medium { color: var(--warn-ink); }
.tl { list-style: none; margin: 0; padding: 0; }
.tl > li { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid #efeaf0; }
.tl > li:first-child { border-top: 0; }
.tl .time { font-weight: 800; font-variant-numeric: tabular-nums; font-size: .92rem; }
.tl .time span { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.tl .title { margin: 0; font-weight: 700; }
.tl .tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.tl .t-visit .tag, .tl .t-activity .tag { color: var(--green); }
.tl .t-meal .tag { color: var(--amber); }
.tl .t-transfer .title, .tl .t-buffer .title, .tl .t-rest .title { font-weight: 600; color: #3d3640; }
.tl .why { font-size: .86rem; color: var(--muted); margin: 2px 0 0; }
.tl .planb { font-size: .86rem; margin: 6px 0 0; padding: 6px 10px; border-left: 3px solid var(--amber); background: #fdf6f0; border-radius: 0 8px 8px 0; }
.tl .cost { font-size: .85rem; margin: 4px 0 0; }
.tl details { margin-top: 2px; font-size: .86rem; color: var(--muted); }
.tl details summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; color: var(--plum); font-weight: 600; }
.tl details ul { margin: 0; padding-left: 18px; }
.more-days { background: var(--sand); border-radius: var(--organic); padding: 20px clamp(16px, 3vw, 26px); }
.more-days h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.gate-note { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.excluded { margin-top: 18px; background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 4px 16px; }
.excluded summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 700; color: var(--plum); }
.excluded ul { margin: 0 0 12px; padding-left: 18px; font-size: .9rem; }

/* ---------------------------------------------------------------- zonas, presupuesto, lugares, fuentes */
.cards { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; }
.card p { font-size: .92rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 14px; border-top: 1px solid #efeaf0; vertical-align: top; }
.tbl thead th { border-top: 0; background: var(--sand); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tbl td.num { font-weight: 700; white-space: nowrap; }
@media (max-width: 560px) {
  .tbl thead { display: none; }
  .tbl tr { display: block; padding: 10px 14px; border-top: 1px solid #efeaf0; }
  .tbl th, .tbl td { display: block; padding: 2px 0; border: 0; }
}
.places { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.places li { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 12px 16px; }
.places b { display: block; }
.sources { margin: 0; padding-left: 18px; font-size: .86rem; color: var(--muted); }
.sources li { margin-bottom: 6px; overflow-wrap: anywhere; }
.cta-end { margin-top: 56px; background: var(--plum); color: var(--mist); border-radius: var(--organic); padding: clamp(24px, 5vw, 44px); }
.cta-end h2 { color: var(--mist); }
.cta-end p { color: rgba(251, 250, 248, .86); max-width: 60ch; }
.cta-end .btn { border-color: var(--mist); color: var(--mist); }
.cta-end .btn.discover { border-color: var(--amber); color: var(--ink); }

/* ---------------------------------------------------------------- índice de destinos */
.zone-block { margin-top: 34px; }
.dest-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.dest-links a { display: flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--ink); font-weight: 600; border-bottom: 1px solid #efeaf0; }
.dest-links a:hover { color: var(--plum); }
.dest-links small { color: var(--muted); font-weight: 500; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.verificado { background: var(--green); } .dot.parcial { background: var(--amber); }
.samples { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.samples a { display: block; background: #fff; border: 1px solid var(--rule); border-radius: var(--organic); overflow: hidden; text-decoration: none; color: var(--ink); }
.samples a:hover { border-color: var(--plum); box-shadow: var(--shadow); }
.samples img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sand); }
.samples span { display: block; padding: 10px 14px 14px; font-weight: 700; }
.samples small { display: block; font-weight: 500; color: var(--muted); }

@media print {
  .fx-top, .fx-foot, .subnav, .actions, .cta-end, .pp-pick { display: none; }
  .day { break-inside: avoid; border: 0; padding: 0; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
