/* ==========================================================
   TurismoConIA v2: interfaz oscura, tecnológica, estilo app.
   Vidrio, rejilla bento, malla de color y el núcleo de Isabela.
   ========================================================== */

:root {
  --bg: #05090d;
  --bg-2: #0a1117;
  --ink: #eaf2f4;
  --muted: #92a6ae;
  --faint: #5f747c;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --glass: rgba(255, 255, 255, .05);
  --glass-2: rgba(255, 255, 255, .085);
  --mint: #5ef2d6;
  --cyan: #38bdf8;
  --indigo: #6d7cff;
  --rose: #ff5d8f;
  --grad: linear-gradient(115deg, #5ef2d6 0%, #38bdf8 100%);
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 28px;
  --ff-display: "Manrope", "Inter", system-ui, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-h: 84px;
  --grid-line: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--ff-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--ff-display); margin: 0; letter-spacing: -.03em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: #fff; color: #05090d; padding: .6rem 1rem; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 1rem; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.4rem; border: 0; border-radius: 999px; font-weight: 600; font-size: .98rem; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer; transition: transform .18s, box-shadow .25s, background-color .2s, filter .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #03120f; font-weight: 700; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 10px 34px -6px rgba(56,189,248,.55); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 14px 40px -6px rgba(94,242,214,.6); }
.btn-ghost, .btn-light, .btn-outline, .btn-ghost-dark { background: var(--glass-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover, .btn-light:hover, .btn-outline:hover, .btn-ghost-dark:hover { background: rgba(255,255,255,.14); }
.btn-sm { min-height: 42px; padding: 0 1.1rem; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: 0 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Cabecera flotante ---------- */
.site-header { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 50; pointer-events: none; }
.header-inner { pointer-events: auto; height: 60px; display: flex; align-items: center; gap: .5rem; padding: 0 .55rem 0 1.1rem; border-radius: 999px; background: rgba(12, 19, 25, .55); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); transition: background-color .3s, border-color .3s; }
.site-header.scrolled .header-inner { background: rgba(8, 13, 18, .86); border-color: var(--line-2); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: inherit; }
.brand-mark { width: 28px; height: 28px; flex: none; color: var(--mint); }
.brand-name { font: 800 1.1rem/1 var(--ff-display); letter-spacing: -.03em; }
.brand-name b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: none; margin-left: auto; gap: .1rem; }
.nav a { white-space: nowrap; padding: .5rem .8rem; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--muted); transition: background-color .2s, color .2s; }
.nav a:hover { background: var(--glass-2); color: var(--ink); }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: .4rem; min-width: 0; }
.lang { appearance: none; -webkit-appearance: none; cursor: pointer; background: var(--glass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2392a6ae' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .75rem center; border: 1px solid var(--line); border-radius: 999px; min-height: 40px; padding: 0 1.9rem 0 .85rem; font-weight: 500; font-size: .88rem; max-width: 9.5rem; color: var(--ink); }
.lang option { color: #111; background: #fff; }
.header-cta { display: none; white-space: nowrap; }
.menu-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); display: grid; place-content: center; gap: 4px; cursor: pointer; }
.menu-btn span { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
.nav-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-open .nav { display: flex; flex-direction: column; position: fixed; top: 82px; left: 12px; right: 12px; padding: .6rem; border-radius: var(--r-m); background: rgba(8, 13, 18, .96); border: 1px solid var(--line-2); backdrop-filter: blur(20px); margin: 0; pointer-events: auto; }
.nav-open .nav a { padding: .95rem 1rem; font-size: 1.05rem; border-radius: 12px; color: var(--ink); }
@media (min-width: 560px) { .header-inner { gap: 1.25rem; } .header-tools { gap: .6rem; } }
@media (min-width: 1000px) { .nav { display: flex; } .menu-btn { display: none; } .header-cta { display: inline-flex; } .header-tools { margin-left: 0; } .header-inner { padding-left: 1.4rem; } }

/* ---------- Núcleo de Isabela (orbe) ---------- */
.isa-avatar { position: relative; width: 40px; height: 40px; flex: none; border-radius: 50%; display: block; color: transparent; font-size: 0; background: conic-gradient(from 0deg, #5ef2d6, #38bdf8, #6d7cff, #ff5d8f, #5ef2d6); animation: spin 7s linear infinite; box-shadow: 0 0 24px rgba(94,242,214,.45); }
.isa-avatar::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), transparent 45%), #07121a; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Si existe assets/img/isabela.(jpg|webp|png), el orbe se reemplaza por esa foto (y deja de girar) */
html.isa-foto .isa-avatar { animation: none; background: var(--isa-foto) center / cover no-repeat; border: 2px solid rgba(94,242,214,.55); box-shadow: 0 0 22px rgba(94,242,214,.35); }
html.isa-foto .isa-avatar::after { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(100svh, 760px); display: flex; align-items: center; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 2rem) 0 3rem; }
.hero-photo { position: absolute; inset: 0; z-index: -3; background-image: var(--img, none); background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.hero-photo.has-img { opacity: .72; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,9,13,.82) 0%, rgba(5,9,13,.45) 55%, rgba(5,9,13,.25) 100%), linear-gradient(180deg, rgba(5,9,13,.5) 0%, transparent 25%); }
.hero-aurora { position: absolute; inset: -25%; z-index: -2; background: radial-gradient(38% 34% at 18% 28%, rgba(56,189,248,.55), transparent 64%), radial-gradient(36% 40% at 84% 16%, rgba(94,242,214,.42), transparent 64%), radial-gradient(46% 46% at 66% 94%, rgba(109,124,255,.5), transparent 64%), radial-gradient(30% 30% at 6% 90%, rgba(255,93,143,.24), transparent 64%); filter: blur(28px); animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2.5%, 2%, 0) scale(1.08); } }
.hero-grid { position: absolute; inset: 0; z-index: -1; background-image: var(--grid-line); background-size: 60px 60px; -webkit-mask-image: radial-gradient(75% 65% at 50% 40%, #000 20%, transparent 80%); mask-image: radial-gradient(75% 65% at 50% 40%, #000 20%, transparent 80%); }
.hero-fade { position: absolute; inset: auto 0 0 0; height: 160px; z-index: -1; background: linear-gradient(180deg, transparent, var(--bg)); }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1000px) { .hero-inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 3.5rem; } }

