:root {
  --bg: #fbf6ef;
  --surface: #ffffff;
  --surface-2: #f3eadf;
  --ink: #2a1f17;
  --muted: #7a6a5c;
  --line: #eadccb;
  --accent: #c2562b;
  --accent-ink: #fff;
  --night: #1d1712;
  --gold: #e9a23b;
  --radius: 14px;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --shadow: 0 2px 4px rgb(42 31 23 / 0.04), 0 16px 40px rgb(42 31 23 / 0.1);
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { margin-bottom: 40px; max-width: 720px; }
.section-head h2, .why h2, .quote-section h2, .why-copy h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1; }
.section-head.split { display: flex; justify-content: space-between; align-items: end; gap: 32px; max-width: none; }
.section-head.split > p { max-width: 360px; color: var(--muted); }
.btn { border-radius: 999px; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* Header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.header.is-solid { background: rgb(251 246 239 / 0.92); color: var(--ink); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; line-height: 1; }
.logo svg { width: 34px; flex: none; fill: var(--accent); }
.logo small { display: block; font-family: var(--font-body); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; opacity: 0.7; margin-top: 3px; }
.nav { display: flex; gap: 30px; font-size: 0.92rem; font-weight: 500; }
.nav a { text-decoration: none; opacity: 0.8; transition: opacity 0.2s; }
.nav a:hover { opacity: 1; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-content: end; padding: 130px 0 0; color: #fff; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-1%, -1%); } }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(29 23 18 / 0.55), rgb(29 23 18 / 0.1) 35%, rgb(29 23 18 / 0.75) 85%); }
.hero h1 { font-size: clamp(3rem, 9vw, 7.4rem); line-height: 0.9; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .eyebrow { color: var(--gold); }
.lede { max-width: 520px; margin-top: 22px; font-size: 1.1rem; color: rgb(255 255 255 / 0.9); text-shadow: 0 1px 12px rgb(0 0 0 / 0.5); }
.search { display: grid; grid-template-columns: 1.4fr 1fr 0.9fr auto; gap: 4px; margin-top: 36px; padding: 8px; max-width: 860px; border-radius: 22px; background: rgb(255 255 255 / 0.96); color: var(--ink); box-shadow: var(--shadow); }
.search label { display: grid; gap: 2px; padding: 8px 16px; border-radius: 14px; transition: background 0.2s; }
.search label:hover, .search label:focus-within { background: var(--surface-2); }
.search span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.search select, .search input { border: 0; background: transparent; padding: 0; height: 28px; font-weight: 600; outline: none; width: 100%; }
.search .btn { border-radius: 16px; min-height: 56px; align-self: center; }
.hero-stats { display: flex; gap: clamp(20px, 5vw, 64px); margin-top: 48px; padding: 22px 0 28px; list-style: none; border-top: 1px solid rgb(255 255 255 / 0.2); font-size: 0.92rem; color: rgb(255 255 255 / 0.8); }
.hero-stats strong { color: #fff; margin-right: 6px; }

/* Paquetes */
.packages { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.pkg { grid-column: span 2; position: relative; display: grid; border-radius: 24px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); transition: transform 0.35s var(--ease); }
.pkg:nth-child(1), .pkg:nth-child(2) { grid-column: span 3; }
.pkg:hover { transform: translateY(-6px); }
.pkg-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.pkg-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.pkg:hover .pkg-media img { transform: scale(1.06); }
.pkg-tag { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: var(--gold); color: var(--night); font-size: 0.75rem; font-weight: 700; }
.pkg-days { position: absolute; bottom: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: rgb(29 23 18 / 0.75); color: #fff; font-size: 0.8rem; font-weight: 600; backdrop-filter: blur(6px); }
.pkg-body { display: grid; gap: 10px; padding: 22px; }
.pkg h3 { font-size: 1.45rem; }
.pkg-body > p { color: var(--muted); font-size: 0.95rem; }
.pkg-foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: 8px; }
.pkg-price small { display: block; font-size: 0.75rem; color: var(--muted); }
.pkg-price strong { font-family: var(--font-display); font-size: 1.6rem; }
.pkg-actions { display: flex; gap: 8px; }
.pkg-actions .btn { min-height: 40px; padding: 0 14px; font-size: 0.85rem; }
.btn-soft { background: var(--surface-2); color: var(--ink); }

/* Recorrido */
.route-section { background: var(--night); color: #f6ece0; }
.route-section .eyebrow { color: var(--gold); }
.route-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.route-tab { padding: 10px 18px; border-radius: 999px; border: 1px solid rgb(246 236 224 / 0.2); background: transparent; color: inherit; font-weight: 600; font-size: 0.9rem; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.route-tab:hover { border-color: var(--gold); }
.route-tab[aria-selected='true'] { background: var(--gold); color: var(--night); border-color: var(--gold); }
.route { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.map-wrap { position: relative; }
.map { width: 100%; max-height: 72vh; overflow: hidden; border-radius: 24px; }
.land { stroke: rgb(233 162 59 / 0.35); stroke-width: 1.5; }
.place-dot { fill: rgb(246 236 224 / 0.35); }
/* Los grosores se escalan con --f (nivel de zoom) para que el dibujo progresivo siga midiendo en unidades del mapa. */
.route-line, .route-line-glow { fill: none; stroke: var(--gold); stroke-linecap: round; stroke-linejoin: round; }
.land, .stop circle { vector-effect: non-scaling-stroke; }
.route-line { stroke-width: calc(3px * var(--f, 1)); stroke-dasharray: calc(6px * var(--f, 1)) calc(7px * var(--f, 1)); }
.route-line-glow { stroke-width: calc(8px * var(--f, 1)); opacity: 0.35; }
.stop circle.core { fill: var(--gold); stroke: var(--night); stroke-width: 3; }
.stop text { font: 700 calc(15px * var(--f, 1)) var(--font-body); fill: #fff; paint-order: stroke; stroke: var(--night); stroke-width: calc(5px * var(--f, 1)); stroke-linejoin: round; }
.stop .ring { fill: none; stroke: var(--gold); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.stop.is-current .ring { opacity: 1; animation: ring 1.6s ease-out infinite; }
.stop.is-current circle.core { fill: #fff; }
.stop.is-future { opacity: 0.35; }
@keyframes ring { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.map-legend { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: rgb(246 236 224 / 0.6); }
.lg-dot { width: 18px; height: 3px; border-radius: 2px; background: var(--gold); }
.lg-ring { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--gold); }
.itinerary { display: grid; gap: 18px; }
.day-card { border-radius: 24px; overflow: hidden; background: #2a2019; }
.day-photo { aspect-ratio: 16 / 9; overflow: hidden; }
.day-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s; }
.day-photo img.is-loading { opacity: 0.2; }
.day-body { padding: 24px 28px 28px; display: grid; gap: 8px; }
.day-body.is-changing > * { animation: up 0.45s var(--ease) both; }
@keyframes up { from { opacity: 0; transform: translateY(10px); } }
.day-num { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.day-body h3 { font-size: 1.8rem; }
.day-body p:last-child { color: rgb(246 236 224 / 0.75); }
.day-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.round { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(246 236 224 / 0.25); background: transparent; color: inherit; }
.round:hover { border-color: var(--gold); }
.round svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.day-dots { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; flex: 1; }
.day-dots button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgb(246 236 224 / 0.2); background: transparent; color: inherit; font-size: 0.8rem; font-weight: 700; }
.day-dots button[aria-current='step'] { background: var(--gold); color: var(--night); border-color: var(--gold); }
.play { background: var(--gold); color: var(--night); }
.play[aria-pressed='true'] { background: transparent; color: var(--gold); border-color: var(--gold); }

/* Por qué nosotros */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.why-media { position: relative; padding-bottom: 80px; }
.why-media img { border-radius: 24px; width: 100%; object-fit: cover; }
.why-media img:first-child { aspect-ratio: 4 / 3.4; }
.why-media img:last-child { position: absolute; right: -24px; bottom: 0; width: 52%; aspect-ratio: 1; border: 8px solid var(--bg); }
.why-copy { display: grid; gap: 22px; }
.why-list { display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.why-list li { display: grid; gap: 4px; padding: 18px 0 18px 38px; border-bottom: 1px solid var(--line); position: relative; }
.why-list li::before { content: ''; position: absolute; left: 0; top: 20px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat; }
.why-list span { color: var(--muted); }

/* Testimonios */
.quotes-section { background: var(--surface-2); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quotes figure { margin: 0; padding: 32px; border-radius: 24px; background: var(--surface); display: grid; gap: 18px; align-content: space-between; }
.quotes blockquote { margin: 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
.quotes figcaption { color: var(--muted); font-size: 0.9rem; }

/* Cotizador */
.quote-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.quote-sub { margin-top: 18px; color: var(--muted); font-size: 1.05rem; max-width: 440px; }
.quote-form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); background: var(--surface); border-radius: 28px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hotels { border: 0; padding: 0; margin: 0; }
.hotels legend { margin-bottom: 8px; }
.hotel-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hotel { display: grid; gap: 2px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); text-align: left; font-size: 0.88rem; font-weight: 600; transition: border-color 0.2s, background 0.2s; }
.hotel small { font-weight: 500; color: var(--muted); }
.hotel[aria-checked='true'] { border-color: var(--accent); background: #fff1e8; }
.total { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 18px 20px; border-radius: 18px; background: var(--night); color: #fff; }
.total small { display: block; font-size: 0.78rem; opacity: 0.7; }
.total strong { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }
.total span { font-size: 0.85rem; opacity: 0.75; }

.footer { padding: 32px 0 100px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo.small { font-size: 1rem; color: var(--ink); }

@media (max-width: 960px) {
  .nav { display: none; }
  .search { grid-template-columns: 1fr 1fr; }
  .search .btn { grid-column: 1 / -1; }
  .packages { grid-template-columns: 1fr 1fr; }
  .pkg, .pkg:nth-child(1), .pkg:nth-child(2) { grid-column: span 1; }
  .route, .why-grid, .quote-grid { grid-template-columns: 1fr; }
  .map { max-height: 60vh; }
  .quotes { grid-template-columns: 1fr; }
  .section-head.split { flex-direction: column; align-items: start; }
  .why-media img:last-child { right: 0; }
}
@media (max-width: 600px) {
  .packages, .form-row, .hotel-options { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 10px 24px; }
  .search { grid-template-columns: 1fr; }
  .day-dots { display: none; }
}
