/* ==========================================================================
   BRASIL 2026 · ESTILO ILUSTRACIÓN ÁLBUM DE VIAJE / SCRAPBOOK ORGÁNICO
   Inspirado en la imagen de referencia: papel crema cálido, trazos a mano,
   doodles de avión de papel, palmeras, polaroids inclinadas y flujo libre.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

body {
  --paper-bg: #F6F1E6;
  --paper-card: #FFFDF8;
  --paper-warm: #F3EBD9;
  --ink-dark: #2B2623;
  --ink-soft: #5C5349;
  --ink-sketch: #38312C;

  --sun-highlight: #D9FF42;
  --sun-gold: #FFD147;
  --crayon-red: #E04F44;
  --ocean-teal: #2A9D8F;
  --sky-pastel: #DDF2F9;
  --mint-pastel: #E2F5EA;
  --coral-pastel: #FDE2DC;
  --sand-pastel: #F7E8C8;

  background-color: var(--paper-bg);
  background-image:
    radial-gradient(rgba(56, 49, 44, 0.045) 1px, transparent 0),
    radial-gradient(circle at 15% 10%, rgba(255, 209, 71, 0.16) 0%, transparent 38%),
    radial-gradient(circle at 85% 30%, rgba(42, 157, 143, 0.10) 0%, transparent 40%);
  background-size: 22px 22px, 100% 100%, 100% 100%;
  color: var(--ink-dark);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: calc(104px + env(safe-area-inset-bottom, 16px));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Tipografía manuscrita de diario de viaje (como "we chased the sun...") */
.handwritten {
  font-family: 'Caveat', 'Bradley Hand', 'Segoe Print', 'Marker Felt', cursive;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Resaltador fosforescente tipo "after" de la referencia */
.marker-highlight {
  background: linear-gradient(104deg, rgba(217, 255, 66, 0) 0.9%, rgba(217, 255, 66, 0.95) 2.4%, rgba(217, 255, 66, 0.8) 5.8%, rgba(217, 255, 66, 0.9) 93%, rgba(217, 255, 66, 0.7) 96%, rgba(217, 255, 66, 0) 98%);
  padding: 0 8px;
  border-radius: 6px;
}

.app-container {
  max-width: 660px;
  margin: 0 auto;
  padding: 14px 16px 40px;
  position: relative;
}

/* Doodles decorativos flotantes en el fondo */
.doodle-bg-strip {
  width: 100%;
  overflow: hidden;
  margin: 6px 0;
  opacity: 0.88;
  pointer-events: none;
}

/* ==========================================================================
   HERO SCRAPBOOK COLLAGE (Menos cuadriculado, estilo postal ilustrada)
   ========================================================================== */
.hero-scrapbook {
  position: relative;
  padding: 18px 8px 16px;
  margin-bottom: 18px;
}

.hero-quote-top {
  font-family: 'Caveat', 'Bradley Hand', cursive;
  font-size: 1.75rem;
  line-height: 1.12;
  color: var(--ink-dark);
  transform: rotate(-2.2deg);
  margin-bottom: 12px;
  padding-left: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.polaroid-frame {
  position: relative;
  background: #FFFDF9;
  padding: 11px 11px 18px;
  border: 2px solid var(--ink-sketch);
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
  box-shadow: 5px 7px 0px rgba(43, 38, 35, 0.14);
  transform: rotate(-0.8deg);
  transition: transform 0.25s ease;
}

.polaroid-frame:hover, .polaroid-frame:active {
  transform: rotate(0deg) scale(1.01);
}

/* Cinta adhesiva (Washi Tape) encima de las ilustraciones */
.washi-tape {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 110px;
  height: 24px;
  background: rgba(255, 214, 102, 0.72);
  border: 1.5px dashed rgba(56, 49, 44, 0.35);
  z-index: 5;
  border-radius: 3px;
}

.hero-img-wrap {
  position: relative;
  width: 100%;
  height: 235px;
  border-radius: 14px;
  overflow: hidden;
  border: 1.8px solid var(--ink-sketch);
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.offline-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink-dark);
  border: 1.8px solid var(--ink-sketch);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.73rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.offline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2A9D8F;
}

.gallery-btn-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--sun-highlight);
  color: var(--ink-dark);
  border: 1.8px solid var(--ink-sketch);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  z-index: 2;
}

.polaroid-caption {
  padding-top: 12px;
  text-align: center;
}

.hero-title {
  font-family: 'Caveat', 'Bradley Hand', cursive;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink-dark);
  margin-bottom: 4px;
}

