/* ============================================================================
   ANDES OUTDOOR — ESTILOS
   ----------------------------------------------------------------------------
   REBRANDING RÁPIDO: cambiá la paleta tocando SOLO las 6 variables marcadas
   con  ← PALETA  abajo. El resto (radios, sombras, tipografías) también es
   editable pero rara vez hace falta.
============================================================================ */

:root {
  /* ---- PALETA (6 líneas) ---------------------------------------------- */
  --accent:        #ff6b1a;   /* ← PALETA · acento principal (naranja) */
  --accent-2:      #b6ff2e;   /* ← PALETA · acento secundario (verde lima) */
  --ink:           #16181d;   /* ← PALETA · gris oscuro base / textos */
  --paper:         #ffffff;   /* ← PALETA · fondo claro */
  --surface:       #f4f5f7;   /* ← PALETA · fondo de secciones alternas */
  --muted:         #6b7280;   /* ← PALETA · texto secundario */

  /* ---- Dificultad (badges) ------------------------------------------- */
  --diff-low:  #2f9e44;   /* baja  */
  --diff-mid:  #f59f00;   /* media */
  --diff-high: #e03131;   /* alta  */

  /* ---- Radios y sombras ---------------------------------------------- */
  --radius:    16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow:    0 6px 24px rgba(16, 18, 21, .10);
  --shadow-lg: 0 18px 50px rgba(16, 18, 21, .22);

  /* ---- Tipografías ---------------------------------------------------- */
  --font-display: "Archivo Black", system-ui, sans-serif;   /* títulos fuertes */
  --font-head:    "Barlow Condensed", system-ui, sans-serif;/* subtítulos condensados */
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  /* ---- Layout -------------------------------------------------------- */
  --maxw: 1120px;
  --header-h: 60px;
}

/* ------------------------------ Reset base ------------------------------ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* Foco visible para accesibilidad (teclado) */
:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* ------------------------------ Botones -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .02em; text-transform: uppercase;
  padding: 14px 22px; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease, color .12s ease;
  min-height: 48px;               /* target táctil cómodo */
}
.btn:active { transform: scale(.97); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #ff5500; }

.btn-ghost { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.20); }

.link-btn {
  background: none; border: none; color: var(--accent);
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  cursor: pointer; padding: 6px 4px;
}

/* ------------------------------ Header --------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 24, 29, .96);
  backdrop-filter: blur(6px);
  min-height: var(--header-h);
  display: flex; align-items: center;
}
.header-inner { display: flex; align-items: center; gap: 12px; }
.brand {
  font-family: var(--font-display); font-size: 1.15rem; color: #fff;
  letter-spacing: .01em; margin-right: auto;
}
.brand::first-letter { color: var(--accent); }

.nav { display: none; gap: 22px; }
.nav a {
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  color: #e6e7ea; text-transform: uppercase; letter-spacing: .03em;
}
.nav a:hover { color: var(--accent-2); }

.lang-switch { display: flex; gap: 2px; background: rgba(255,255,255,.10); border-radius: var(--radius-pill); padding: 3px; }
.lang-btn {
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  color: #cbd0d6; background: none; border: none; cursor: pointer;
  padding: 6px 9px; border-radius: var(--radius-pill); min-width: 34px;
}
.lang-btn.is-active { background: var(--accent); color: #fff; }

/* ------------------------------ Hero ----------------------------------- */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center;
  /* Fallback antes de que corra el JS; app.js lo actualiza desde CONFIG.business.heroImage */
  background-image: url("https://loremflickr.com/1200/1600/bariloche,patagonia,mountains?lock=7");
  background-size: cover; background-position: center;
  color: #fff; overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,18,21,.55) 0%, rgba(16,18,21,.78) 100%);
}
.hero-content { position: relative; padding-block: 64px; max-width: 760px; }
.hero-kicker {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--accent-2); font-size: .95rem; margin-bottom: 14px;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.4rem, 9vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.01em; margin-bottom: 18px;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero-subtitle { font-size: 1.12rem; max-width: 44ch; color: #eef0f2; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 auto; }
.hero-loc {
  margin-top: 26px; font-family: var(--font-head); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; color: #cfd3d8;
}

/* ------------------------------ Secciones ------------------------------ */
.section { padding-block: 56px; }
.section-alt { background: var(--surface); }
.section-title {
  font-family: var(--font-display); font-size: clamp(1.7rem, 6vw, 2.6rem);
  line-height: 1.05; margin-bottom: 8px;
}
.section-sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 26px; }

