/* ============================================================
   ParaísoRD — estilos MODERNOS con acento de bandera dominicana.
   Fondo claro, mucho aire, azul y rojo solo como detalles.
   ============================================================ */
:root {
  --rd-blue: #123FA3;       /* azul ultramar (acento principal) */
  --rd-blue-ink: #07214f;   /* azul muy oscuro (texto/títulos) */
  --rd-red: #D01C2E;        /* rojo bandera (acento puntual) */
  --rd-red-dark: #a8141f;
  --white: #ffffff;

  --ink: #0d1b34;           /* texto principal */
  --muted: #64748b;         /* texto secundario */
  --line: #e9edf5;          /* líneas finas */
  --bg: #f7f9fc;            /* fondo general */
  --paper: #ffffff;
  --soft-blue: #eef3ff;     /* tinte azul suave */
  --soft-red: #fdecee;      /* tinte rojo suave */
  --shadow-sm: 0 1px 2px rgba(13,27,52,.05), 0 4px 14px rgba(13,27,52,.05);
  --shadow-md: 0 10px 30px rgba(13,27,52,.08);
  --radius: 14px;
  --radius-lg: 20px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- Emblema mini bandera (logo) ---------- */
.flag-mark {
  display: inline-grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  width: 22px; height: 22px; border-radius: 6px; overflow: hidden; position: relative;
  vertical-align: -4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}
.flag-mark i:nth-child(1) { background: var(--rd-blue); }
.flag-mark i:nth-child(2) { background: var(--rd-red); }
.flag-mark i:nth-child(3) { background: var(--rd-red); }
.flag-mark i:nth-child(4) { background: var(--rd-blue); }
.flag-mark::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); height: 4px; background: #fff; }
.flag-mark::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 4px; background: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  border: 0; border-radius: 999px; padding: .68em 1.3em;
  font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .85em 1.7em; font-size: 1.02rem; }
.btn-primary { background: var(--rd-blue); color: #fff; box-shadow: 0 8px 20px rgba(18,63,163,.25); }
.btn-primary:hover { background: var(--rd-blue-ink); box-shadow: 0 10px 26px rgba(18,63,163,.32); }
.btn-red { background: var(--rd-red); color: #fff; box-shadow: 0 8px 20px rgba(208,28,46,.22); }
.btn-red:hover { background: var(--rd-red-dark); }
.btn-ghost { background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--rd-blue); color: var(--rd-blue); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Cabecera ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(247,249,252,.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.3rem; font-weight: 800; color: var(--rd-blue-ink); }
.brand span { color: var(--rd-red); }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: .5rem; margin-left: 1.2rem; }
@media (max-width: 720px) { .nav-links { display: none; } .nav-actions { margin-left: auto; } }

/* ---------- Portada (moderna, clara) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 9vw, 7rem) 1rem clamp(3rem, 7vw, 5.5rem); }
/* Acentos de color muy suaves, sin recargar */
.hero::before { content: ""; position: absolute; top: -18%; right: -8%; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(18,63,163,.14), transparent 68%); }
.hero::after { content: ""; position: absolute; bottom: -22%; left: -10%; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(208,28,46,.10), transparent 68%); }
.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; text-align: center; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 999px; padding: .4em 1em;
  font-size: .82rem; font-weight: 600; color: var(--muted); box-shadow: var(--shadow-sm); margin-bottom: 1.4rem;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; color: var(--rd-blue-ink); }
.hero h1 .accent { color: var(--rd-red); }
.hero-sub { font-size: clamp(1.02rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 540px; margin: 1.1rem auto 1.9rem; }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero-trust { margin-top: 2rem; font-size: .85rem; color: var(--muted); font-weight: 500; }
.hero-trust b { color: var(--rd-blue); font-weight: 700; }

/* ---------- Secciones ---------- */
.section { padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1rem, 4vw, 2.5rem); max-width: 1120px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 2.4rem; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); color: var(--rd-blue-ink); }
.section-head p { color: var(--muted); max-width: 560px; margin: .4rem auto 0; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: none; }