.hero-passengers {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

/* Etiquetas estilo stickers de cuaderno */
.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.anime-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.73rem;
  font-weight: 800;
  padding: 3px 11px;
  border-radius: 255px 25px 225px 25px / 25px 225px 25px 255px;
  border: 1.8px solid var(--ink-sketch);
  background: var(--sky-pastel);
  color: var(--ink-dark);
}

.anime-tag.yellow { background: #FFF0AD; }
.anime-tag.green { background: var(--mint-pastel); }
.anime-tag.pink { background: var(--coral-pastel); }
.anime-tag.orange { background: #FFE2B8; }

/* Barra de progreso estilo trazo de avión de papel */
.trip-progress-box {
  margin-top: 10px;
  background: var(--paper-warm);
  border: 1.8px dashed var(--ink-sketch);
  border-radius: 18px;
  padding: 9px 14px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: #FFFDF8;
  border: 1.5px solid var(--ink-sketch);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2A9D8F, #FFD147, #E04F44);
  width: 0%;
  transition: width 0.35s ease;
}

/* ==========================================================================
   BUSCADOR ESTILO BOCETO A MANO
   ========================================================================== */
.search-bar-wrap {
  position: sticky;
  top: 8px;
  z-index: 30;
  margin-bottom: 16px;
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(6px);
  border: 2px solid var(--ink-sketch);
  border-radius: 255px 25px 225px 25px / 25px 225px 25px 255px;
  box-shadow: 3px 4px 0px rgba(43, 38, 35, 0.14);
  padding: 9px 16px;
  gap: 8px;
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-dark);
  background: transparent;
}

.search-clear-btn {
  background: var(--coral-pastel);
  border: 1.5px solid var(--ink-sketch);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-weight: 900;
  font-size: 0.75rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.view-section {
  display: none;
  animation: fadeFloat 0.25s ease-out;
}

.view-section.active {
  display: block;
}

@keyframes fadeFloat {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SELECTOR DE DÍAS ESTILO ETIQUETAS COLGANTES / STICKERS DE VIAJE
   ========================================================================== */
.day-scroller {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 6px 4px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.day-scroller::-webkit-scrollbar {
  display: none;
}

.day-pill {
  flex: 0 0 auto;
  background: var(--paper-card);
  border: 1.8px solid var(--ink-sketch);
  border-radius: 25px 8px 22px 10px;
  padding: 7px 13px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-dark);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 84px;
  box-shadow: 2px 3px 0px rgba(43, 38, 35, 0.12);
}

.day-pill:nth-child(odd) {
  transform: rotate(-1deg);
}

.day-pill:nth-child(even) {
  transform: rotate(1deg);
}

.day-pill span.sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.day-pill.active {
  background: var(--sun-highlight);
  transform: rotate(0deg) translateY(-2px);
  box-shadow: 3px 4px 0px var(--ink-sketch);
}

/* ==========================================================================
   PÁGINAS DE DIARIO POR DÍA (FLUJO LIBRE CON CAMINO PUNTEADO, SIN CAJAS RÍGIDAS)
   ========================================================================== */
.day-card {
  position: relative;
  margin-bottom: 30px;
  padding-top: 6px;
}

.day-polaroid-banner {
  position: relative;
  background: #FFFDF9;
  padding: 10px 10px 14px;
  border: 2px solid var(--ink-sketch);
  border-radius: 18px 220px 16px 210px / 210px 16px 220px 18px;
  box-shadow: 4px 6px 0px rgba(43, 38, 35, 0.12);
  transform: rotate(0.7deg);
  margin-bottom: 14px;
  cursor: pointer;
}

.day-polaroid-banner img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: 12px;
  border: 1.5px solid var(--ink-sketch);
  display: block;
}

.day-banner-caption {
  padding-top: 10px;
  text-align: left;
}

.day-banner-city {
  display: inline-block;
  background: var(--sun-highlight);
  color: var(--ink-dark);
  border: 1.5px solid var(--ink-sketch);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.day-banner-title {
  font-family: 'Caveat', 'Bradley Hand', cursive;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink-dark);
}

/* Nota manuscrita del día (sin borde rígido) */
.day-why-box {
  position: relative;
  background: rgba(255, 240, 173, 0.55);
  border-left: 3.5px solid var(--crayon-red);
  border-radius: 4px 16px 16px 4px;
  padding: 10px 14px;
  margin: 12px 4px 18px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-dark);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* Camino de puntos que conecta las paradas del día */
.timeline-list {
  position: relative;
  padding-left: 20px;
  margin-left: 8px;
  border-left: 2.5px dashed rgba(56, 49, 44, 0.35);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline-item {
  position: relative;
  background: var(--paper-card);
  border: 1.8px solid var(--ink-sketch);
  border-radius: 235px 16px 215px 16px / 16px 215px 16px 235px;
  box-shadow: 3px 4px 0px rgba(43, 38, 35, 0.10);
  padding: 14px 15px;
  transition: transform 0.15s ease;
}

.timeline-item:nth-child(odd) {
  transform: rotate(-0.35deg);
}

.timeline-item:nth-child(even) {
  transform: rotate(0.35deg);
}

/* Punto dibujado sobre el sendero punteado */
.timeline-item::before {
  content: "✦";
  position: absolute;
  left: -31px;
  top: 16px;
  width: 20px;
  height: 20px;
  background: var(--sun-gold);
  border: 1.8px solid var(--ink-sketch);
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dark);
}

.timeline-item.completed {
  background: #EDF9F1;
  border-color: #2A9D8F;
}

.timeline-item.completed::before {
  content: "✓";
  background: #2A9D8F;
  color: #FFFFFF;
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.time-badge {
  background: var(--sky-pastel);
  color: var(--ink-dark);
  border: 1.6px solid var(--ink-sketch);
  border-radius: 999px;
  padding: 2px 11px;
  font-size: 0.74rem;
  font-weight: 800;
}

.time-badge.type-f1 { background: #FFD8A8; }
.time-badge.type-gastronomia { background: #FDE2DC; }
.time-badge.type-musica { background: #E9D8FD; }
.time-badge.type-vuelo { background: #D0EBFF; }
.time-badge.type-voucher { background: var(--sun-highlight); }
.time-badge.type-compras { background: #FFE699; }

.check-btn {
  background: transparent;
  border: 1.5px dashed var(--ink-sketch);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--ink-dark);
}

.timeline-item.completed .check-btn {
  background: #2A9D8F;
  color: #FFFFFF;
  border-style: solid;
}

.timeline-title {
  font-size: 1.03rem;
  font-weight: 800;
  color: var(--ink-dark);
  margin-bottom: 4px;
}

.timeline-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.meta-chip {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1.4px solid var(--ink-sketch);
  background: #FFFDF8;
}

.meta-chip.rating { background: #FFF3B0; }
.meta-chip.cost { background: var(--mint-pastel); }

.timeline-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 10px;
}

/* Tarjetas de opciones tipo recortes de papel */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 10px;
}

.option-card {
  background: var(--paper-bg);
  border: 1.6px dashed var(--ink-sketch);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.option-card.selected-opt {
  background: #FFFBE0;
  border-style: solid;
  border-width: 2px;
  box-shadow: 2px 3px 0px var(--sun-gold);
}

.option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.option-detail {
  font-size: 0.79rem;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 8px;
}

/* Botones orgánicos ilustrados */
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}

.btn-anime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 255px 25px 225px 25px / 25px 225px 25px 255px;
  border: 1.8px solid var(--ink-sketch);
  box-shadow: 2px 2.5px 0px var(--ink-sketch);
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink-dark);
  background: #FFFDF8;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.btn-anime:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: 0.5px 0.5px 0px var(--ink-sketch);
}

.btn-anime.maps { background: var(--mint-pastel); }
.btn-anime.ticket { background: #FFF0AD; }
.btn-anime.voucher { background: var(--coral-pastel); }
.btn-anime.uber { background: #EAE4D7; }
.btn-anime.blue { background: var(--sky-pastel); }

.note-box {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1.5px dotted rgba(56, 49, 44, 0.25);
}

.note-input {
  width: 100%;
  border: none;
  border-bottom: 1.5px dashed rgba(56, 49, 44, 0.35);
  padding: 5px 4px;
  font-size: 0.8rem;
  font-family: inherit;
  background: transparent;
  color: var(--ink-dark);
  outline: none;
}

/* ==========================================================================
   ENCABEZADOS DE SECCIÓN ESTILO REVISTA / ÁLBUM ILUSTRADO
   ========================================================================== */
.section-header-card {
  position: relative;
  padding: 12px 6px 10px;
  margin-bottom: 14px;
  border-bottom: 2px dashed rgba(56, 49, 44, 0.3);
}

.section-header-card h2 {
  font-family: 'Caveat', 'Bradley Hand', cursive;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink-dark);
  margin-bottom: 4px;
}

.section-header-card p {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Tarjetas de diario orgánicas */
.anime-card {
  position: relative;
  background: var(--paper-card);
  border: 2px solid var(--ink-sketch);
  border-radius: 245px 18px 225px 18px / 18px 225px 18px 245px;
  box-shadow: 4px 5px 0px rgba(43, 38, 35, 0.12);
  padding: 16px;
  margin-bottom: 18px;
}

/* Lookbook de Ropa (Tarjetas con ilustración + boceto vectorial de prendas) */
.outfit-card {
  position: relative;
  background: var(--paper-card);
  border: 2px solid var(--ink-sketch);
  border-radius: 20px;
  box-shadow: 4px 6px 0px rgba(43, 38, 35, 0.12);
  padding: 14px;
  margin-bottom: 20px;
}

.outfit-card:nth-child(odd) {
  transform: rotate(-0.6deg);
}

.outfit-card:nth-child(even) {
  transform: rotate(0.6deg);
}

.outfit-sketch-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--paper-warm);
  border: 1.5px dashed var(--ink-sketch);
  border-radius: 14px;
  padding: 10px 8px;
  margin: 10px 0;
  flex-wrap: wrap;
  gap: 8px;
}

.sketch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--ink-dark);
  text-align: center;
  max-width: 90px;
}

/* Mapa Interactivo en marco de cuaderno */
.map-shell {
  background: var(--paper-card);
  border: 2px solid var(--ink-sketch);
  border-radius: 22px;
  box-shadow: 4px 6px 0px rgba(43, 38, 35, 0.14);
  overflow: hidden;
  margin-bottom: 18px;
}

.map-toolbar {
  padding: 10px 12px;
  background: var(--paper-warm);
  border-bottom: 2px dashed var(--ink-sketch);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.city-switch {
  display: flex;
  gap: 6px;
}

.city-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.8px solid var(--ink-sketch);
  font-weight: 800;
  font-size: 0.78rem;
  background: #FFFDF8;
  cursor: pointer;
}

.city-btn.active {
  background: var(--sun-highlight);
}

.map-canvas-wrap {
  position: relative;
  width: 100%;
  height: 410px;
  background: #DCECF7;
  overflow: hidden;
  touch-action: none;
}

.map-status-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 253, 248, 0.94);
  border: 1.6px solid var(--ink-sketch);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--ink-dark);
  pointer-events: none;
  z-index: 4;
  box-shadow: 2px 2px 0px rgba(43, 38, 35, 0.14);
}

#offlineMapCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

.map-zoom-controls {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.zoom-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.8px solid var(--ink-sketch);
  background: #FFFDF8;
  box-shadow: 2px 2px 0px var(--ink-sketch);
  font-size: 1.05rem;
  font-weight: 900;
  cursor: pointer;
}

.map-selected-card {
  padding: 14px;
  background: var(--paper-card);
  border-top: 2px dashed var(--ink-sketch);
}

/* Vuelos, QR y Filtros */
.flight-route-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper-warm);
  border: 1.8px dashed var(--ink-sketch);
  border-radius: 16px;
  padding: 10px 14px;
  margin: 10px 0;
}

.flight-code {
  font-size: 1.35rem;
  font-weight: 900;
}

.pnr-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sun-highlight);
  border: 1.8px solid var(--ink-sketch);
  border-radius: 999px;
  padding: 3px 11px;
  font-weight: 900;
  font-size: 0.82rem;
  cursor: pointer;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.qr-card {
  background: var(--paper-bg);
  border: 1.8px dashed var(--ink-sketch);
  border-radius: 18px;
  padding: 12px;
  text-align: center;
}

.qr-card img {
  width: 165px;
  height: 165px;
  object-fit: contain;
  border: 1.8px solid var(--ink-sketch);
  border-radius: 12px;
  background: #FFFFFF;
  padding: 6px;
  margin: 8px auto;
  display: block;
}

