/* =========================================================================
   La Dolce Vita 2026 — estilos
   Dirección: editorial mediterráneo (paleta del planning)
   ========================================================================= */

:root {
  --cream:      #faf3e3;
  --cream-2:    #f4ead2;
  --paper:      #fffdf7;
  --ink:        #1e3a5f;
  --ink-soft:   #51617f;
  --ink-faint:  #8794a8;
  --terracotta: #c0563b;
  --terracotta-d:#a8452d;
  --blue:       #2e6da4;
  --green:      #3c7d5a;
  --line:       rgba(30, 58, 95, .12);
  --line-soft:  rgba(30, 58, 95, .07);
  --shadow:     0 1px 2px rgba(30,58,95,.06), 0 8px 24px rgba(30,58,95,.07);
  --shadow-lg:  0 2px 6px rgba(30,58,95,.08), 0 18px 50px rgba(30,58,95,.13);
  --radius:     16px;
  --maxw:       960px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 84px; /* hueco para la barra inferior */
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 243, 227, .86);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner { max-width: var(--maxw); margin: 0 auto; padding: 11px 18px; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: baseline; gap: 9px; }
.brand .mark { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.18rem; color: var(--terracotta); }
.brand .sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Vistas ---------- */
.view { display: none; animation: fade .35s ease both; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.section-head { padding: 26px 0 10px; }
.section-head h2 { font-size: clamp(1.7rem, 5vw, 2.3rem); }
.section-head .lead { color: var(--ink-soft); margin-top: 6px; max-width: 56ch; }
.eyebrow { font-size: .73rem; letter-spacing: .18em; text-transform: uppercase; color: var(--terracotta); font-weight: 700; margin-bottom: 8px; }

/* ---------- Hero / masthead (inicio) ---------- */
.masthead {
  position: relative; border-radius: 0 0 26px 26px; overflow: hidden;
  margin: 0 -18px 6px;
  min-height: 340px; display: flex; align-items: flex-end;
  color: #fff;
}
/* Carrusel de fondo (3 ciudades) */
.masthead .slideshow { position: absolute; inset: 0; background: #16263b; }
.masthead .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.8s cubic-bezier(.4, 0, .2, 1); will-change: opacity, transform; }
.masthead .slide.active { opacity: 1; }
/* Ken Burns continuo (12s) para que el movimiento no se corte en el fundido */
.masthead .slide:nth-child(1).active { animation: kb1 12s ease-out both; }
.masthead .slide:nth-child(2).active { animation: kb2 12s ease-out both; }
.masthead .slide:nth-child(3).active { animation: kb3 12s ease-out both; }
@keyframes kb1 { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.18) translate(-2.5%, -2.5%); } }
@keyframes kb2 { from { transform: scale(1.18) translate(2.5%, -1.5%); } to { transform: scale(1.06) translate(0, 0); } }
@keyframes kb3 { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.17) translate(2.5%, -2%); } }

.masthead .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,34,55,.10) 0%, rgba(20,34,55,.28) 42%, rgba(16,27,44,.82) 100%); }

