/* ViajesLuisa — estilos base
   Stack: HTML + CSS plano + vanilla JS. Mobile-first. Sin frameworks.
   Paleta: verde botella (botones/acentos), crema (fondo), tinta (texto), rojo-sello (avisos).
   Tipografías: Inter (títulos/cuerpo) + JetBrains Mono (precios). Cargadas con font-display: swap.
*/

:root {
  /* Colores */
  --c-cream: #f7f1e3;
  --c-cream-deep: #efe5cc;
  --c-paper: #ffffff;
  --c-ink: #1a1a1a;
  --c-ink-soft: #444;
  --c-muted: #6b6b6b;
  --c-line: #d8d0bd;
  --c-bottle: #2f5d3f;        /* verde botella principal */
  --c-bottle-dark: #1f3f2a;
  --c-bottle-soft: #e7f0ea;
  --c-sello: #b3261e;         /* rojo sello: avisos */
  --c-amber: #b87f1c;
  --c-good: #2f5d3f;

  /* Tipografía */
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Espaciado */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-8: 3rem;
  --s-10: 4rem;

  /* Radios */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(20,20,20,0.05), 0 1px 3px rgba(20,20,20,0.08);
  --shadow-md: 0 4px 12px rgba(20,20,20,0.07), 0 2px 4px rgba(20,20,20,0.05);

  /* Layout */
  --max-w: 1200px;
}

/* Reset ligero */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-bottle); text-underline-offset: 3px; }
a:hover { color: var(--c-bottle-dark); }
:focus-visible { outline: 2px solid var(--c-bottle); outline-offset: 2px; }

/* Tipografía */
h1, h2, h3, h4 {
  font-family: var(--f-body);
  color: var(--c-ink);
  line-height: 1.2;
  margin: 0 0 var(--s-4);
}
h1 { font-size: clamp(1.8rem, 4vw + 1rem, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2vw + 1rem, 1.9rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { margin: 0 0 var(--s-4); }
small, .small { font-size: 0.875rem; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--s-3) var(--s-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--c-bottle-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-mark { color: var(--c-bottle); }
.nav-links {
  display: none;
  gap: var(--s-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--c-ink-soft);
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--c-bottle); }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  cursor: pointer;
  color: var(--c-ink);
}
.nav-toggle[aria-expanded="true"] { background: var(--c-bottle-soft); border-color: var(--c-bottle); }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links { display: inline-flex; }
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--c-line);
  background: var(--c-paper);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: var(--s-2) 0; }
.mobile-menu a {
  display: block;
  padding: var(--s-3) var(--s-4);
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--c-cream-deep);
}

/* Contenedor */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-4);
}
section { padding: var(--s-8) 0; }

/* Hero */
.hero {
  padding: var(--s-8) 0 var(--s-6);
  background: linear-gradient(180deg, var(--c-cream) 0%, var(--c-cream-deep) 100%);
  border-bottom: 1px solid var(--c-line);
}
.hero h1 {
  max-width: 22ch;
  margin-bottom: var(--s-3);
}
.hero .lede {
  max-width: 50ch;
  color: var(--c-ink-soft);
  font-size: 1.1rem;
  margin-bottom: var(--s-5);
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.pill:hover { background: var(--c-bottle-soft); border-color: var(--c-bottle); color: var(--c-bottle-dark); }
.pill .flag { font-size: 1.1rem; line-height: 1; }

/* Aviso precios */
.notice {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-3) var(--s-4);
  background: var(--c-paper);
  border: 1px solid var(--c-amber);
  border-left: 4px solid var(--c-sello);
  border-radius: var(--r-md);
  color: var(--c-ink-soft);
}
.notice-icon { flex: 0 0 auto; color: var(--c-sello); }
.notice strong { color: var(--c-ink); }
.notice a { font-weight: 600; }

/* Comparativa */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-paper);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
}
.compare th, .compare td {
  padding: var(--s-3) var(--s-3);
  text-align: left;
  border-bottom: 1px solid var(--c-cream-deep);
}
.compare th { background: var(--c-cream-deep); font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }
.compare td:nth-child(2), .compare th:nth-child(2) { font-family: var(--f-mono); }
.compare a { font-weight: 600; }

/* móvil: tabla -> tarjetas apiladas */
@media (max-width: 599px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare tr {
    background: var(--c-paper);
    border: 1px solid var(--c-line);
    border-radius: var(--r-md);
    margin-bottom: var(--s-3);
    padding: var(--s-3);
  }
  .compare td { border: 0; padding: var(--s-1) 0; }
  .compare td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-muted);
    margin-bottom: 2px;
    font-family: var(--f-body);
  }
}