.filter-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.filter-chip {
  flex: 0 0 auto;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.8px solid var(--ink-sketch);
  background: var(--paper-card);
  color: var(--ink-dark);
  text-decoration: none;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

.filter-chip.active {
  background: var(--crayon-red);
  color: #FFFFFF;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.input-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.input-group input, .input-group select {
  width: 100%;
  padding: 9px 11px;
  border: 1.8px solid var(--ink-sketch);
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 800;
  background: var(--paper-bg);
}

/* Barra de Navegación Inferior flotante tipo etiqueta de cuaderno */
.bottom-nav {
  position: fixed;
  bottom: 8px;
  left: 10px;
  right: 10px;
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(8px);
  border: 2px solid var(--ink-sketch);
  border-radius: 999px;
  padding: 6px 8px;
  z-index: 50;
  display: flex;
  justify-content: space-around;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 6px 20px rgba(43, 38, 35, 0.16);
}

.nav-btn {
  background: transparent;
  border: 1.8px solid transparent;
  border-radius: 999px;
  padding: 5px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.nav-btn .icon {
  font-size: 1.15rem;
}

.nav-btn.active {
  background: var(--sun-highlight);
  color: var(--ink-dark);
  border-color: var(--ink-sketch);
  transform: translateY(-2px);
}

/* Modales y Toast */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43, 38, 35, 0.6);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: var(--paper-card);
  border: 2.5px solid var(--ink-sketch);
  border-radius: 22px;
  box-shadow: 6px 8px 0px var(--ink-sketch);
  max-width: 540px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 18px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.8px solid var(--ink-sketch);
  background: var(--coral-pastel);
  font-weight: 900;
  cursor: pointer;
}

