/* Albitours Cartagena — demo. Mobile-first. */
:root {
  --red: #DF1F26;
  --red-dark: #B8141B;
  --red-soft: #FDECEC;
  --ink: #333333;
  --ink-2: #5C5C5C;
  --muted: #6B6B6B;
  --blue: #1F4BA5;
  --blue-soft: #EAF0FB;
  --line: #E7E7E7;
  --soft: #F7F6F4;
  --white: #FFFFFF;
  --green: #1E8E4E;
  --wa: #25D366;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.07);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.22);
  --header-h: 64px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; flex: none; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(223,31,38,.28); }
.btn-red:hover { background: var(--red-dark); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f2f2f2; }
.btn-white .wa-ic { color: #1DA851; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: .9375rem; }
.btn-block { width: 100%; }

/* ---------- Aviso demo ---------- */
.demo-bar { display: flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; padding: 2px 4px 2px 16px; font-size: .875rem; line-height: 1.35; }
.demo-bar p { flex: 1; padding: 8px 0; }
.demo-close { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: #fff; cursor: pointer; border-radius: 8px; }
.demo-close svg { width: 18px; height: 18px; }

/* ---------- Encabezado ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.logo { display: flex; align-items: center; flex: none; min-height: 44px; }
.logo img { height: 40px; width: auto; }
.header-cta { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-cta .lg-label { display: none; }
.burger { display: grid; place-items: center; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; border-radius: 10px; }
.burger svg { width: 26px; height: 26px; }

.nav { position: fixed; left: 0; right: 0; top: var(--nav-top, var(--header-h)); background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0,0,0,.08); display: flex; flex-direction: column; padding: 8px 16px 16px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.nav.open { transform: none; opacity: 1; visibility: visible; }
.nav a { display: flex; align-items: center; min-height: 52px; padding: 0 8px; font-weight: 600; font-size: 1.0625rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav a:hover { color: var(--red); }
.lang { align-self: flex-start; margin-top: 12px; display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); cursor: pointer; min-height: 44px; }
.lang span { display: grid; place-items: center; min-width: 44px; padding: 0 10px; border-radius: 999px; font-weight: 700; font-size: .875rem; color: var(--muted); }
.lang span.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

@media (min-width: 400px) { .logo img { height: 44px; } }
@media (min-width: 560px) { .header-cta .lg-label { display: inline; } .header-cta .sm-label { display: none; } }
@media (min-width: 1080px) {
  .logo img { height: 48px; }
  .burger { display: none; }
  .nav { position: static; flex-direction: row; align-items: center; gap: 2px; padding: 0; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; max-height: none; overflow: visible; margin-left: 16px; }
  .nav a { min-height: 44px; padding: 0 12px; border: 0; font-size: .9375rem; border-radius: 999px; }
  .nav a:hover { background: var(--soft); color: var(--ink); }
  .lang { margin: 0 0 0 8px; align-self: center; }
  .header-cta { margin-left: auto; }
}

/* ---------- Portada ---------- */
.hero { padding: 0; }
.hero .wrap { padding: 0; }
.hero-media { position: relative; max-width: 600px; margin: 0 auto; min-height: min(600px, max(500px, calc(100svh - var(--header-h) - 48px))); display: flex; align-items: flex-end; overflow: hidden; background: #0e3b54; }
.hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.72) 100%); }
.hero-copy { position: relative; padding: 24px 16px 22px; color: #fff; width: 100%; }
.seal { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; background: rgba(255,255,255,.95); color: var(--ink); padding: 6px 12px 6px 8px; border-radius: 999px; font-size: .875rem; font-weight: 600; margin-bottom: 14px; }
.seal svg { color: var(--blue); width: 18px; height: 18px; }
.seal-sub { display: none; color: var(--muted); font-weight: 500; }
.hero h1 { font-size: clamp(2rem, 9vw, 3.5rem); font-weight: 800; text-wrap: balance; }
.hero-lead { margin-top: 10px; font-size: 1.0625rem; max-width: 34ch; opacity: .95; }
.hero-btns { display: grid; gap: 10px; margin-top: 20px; }
.hero-rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .9375rem; text-decoration: none; min-height: 44px; }
.stars { display: inline-flex; gap: 1px; color: #FFB400; }
.stars svg { width: 17px; height: 17px; }
.stars .half { position: relative; color: rgba(255,255,255,.35); }
.stars .empty { color: rgba(255,255,255,.35); }

@media (min-width: 600px) { .hero { padding-top: 20px; } .hero-media { border-radius: 20px; } }
@media (min-width: 420px) { .hero-btns { grid-template-columns: auto auto; justify-content: start; } }

@media (min-width: 900px) {
  .hero { padding: 48px 0 24px; }
  .hero .wrap { padding: 0 32px; }
  .hero-media { max-width: none; min-height: 0; display: grid; grid-template-columns: 1fr minmax(0, 540px); gap: 56px; align-items: center; background: none; overflow: visible; border-radius: 0; }
  .hero-media > img { position: relative; grid-column: 2; grid-row: 1; aspect-ratio: 1; height: auto; border-radius: 24px; box-shadow: var(--shadow-lg); }
  .hero-shade { display: none; }
  .hero-copy { grid-column: 1; grid-row: 1; color: var(--ink); padding: 0; }
  .seal { background: var(--blue-soft); }
  .seal-sub { display: inline; }
  .hero h1 { font-size: clamp(2.75rem, 5vw, 4rem); }
  .hero h1::after { content: ""; display: block; width: 72px; height: 6px; border-radius: 6px; background: var(--red); margin-top: 18px; }
  .hero-lead { font-size: 1.1875rem; color: var(--ink-2); max-width: 40ch; margin-top: 18px; }
  .hero-btns { margin-top: 28px; }
  .hero .btn-white { border-color: var(--line); }
  .hero .btn-white:hover { border-color: var(--ink); background: #fff; }
  .hero-rating { color: var(--ink-2); }
  .hero-rating .stars .empty, .hero-rating .stars .half { color: #DDD; }
}

/* ---------- Secciones ---------- */
.section { padding: 56px 0; }
.section-soft { background: var(--soft); }
@media (min-width: 900px) { .section { padding: 88px 0; } }
.sec-head { margin-bottom: 24px; max-width: 720px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.ic-inline { width: 18px; height: 18px; }
.sec-sub { margin-top: 10px; color: var(--ink-2); font-size: 1.0625rem; }

/* ---------- Filtros ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px 8px; padding: 4px 16px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filters::-webkit-scrollbar { display: none; }
.chip-f { flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .9375rem; cursor: pointer; transition: all .2s; white-space: nowrap; }
.chip-f .n { font-size: .875rem; color: var(--muted); font-weight: 600; }
.chip-f:hover { border-color: var(--ink); }
.chip-f[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-f[aria-selected="true"] .n { color: rgba(255,255,255,.7); }
@media (min-width: 768px) { .filters { flex-wrap: wrap; overflow: visible; margin: 0 0 12px; padding: 4px 0; } }
.en-note { background: var(--blue-soft); color: var(--blue); padding: 10px 14px; border-radius: var(--radius-sm); font-size: .9375rem; margin-bottom: 16px; }

/* ---------- Tarjetas ---------- */
.cat-block + .cat-block { margin-top: 40px; }
.cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cat-title { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; font-size: 1.375rem; }
.cat-title small { font-size: .875rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.see-all { display: inline-flex; align-items: center; gap: 4px; flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: .9375rem; cursor: pointer; }
.see-all:hover { border-color: var(--ink); }
.see-all svg { width: 16px; height: 16px; }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; overscroll-behavior-x: contain; }
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll > .card { scroll-snap-align: start; }
.row-scroll .card-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 999px) { .row-scroll .card-img { aspect-ratio: 16 / 10; } }
@media (min-width: 600px) { .row-scroll { grid-auto-columns: calc((100% - 40px) / 2.2); gap: 20px; } }
@media (min-width: 768px) { .row-scroll { margin: 0 -32px; padding: 4px 32px 12px; scroll-padding-inline: 32px; } }
@media (min-width: 1000px) { .row-scroll { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; overflow: visible; margin: 0; padding: 0; } }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); max-width: 600px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.tag { display: inline-block; align-self: flex-start; font-size: .875rem; font-weight: 700; color: var(--blue); background: var(--blue-soft); padding: 3px 10px; border-radius: 999px; }
.card h3 { font-size: 1.125rem; }
.card-link { all: unset; cursor: pointer; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link:focus-visible::after { outline: 3px solid var(--blue); outline-offset: -3px; border-radius: var(--radius); }
.card-desc { color: var(--ink-2); font-size: .9375rem; }
.card-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .875rem; }
.card-meta svg { width: 16px; height: 16px; }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.price { color: var(--red); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.1; }
.price small { display: block; font-size: .875rem; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-top: 2px; }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .9375rem; color: var(--ink); min-height: 44px; }
.more svg { width: 18px; height: 18px; transition: transform .2s; }
.card:hover .more svg { transform: translateX(3px); }

/* ---------- Asistente ---------- */
.quiz { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 20px 16px; max-width: 860px; }
@media (min-width: 768px) { .quiz { padding: 32px; } }
.q-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.q-step { font-size: .875rem; font-weight: 600; color: var(--muted); }
.q-bar { height: 6px; background: var(--soft); border-radius: 6px; overflow: hidden; margin-bottom: 20px; }
.q-bar i { display: block; height: 100%; background: var(--red); border-radius: 6px; transition: width .35s; }
.q-title { font-size: 1.375rem; margin-bottom: 16px; }
.q-opts { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .q-opts { grid-template-columns: 1fr 1fr; } }
.q-opt { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; text-align: left; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 600; font-size: 1rem; transition: border-color .2s, background .2s; }
.q-opt:hover { border-color: var(--red); background: var(--red-soft); }
.q-opt .emo { font-size: 1.5rem; line-height: 1; }
.q-opt small { display: block; font-weight: 500; color: var(--muted); font-size: .875rem; }
.q-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font-weight: 600; min-height: 44px; padding: 0 8px; color: var(--ink-2); }
.q-res-grid { display: grid; gap: 12px; margin: 8px 0 20px; }
@media (min-width: 768px) { .q-res-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mini { position: relative; display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: box-shadow .2s; }
.mini:hover { box-shadow: var(--shadow); }
.mini img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; flex: none; }
.mini h4 { margin: 0 0 4px; font-size: 1rem; line-height: 1.25; }
.mini .price { font-size: 1.0625rem; }
.mini .why-chip { font-size: .875rem; color: var(--green); font-weight: 600; margin-top: 4px; }
@media (min-width: 768px) { .mini { flex-direction: column; align-items: stretch; } .mini img { width: 100%; height: auto; aspect-ratio: 4/3; } }
.q-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Por qué / Nosotros ---------- */
.why { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 600px) { .why { gap: 16px; } }
@media (min-width: 1000px) { .why { grid-template-columns: repeat(4, 1fr); } }
.why-item { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
@media (min-width: 600px) { .why-item { padding: 20px; } }
.why-item p { overflow-wrap: anywhere; }
.why-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--red-soft); color: var(--red); flex: none; }
.why-ic svg { width: 24px; height: 24px; }
.why-item h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.why-item p { color: var(--ink-2); font-size: .9375rem; }
.about { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; gap: 24px; } }
.about-card { background: var(--soft); border-radius: var(--radius); padding: 20px; }
@media (min-width: 768px) { .about-card { padding: 28px; } }
.about-card h3 { margin-bottom: 14px; }
.facts { margin: 0; display: grid; gap: 12px; }
.facts div { display: grid; grid-template-columns: 1fr; gap: 2px; }
@media (min-width: 420px) { .facts div { grid-template-columns: 130px 1fr; gap: 12px; } }
.facts dt { font-size: .875rem; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .9375rem; }
.chips li.hl { background: var(--red-soft); border-color: transparent; color: var(--red-dark); }
.chips li svg { width: 16px; height: 16px; }