.pill { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .9rem .4rem .7rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: .85rem; font-weight: 500; color: var(--muted); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(94,242,214,.7); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(94,242,214,0); } 100% { box-shadow: 0 0 0 0 rgba(94,242,214,0); } }
.hero h1 { margin-top: 1.25rem; font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.02; letter-spacing: -.045em; max-width: 14ch; color: #fff; text-wrap: balance; }
.hero h1 span { background: linear-gradient(180deg, #fff 30%, #b6cdd3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 em { font-style: italic; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-right: .06em; }
.hero-sub { margin-top: 1.25rem; max-width: 54ch; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); }

/* barra de viaje */
.trip-strip { margin-top: 2rem; display: grid; gap: .6rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: .6rem; border-radius: var(--r-l); background: rgba(14, 22, 29, .72); border: 1px solid var(--line-2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(94,242,214,.06); }
.trip-strip .field { padding: .45rem .8rem .5rem; border-radius: var(--r-m); background: var(--glass); transition: background-color .2s, box-shadow .2s; }
.trip-strip .field:focus-within { background: var(--glass-2); box-shadow: inset 0 0 0 1px rgba(94,242,214,.55); }
.trip-strip .field:first-child { grid-column: 1 / -1; }
.trip-strip .btn { grid-column: 1 / -1; }
.trip-strip .field label { margin-bottom: 0; font-size: .74rem; }
.trip-strip .field input, .trip-strip .field select { min-height: 34px; padding: 0; border: 0; background-color: transparent; border-radius: 0; font-size: 1rem; font-weight: 600; }
.trip-strip .field input:focus, .trip-strip .field select:focus { outline: 0; border: 0; }
.hero-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.feat { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); font-size: .84rem; color: var(--muted); background: var(--glass); }
.feat svg { width: 14px; height: 14px; color: var(--mint); }
@media (min-width: 560px) {
  .trip-strip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .6fr); }
  .trip-strip .field:first-child { grid-column: 1 / -1; }
}