.toast {
  position: fixed;
  bottom: 88px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--sun-highlight);
  color: var(--ink-dark);
  border: 2px solid var(--ink-sketch);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 900;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   GALERÍA DE IMÁGENES EN TARJETAS (FLECHAS INLINE + BOTÓN PANTALLA COMPLETA)
   ========================================================================== */
.inline-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--ink-sketch);
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink-dark);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  box-shadow: 2px 2px 0px var(--ink-sketch);
}

.inline-gallery-nav.prev { left: 8px; }
.inline-gallery-nav.next { right: 8px; }

.inline-gallery-nav:active {
  transform: translateY(-50%) scale(0.94);
}

.hero-slide-caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(32, 28, 25, 0.85));
  color: #FFFDF8;
  padding: 18px 12px 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: left;
  pointer-events: none;
  z-index: 2;
}

.img-fullscreen-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 209, 71, 0.96);
  color: var(--ink-dark);
  border: 1.8px solid var(--ink-sketch);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  z-index: 4;
  box-shadow: 2px 2px 0px rgba(43, 38, 35, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   MODAL DE GALERÍA A PANTALLA COMPLETA CON SWIPE Y ZOOM
   ========================================================================== */
.fs-gallery-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 21, 19, 0.96);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 12px) 12px env(safe-area-inset-bottom, 14px);
  user-select: none;
  -webkit-user-select: none;
}

.fs-gallery-backdrop.open {
  display: flex;
}

.fs-gallery-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 4px;
  z-index: 10;
}

.fs-gallery-counter {
  background: var(--sun-highlight);
  color: var(--ink-dark);
  border: 1.8px solid var(--ink-sketch);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 900;
}

.fs-gallery-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fs-gallery-btn {
  background: #FFFDF8;
  color: var(--ink-dark);
  border: 1.8px solid var(--ink-sketch);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--ink-sketch);
}

.fs-gallery-btn.close {
  background: var(--coral-pastel);
}

.fs-gallery-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
  touch-action: pan-y pinch-zoom;
}

.fs-img-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  transition: transform 0.22s ease;
}

#fsGalleryMainImg {
  max-width: 100%;
  max-height: 68dvh;
  object-fit: contain;
  border-radius: 14px;
  border: 2px solid #FFFDF8;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease;
}

#fsGalleryMainImg.zoomed {
  max-width: none;
  max-height: none;
  width: 185%;
  cursor: grab;
}

.fs-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ink-sketch);
  background: rgba(255, 209, 71, 0.95);
  color: var(--ink-dark);
  font-size: 1.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12;
  box-shadow: 2px 3px 0px var(--ink-sketch);
}

.fs-nav-arrow.prev { left: 6px; }
.fs-nav-arrow.next { right: 6px; }

.fs-gallery-bottom {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.fs-gallery-caption {
  color: #FFFDF8;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 12px;
}

.fs-gallery-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fs-thumbs-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  scrollbar-width: none;
}

.fs-thumbs-strip::-webkit-scrollbar {
  display: none;
}

.fs-thumb-item {
  flex: 0 0 64px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 253, 248, 0.4);
  opacity: 0.6;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fs-thumb-item.active {
  border-color: var(--sun-highlight);
  opacity: 1;
  transform: scale(1.06);
}

.fs-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
