/* Cabañas El Sendero — estilos (paleta tomada del logo y la tarjeta de bienvenida) */
:root {
  --tierra: #856f58;      /* marrón del logo (montañas) */
  --tierra-osc: #4a3c2f;
  --tierra-noche: #2e2620;
  --salvia: #8c9b7a;      /* verde del logo ("Sendero") */
  --salvia-osc: #56634a;
  --salvia-claro: #e7ebe0;
  --hoja: #b8732f;        /* naranja de las hojas de la tarjeta */
  --hoja-osc: #985a1f;
  --crema: #f7f3ec;
  --arena: #efe8dc;
  --tinta: #2b2620;
  --gris: #6b6258;
  --wa: #1fa855;
  --wa-2: #178a45;
  --radio: 16px;
  --sombra: 0 14px 34px -16px rgba(46, 38, 32, .45);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); color: var(--tinta); background: var(--crema); line-height: 1.6; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; font-weight: 600; margin: 0 0 .6em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); color: var(--tierra-osc); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--hoja-osc); }
:focus-visible { outline: 3px solid var(--hoja); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 32px); }
.center { text-align: center; margin-top: 2rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--hoja-osc); margin-bottom: .7rem; }
.muted { color: var(--gris); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .9rem 1.5rem; border-radius: 999px; border: 0; background: var(--hoja-osc); color: #fff; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, color .2s; }
.btn:hover { background: #7f4a18; transform: translateY(-1px); }
.btn-sm { padding: .55rem 1.1rem; font-size: .92rem; }
.btn-ghost { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.btn-outline { background: transparent; color: var(--tierra-osc); border: 2px solid var(--tierra-osc); }
.btn-outline:hover { background: var(--tierra-osc); color: #fff; }
.btn-wa { background: var(--wa); width: 100%; font-size: 1.08rem; padding: 1.05rem 1.5rem; margin-top: .5rem; }
.btn-wa:hover { background: var(--wa-2); }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* Barra superior: logo blanco sobre la foto, logo color al bajar */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: .5rem 16px; color: #fff; transition: background .3s, box-shadow .3s, color .3s; }
.brand { display: block; line-height: 0; }
.brand img { height: 62px; width: auto; }
.brand .logo-color { display: none; }
.topbar.solid { background: rgba(247, 243, 236, .96); backdrop-filter: blur(8px); box-shadow: 0 4px 20px rgba(46,38,32,.12); color: var(--tierra-osc); }
.topbar.solid .logo-light { display: none; }
.topbar.solid .logo-color { display: block; }
.topbar ul { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.topbar nav a:not(.btn) { color: inherit; text-decoration: none; font-weight: 500; font-size: .95rem; }
.topbar nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .topbar nav li:not(:last-child) { display: none; } .brand img { height: 50px; } }

/* Portada */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; color: #fff; overflow: hidden; background: var(--tierra-noche); }
.hero picture { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,24,20,.45) 0%, rgba(30,24,20,0) 30%, rgba(30,24,20,.15) 55%, rgba(30,24,20,.78) 100%); }
.hero-content { position: relative; width: min(1120px, 100% - 32px); margin: 0 auto; padding: 0 0 clamp(3rem, 10vh, 6rem); }
.hero .eyebrow { color: #f4d3b0; }
.hero h1 { font-size: clamp(2.8rem, 9vw, 5.6rem); font-weight: 500; margin-bottom: .3em; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero h1 em { font-style: italic; color: #f4e6d2; }
.lead { font-size: clamp(1.1rem, 2.4vw, 1.35rem); max-width: 36ch; opacity: .96; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Secciones */
.section { padding: clamp(4rem, 10vw, 7rem) 0; }
.section-alt { background: var(--arena); }
.section-salvia { background: var(--salvia-claro); }
.section-dark { background: var(--salvia-osc); color: #eef1ea; }
.section-dark h2 { color: #fff; }
.section-dark .muted { color: #d9e0d2; }
.section-dark .eyebrow { color: #f4d3b0; }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr 1.1fr; }
.split-reverse { grid-template-columns: 1fr 1.2fr; }
@media (max-width: 860px) { .split, .split-reverse { grid-template-columns: 1fr; } }
.split-media { margin: 0; }
.split-media img { border-radius: var(--radio); box-shadow: var(--sombra); aspect-ratio: 4/5; object-fit: cover; width: 100%; max-height: 640px; }

.features { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; }
.features li { display: flex; gap: .6rem; align-items: center; padding: .75rem .9rem; background: #fff; border-radius: 12px; font-size: .97rem; box-shadow: 0 2px 8px -4px rgba(46,38,32,.18); border-left: 3px solid var(--salvia); }
@media (max-width: 420px) { .features { grid-template-columns: 1fr; } }

/* Tarjetas del complejo */
.cards { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { background: #fff; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); display: flex; flex-direction: column; }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 1.2rem 1.3rem 1.4rem; }
.card-body h3 { color: var(--tierra-osc); margin-bottom: .4em; }
.card-body p { margin: 0; color: var(--gris); font-size: .98rem; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* Galería: 8 fotos, la primera grande y la última ancha */
.gallery { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; }
.gallery li { border-radius: var(--radio); overflow: hidden; background: var(--salvia-claro); }
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery li:last-child { grid-column: span 2; }
.g-item { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.g-item:focus-visible { outline: 3px solid var(--hoja); outline-offset: -3px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.g-item:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; } .gallery li:first-child { grid-row: span 1; } }

/* Formulario */
.form { margin-top: 2rem; display: grid; gap: .3rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; border: 0; padding: 0; margin: 0 0 .4rem; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
.hint { font-weight: 400; color: #d0d8c8; font-size: .86rem; }
input, textarea { width: 100%; font: inherit; color: var(--tinta); background: #fbfaf6; border: 2px solid transparent; border-radius: 10px; padding: .78rem .9rem; min-height: 48px; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--hoja); }
input[aria-invalid="true"] { border-color: #ffb199; }
.error { color: #ffd2c4; font-size: .86rem; min-height: 1.2em; margin: 0; }
.edades-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
.edades-grid label { font-weight: 400; font-size: .85rem; color: #d9e0d2; }
.check { grid-template-columns: auto 1fr; align-items: center; column-gap: .7rem; margin-top: .4rem; }
.check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--hoja); }
.check label { font-weight: 400; }
.check .error { grid-column: 1 / -1; }
.form-status { margin: .6rem 0 0; font-size: .95rem; color: #eef1ea; min-height: 1.4em; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Mapa */
.addr { font-style: normal; font-size: 1.1rem; margin-bottom: 1.4rem; }
.map { position: relative; border-radius: var(--radio); overflow: hidden; aspect-ratio: 4/3; background: linear-gradient(135deg, var(--salvia-claro), var(--arena)); box-shadow: var(--sombra); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 1.5rem; gap: .4rem; color: var(--gris); }

/* Pie */
.footer { background: var(--tierra-noche); color: #d8cfc4; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.footer a { color: #fff; }
.footer address { font-style: normal; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2rem; }
.footer-logo { width: 170px; height: auto; margin-bottom: 1rem; }
.footer-title { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--salvia); margin-bottom: .6rem; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.copy { text-align: center; margin: 2.5rem 0 0; font-size: .85rem; color: #a99d90; }

/* Modales */
dialog { border: 0; padding: 0; }
dialog::backdrop { background: rgba(30, 24, 20, .78); }
.modal { width: min(720px, 100% - 24px); max-height: 88vh; border-radius: var(--radio); background: var(--crema); color: var(--tinta); }
.modal-body { padding: clamp(1.5rem, 5vw, 2.5rem); position: relative; }
.modal-body h3 { margin-top: 1.4em; }
.modal-close { position: absolute; top: .6rem; right: .6rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.08); font-size: 1.6rem; line-height: 1; cursor: pointer; color: inherit; z-index: 2; }
.lightbox { background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; object-fit: contain; }
.lightbox .modal-close { background: rgba(255,255,255,.18); color: #fff; top: 1rem; right: 1rem; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 2rem; cursor: pointer; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }

.noscript { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; padding: 1rem; background: #fff3cd; text-align: center; }

/* ===================== Conversión ===================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Portada: CTA de WhatsApp y destacados */
.btn-wa-hero { background: var(--wa); }
.btn-wa-hero:hover { background: var(--wa-2); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.3rem 0 0; }
.chips li { font-size: .85rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(4px); }
.chips li::before { content: "✓ "; color: #cfe3bf; }
@media (max-width: 520px) { .hero-actions .btn { flex: 1 1 100%; } }

.section-cta { margin-top: 1.6rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Formulario en 2 pasos */
.reviews-link { color: #f4d3b0; white-space: nowrap; }
.progress { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: 0; margin: 0 0 1.2rem; }
.progress li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: #cdd5c5; padding-bottom: .55rem; border-bottom: 3px solid rgba(255,255,255,.2); }
.progress li span { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(255,255,255,.18); font-weight: 700; font-size: .85rem; }
.progress li.is-active { color: #fff; border-color: #f4d3b0; }
.progress li.is-active span { background: #f4d3b0; color: var(--tierra-osc); }
.step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: .3rem; }
.btn-next { width: 100%; margin-top: .6rem; background: #f4d3b0; color: var(--tierra-osc); font-size: 1.05rem; padding: 1rem; }
.btn-next:hover { background: #fff; }
.stepper { display: grid; grid-template-columns: 48px 1fr 48px; align-items: stretch; background: #fbfaf6; border-radius: 10px; overflow: hidden; }
.stepper input { text-align: center; border-radius: 0; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-btn { border: 0; background: #e9e3d8; color: var(--tierra-osc); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.step-btn:active { background: #d9d0c2; }
.resumen { background: rgba(255,255,255,.12); border-radius: 10px; padding: .7rem .9rem; margin: 0 0 .8rem; font-size: .95rem; }
.resumen .linklike { color: #f4d3b0; margin-left: .3rem; }
.opcional summary { cursor: pointer; font-weight: 600; font-size: .95rem; padding: .3rem 0; color: #eef1ea; }
.opcional textarea { margin-top: .4rem; }
.alt-contact { text-align: center; margin: 1.4rem 0 0; color: #d9e0d2; }
.alt-contact a { color: #fff; font-weight: 600; }

/* Barra fija de contacto en celular */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; gap: .6rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .6rem 12px calc(.6rem + env(safe-area-inset-bottom)); background: rgba(247,243,236,.97); box-shadow: 0 -6px 20px rgba(46,38,32,.18); }
  .sticky-cta .btn-wa { flex: 1; margin: 0; padding: .85rem 1rem; font-size: 1rem; }
  .sticky-call { flex: 0 0 52px; display: grid; place-items: center; border-radius: 999px; border: 2px solid var(--tierra-osc); color: var(--tierra-osc); }
}

/* Opiniones */
.opiniones { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .opiniones { grid-template-columns: 1fr; } }
.rating { margin: .2rem 0 1.4rem; line-height: 1.2; }
.rating-num { font: 600 3.4rem/1 var(--serif); color: var(--tierra-osc); vertical-align: middle; }
.stars { color: #e0a32e; font-size: 1.6rem; letter-spacing: .1em; vertical-align: middle; }
.rating-sub { color: var(--gris); font-size: .95rem; }
.op-intro { font-weight: 600; color: var(--tierra-osc); }
.op-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.op-list li { background: #fff; border-radius: 12px; padding: .9rem 1rem .9rem 2.6rem; position: relative; box-shadow: 0 2px 8px -4px rgba(46,38,32,.18); }
.op-list li::before { content: "★"; position: absolute; left: 1rem; top: .85rem; color: #e0a32e; }