/* vista previa (tarjeta de app) */
.preview { position: relative; padding: 1rem; border-radius: var(--r-l); background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid var(--line-2); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 40px 100px -30px rgba(0,0,0,.8), 0 0 80px -20px rgba(56,189,248,.35); animation: floaty 9s ease-in-out infinite alternate; }
@keyframes floaty { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.preview-head { display: flex; align-items: center; gap: .75rem; padding: .25rem .25rem .9rem; border-bottom: 1px solid var(--line); }
.preview-head strong { display: block; font-family: var(--ff-display); font-size: 1rem; }
.preview-head small { color: var(--muted); font-size: .8rem; }
.preview-badge { margin-left: auto; padding: .25rem .65rem; border-radius: 999px; background: rgba(94,242,214,.12); color: var(--mint); font-size: .76rem; font-weight: 600; border: 1px solid rgba(94,242,214,.25); }
.pv-list { margin: .9rem 0 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.pv-day { display: grid; grid-template-columns: 34px 1fr; gap: .75rem; padding: .7rem; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); opacity: 0; transform: translateY(8px); animation: rise .6s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.5s + var(--i) * .22s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.pv-n { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #03120f; font: 800 .9rem var(--ff-display); }
.pv-day h4 { font-size: .92rem; font-weight: 700; letter-spacing: -.01em; }
.pv-day p { margin-top: .1rem; font-size: .85rem; color: var(--muted); line-height: 1.4; }
.preview-note { margin-top: .9rem; padding: 0 .25rem; font-size: .78rem; color: var(--faint); }

/* ---------- Campos ---------- */
.field { min-width: 0; }
.field label, .group legend { display: block; margin-bottom: .35rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 48px; padding: 0 .95rem; background: var(--glass); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-s); font-weight: 500; font-size: 1rem; transition: border-color .2s, background-color .2s; }
.field textarea { padding: .8rem .95rem; min-height: 96px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: rgba(94,242,214,.7); background: var(--glass-2); box-shadow: 0 0 0 4px rgba(94,242,214,.12); }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2392a6ae' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.3rem; }
.field select option { color: #111; background: #fff; }
.field input[type="date"] { -webkit-appearance: none; appearance: none; text-align: left; }
@media (max-width: 559px) { .field input[type="date"] { padding: 0 .55rem; font-size: .95rem; } .trip-strip .field input[type="date"] { padding: 0; } }

/* ---------- Secciones ---------- */
.section { position: relative; padding: clamp(4rem, 9vw, 7rem) 0; }
.section-tint { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.section-head { max-width: 64ch; margin-bottom: 2.5rem; }
.section-head h2 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.04em; }
.lead { margin-top: .9rem; color: var(--muted); font-size: 1.08rem; max-width: 58ch; }
.fine { margin-top: 1.25rem; font-size: .88rem; color: var(--faint); max-width: 70ch; }

/* ---------- Chips y filtros ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 40px; padding: 0 1.05rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: .92rem; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s; }
.chip:hover { border-color: var(--line-2); background: var(--glass-2); }
.chip[aria-pressed="true"] { background: rgba(94,242,214,.14); border-color: rgba(94,242,214,.6); color: var(--mint); box-shadow: 0 0 22px -6px rgba(94,242,214,.5); }
.filters { display: grid; gap: .9rem; margin-bottom: 1.75rem; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.filter-row > span { font-size: .85rem; font-weight: 600; color: var(--faint); min-width: 4.5rem; }
.filter-note { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .7rem 1rem; background: var(--glass); border: 1px solid var(--line); border-radius: 14px; font-size: .94rem; }
.linkish { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: var(--mint); font-weight: 600; cursor: pointer; }

/* ---------- Imágenes (con respaldo de malla) ---------- */
.media { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(70% 90% at 15% 0%, hsl(var(--h, 190) 85% 48% / .55), transparent 62%), radial-gradient(80% 80% at 100% 100%, hsl(calc(var(--h, 190) + 55) 80% 50% / .42), transparent 60%), #0a1319; }
.media::before { content: ""; position: absolute; inset: 0; background-image: var(--img, none); background-size: cover; background-position: center; opacity: 0; transition: opacity .8s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); z-index: 1; }
.media::after { content: ""; position: absolute; inset: 0; background-image: var(--grid-line); background-size: 34px 34px; -webkit-mask-image: linear-gradient(160deg, #000, transparent 75%); mask-image: linear-gradient(160deg, #000, transparent 75%); opacity: .9; }
.media.has-img::before { opacity: 1; }
.media.has-img::after { opacity: 0; }
.tile-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5,9,13,0) 30%, rgba(5,9,13,.88) 100%); }

/* ---------- Destinos (bento) ---------- */
.dest-strip { display: grid; gap: 14px; grid-template-columns: 1fr; }
.dest { position: relative; min-height: 340px; border-radius: var(--r-l); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; border: 1px solid var(--line); isolation: isolate; transition: border-color .3s, box-shadow .4s, transform .4s cubic-bezier(.2,.7,.2,1); }
.dest .media { position: absolute; inset: 0; z-index: -1; }
.dest:hover .media::before { transform: scale(1.05); }
.dest:hover, .dest:focus-within { border-color: rgba(94,242,214,.5); box-shadow: 0 0 60px -18px rgba(94,242,214,.55); }
.dest-shade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(5,9,13,0) 25%, rgba(5,9,13,.9) 100%); }
.dest-body { position: relative; z-index: 1; }
.dest h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; line-height: 1; }
.dest-tag { margin-top: .4rem; color: #cfe0e5; font-weight: 500; }
.dest-more p { margin-top: .9rem; max-width: 44ch; font-size: .95rem; color: #b7cbd1; }
.dest-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
@media (min-width: 860px) {
  .dest-strip { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 280px; }
  .dest-strip .dest { min-height: 0; }
  .dest-strip .dest:nth-child(1) { grid-column: span 7; grid-row: span 2; }
  .dest-strip .dest:nth-child(2) { grid-column: span 5; }
  .dest-strip .dest:nth-child(3) { grid-column: span 5; }
  .dest-strip .dest:not(:nth-child(1)) .dest-more p { display: none; }
}

/* ---------- Actividades (teselas) ---------- */
.act-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.act { position: relative; min-height: 320px; border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 1rem; border: 1px solid var(--line); isolation: isolate; transition: border-color .3s, box-shadow .4s; }
.act .media { position: absolute; inset: 0; z-index: -1; }
.act:hover { border-color: rgba(94,242,214,.45); box-shadow: 0 0 50px -18px rgba(94,242,214,.5); }
.act:hover .media::before { transform: scale(1.06); }
.act-top { position: relative; z-index: 2; display: flex; gap: .4rem; }
.act-body { position: relative; z-index: 2; }
.act h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.act p { margin-top: .35rem; color: #b9ccd2; font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.act-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; }
.act-go { margin-top: .9rem; }
.tag { display: inline-block; padding: .2rem .65rem; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid var(--line); color: #dcebef; font-size: .76rem; font-weight: 500; backdrop-filter: blur(8px); }
.tag-place { background: rgba(94,242,214,.16); border-color: rgba(94,242,214,.4); color: var(--mint); font-weight: 600; }
.empty-line { padding: 1.5rem 0; color: var(--muted); grid-column: 1 / -1; }

/* ---------- Tours ---------- */
.tour-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tour { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s, box-shadow .4s, transform .4s cubic-bezier(.2,.7,.2,1); }
.tour:hover { border-color: rgba(94,242,214,.4); box-shadow: 0 30px 70px -30px rgba(56,189,248,.5); transform: translateY(-3px); }
.tour .media { aspect-ratio: 16 / 10; }
.badge { position: absolute; z-index: 3; top: .8rem; left: .8rem; padding: .25rem .7rem; border-radius: 999px; background: rgba(5,9,13,.7); border: 1px solid var(--line-2); color: #fff; font-size: .75rem; font-weight: 600; backdrop-filter: blur(10px); }
.tour-body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.tour-body h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.18; letter-spacing: -.02em; }
.tour-where { margin-top: .35rem; font-size: .88rem; font-weight: 600; color: var(--mint); }
.tour-facts { display: grid; gap: .3rem; margin: .9rem 0; padding: 0; list-style: none; font-size: .9rem; color: var(--muted); }
.tour-facts li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .35rem; }
.tour-facts li span:last-child { color: var(--ink); text-align: right; font-weight: 500; }
.tour-price { margin-top: auto; padding-top: .4rem; font-family: var(--ff-display); font-weight: 800; font-size: 1.2rem; }
.tour-price small { font-family: var(--ff-body); font-weight: 500; font-size: .88rem; color: var(--muted); }
.tour-price.is-tbc { font-family: var(--ff-body); font-weight: 500; font-size: .95rem; color: var(--muted); }
.tour-actions { display: grid; gap: .5rem; margin-top: 1rem; }

/* ---------- Planificador ---------- */
.planner-section::before { content: ""; position: absolute; inset: 0; -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); background: radial-gradient(40% 50% at 85% 20%, rgba(56,189,248,.14), transparent 70%), radial-gradient(35% 45% at 10% 80%, rgba(94,242,214,.1), transparent 70%); pointer-events: none; }
.planner-section .container { position: relative; }
.planner { display: grid; gap: 1.5rem; }
@media (min-width: 980px) { .planner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2rem; align-items: start; } .plan-out { position: sticky; top: calc(var(--header-h) + 8px); } }
.plan-form { display: grid; gap: 1.15rem; padding: 1.5rem; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); border: 1px solid var(--line-2); border-radius: var(--r-l); backdrop-filter: blur(16px); }
.group { margin: 0; padding: 0; border: 0; min-width: 0; }
.group legend { padding: 0; }
.row-3 { display: grid; gap: .8rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.row-3 .field:last-child { grid-column: 1 / -1; }
.row-2 { display: grid; gap: .8rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .row-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .7fr); } .row-3 .field:last-child { grid-column: auto; } .row-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.form-error { padding: .7rem .95rem; border-radius: 12px; background: rgba(255,93,143,.14); border: 1px solid rgba(255,93,143,.4); color: #ffc2d3; font-weight: 500; font-size: .93rem; }
.form-ok { background: rgba(94,242,214,.12); border-color: rgba(94,242,214,.4); color: var(--mint); }

.plan-out { min-height: 260px; }
.plan-empty { height: 100%; min-height: 340px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: .9rem; padding: 2rem; border: 1px dashed var(--line-2); border-radius: var(--r-l); background: var(--glass); }
.plan-empty .isa-avatar { width: 52px; height: 52px; }
.plan-empty h3 { font-size: 1.5rem; font-weight: 800; }
.plan-empty p { color: var(--muted); max-width: 46ch; }
.plan-head h3 { font-size: 1.7rem; font-weight: 800; }
.plan-head p { margin-top: .25rem; color: var(--muted); }
.days { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.day { position: relative; margin-left: 1rem; padding: 0 0 1.5rem 2rem; border-left: 1px solid var(--line-2); animation: dayIn .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d) * 90ms); }
.day:last-child { border-left-color: transparent; padding-bottom: 0; }
.day::before { content: attr(data-n); position: absolute; left: -1.05rem; top: -.1rem; width: 2.05rem; height: 2.05rem; border-radius: 12px; background: var(--grad); color: #03120f; display: grid; place-items: center; font: 800 .9rem var(--ff-display); box-shadow: 0 0 22px -4px rgba(94,242,214,.7); }
@keyframes dayIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.day h4 { margin: 0; font: 800 1.1rem var(--ff-display); letter-spacing: -.02em; }
.slot { margin-top: .65rem; padding: .9rem 1rem; background: var(--glass); border: 1px solid var(--line); border-radius: 16px; }
.slot-when { font-size: .8rem; font-weight: 600; color: var(--mint); }
.slot-name { margin-top: .1rem; font-weight: 700; font-size: 1.02rem; }
.slot-desc { margin-top: .15rem; font-size: .92rem; color: var(--muted); }
.slot-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-top: .65rem; font-size: .88rem; color: var(--faint); }
.slot-free { font-style: normal; }
.plan-notes { margin-top: 1.25rem; display: grid; gap: .5rem; }
.plan-notes p { font-size: .92rem; color: var(--muted); }
.plan-notes .warn { color: #ffc2d3; font-weight: 600; }
.plan-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }

/* ---------- Cómo funciona ---------- */
.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 1.5rem; border-radius: var(--r-m); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); border: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: 1rem; border-radius: 13px; background: var(--grad); color: #03120f; font: 800 1.05rem var(--ff-display); }
.steps h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.steps p { margin-top: .4rem; color: var(--muted); max-width: 34ch; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps li:not(:last-child)::after { content: ""; position: absolute; top: 2.7rem; right: -15px; width: 16px; height: 1px; background: var(--line-2); } }

/* ---------- Reseñas y operadores ---------- */
.empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding: 1.75rem 2rem; border: 1px dashed var(--line-2); border-radius: var(--r-l); background: var(--glass); }
.empty h3 { font-size: 1.3rem; font-weight: 700; }
.empty p { margin-top: .3rem; color: var(--muted); max-width: 52ch; }
.rev-grid, .op-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.rev, .op { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.3rem 1.4rem; }
.stars { color: #ffc857; letter-spacing: 2px; font-size: 1.05rem; }
.rev blockquote { margin: .6rem 0 0; font-size: 1rem; }
.rev cite { display: block; margin-top: .9rem; font-style: normal; font-weight: 700; }
.rev small { color: var(--muted); }
.op { display: grid; gap: .35rem; align-content: start; }
.op h3 { font-size: 1.2rem; font-weight: 700; }
.op p { color: var(--muted); font-size: .95rem; }
.op a { font-weight: 600; color: var(--mint); }

/* ---------- Cierre y pie ---------- */
.final { position: relative; padding: clamp(3.5rem, 8vw, 6rem) 0; overflow: hidden; isolation: isolate; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 90% at 20% 50%, rgba(56,189,248,.28), transparent 70%), radial-gradient(40% 80% at 90% 50%, rgba(94,242,214,.22), transparent 70%), var(--bg-2); border-block: 1px solid var(--line); }
.final-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.final h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); font-weight: 800; line-height: 1.05; max-width: 20ch; }
.final .lead { color: var(--muted); }