/* Grid de tarjetas */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
  background: var(--c-cream-deep);
}
.card-body {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
}
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.card-country { color: var(--c-muted); font-size: 0.95rem; }
.card-price { font-family: var(--f-mono); font-size: 1rem; color: var(--c-bottle-dark); font-weight: 500; }
.card ul { margin: var(--s-2) 0 0; padding-left: 1.1rem; color: var(--c-ink-soft); font-size: 0.95rem; }
.card ul li { margin-bottom: 2px; }
.card-cta {
  margin-top: auto;
  padding-top: var(--s-3);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  background: var(--c-bottle);
  color: var(--c-paper);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--r-md);
  border: 1px solid var(--c-bottle);
  transition: background .15s;
}
.btn:hover { background: var(--c-bottle-dark); color: var(--c-paper); }
.btn-ghost {
  background: transparent;
  color: var(--c-bottle);
}
.btn-ghost:hover { background: var(--c-bottle-soft); color: var(--c-bottle-dark); }

/* Sección sección títulos */
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
  border-bottom: 2px solid var(--c-bottle);
  padding-bottom: var(--s-2);
}
.section-title small { color: var(--c-muted); font-weight: 500; }

/* Mapa SVG */
.map-wrap {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-4);
}
.map-wrap svg { width: 100%; height: auto; display: block; }

/* Footer */
.site-footer {
  background: var(--c-paper);
  border-top: 1px solid var(--c-line);
  padding: var(--s-6) 0;
  margin-top: var(--s-8);
  color: var(--c-muted);
  font-size: 0.9rem;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: var(--s-5); justify-content: space-between; }
.site-footer a { color: var(--c-ink-soft); }

/* ============= Páginas de destino ============= */
.destination-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background: var(--c-ink);
  color: var(--c-paper);
  overflow: hidden;
}
.destination-hero .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.destination-hero .container {
  position: relative;
  z-index: 1;
  padding-bottom: var(--s-6);
  padding-top: var(--s-6);
}
.destination-hero h1 {
  color: var(--c-paper);
  margin-bottom: var(--s-2);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.destination-hero .lema {
  font-size: 1.1rem;
  color: #f7f1e3;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.breadcrumb {
  padding: var(--s-3) 0;
  font-size: 0.9rem;
  color: var(--c-muted);
}
.breadcrumb a { color: var(--c-ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-bottle); }

.flight-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.flight-cell { display: flex; flex-direction: column; gap: var(--s-1); }
.flight-cell .label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-muted); }
.flight-cell .value { font-weight: 600; color: var(--c-ink); }
.flight-cell .value.mono { font-family: var(--f-mono); }

.lodging-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 700px) { .lodging-grid { grid-template-columns: repeat(2, 1fr); } }
.lodging {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--s-4);
}
.lodging h3 {
  margin: 0 0 var(--s-1);
  font-size: 1.05rem;
}
.lodging .meta { color: var(--c-muted); font-size: 0.9rem; margin-bottom: var(--s-2); }
.lodging .price { font-family: var(--f-mono); color: var(--c-bottle-dark); font-weight: 600; font-size: 1.05rem; }
.lodging .score {
  display: inline-block;
  background: var(--c-bottle);
  color: var(--c-paper);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: var(--s-2);
}
.lodging a { font-weight: 600; }

.list-imp {
  display: grid;
  gap: var(--s-4);
  counter-reset: imp;
}
.imp-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-4);
  padding: var(--s-4);
  background: var(--c-paper);
  border-left: 4px solid var(--c-bottle);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  border: 1px solid var(--c-line);
  border-left-width: 4px;
}
.imp-item .num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-bottle);
  color: var(--c-paper);
  font-weight: 700;
  font-family: var(--f-mono);
}
.imp-item h3 { margin: 0 0 var(--s-1); }
.imp-item p { margin: 0; color: var(--c-ink-soft); }

.zones {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .zones { grid-template-columns: repeat(2, 1fr); } }
.zone {
  padding: var(--s-4);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.zone h3 { margin: 0 0 var(--s-2); font-size: 1rem; }
.zone p { margin: 0; color: var(--c-ink-soft); font-size: 0.95rem; }

.tips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-3);
}
.tips li {
  padding: var(--s-3) var(--s-4);
  background: var(--c-bottle-soft);
  border-radius: var(--r-md);
  color: var(--c-ink);
  position: relative;
  padding-left: 2.6rem;
}
.tips li::before {
  content: "✓";
  position: absolute;
  left: var(--s-3);
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bottle);
  color: var(--c-paper);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
  padding: var(--s-6) 0;
  border-top: 1px solid var(--c-line);
}

/* Sobre */
.fuentes {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .fuentes { grid-template-columns: repeat(2, 1fr); } }
.fuente {
  padding: var(--s-3) var(--s-4);
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.fuente h3 { margin: 0 0 var(--s-1); font-size: 1rem; }
.fuente p { margin: 0; color: var(--c-ink-soft); font-size: 0.95rem; }

/* 404 simple */
.not-found {
  padding: var(--s-10) 0;
  text-align: center;
}

/* Accesibilidad */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-bottle);
  color: var(--c-paper);
  padding: var(--s-2) var(--s-4);
  z-index: 100;
}
.skip-link:focus { left: var(--s-3); top: var(--s-3); }