/* ---------- Reseñas ---------- */
.reviews-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.score { display: inline-flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--radius); padding: 12px 18px; text-decoration: none; box-shadow: var(--shadow); }
.score-num { font-size: 2.25rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.score-txt { display: grid; gap: 2px; font-size: .875rem; color: var(--ink-2); }
.score .stars .empty, .score .stars .half { color: #DDD; }
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 0 -16px 20px; padding: 4px 16px 8px; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.reviews > * { scroll-snap-align: start; }
@media (min-width: 768px) { .reviews { grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 16px; overflow: visible; margin: 0 0 24px; padding: 0; } }
@media (min-width: 1100px) { .reviews { grid-template-columns: repeat(4, 1fr); } }
.review { background: #fff; border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.review blockquote { margin: 0; font-size: 1rem; }
.review figcaption { margin-top: auto; display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--muted); }
.review figcaption b { display: block; color: var(--ink); font-size: .9375rem; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-weight: 800; flex: none; }
.review .stars { color: #FFB400; }

/* ---------- Grupos ---------- */
.groups { display: grid; gap: 24px; }
@media (min-width: 900px) { .groups { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; } .groups-copy { position: sticky; top: calc(var(--header-h) + 32px); } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 16px; display: grid; gap: 16px; box-shadow: var(--shadow); min-width: 0; }
@media (min-width: 768px) { .form-card { padding: 28px; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.label { display: block; font-size: .875rem; font-weight: 700; margin-bottom: 6px; }
.field { display: block; min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 1rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,75,165,.15); }
.field textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .9375rem; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 14px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform .2s; color: var(--muted); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq .ans { padding: 0 18px 18px; color: var(--ink-2); }

/* ---------- Contacto ---------- */
.advisors { display: grid; gap: 12px; margin-bottom: 16px; }
@media (min-width: 700px) { .advisors { grid-template-columns: 1fr 1fr; gap: 16px; } }
.advisor { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.advisor:hover { border-color: var(--wa); box-shadow: var(--shadow); }
.advisor .wa-badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--wa); color: #fff; flex: none; }
.advisor .wa-badge svg { width: 28px; height: 28px; }
.advisor b { display: block; font-size: 1.0625rem; }
.advisor span { color: var(--ink-2); font-size: .9375rem; }
.advisor .go { margin-left: auto; color: var(--muted); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 900px) { .contact-list { grid-template-columns: repeat(4, 1fr); } .contact-list li + li { border-left: 1px solid var(--line); } }
.contact-list li + li { border-top: 1px solid var(--line); }
@media (min-width: 900px) { .contact-list li + li { border-top: 0; } }
.contact-list a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 64px; text-decoration: none; min-width: 0; }
.contact-list a:hover { background: var(--soft); }
.contact-list .ci { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--soft); flex: none; }
.contact-list small { display: block; color: var(--muted); font-size: .875rem; font-weight: 600; }
.contact-list .v { font-weight: 600; overflow-wrap: anywhere; font-size: .9375rem; }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: #fff; padding: 28px 0 96px; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: .9375rem; }
.footer-logo { height: 40px; width: auto; background: #fff; border-radius: 8px; padding: 4px 8px; box-sizing: content-box; }
@media (min-width: 900px) { .footer { padding-bottom: 28px; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.22); transition: transform .2s, opacity .2s; }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }
body.modal-open .wa-float, body.menu-open .wa-float { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Modal ---------- */
.modal { padding: 0; border: 0; background: transparent; width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; overflow: hidden; }
.modal::backdrop { background: rgba(20,20,20,.6); backdrop-filter: blur(2px); }
.modal[open] { display: flex; animation: fadein .2s ease-out; }
.modal-box { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; background: #fff; overflow: hidden; }
.modal[open] .modal-box { animation: up .28s cubic-bezier(.2,.8,.2,1); }
@keyframes fadein { from { opacity: 0; } }
@keyframes up { from { transform: translateY(24px); opacity: .4; } }
.modal-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.modal-close { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; z-index: 3; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); box-shadow: 0 2px 10px rgba(0,0,0,.2); cursor: pointer; }
.modal-media { aspect-ratio: 16 / 10; background: var(--soft); max-width: 600px; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-body { padding: 20px 16px 24px; display: grid; gap: 14px; }
.modal-body h2 { font-size: 1.625rem; }
.m-price { color: var(--ink-2); }
.m-price b { color: var(--red); font-size: 1.5rem; font-weight: 800; }
.m-desc { color: var(--ink-2); }
.m-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; background: var(--soft); border-radius: 14px; padding: 14px; }
.m-facts li { display: flex; gap: 12px; align-items: flex-start; }
.m-facts svg { color: var(--blue); margin-top: 2px; }
.m-facts small { display: block; font-size: .875rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.m-facts span { font-weight: 500; }
.m-lists { display: grid; gap: 18px; }
.m-lists h3 { font-size: 1rem; margin-bottom: 10px; }
.ilist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ilist li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.ilist svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; margin-top: 1px; }
.ilist.yes svg { color: var(--green); background: #E6F4EC; }
.ilist.no svg { color: var(--red); background: var(--red-soft); }
.calc { border: 1.5px solid var(--line); border-radius: 14px; }
.calc summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 14px; font-weight: 700; cursor: pointer; list-style: none; }
.calc summary::-webkit-details-marker { display: none; }
.calc summary svg:first-child { color: var(--blue); }
.calc summary .chev { margin-left: auto; color: var(--muted); transition: transform .2s; }
.calc[open] summary .chev { transform: rotate(180deg); }
.calc-in { padding: 0 14px 16px; display: grid; gap: 14px; }
.steppers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.step-ctl { display: flex; align-items: center; justify-content: space-between; border: 1.5px solid var(--line); border-radius: 12px; padding: 2px; }
.step-ctl button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: var(--soft); border-radius: 10px; cursor: pointer; }
.step-ctl button:disabled { opacity: .4; cursor: default; }
.step-ctl output { font-weight: 800; font-size: 1.125rem; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 4px; border-top: 1px dashed var(--line); padding-top: 12px; }
.total b { color: var(--red); font-size: 1.375rem; }
.hint { font-size: .875rem; color: var(--muted); }
.share { display: inline-flex; align-items: center; gap: 8px; justify-self: start; min-height: 44px; padding: 0 4px; background: none; border: 0; cursor: pointer; font-weight: 600; color: var(--blue); }
.modal-foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.mf-price { display: grid; line-height: 1.15; }
.mf-price b { color: var(--red); font-size: 1.125rem; font-weight: 800; white-space: nowrap; }
.mf-price span { font-size: .875rem; color: var(--muted); }
.modal-foot .btn { margin-left: auto; flex: 1; max-width: 300px; }

@media (min-width: 700px) {
  .modal { align-items: center; justify-content: center; padding: 24px; }
  .modal-box { width: 600px; max-width: 100%; height: auto; max-height: min(880px, calc(100dvh - 48px)); border-radius: 20px; box-shadow: var(--shadow-lg); }
  .modal-body { padding: 24px 28px 28px; }
  .modal-foot { padding: 14px 28px; }
  .m-lists { grid-template-columns: 1fr 1fr; }
}

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: .9375rem; opacity: 0; pointer-events: none; transition: all .25s; z-index: 200; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Animaciones ---------- */
:root { --ease-out: cubic-bezier(.2, .8, .2, 1); }

/* Entrada al hacer scroll (escalonada desde app.js) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* Portada */
.js .hero-media > img { animation: heroZoom 1.6s var(--ease-out) both; }
.js .hero-copy > * { animation: rise .7s var(--ease-out) both; }
.js .hero-copy > :nth-child(1) { animation-delay: .15s; }
.js .hero-copy > :nth-child(2) { animation-delay: .25s; }
.js .hero-copy > :nth-child(3) { animation-delay: .38s; }
.js .hero-copy > :nth-child(4) { animation-delay: .5s; }
.js .hero-copy > :nth-child(5) { animation-delay: .62s; }
.js .hero h1::after { animation: grow .8s .6s var(--ease-out) both; transform-origin: left; }
@keyframes heroZoom { from { transform: scale(1.08); opacity: .6; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes grow { from { transform: scaleX(0); } }

/* Encabezado */
.header { transition: box-shadow .25s, background .25s; }
.header.scrolled { box-shadow: 0 6px 20px rgba(0,0,0,.07); }
.nav a { transition: color .2s, background .2s; }
@media (max-width: 1079px) {
  .nav.open a { animation: rise .35s var(--ease-out) both; }
  .nav.open a:nth-child(2) { animation-delay: .03s; } .nav.open a:nth-child(3) { animation-delay: .06s; }
  .nav.open a:nth-child(4) { animation-delay: .09s; } .nav.open a:nth-child(5) { animation-delay: .12s; }
  .nav.open a:nth-child(6) { animation-delay: .15s; }
}

/* Botones */
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(223,31,38,.32); }
.btn svg { transition: transform .2s; }
.btn:hover > svg:last-child:not(:first-child) { transform: translateX(3px); }

/* WhatsApp flotante: aparece con un pequeño rebote */
.wa-float { animation: pop .5s 1s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes pop { from { transform: scale(0); opacity: 0; } }

/* Filtros */
.chip-f:active { transform: scale(.96); }

/* Asistente */
.q-panel.fwd { animation: slideL .4s var(--ease-out) both; }
.q-panel.back { animation: slideR .4s var(--ease-out) both; }
.q-opt, .mini { animation: rise .45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 60ms + .08s); }
.q-opt { transition: border-color .2s, background .2s, transform .15s; }
.q-opt:hover { transform: translateY(-2px); }
.q-opt.picked { border-color: var(--red); background: var(--red-soft); transform: scale(.98); }
.q-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--red-soft); color: var(--red); flex: none; transition: background .2s, color .2s; }
.q-ic svg { width: 22px; height: 22px; }
.q-opt:hover .q-ic, .q-opt.picked .q-ic { background: var(--red); color: #fff; }
.q-done { display: inline-flex; align-items: center; gap: 6px; color: var(--green); }
.q-done svg { width: 18px; height: 18px; }
.q-bar i { transition: width .5s var(--ease-out); }
@keyframes slideL { from { opacity: 0; transform: translateX(28px); } }
@keyframes slideR { from { opacity: 0; transform: translateX(-28px); } }

/* Por qué: el ícono se mueve al pasar */
.why-ic { transition: transform .3s var(--ease-out), background .3s, color .3s; }
.why-item:hover .why-ic { transform: translateY(-3px) rotate(-6deg); background: var(--red); color: #fff; }

/* Modal: contenido escalonado */
.modal[open] .modal-body > * { animation: rise .45s var(--ease-out) both; }
.modal[open] .modal-body > :nth-child(2) { animation-delay: .05s; }
.modal[open] .modal-body > :nth-child(3) { animation-delay: .1s; }
.modal[open] .modal-body > :nth-child(4) { animation-delay: .14s; }
.modal[open] .modal-body > :nth-child(n+5) { animation-delay: .18s; }
.modal[open] .modal-media img { animation: heroZoom 1s var(--ease-out) both; }
.modal[open] .modal-foot { animation: rise .4s .1s var(--ease-out) both; }
@media (max-width: 699px) { .modal[open] .modal-box { animation: sheet .35s var(--ease-out); } }
@keyframes sheet { from { transform: translateY(40px); opacity: .5; } }
.calc-in { animation: rise .3s var(--ease-out) both; }
.bump { animation: bump .35s var(--ease-out); display: inline-block; }
@keyframes bump { 40% { transform: scale(1.12); } }

/* Preguntas frecuentes */
.faq details[open] .ans { animation: rise .3s var(--ease-out) both; }
.faq details { transition: box-shadow .2s, border-color .2s; }
.faq details:hover { border-color: #d6d6d6; }

/* Contacto */
.advisor .go svg { transition: transform .2s; }
.advisor:hover .go svg { transform: translateX(4px); }

/* ---------- Formulario de reserva (modal) ---------- */
.book { display: grid; gap: 14px; border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; }
.book h3 { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; }
.book h3 svg { color: var(--red); width: 22px; height: 22px; }
.book > .hint { margin-top: -8px; }
.req { color: var(--red); }
.sublabel { display: block; font-size: .875rem; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }
.err { display: none; margin: 6px 0 0; color: var(--red-dark); font-size: .875rem; font-weight: 600; }
.field.invalid .err { display: block; animation: rise .25s var(--ease-out) both; }
.field.invalid input, .field.invalid .step-ctl { border-color: var(--red); background: #FFF8F8; }
.field.invalid input:focus { box-shadow: 0 0 0 3px rgba(223,31,38,.18); border-color: var(--red); }
.book .field input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 1rem; }
.book .field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,75,165,.15); }
.step-ctl output { min-width: 2ch; text-align: center; }
.shake { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.modal .toast { bottom: calc(100px + env(safe-area-inset-bottom)); }
#mBook:not(.is-ready) { background: #E5484D; }
#mBook.is-ready { background: var(--red); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