/* ------------------------------ Filtros -------------------------------- */
.filters { display: grid; gap: 16px; margin-bottom: 18px; }
.filter-label {
  display: block; font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; font-size: .9rem;
  color: var(--muted); margin-bottom: 8px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 9px 16px; border-radius: var(--radius-pill);
  background: var(--paper); border: 2px solid #e2e5e9; color: var(--ink);
  cursor: pointer; transition: all .12s ease; min-height: 42px;
}
.chip:hover { border-color: var(--accent); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.filter-status {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 20px; min-height: 30px;
}
#resultCount { font-family: var(--font-head); font-weight: 600; color: var(--muted); }

/* ------------------------------ Grilla --------------------------------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-media { position: relative; aspect-ratio: 4 / 3; background: #d9dbe0; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .05em; color: #fff;
  padding: 5px 12px; border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.badge-duration {
  position: absolute; top: 12px; right: 12px;
  background: rgba(22,24,29,.82); color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem;
  padding: 5px 11px; border-radius: var(--radius-pill);
}

.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; line-height: 1.1; }
.card-desc { color: var(--muted); font-size: .96rem; margin: 8px 0 14px; flex: 1; }

.card-price { margin-bottom: 14px; }
.card-price .from { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.card-price .amount { font-family: var(--font-display); font-size: 1.55rem; color: var(--ink); }
.card-price .per { font-size: .85rem; color: var(--muted); }

.card-actions { display: flex; gap: 10px; }
.card-actions .btn { flex: 1; font-size: .95rem; padding: 12px 14px; }
.btn-book { background: var(--accent); color: #fff; }
.btn-book:hover { background: #ff5500; }
.btn-details { background: var(--surface); color: var(--ink); border-color: #e2e5e9; }
.btn-details:hover { border-color: var(--ink); }

.empty-state {
  text-align: center; color: var(--muted); font-size: 1.05rem;
  padding: 40px 10px; background: var(--surface); border-radius: var(--radius);
}

/* ------------------------------ Calendario ----------------------------- */
/* Mobile: acordeón */
.sched-accordion { display: block; }
.sched-day {
  border: 2px solid #e2e5e9; border-radius: var(--radius-sm);
  margin-bottom: 10px; overflow: hidden; background: var(--paper);
}
.sched-day summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; font-family: var(--font-head); font-weight: 700;
  font-size: 1.15rem; min-height: 52px;
}
.sched-day summary::-webkit-details-marker { display: none; }
.sched-day summary::after { content: "＋"; color: var(--accent); font-size: 1.3rem; }
.sched-day[open] summary::after { content: "－"; }
.sched-day summary .count {
  font-family: var(--font-body); font-weight: 500; font-size: .85rem;
  color: var(--muted); margin-left: auto; margin-right: 10px;
}
.sched-list { padding: 0 16px 14px; }
.sched-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-top: 1px solid #eef0f2;
}
.sched-item .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.sched-item .name { font-weight: 500; }
.sched-item .time { margin-left: auto; color: var(--muted); font-size: .9rem; }
.sched-none { color: var(--muted); font-style: italic; padding: 8px 0; }

/* Tabla desktop: oculta en mobile */
.sched-table { display: none; }

/* ------------------------------ Seguridad ------------------------------ */
.safety-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.safety-card {
  background: var(--paper); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); border-left: 5px solid var(--accent);
}
.safety-icon { font-size: 2rem; line-height: 1; margin-bottom: 10px; }
.safety-card h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; margin-bottom: 6px; }
.safety-card p { color: var(--muted); font-size: .98rem; }