/* Indicadores del carrusel (botones táctiles) */
.masthead .slide-dots { position: absolute; top: 12px; right: 14px; display: flex; gap: 4px; z-index: 3; }
.masthead .slide-dots button { -webkit-appearance: none; appearance: none; border: none; background: none; padding: 8px 4px; cursor: pointer; display: flex; align-items: center; }
.masthead .slide-dots button::before { content: ""; display: block; width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.55); box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: width .4s ease, background .4s ease; }
.masthead .slide-dots button.active::before { background: #fff; width: 20px; }

.masthead-inner { position: relative; z-index: 2; padding: 30px 22px 26px; width: 100%; }
.masthead .ital { font-family: var(--serif); font-style: italic; font-size: .98rem; letter-spacing: .03em; color: #f6d9bf; margin-bottom: 4px; }
.masthead h1 { color: #fff; font-size: clamp(2.4rem, 9vw, 3.6rem); line-height: .98; }
.masthead .cities { margin-top: 10px; font-weight: 600; letter-spacing: .02em; }
.masthead .dates { font-size: .9rem; color: #e7ecf3; opacity: .92; }

/* Entrada escalonada del texto del hero */
@media (prefers-reduced-motion: no-preference) {
  .masthead-inner > * { animation: heroReveal .8s cubic-bezier(.2,.7,.3,1) both; }
  .masthead-inner .reveal-1 { animation-delay: .15s; }
  .masthead-inner .reveal-2 { animation-delay: .28s; }
  .masthead-inner .reveal-3 { animation-delay: .44s; }
  .masthead-inner .reveal-4 { animation-delay: .54s; }
  @keyframes heroReveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .masthead .slide { transition: none; }
  .masthead .slide.active { animation: none; }
}

/* ---------- Cards genéricas ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* "Hoy" en inicio */
.today-card { overflow: hidden; margin-top: 18px; }
.today-card .photo { position: relative; height: 190px; }
.today-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.today-card .photo .tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--terracotta); color: #fff; font-size: .74rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(168,69,45,.4);
}
.today-card .photo .daydate {
  position: absolute; bottom: 12px; left: 16px; right: 16px; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.today-card .photo .daydate .wd { font-size: .82rem; letter-spacing: .04em; opacity: .95; text-transform: capitalize; }
.today-card .photo .daydate h3 { color: #fff; font-size: 1.5rem; }
.today-card .body { padding: 16px 18px 18px; }
.today-card .body p.obj { color: var(--ink-soft); }
.today-card .body .plan-lines { margin-top: 12px; display: grid; gap: 6px; }
.today-card .body .plan-lines span { display: flex; gap: 9px; align-items: baseline; font-size: .95rem; }
.today-card .body .plan-lines span::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--terracotta); margin-top: 6px; }

.countdown {
  margin-top: 18px; text-align: center; padding: 30px 20px;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow);
}
.countdown .num { font-family: var(--serif); font-size: 3.4rem; color: var(--terracotta); line-height: 1; }
.countdown .lbl { color: var(--ink-soft); margin-top: 6px; }

/* sleep / next info */
.sleep-bar {
  margin-top: 14px; display: flex; align-items: center; gap: 12px;
  background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px;
}
.sleep-bar .ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.sleep-bar .txt { flex: 1; min-width: 0; }
.sleep-bar .txt .k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.sleep-bar .txt .v { font-weight: 600; }
.sleep-bar .txt .a { font-size: .85rem; color: var(--ink-soft); }

/* quick grid (vuelos/documentos/hoteles) */
.quick-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quick {
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.quick:active { transform: scale(.98); }
.quick .qi { width: 34px; height: 34px; color: var(--blue); }
.quick .qt { font-weight: 700; }
.quick .qd { font-size: .84rem; color: var(--ink-soft); }
.quick.soon .qd::after { content: " · próximamente"; color: var(--ink-faint); font-style: italic; }

/* ---------- Botones / enlaces de acción ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 16px; border-radius: 12px; font-weight: 600; font-size: .92rem;
  border: 1px solid transparent; transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--cream-2); color: var(--ink); border-color: var(--line); }
.btn-maps { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-block { width: 100%; }
.btn .ic { width: 17px; height: 17px; }

/* ---------- Días: lista de tarjetas ---------- */
.day-grid { display: grid; gap: 14px; padding: 8px 0 6px; }
@media (min-width: 620px) { .day-grid { grid-template-columns: 1fr 1fr; } }

.daycard {
  position: relative; display: flex; gap: 0; overflow: hidden; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.daycard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.daycard .thumb { flex: none; width: 104px; position: relative; }
.daycard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.daycard .dc-body { padding: 13px 14px; flex: 1; min-width: 0; }
.daycard .dc-date { font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta); font-weight: 700; }
.daycard .dc-title { font-family: var(--serif); font-size: 1.18rem; margin: 2px 0 3px; }
.daycard .dc-sub { font-size: .85rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.daycard .dc-check {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.9); display: grid; place-items: center; color: var(--ink-faint);
  border: 1px solid var(--line);
}
.daycard.done .dc-check { background: var(--green); color: #fff; border-color: var(--green); }
.daycard.done::after { content: ""; position: absolute; inset: 0; background: rgba(60,125,90,.07); pointer-events: none; }
.daycard.done .dc-title { color: var(--ink-soft); }
.daycard.is-today { border-color: var(--terracotta); box-shadow: 0 0 0 2px rgba(192,86,59,.18), var(--shadow); }
.dc-today { position: absolute; top: 8px; left: 8px; background: var(--terracotta); color: #fff; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; box-shadow: 0 3px 10px rgba(168,69,45,.4); }

.progress-line { margin: 4px 0 4px; display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: .88rem; }
.progress-track { flex: 1; height: 7px; background: var(--cream-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line-soft); }
.progress-fill { height: 100%; background: var(--green); border-radius: 999px; transition: width .4s ease; }

/* ---------- Detalle de día ---------- */
.detail-hero { position: relative; margin: 0 -18px; height: 230px; overflow: hidden; border-radius: 0 0 24px 24px; color: #fff; display: flex; align-items: flex-end; }
.detail-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,34,55,.05), rgba(18,30,48,.82)); }
.detail-hero .dh-inner { position: relative; padding: 20px 22px; width: 100%; }
.detail-hero .dh-date { font-size: .8rem; letter-spacing: .06em; text-transform: capitalize; color: #f6d9bf; font-weight: 600; }
.detail-hero h2 { color: #fff; font-size: clamp(1.7rem, 6vw, 2.3rem); }
.detail-hero .dh-sub { color: #e7ecf3; font-size: .92rem; margin-top: 3px; }

.back-btn { display: inline-flex; align-items: center; gap: 6px; margin: 16px 0 4px; color: var(--ink-soft); font-weight: 600; font-size: .9rem; background: none; border: none; }
.back-btn .ic { width: 18px; height: 18px; }

.complete-row { display: flex; gap: 10px; align-items: center; margin: 18px 0 4px; }
.complete-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px; border-radius: 13px; font-weight: 700; border: 1.5px solid var(--green); color: var(--green); background: var(--paper);
  transition: all .18s ease;
}
.complete-btn.done { background: var(--green); color: #fff; }
.complete-btn .ic { width: 19px; height: 19px; }

.block-title { font-family: var(--serif); font-size: 1.4rem; margin: 26px 0 12px; }

/* tarjetas de bloque (mañana/tarde/noche) */
.blocks { display: grid; gap: 13px; }
@media (min-width: 720px) { .blocks.cols-3 { grid-template-columns: repeat(3, 1fr); } .blocks.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.block {
  background: var(--paper); border: 1px solid var(--line-soft); border-left: 5px solid var(--blue);
  border-radius: 13px; padding: 15px 16px; box-shadow: var(--shadow);
}
.block.terracotta { border-left-color: var(--terracotta); }
.block.blue { border-left-color: var(--blue); }
.block.green { border-left-color: var(--green); }
.block h4 { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; margin-bottom: 8px; }
.block ul { list-style: none; display: grid; gap: 5px; }
.block li { font-size: .92rem; color: var(--ink-soft); padding-left: 14px; position: relative; }
.block li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .45; }

/* highlight (concierto) */
.highlight {
  margin: 22px 0 4px; display: flex; align-items: center; gap: 14px;
  background: linear-gradient(100deg, #2a1a2e, #3a2440); color: #fff;
  border-radius: 15px; padding: 16px 18px; box-shadow: var(--shadow-lg);
}
.highlight .hi-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.13); display: grid; place-items: center; }
.highlight .hi-tx { flex: 1; }
.highlight .hi-tx .k { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #f0b89e; font-weight: 700; }
.highlight .hi-tx h4 { font-family: var(--serif); color: #fff; font-size: 1.3rem; }
.highlight .hi-tx .s { font-size: .86rem; color: #d9c8e0; }
.highlight a.mini { flex: none; background: rgba(255,255,255,.16); color: #fff; padding: 8px 12px; border-radius: 10px; font-size: .82rem; font-weight: 600; }

/* timeline transporte */
.timeline { display: flex; align-items: flex-start; overflow-x: auto; gap: 0; padding: 8px 2px 6px; -webkit-overflow-scrolling: touch; }
.tl-stop { flex: 1 0 auto; min-width: 78px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.tl-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--blue); box-shadow: 0 3px 8px rgba(46,109,164,.35); z-index: 2; }
.tl-stop:nth-child(odd) .tl-dot { background: var(--terracotta); box-shadow: 0 3px 8px rgba(192,86,59,.35); }
.tl-line { position: absolute; top: 13px; left: 50%; width: 100%; height: 2px; background: var(--line); z-index: 1; }
.tl-stop:last-child .tl-line { display: none; }
.tl-label { font-size: .76rem; color: var(--ink-soft); margin-top: 9px; font-weight: 600; padding: 0 4px; }

/* badges */
.badges { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0 4px; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 11px; font-weight: 700; font-size: .88rem; color: #fff; }
.badge.green { background: var(--green); }
.badge.blue { background: var(--blue); }
.badge.terracotta { background: var(--terracotta); }
.badge .ic { width: 15px; height: 15px; }

/* notas prácticas */
.notes { background: var(--cream-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-top: 8px; }
.notes h4 { font-family: var(--sans); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 9px; }
.notes ul { list-style: none; display: grid; gap: 8px; }
.notes li { font-size: .9rem; color: var(--ink-soft); padding-left: 18px; position: relative; }
.notes li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); }

/* comida */
.food-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .food-grid { grid-template-columns: repeat(3, 1fr); } }
.food-item { background: var(--paper); border: 1px solid var(--line-soft); border-radius: 13px; padding: 14px 15px; box-shadow: var(--shadow); }
.food-item h4 { font-family: var(--sans); font-weight: 700; font-size: .98rem; color: var(--terracotta); margin-bottom: 5px; }
.food-item p { font-size: .88rem; color: var(--ink-soft); }

/* ---------- Mapa ---------- */
.map-city { margin-bottom: 18px; overflow: hidden; }
.map-city .mc-photo { position: relative; height: 150px; }
.map-city .mc-photo img { width: 100%; height: 100%; object-fit: cover; }
.map-city .mc-photo .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,34,55,0), rgba(18,30,48,.72)); }
.map-city .mc-photo h3 { position: absolute; left: 16px; bottom: 12px; color: #fff; font-size: 1.5rem; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.map-city .mc-body { padding: 6px 0 0; }
.poi { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.poi:last-child { border-bottom: none; }
.poi .pin { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.poi .pin.terracotta { background: var(--terracotta); } .poi .pin.blue { background: var(--blue); } .poi .pin.green { background: var(--green); }
.poi .pin .ic { width: 16px; height: 16px; }
.poi .pi-tx { flex: 1; min-width: 0; }
.poi .pi-tx .n { font-weight: 700; font-size: .98rem; }
.poi .pi-tx .d { font-size: .85rem; color: var(--ink-soft); }
.poi .go { flex: none; align-self: center; color: var(--blue); width: 22px; height: 22px; }
.facts { display: grid; gap: 10px; padding: 14px 16px; }
.fact { display: flex; gap: 11px; align-items: flex-start; font-size: .9rem; }
.fact .fi { flex: none; width: 26px; height: 26px; color: var(--green); }
.fact b { color: var(--ink); }

/* ---------- Frases ---------- */
.phrase-cat { font-family: var(--serif); font-size: 1.35rem; margin: 24px 0 10px; }
.phrase-list { display: grid; gap: 10px; }
.phrase {
  display: flex; align-items: center; gap: 13px; padding: 13px 15px;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 13px; box-shadow: var(--shadow);
}
.phrase .ph-tx { flex: 1; min-width: 0; }
.phrase .ph-es { font-size: .82rem; color: var(--ink-faint); }
.phrase .ph-it { font-family: var(--serif); font-size: 1.18rem; color: var(--ink); }
.play {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--cream-2); color: var(--terracotta); display: grid; place-items: center;
  transition: transform .12s ease, background .15s ease;
}
.play:hover { background: #f0e2c4; }
.play:active { transform: scale(.9); }
.play.speaking { background: var(--terracotta); color: #fff; animation: pulse 1s ease infinite; }
.play .ic { width: 20px; height: 20px; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(192,86,59,.4); } 50% { box-shadow: 0 0 0 8px rgba(192,86,59,0); } }

/* ---------- Ayuda ---------- */
.help-block { margin-top: 22px; }
.help-block h3 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 10px; }
.tel-list { display: grid; gap: 10px; }
.tel {
  display: flex; align-items: center; gap: 13px; padding: 14px 15px;
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 13px; box-shadow: var(--shadow);
}
.tel.emergency { border-left: 5px solid var(--terracotta); }
.tel .te-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--cream-2); color: var(--terracotta); }
.tel .te-tx { flex: 1; min-width: 0; }
.tel .te-tx .n { font-weight: 600; }
.tel .te-tx .d { font-size: .82rem; color: var(--ink-soft); }
.tel .te-num { flex: none; font-family: var(--serif); font-size: 1.45rem; color: var(--terracotta); font-weight: 600; }
.tel .te-call { flex: none; background: var(--green); color: #fff; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.tel .te-call .ic { width: 19px; height: 19px; }

.contact { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 15px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 12px; margin-bottom: 9px; box-shadow: var(--shadow); }
.contact .c-l { font-weight: 600; font-size: .92rem; }
.contact .c-v { font-size: .88rem; color: var(--ink-soft); }
.contact .c-v.ph { font-style: italic; color: var(--ink-faint); }

.apps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-pill { padding: 13px 15px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 12px; box-shadow: var(--shadow); }
.app-pill .an { font-weight: 700; }
.app-pill .ad { font-size: .82rem; color: var(--ink-soft); }

.checklist { background: var(--cream-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.checklist label { display: flex; gap: 11px; align-items: flex-start; padding: 8px 0; cursor: pointer; font-size: .92rem; color: var(--ink-soft); border-bottom: 1px solid var(--line-soft); }
.checklist label:last-child { border-bottom: none; }
.checklist input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--green); }
.checklist input:checked + span { text-decoration: line-through; color: var(--ink-faint); }

.disclaimer { margin: 18px 0 6px; font-size: .8rem; color: var(--ink-faint); text-align: center; line-height: 1.5; }

/* ---------- Barra de navegación inferior ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,253,247,.94); backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--line); display: flex; justify-content: space-around;
  padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: none; color: var(--ink-faint); padding: 5px 2px; transition: color .15s ease; }
.tab .ic { width: 23px; height: 23px; }
.tab .lb { font-size: .68rem; font-weight: 600; letter-spacing: .01em; }
.tab.active { color: var(--terracotta); }
.tab.active .ic { transform: translateY(-1px); }

footer.credit { text-align: center; padding: 8px 0 18px; color: var(--ink-faint); font-size: .76rem; }
footer.credit .heart { color: var(--terracotta); }

/* ---------- Ruta visual (inicio) ---------- */
.route { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; margin: 18px 0 4px; }
.route-stop { display: inline-flex; align-items: center; gap: 7px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 11px; box-shadow: var(--shadow); }
.route-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--terracotta); }
.route-stop:nth-child(3) .route-dot { background: var(--blue); }
.route-stop:nth-child(5) .route-dot { background: var(--green); }
.route-name { font-weight: 700; font-size: .86rem; }
.route-link { color: var(--ink-faint); width: 17px; height: 17px; opacity: .6; }

/* ---------- Foto de pareja (polaroid) ---------- */
.polaroid {
  margin: 22px auto 6px; max-width: 290px; background: #fff;
  padding: 12px 12px 0; border-radius: 6px; box-shadow: var(--shadow-lg);
  transform: rotate(-1.6deg); position: relative;
}
.polaroid::after { content: ""; position: absolute; top: -9px; left: 50%; transform: translateX(-50%) rotate(2deg); width: 74px; height: 22px; background: rgba(192,86,59,.22); border: 1px solid rgba(192,86,59,.28); border-radius: 2px; }
.polaroid .pol-photo { overflow: hidden; border-radius: 3px; aspect-ratio: 1/1; }
.polaroid .pol-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.polaroid figcaption { font-family: var(--serif); font-style: italic; text-align: center; color: var(--ink-soft); padding: 12px 6px 16px; font-size: 1.02rem; }

/* La foto "se pega" al entrar (slap-in) */
@media (prefers-reduced-motion: no-preference) {
  .polaroid { animation: slap .7s cubic-bezier(.2,.75,.25,1.1) both; animation-delay: .12s; }
  .polaroid::after { animation: tape .35s ease both; animation-delay: .62s; transform-origin: center; }
  @keyframes slap {
    0%   { opacity: 0; transform: rotate(-15deg) scale(1.6); }
    55%  { opacity: 1; transform: rotate(3deg) scale(.93); }
    78%  { transform: rotate(-3deg) scale(1.02); }
    100% { transform: rotate(-1.6deg) scale(1); }
  }
  @keyframes tape {
    from { opacity: 0; transform: translateX(-50%) rotate(2deg) scaleX(.2); }
    to   { opacity: 1; transform: translateX(-50%) rotate(2deg) scaleX(1); }
  }
}

/* Espaciado de las etiquetas de sección en Inicio (p. ej. "Primer día · ...") */
#view-home .wrap > .eyebrow { margin-top: 30px; margin-bottom: 9px; }
#view-home .today-card { margin-top: 10px; }
#view-home .wrap > .countdown { margin-top: 8px; }

/* ---------- Pronunciación en frases ---------- */
.ph-pron { font-size: .8rem; color: var(--green); margin-top: 3px; font-style: italic; }
.ph-pron svg { opacity: .8; }

/* ---------- Iconos en bloques del día ---------- */
.block h4 .block-ic { display: inline-grid; place-items: center; width: 18px; height: 18px; vertical-align: -3px; margin-right: 7px; }
.block.terracotta h4 .block-ic { color: var(--terracotta); }
.block.blue h4 .block-ic { color: var(--blue); }
.block.green h4 .block-ic { color: var(--green); }

/* ---------- Contactos importantes / consulado ---------- */
.tel.important { border-left: 5px solid var(--blue); align-items: flex-start; }
.tel.important .te-ic { background: var(--cream-2); color: var(--blue); }
.tel .te-phone { font-family: var(--serif); font-size: 1.2rem; color: var(--blue); font-weight: 600; margin: 2px 0; }
.tel-actions { display: flex; gap: 9px; margin: 10px 0 4px; flex-wrap: wrap; }
.tel-actions .btn { flex: 1; min-width: 90px; padding: 10px 12px; font-size: .86rem; }

/* ---------- Tarjeta de hotel ---------- */
.hotel-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 15px 16px; margin-bottom: 13px; }
.hotel-card .ho-head { display: flex; gap: 13px; align-items: flex-start; }
.hotel-card .te-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--cream-2); color: var(--green); }
.hotel-card .ho-tx { flex: 1; min-width: 0; }
.hotel-card .ho-tx .n { font-weight: 700; font-size: 1.04rem; }
.hotel-card .ho-type { font-family: var(--sans); font-weight: 600; font-size: .72rem; color: var(--green); background: rgba(60,125,90,.1); padding: 2px 8px; border-radius: 999px; margin-left: 4px; white-space: nowrap; }
.hotel-card .d { font-size: .85rem; color: var(--ink-soft); }
.hotel-card .ho-nights { color: var(--ink-faint); margin-top: 2px; }
.hotel-card .ho-note { font-size: .86rem; color: var(--ink-soft); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.hotel-card .ho-booking { font-size: .82rem; color: var(--ink-faint); margin-top: 9px; background: var(--cream-2); border-radius: 10px; padding: 9px 11px; line-height: 1.5; }
.hotel-card .ho-booking svg { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-right: 3px; }
.hotel-card .tel-actions { margin-top: 12px; }

/* ---------- Info práctica ---------- */
.practical-grid { display: grid; gap: 11px; }
@media (min-width: 620px) { .practical-grid { grid-template-columns: 1fr 1fr; } }
.practical { display: flex; gap: 13px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 13px; padding: 14px 15px; box-shadow: var(--shadow); }
.practical .pr-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--cream-2); color: var(--terracotta); }
.practical .pr-ic svg { width: 20px; height: 20px; }
.practical .pr-t { font-weight: 700; font-size: .96rem; }
.practical .pr-d { font-size: .85rem; color: var(--ink-soft); margin-top: 2px; }