.site-footer { padding: 3rem 0 1.5rem; color: var(--muted); }
.footer-inner { display: grid; gap: 1.75rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.site-footer .brand { color: var(--ink); }
.footer-tag { margin-top: .9rem; max-width: 38ch; font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-content: start; }
.footer-links a { text-decoration: none; font-weight: 500; padding: .25rem 0; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-top: 1.25rem; font-size: .86rem; color: var(--faint); }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.2fr 1fr; } .footer-links { justify-content: flex-end; } }

/* ---------- Barra móvil y botón flotante ---------- */
.mobilebar { position: fixed; inset: auto 12px calc(12px + env(safe-area-inset-bottom)) 12px; z-index: 45; display: none; gap: .5rem; padding: .5rem; border-radius: 999px; background: rgba(10, 16, 21, .82); border: 1px solid var(--line-2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 20px 50px -10px rgba(0,0,0,.8); }
.mobilebar .btn { flex: 1; padding: 0 .9rem; white-space: nowrap; font-size: .95rem; min-height: 46px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(94,242,214,.6); animation: pulse 2.4s infinite; }
@media (max-width: 759px) { .mobilebar { display: flex; } body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); } .isa-fab { display: none !important; } }

.isa-fab { opacity: 0; pointer-events: none; visibility: hidden; position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 46; display: flex; align-items: center; gap: .7rem; padding: .5rem 1.2rem .5rem .5rem; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(10, 16, 21, .85); backdrop-filter: blur(16px); color: var(--ink); cursor: pointer; box-shadow: 0 20px 50px -10px rgba(0,0,0,.8), 0 0 40px -10px rgba(94,242,214,.4); transition: transform .25s, opacity .3s, visibility .3s, border-color .2s; text-align: left; transform: translateY(8px); }
.isa-fab.show { opacity: 1; pointer-events: auto; visibility: visible; transform: none; }
.isa-fab:hover { border-color: rgba(94,242,214,.6); transform: translateY(-2px); }
body.chat-on .isa-fab { opacity: 0; pointer-events: none; visibility: hidden; }
.isa-fab-text { display: grid; line-height: 1.15; }
.isa-fab-text b { font-size: .98rem; }
.isa-fab-text small { font-size: .76rem; color: var(--muted); }