/* ------------------------------ Reseñas -------------------------------- */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.review-card { background: var(--paper); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.review-stars { color: #f5a623; font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 10px; }
.review-text { font-size: 1.02rem; margin-bottom: 14px; }
.review-author { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.review-country { color: var(--muted); font-size: .9rem; }

/* ------------------------------ Footer --------------------------------- */
.site-footer { background: var(--ink); color: #d6d9dd; padding-top: 44px; }
.footer-inner { display: grid; gap: 26px; padding-bottom: 30px; }
.footer-brand { font-family: var(--font-display); color: #fff; font-size: 1.35rem; margin-bottom: 6px; }
.footer-brand::first-letter { color: var(--accent); }
.footer-tagline { color: #a9aeb5; max-width: 34ch; }
.footer-h { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin-bottom: 8px; }
.footer-contact p { margin-bottom: 3px; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px;
  font-size: .85rem; color: #8b9099;
}
.footer-demo { color: var(--accent-2); }

/* ------------------------------ WhatsApp flotante ---------------------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff;
  padding: 13px 16px; border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
}
.wa-float:hover { background: #1fbf59; }
.wa-float-label { display: none; }

/* ------------------------------ Modal ---------------------------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(16,18,21,.66); }
.modal-card {
  position: relative; background: var(--paper); width: 100%;
  max-width: 640px; max-height: 92vh; overflow-y: auto;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow-lg); animation: slideUp .22s ease;
}
@keyframes slideUp { from { transform: translateY(24px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute; top: 10px; right: 12px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(22,24,29,.72); color: #fff; border: none; cursor: pointer;
  font-size: 1.6rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}

.modal-gallery { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; }
.modal-gallery img { flex: 0 0 88%; aspect-ratio: 3 / 2; object-fit: cover; scroll-snap-align: center; }

.modal-inner { padding: 20px 20px 26px; }
.modal-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.modal-badges .badge, .modal-badges .badge-duration { position: static; box-shadow: none; }
#modalTitle { font-family: var(--font-display); font-size: 1.8rem; line-height: 1.05; margin-bottom: 6px; }
.modal-short { color: var(--muted); margin-bottom: 18px; }

.modal-block { margin-bottom: 18px; }
.modal-block h4 {
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; font-size: .95rem; color: var(--ink); margin-bottom: 8px;
}
.modal-block ul { list-style: none; display: grid; gap: 6px; }
.modal-block li { position: relative; padding-left: 22px; color: #2b2e34; }
.modal-block li::before { content: "✓"; position: absolute; left: 0; color: var(--diff-low); font-weight: 700; }
.modal-block.bring li::before { content: "•"; color: var(--accent); font-size: 1.2rem; top: -2px; }
.modal-meta { display: grid; gap: 4px; }
.modal-meta .row { display: flex; gap: 8px; }
.modal-meta .k { font-weight: 600; min-width: 130px; }
.modal-weather { background: var(--surface); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .95rem; }

.modal-date { margin: 18px 0; }
.modal-date label { display: block; font-family: var(--font-head); font-weight: 700; margin-bottom: 6px; }
.modal-date input {
  width: 100%; padding: 12px 14px; font-size: 1rem; font-family: var(--font-body);
  border: 2px solid #e2e5e9; border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.modal-book { width: 100%; background: #25d366; color: #fff; font-size: 1.1rem; }
.modal-book:hover { background: #1fbf59; }
.modal-price { text-align: center; margin-bottom: 12px; }
.modal-price .amount { font-family: var(--font-display); font-size: 1.7rem; }
.modal-price .per { color: var(--muted); font-size: .9rem; }

/* ============================================================================
   BREAKPOINTS (mobile-first: de acá para arriba)
============================================================================ */

/* Tablet chico */
@media (min-width: 560px) {
  .filters { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-actions .btn { flex: 0 1 auto; }
  .wa-float-label { display: inline; }
  .modal { align-items: center; }
  .modal-card { border-radius: var(--radius); }
  .footer-inner { grid-template-columns: 1fr auto; }
}

/* Desktop */
@media (min-width: 900px) {
  :root { --header-h: 68px; }
  .nav { display: flex; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .safety-grid { grid-template-columns: repeat(4, 1fr); }
  .section { padding-block: 76px; }

  /* Calendario -> tabla en desktop, acordeón oculto */
  .sched-accordion { display: none; }
  .sched-table {
    display: table; width: 100%; border-collapse: separate; border-spacing: 0;
    background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  }
  .sched-table th, .sched-table td { text-align: left; padding: 14px 18px; vertical-align: top; }
  .sched-table thead th {
    background: var(--ink); color: #fff; font-family: var(--font-head);
    text-transform: uppercase; letter-spacing: .05em; font-size: .95rem;
  }
  .sched-table tbody tr:nth-child(even) { background: var(--surface); }
  .sched-table td.day-cell { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
  .sched-table .exc-pills { display: flex; flex-wrap: wrap; gap: 8px; }
  .sched-table .exc-pill {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--surface); border: 1px solid #e2e5e9;
    padding: 5px 12px; border-radius: var(--radius-pill); font-size: .92rem;
  }
  .sched-table tbody tr:nth-child(even) .exc-pill { background: #fff; }
  .sched-table .exc-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
}

/* Respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