/* ---------- Resumen en fases (días) ---------- */
.phases { display: grid; gap: 12px; margin: 6px 0 18px; }
@media (min-width: 720px) { .phases { grid-template-columns: repeat(3, 1fr); } }
.phase { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border-top: 4px solid var(--blue); }
.phase.terracotta { border-top-color: var(--terracotta); }
.phase.blue { border-top-color: var(--blue); }
.phase.green { border-top-color: var(--green); }
.phase .ph-photo { position: relative; height: 116px; }
.phase .ph-photo img { width: 100%; height: 100%; object-fit: cover; }
.phase .ph-photo .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,34,55,0), rgba(18,30,48,.7)); }
.phase .ph-cap { position: absolute; left: 13px; bottom: 10px; right: 13px; color: #fff; display: flex; flex-direction: column; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.phase .ph-city { font-family: var(--serif); font-size: 1.25rem; line-height: 1; }
.phase .ph-dates { font-size: .78rem; font-weight: 600; opacity: .95; margin-top: 3px; }
.phase .ph-text { padding: 12px 14px 15px; font-size: .88rem; color: var(--ink-soft); }

.progress-line .pl-lbl { font-weight: 600; color: var(--ink); white-space: nowrap; }

/* ---------- Nota de comida ---------- */
.food-note { margin-top: 11px; background: var(--cream-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .86rem; color: var(--ink-soft); line-height: 1.55; }
.food-note .fn-ic { display: inline-block; vertical-align: -3px; margin-right: 6px; color: var(--terracotta); }
.food-note .fn-ic svg { width: 15px; height: 15px; }

/* ---------- Navegación entre días ---------- */
.day-nav { display: flex; gap: 10px; margin: 28px 0 6px; }
.day-nav-btn { flex: 1; display: flex; align-items: center; gap: 9px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: 13px; padding: 12px 13px; box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .15s ease; min-width: 0; }
.day-nav-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.day-nav-btn.next { justify-content: flex-end; text-align: right; }
.day-nav-btn .ic { flex: none; width: 18px; height: 18px; color: var(--terracotta); }
.day-nav-btn .dn-tx { display: flex; flex-direction: column; min-width: 0; }
.day-nav-btn .dn-k { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.day-nav-btn .dn-v { font-weight: 600; font-size: .9rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-nav-spacer { flex: 1; }
.day-count { text-align: center; color: var(--ink-faint); font-size: .82rem; margin: 12px 0 6px; font-weight: 600; letter-spacing: .04em; }

/* ---------- Animaciones de entrada (stagger) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .day-grid .daycard, .phases .phase, .map-city, .practical, .food-item, .phrase, .block { animation: rise .5s cubic-bezier(.2,.7,.3,1) both; }
  .day-grid .daycard:nth-child(2), .phases .phase:nth-child(2) { animation-delay: .05s; }
  .day-grid .daycard:nth-child(3), .phases .phase:nth-child(3) { animation-delay: .1s; }
  .day-grid .daycard:nth-child(4) { animation-delay: .15s; }
  .day-grid .daycard:nth-child(5) { animation-delay: .2s; }
  .day-grid .daycard:nth-child(n+6) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* utilidades */
.stack { display: grid; gap: 0; }
.hidden { display: none !important; }