/* ---------- Chat ---------- */
.chat { position: fixed; z-index: 60; right: 1.25rem; bottom: 1.25rem; width: min(410px, calc(100vw - 2.5rem)); height: min(630px, calc(100svh - 2.5rem)); display: none; flex-direction: column; background: rgba(9, 15, 20, .94); border: 1px solid var(--line-2); border-radius: var(--r-l); overflow: hidden; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 40px 100px -20px rgba(0,0,0,.9), 0 0 60px -20px rgba(56,189,248,.35); }
.chat.open { display: flex; animation: chatIn .28s cubic-bezier(.2,.7,.2,1); }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.chat-id { display: grid; line-height: 1.2; flex: 1; }
.chat-id strong { font-family: var(--ff-display); }
.chat-id small { color: var(--muted); font-size: .8rem; }
.chat-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.chat-close:hover { background: var(--glass-2); }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.msg { max-width: 88%; padding: .7rem .95rem; border-radius: 18px; font-size: .95rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { align-self: flex-start; background: var(--glass-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; background: var(--grad); color: #03120f; font-weight: 500; border-bottom-right-radius: 6px; }
.msg.typing { color: var(--muted); font-style: italic; }
.msg .btn { margin-top: .7rem; display: flex; white-space: normal; }
.chat-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; min-height: 44px; padding: 0 1rem; background: var(--glass); border: 1px solid var(--line); border-radius: 999px; }
.chat-form input:focus { outline: 0; border-color: rgba(94,242,214,.7); box-shadow: 0 0 0 4px rgba(94,242,214,.12); }
@media (max-width: 759px) { .chat { inset: 0; width: auto; height: auto; border-radius: 0; } }

/* ---------- Diálogo de reserva ---------- */
.book { border: 1px solid var(--line-2); padding: 0; width: min(540px, calc(100% - 1.5rem)); max-height: calc(100svh - 1.5rem); border-radius: var(--r-l); background: #0a1117; color: var(--ink); box-shadow: 0 40px 100px -20px rgba(0,0,0,.9), 0 0 60px -20px rgba(56,189,248,.35); }
.book::backdrop { background: rgba(2, 5, 8, .72); backdrop-filter: blur(5px); }
.book[open] { animation: chatIn .28s cubic-bezier(.2,.7,.2,1); }
.book form { display: flex; flex-direction: column; max-height: calc(100svh - 1.5rem); }
.book-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.book-head h2 { font-size: 1.35rem; font-weight: 800; }
.book-body { display: grid; gap: .9rem; padding: 1.25rem 1.4rem; overflow-y: auto; }
.book-for { font-size: .95rem; color: var(--muted); }
.book-for strong { color: var(--ink); }
.book-foot { display: flex; justify-content: flex-end; gap: .6rem; padding: 1rem 1.4rem; border-top: 1px solid var(--line); }

/* ---------- Chino y movimiento reducido ---------- */
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3, html[lang="zh-Hans"] h4 { letter-spacing: 0; }
html[lang="zh-Hans"] .hero h1 { line-height: 1.18; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .pv-day { opacity: 1; transform: none; }
}

/* ---------- Ajuste fino: encabezado en pantallas angostas ---------- */
@media (max-width: 559px) {
  .header-inner { padding-left: .9rem; padding-right: .45rem; }
  .brand-mark { width: 24px; height: 24px; }
  .brand-name { font-size: 1rem; }
  .lang { max-width: 7.4rem; padding-left: .7rem; }
}

/* ---------- Itinerario generado por IA ---------- */
.ai-badge { display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem; padding: .3rem .8rem .3rem .65rem; border-radius: 999px; background: rgba(94,242,214,.12); border: 1px solid rgba(94,242,214,.3); color: var(--mint); font-size: .8rem; font-weight: 600; }
.ai-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: pulse 2.4s infinite; }
.ai-summary { margin-top: .8rem; color: var(--ink); font-size: 1.02rem; max-width: 60ch; }
.ai-status { display: flex; align-items: center; gap: .8rem; margin-top: 1.25rem; padding: .8rem 1rem; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.ai-status .isa-avatar { width: 28px; height: 28px; }
.ai-status::after { content: ""; margin-left: auto; width: 60px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--mint), transparent); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.day-title { margin-top: .15rem; color: var(--muted); font-size: .95rem; }
.slot-why { margin-top: .3rem; color: #bff3e8; font-size: .93rem; }
.ai-tips { padding: 1rem 1.1rem; border-radius: 16px; background: rgba(94,242,214,.07); border: 1px solid rgba(94,242,214,.22); }
.ai-tips strong { font-family: var(--ff-display); }
.ai-tips ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .93rem; }
.ai-warn { margin-top: .75rem; }

/* ---------- Ideas de viaje (sección editorial con fotos) ---------- */
.ideas { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .ideas { grid-template-columns: repeat(3, 1fr); } .ideas .dest { min-height: 440px; } }
.idea .dest-tag { max-width: 30ch; }
.img-note { display: none; }
body.has-photos .img-note { display: block; }

/* ---------- Preguntas rápidas del chat ---------- */
.chat-quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .85rem; }
.chat-quick:empty { display: none; }
.chat-quick .chip { min-height: 34px; padding: 0 .85rem; font-size: .84rem; }

/* ---------- Operadores: captación ---------- */
.op-grid { margin-bottom: 14px; }
.op-links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .4rem; }
.op-join { display: grid; gap: 1.5rem; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--r-l); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); border: 1px solid var(--line-2); }
.op-join-copy h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; line-height: 1.1; }
.op-join-copy p { margin: .7rem 0 1.2rem; color: var(--muted); max-width: 46ch; }
.op-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: .6rem; counter-reset: o; align-content: center; }
.op-steps li { counter-increment: o; display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); font-weight: 500; }
.op-steps li::before { content: "0" counter(o); font: 800 .95rem var(--ff-display); color: var(--mint); }
@media (min-width: 860px) { .op-join { grid-template-columns: 1.1fr .9fr; align-items: center; } }