/* ---------- Filtros ---------- */
.filters { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.2rem; }
.chip {
  border: 1.5px solid var(--line); background: var(--paper); color: var(--muted);
  border-radius: 999px; padding: .5em 1.15em; font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: all .18s ease;
}
.chip:hover { border-color: var(--rd-blue); color: var(--ink); }
.chip.active { background: var(--rd-blue); color: #fff; border-color: var(--rd-blue); box-shadow: 0 6px 16px rgba(18,63,163,.22); }

/* ---------- Rejilla de tarjetas ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
/* Media clara con tinte suave (nada saturado) */
.card-media { height: 140px; display: grid; place-items: center; font-size: 3.4rem; position: relative; background: var(--soft-blue); }
.card-media.excursion { background: var(--soft-blue); }
.card-media.tour { background: var(--soft-red); }
.card-media.resort { background: #eaf6ff; }
.card-media.personalizado { background: linear-gradient(120deg, var(--soft-blue) 0 50%, var(--soft-red) 50% 100%); }
.card-tag {
  position: absolute; top: .8rem; left: .8rem; background: var(--paper); color: var(--rd-blue);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: .3em .7em; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.card-body { padding: 1.15rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-loc { color: var(--muted); font-size: .82rem; font-weight: 600; }
.card h3 { font-size: 1.14rem; margin: .3rem 0 .4rem; color: var(--ink); }
.card p.card-sum { color: var(--muted); font-size: .92rem; margin: 0 0 1.1rem; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { font-weight: 800; font-size: 1.05rem; color: var(--rd-blue-ink); }
.price small { color: var(--muted); font-weight: 500; font-size: .78rem; }
.price.free { color: var(--rd-red); font-size: .92rem; }

/* ---------- Cómo funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.6rem; max-width: 1120px; margin: 0 auto; }
.step { text-align: center; padding: 1rem; }
.step-n {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--soft-blue); color: var(--rd-blue); font-weight: 800; font-size: 1.2rem; margin-bottom: .8rem;
}
.step:nth-child(2) .step-n { background: var(--soft-red); color: var(--rd-red); }
.step h3 { font-size: 1.12rem; color: var(--ink); }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Contacto / footer ---------- */
.contact-box { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.footer { text-align: center; padding: 2.6rem 1rem; border-top: 1px solid var(--line); background: var(--paper); }
.footer p { margin: .25rem 0; }
.footer .brand { justify-content: center; }
.motto { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; color: var(--muted); }

/* ---------- Ventana modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: rgba(13,27,52,.5); backdrop-filter: blur(5px); padding: 1rem;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 430px; max-height: 92vh; overflow-y: auto;
  background: var(--paper); border-radius: var(--radius-lg); padding: 2rem 1.7rem; box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem; border: 0; background: var(--bg);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--muted);
}
.modal-close:hover { background: var(--line); }
.modal h2 { font-size: 1.4rem; color: var(--rd-blue-ink); }
.modal .lead { color: var(--muted); margin: 0 0 1.3rem; font-size: .95rem; }

/* ---------- Formularios ---------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: .35rem; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: .72em .9em; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 1rem; font-family: inherit; background: #fbfcfe; color: var(--ink); transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rd-blue); box-shadow: 0 0 0 3px rgba(18,63,163,.12); }
.field textarea { resize: vertical; min-height: 68px; }
.form-row { display: flex; gap: .8rem; }
.form-row .field { flex: 1; }
.otp-input { text-align: center; letter-spacing: .5em; font-size: 1.5rem !important; font-weight: 700; }
.form-alt { text-align: center; margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.link { color: var(--rd-blue); font-weight: 600; cursor: pointer; }
.link:hover { text-decoration: underline; }
.form-err { background: var(--soft-red); color: var(--rd-red-dark); border: 1px solid #f6cdd2; border-radius: 10px; padding: .6em .8em; font-size: .88rem; margin-bottom: 1rem; }

/* Cuenta / reservas dentro del modal */
.acct-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.3rem; }
.avatar { width: 46px; height: 46px; border-radius: 14px; background: var(--rd-blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.booking-item { border: 1px solid var(--line); border-radius: 14px; padding: .85rem .95rem; margin-bottom: .7rem; }
.booking-item .b-top { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.badge { font-size: .7rem; font-weight: 700; padding: .22em .65em; border-radius: 999px; text-transform: uppercase; }
.badge.pendiente { background: #fff3d6; color: #97670a; }
.badge.confirmada { background: #d9f6e6; color: #0a7a4a; }
.badge.cancelada { background: var(--soft-red); color: var(--rd-red-dark); }

/* Botón "usuario" en la cabecera cuando hay sesión */
.user-btn { display: flex; align-items: center; gap: .5rem; background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: .35em .55em .35em .9em; cursor: pointer; font-weight: 600; color: var(--ink); }
.user-btn:hover { border-color: var(--rd-blue); }
.user-btn .avatar-sm { width: 30px; height: 30px; border-radius: 9px; background: var(--rd-blue); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }

/* ---------- Aviso "No me decido" en la sección ---------- */
.quiz-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--soft-blue), var(--soft-red));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem; margin-bottom: 2rem;
}
.quiz-banner b { display: block; color: var(--rd-blue-ink); font-size: 1.05rem; }
.quiz-banner span { color: var(--muted); font-size: .92rem; }

/* ---------- Cuestionario del asistente ---------- */
.quiz-steps { display: flex; gap: .35rem; margin-bottom: 1.2rem; }
.quiz-steps i { flex: 1; height: 5px; border-radius: 999px; background: var(--line); }
.quiz-steps i.on { background: var(--rd-blue); }
.q-opts { display: grid; gap: .6rem; margin-bottom: 1.2rem; }
.q-opt {
  display: flex; align-items: center; gap: .7rem; text-align: left; width: 100%;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: 14px; padding: .8em 1em; font-size: .98rem; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all .15s ease;
}
.q-opt .ico { font-size: 1.4rem; }
.q-opt:hover { border-color: var(--rd-blue); }
.q-opt.sel { border-color: var(--rd-blue); background: var(--soft-blue); box-shadow: 0 0 0 3px rgba(18,63,163,.12); }
.q-opt.sel::after { content: "✓"; margin-left: auto; color: var(--rd-blue); font-weight: 800; }

/* ---------- Tarjetas de recomendación / sugerencia ---------- */
.rec { display: flex; gap: .9rem; border: 1px solid var(--line); border-radius: 16px; padding: .9rem; margin-bottom: .9rem; }
.rec .rec-media { flex: 0 0 62px; height: 62px; border-radius: 12px; display: grid; place-items: center; font-size: 2rem; background: var(--soft-blue); }
.rec .rec-body { flex: 1; min-width: 0; }
.rec .rec-top { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.rec h4 { margin: 0; font-size: 1.02rem; color: var(--ink); }
.rec .rec-price { font-weight: 800; color: var(--rd-blue-ink); font-size: .95rem; white-space: nowrap; }
.rec .rec-loc { color: var(--muted); font-size: .82rem; margin: .1rem 0 .5rem; }
.why { display: flex; flex-direction: column; gap: .3rem; margin: .3rem 0 .7rem; }
.why span { font-size: .82rem; color: var(--muted); }
.why span.good { color: var(--rd-blue-ink); font-weight: 600; }
.rec .btn { padding: .5em 1.1em; font-size: .88rem; }
.rec-best { border-color: var(--rd-blue); box-shadow: 0 0 0 3px rgba(18,63,163,.1); }
.rec-best-tag { display: inline-block; background: var(--rd-blue); color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .18em .6em; border-radius: 999px; margin-bottom: .4rem; }

/* ---------- Progreso y sugerencias en la cuenta ---------- */
.progress-note { background: var(--soft-blue); color: var(--rd-blue-ink); border-radius: 12px; padding: .7rem .9rem; font-size: .9rem; font-weight: 600; margin-bottom: 1rem; text-align: center; }
.section-divider { display: flex; align-items: center; gap: .6rem; margin: 1.4rem 0 1rem; color: var(--rd-blue-ink); font-weight: 800; font-size: 1.05rem; }
.badge.cumplida { background: #d9f6e6; color: #0a7a4a; }
.b-actions { margin-top: .5rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.b-actions .link.done { color: #0a7a4a; }

/* ---------- Corazón "Me interesa" en las tarjetas ---------- */
.card-media .heart {
  position: absolute; top: .7rem; right: .7rem; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92); color: #c3c8d4; font-size: 1.05rem; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .1s ease, color .15s ease;
}
.card-media .heart:hover { transform: scale(1.12); }
.card-media .heart.on { color: var(--rd-red); }

/* ---------- Etiquetas de producto (esfuerzo, accesibilidad, aeropuerto) ---------- */
.tchips { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .9rem; }
.tchip { font-size: .72rem; font-weight: 600; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .2em .6em; }

/* ---------- Selector de actividades del onboarding ---------- */
.ob-grid { display: grid; gap: .55rem; margin-bottom: 1.2rem; max-height: 46vh; overflow-y: auto; padding-right: .2rem; }
.ob-pick { display: flex; align-items: center; gap: .7rem; text-align: left; width: 100%; border: 1.5px solid var(--line); background: var(--paper); border-radius: 14px; padding: .6em .8em; cursor: pointer; font-family: inherit; transition: all .15s ease; }
.ob-pick:hover { border-color: var(--rd-blue); }
.ob-pick.sel { border-color: var(--rd-blue); background: var(--soft-blue); box-shadow: 0 0 0 3px rgba(18,63,163,.12); }
.ob-emoji { font-size: 1.7rem; flex: 0 0 auto; }
.ob-txt { display: flex; flex-direction: column; min-width: 0; }
.ob-txt b { color: var(--ink); font-size: .98rem; }
.ob-txt span { color: var(--muted); font-size: .82rem; }
.ob-pick.sel::after { content: "✓"; margin-left: auto; color: var(--rd-blue); font-weight: 800; }

/* ---------- Aviso flotante ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: .85em 1.35em; border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.28); z-index: 80; font-weight: 500; max-width: 90vw;
}
.toast[hidden] { display: none; }
.toast.err { background: var(--rd-red); }
.toast.ok { background: #0a7a4a; }
