/* NOMA Viajes — base visual compartida (sitio + panel)
   Paleta del Manual de identidad NOMA (petróleo, dorado, marfil) + terracota de acento.
   Los nombres de las variables son internos: --turquesa es el color del botón principal (dorado),
   --aqua el acento sobre fondos oscuros (dorado claro) y --verde-azulado el de textos y enlaces
   sobre claro (dorado oscuro, legible: el dorado puro no alcanza el contraste para texto). */

:root {
  /* Paleta NOMA */
  --petroleo: #003542;      /* manual: Petróleo */
  --profundo: #00242E;      /* petróleo más oscuro, para fondos y degradados */
  --turquesa: #B98A49;      /* manual: Dorado (botones, detalles) */
  --aqua: #D4AE72;          /* dorado claro: textos y acentos sobre petróleo */
  --verde-azulado: #7D5A28; /* dorado oscuro: textos, enlaces y foco sobre claro */
  --blanco-suave: #F8F4ED;  /* manual: Marfil */
  --terracota: #A84B2A;     /* acento: "últimos lugares", avisos */
  --terracota-bg: #F6E3DA;

  /* Superficies y texto */
  --surface: #ffffff;
  --surface-soft: var(--blanco-suave);
  --surface-sand: #EFE6D6;
  --ink: var(--petroleo);
  --ink-muted: #4A5A60;
  --ink-on-dark: #ffffff;
  --ink-on-dark-muted: #B7C9CB;
  --link: var(--verde-azulado);
  --line: #E6DCCB;
  --line-dark: rgba(255, 255, 255, .14);

  /* Estados (panel) */
  --ok: #067647;
  --ok-bg: #e3f6ec;
  --warn: var(--terracota);
  --warn-bg: var(--terracota-bg);
  --danger: #b42318;
  --danger-bg: #fdeceb;

  --gradient: linear-gradient(135deg, #D4AE72 0%, #B98A49 34%, #00242E 100%);
  --gradient-deep: linear-gradient(160deg, #003542 0%, #00242E 72%);

  --font-display: "Montserrat", system-ui, sans-serif;
  --font-sub: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 72px;

  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px; --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 36, 46, .08);
  --shadow-md: 0 14px 34px -14px rgba(0, 36, 46, .28);
  --shadow-lg: 0 28px 60px -20px rgba(0, 36, 46, .38);

  --focus: 0 0 0 3px #ffffff, 0 0 0 5px var(--verde-azulado);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--petroleo); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
h4 { font-family: var(--font-sub); font-weight: 700; font-size: 1rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 24px; } }

.eyebrow {
  font-family: var(--font-sub); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--verde-azulado);
  margin: 0 0 .6em; display: block;
}
.on-dark .eyebrow { color: var(--aqua); }
.muted { color: var(--ink-muted); }
.on-dark { color: var(--ink-on-dark); }
.on-dark .muted { color: var(--ink-on-dark-muted); }
.on-dark a:not(.btn) { color: var(--aqua); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  font-family: var(--font-sub); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--turquesa); color: var(--profundo); }
.btn-primary:hover { background: var(--aqua); color: var(--profundo); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--petroleo); color: #fff; }
.btn-dark:hover { background: var(--profundo); color: #fff; }
.btn-outline { border-color: var(--petroleo); color: var(--petroleo); background: transparent; }
.btn-outline:hover { background: var(--petroleo); color: #fff; }
.on-dark .btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.on-dark .btn-outline:hover { background: #fff; color: var(--petroleo); }
.btn-whatsapp { background: #1fa855; color: #fff; }
.btn-whatsapp:hover { background: #178a45; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); padding: 0 12px; }
.btn-ghost:hover { background: var(--surface-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* Etiquetas */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-family: var(--font-sub); font-weight: 700; font-size: .74rem; letter-spacing: .02em;
  background: var(--blanco-suave); color: var(--verde-azulado);
}
.badge svg { width: 14px; height: 14px; }
.badge-dark { background: var(--petroleo); color: #fff; }
.badge-aqua { background: var(--aqua); color: var(--petroleo); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }

/* Formularios */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-family: var(--font-sub); font-weight: 700; font-size: .9rem; }
.field .hint { font-size: .82rem; color: var(--ink-muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid #b9d3d6; border-radius: var(--radius-md);
  background: #fff; font-size: 16px; color: var(--ink);
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--verde-azulado); box-shadow: 0 0 0 3px rgba(125,90,40,.2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--verde-azulado); flex: none; }
.grid-2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Chips seleccionables */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: var(--radius-pill); border: 1.5px solid #b9d3d6; background: #fff;
  font-family: var(--font-sub); font-weight: 600; font-size: .9rem; cursor: pointer; color: var(--ink);
  text-decoration: none;
}
.chip svg { width: 18px; height: 18px; color: var(--verde-azulado); }
.chip:hover { border-color: var(--verde-azulado); color: var(--ink); }
.chip.is-active, .chip[aria-pressed="true"], input:checked + .chip {
  background: var(--petroleo); border-color: var(--petroleo); color: #fff;
}
.chip.is-active svg, .chip[aria-pressed="true"] svg, input:checked + .chip svg { color: var(--aqua); }
.chip-input { position: absolute; opacity: 0; pointer-events: none; }
.chip-input:focus-visible + .chip { box-shadow: var(--focus); }

/* Avisos */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--petroleo); color: #fff; padding: 14px 18px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); font-size: .95rem; animation: toast-in .2s ease; }
.toast.is-error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.notice { padding: 14px 16px; border-radius: var(--radius-md); background: var(--blanco-suave); font-size: .92rem; }
.notice-warn { background: var(--warn-bg); color: #5c2e05; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: end center; background: rgba(0, 36, 46,.62); padding: 0; }
@media (min-width: 720px) { .modal { place-items: center; padding: 24px; } }
.modal-card {
  background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 24px 20px 28px; position: relative;
}
@media (min-width: 720px) { .modal-card { border-radius: var(--radius-lg); padding: 32px; } }
.modal-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface-soft); cursor: pointer; display: grid; place-items: center; }
.modal-close svg { width: 20px; height: 20px; }

/* Visor de fotos */
.lightbox { position: fixed; inset: 0; z-index: 180; background: rgba(0,12,20,.94); display: grid; place-items: center; }
.lightbox img, .lightbox iframe { max-width: 94vw; max-height: 84vh; border-radius: var(--radius-sm); }
.lightbox iframe { width: min(94vw, 960px); aspect-ratio: 16/9; height: auto; border: 0; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox button svg { width: 24px; height: 24px; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 12px; top: 50%; }
.lightbox .lb-next { right: 12px; top: 50%; }
.lightbox .lb-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #cfe6e8; font-size: .9rem; padding: 0 16px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--turquesa); animation: spin .8s linear infinite; margin: 32px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
