/* Casas Sahuaro — estilos compartidos */
:root {
  --fondo: #FAF6EC;
  --blanco: #FFFFFF;
  --verde: #596650;       /* texto principal y color de marca */
  --verde-suave: #697460; /* texto secundario */
  --linea: #ECE6D4;
  --deshabilitado: #B3AA8C;
  --oscuro: rgba(31, 42, 36, 1);
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --sans: -apple-system, 'Segoe UI', system-ui, sans-serif;
  --gutter: 64px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); background: var(--fondo); color: var(--verde); }
h1, h2, h3 { font-family: var(--serif); margin: 0; font-weight: 500; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; }

.pad { padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--verde-suave); }
.muted { color: var(--verde-suave); }

/* ---------- Encabezado de páginas internas ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--linea); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; }
.brand span { font-family: var(--serif); font-size: 20px; letter-spacing: 0.5px; }
.nav-fin { display: flex; align-items: center; gap: 20px; }
.lang-btn { border: none; background: none; padding: 6px 0; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--verde-suave); cursor: pointer; }
.hero-nav .lang-btn { color: var(--fondo); opacity: 0.85; }
/* Bloques que existen en los dos idiomas: se ve solo el del idioma activo. */
html[lang="en"] [data-solo="es"], html[lang="es"] [data-solo="en"] { display: none; }
.toplink { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--verde-suave); }

/* ---------- Inicio: hero ---------- */
.hero { position: relative; height: 100vh; min-height: 680px; background: var(--verde); display: flex; flex-direction: column; overflow: hidden; }
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.veil { position: absolute; inset: 0; background: rgba(31, 42, 36, 0.28); }
.hero-nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.hero-nav .brand img { height: 60px; filter: brightness(0) invert(1); }
.hero-nav .brand span { color: var(--fondo); }
.hero-links { display: flex; gap: 40px; }
.hero-links a { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fondo); opacity: 0.85; }
.btn-outline-light { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fondo); border: 1px solid rgba(250, 246, 236, 0.55); padding: 11px 22px; }
.hero-body { position: relative; z-index: 2; flex: 1; display: flex; align-items: flex-end; padding-bottom: 88px; }
.hero-body > div { display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.hero-title { font-size: 60px; line-height: 1.08; color: var(--fondo); }
.hero-cta { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--fondo); border-bottom: 1px solid rgba(250, 246, 236, 0.55); padding-bottom: 5px; width: fit-content; }

.intro { padding-top: 128px; padding-bottom: 128px; display: flex; justify-content: center; }
.intro > div { max-width: 620px; display: flex; flex-direction: column; gap: 24px; text-align: center; align-items: center; }
.intro h2 { font-size: 32px; line-height: 1.35; }
.intro p { font-size: 16px; line-height: 1.75; color: var(--verde-suave); margin: 0; }

/* ---------- Tarjetas de casas ---------- */
.houses { padding-bottom: 128px; }
.houses-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; margin-top: 48px; }
.house-card { display: flex; flex-direction: column; gap: 16px; }
.house-card .photo { aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.house-card .meta { display: flex; flex-direction: column; gap: 4px; }
.house-card .zone { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--verde-suave); font-style: italic; }
.house-card .name { font-family: var(--serif); font-size: 21px; }
.house-card .cap { font-size: 12px; color: var(--verde-suave); margin-left: 8px; }
.house-card .price { font-size: 14px; color: var(--verde-suave); }

.story { position: relative; height: 68vh; min-height: 460px; background: var(--verde); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.story .veil { background: rgba(31, 42, 36, 0.35); }
.story > div:last-child { position: relative; max-width: 600px; display: flex; flex-direction: column; gap: 18px; color: var(--fondo); }
.story h2 { font-size: 34px; line-height: 1.35; }

.quote { padding-top: 128px; padding-bottom: 128px; display: flex; justify-content: center; }
.quote > div { max-width: 740px; text-align: center; display: flex; flex-direction: column; gap: 24px; }
.quote p { font-family: var(--serif); font-style: italic; font-size: 27px; line-height: 1.55; margin: 0; }
.quote p.quote-texto { font-family: inherit; font-style: normal; font-size: 16px; line-height: 1.75; color: var(--verde-suave); }

.trust { padding-top: 44px; padding-bottom: 44px; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; }
.trust span:not(.eyebrow) { font-family: var(--serif); font-size: 17px; }

.contact-cta { border-top: 1px solid var(--linea); padding-top: 110px; padding-bottom: 110px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact-cta h2 { font-size: 28px; margin-bottom: 14px; }
.contact-cta p { font-size: 15px; line-height: 1.6; color: var(--verde-suave); margin: 0; max-width: 420px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border: none; border-radius: 6px; background: var(--verde); color: var(--fondo); font-size: 15px; font-weight: 600; min-height: 44px; }
.btn:hover { background: #4a5643; }

/* ---------- Pie de página ---------- */
.footer { padding-top: 56px; padding-bottom: 56px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; border-top: 1px solid var(--linea); font-size: 13px; color: var(--verde-suave); }
.footer .brand img { height: 52px; }
.footer .brand span { font-size: 17px; color: var(--verde); }
.footer h4 { margin: 0 0 12px; color: var(--verde); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; }
.footer .col { display: flex; flex-direction: column; gap: 6px; }
.footer a:hover { color: var(--verde); text-decoration: underline; }

/* ---------- Página de casa ---------- */
.house-head { padding-top: 56px; }
.house-head h1 { font-size: 44px; margin-top: 10px; }
.house-facts { display: flex; gap: 24px; margin-top: 8px; font-size: 14px; color: var(--verde-suave); flex-wrap: wrap; }
.gallery { padding-top: 24px; padding-bottom: 24px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; height: 360px; }
.gallery button { position: relative; padding: 0; border: none; background: var(--linea); border-radius: 8px; overflow: hidden; cursor: zoom-in; }
.gallery button:first-child { grid-row: 1 / span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .more { position: absolute; inset: 0; background: rgba(31, 42, 36, 0.45); display: flex; align-items: center; justify-content: center; color: var(--fondo); font-size: 14px; font-weight: 600; }

.detail { padding-top: 32px; padding-bottom: 80px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.detail-info { display: flex; flex-direction: column; gap: 32px; }
.detail-info h2 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.detail-info p { font-size: 15px; line-height: 1.7; color: var(--verde-suave); margin: 0; }
.detail-info .rooms { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.6; }
.detail-info .note { font-size: 13px; line-height: 1.5; margin-top: 10px; }
.amenities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; font-size: 14px; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; font-size: 14px; }
.rules b { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--verde-suave); font-weight: 600; margin-bottom: 2px; }

.booking { position: sticky; top: 24px; border: 1px solid var(--linea); border-radius: 8px; padding: 28px; background: var(--blanco); display: flex; flex-direction: column; gap: 20px; box-shadow: 0 8px 24px rgba(31, 42, 36, 0.06); }
.booking .rate { font-size: 20px; font-weight: 600; }
.booking .rate small { font-size: 14px; font-weight: 400; color: var(--verde-suave); }
.booking .rate-high { font-size: 12px; line-height: 1.5; color: var(--verde-suave); margin-top: 4px; }
.booking .fineprint { font-size: 12px; color: var(--verde-suave); text-align: center; margin: 0; line-height: 1.5; }

.date-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--linea); border-radius: 6px; overflow: hidden; }
.date-fields button { text-align: left; padding: 10px 12px; border: none; background: var(--blanco); }
.date-fields button + button { border-left: 1px solid var(--linea); }
.date-fields button.active { background: var(--fondo); box-shadow: inset 0 0 0 2px var(--verde); }
.date-fields .lbl { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--verde-suave); }
.date-fields .val { display: block; padding-top: 4px; font-size: 14px; }
.date-fields .val.empty { color: #9AA08F; }

.cal { display: flex; flex-direction: column; gap: 8px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-head span { font-family: var(--serif); font-size: 16px; }
.round-btn { width: 32px; height: 32px; border-radius: 100px; border: 1px solid var(--linea); background: var(--blanco); display: flex; align-items: center; justify-content: center; padding: 0; }
.round-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.cal-grid .wd { text-align: center; font-size: 10px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--verde-suave); }
.cal-grid button { height: 36px; padding: 0; border: none; border-radius: 100px; background: transparent; font-size: 13px; color: var(--verde); }
.cal-grid button.alta { position: relative; }
.cal-grid button.alta::after, .punto-alta { content: ''; width: 4px; height: 4px; border-radius: 100px; background: #C8A45C; }
.cal-grid button.alta::after { position: absolute; left: 50%; bottom: 4px; margin-left: -2px; }
.cal-grid button.alta.off::after { opacity: 0.45; }
.cal-grid button.alta.edge::after, .cal-grid button.alta.in-range::after { background: var(--fondo); }
.punto-alta { display: inline-block; vertical-align: middle; margin: 0 2px 2px; }
.cal-grid button.off { color: var(--deshabilitado); cursor: help; }
.cal-aviso { position: relative; margin-top: 4px; padding: 10px 12px 10px 34px; border: 1px solid var(--linea); border-radius: 8px; background: var(--fondo); font-size: 12.5px; line-height: 1.5; color: var(--verde); }
.cal-aviso::before { content: 'i'; position: absolute; left: 10px; top: 11px; width: 16px; height: 16px; border-radius: 100px; background: var(--verde); color: var(--fondo); font-family: var(--serif); font-style: italic; font-size: 11px; line-height: 16px; text-align: center; }
.cal-aviso.entra { animation: cal-aviso 0.25s ease-out; }
@keyframes cal-aviso { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cal-aviso.entra { animation: none; } }
.cal-grid button.occ { text-decoration: line-through; }
.cal-grid button.in-range { background: var(--verde); color: var(--fondo); border-radius: 4px; }
.cal-grid button.edge { background: var(--verde); color: var(--fondo); font-weight: 600; box-shadow: inset 0 0 0 1.5px rgba(31, 42, 36, 0.7), inset 0 0 0 3px var(--verde); }
.cal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--verde-suave); }
.link-btn { border: none; background: none; padding: 0; font-size: 12px; text-decoration: underline; }
.cal-legend { font-size: 11px; color: var(--verde-suave); }
.cal-legend s { color: var(--deshabilitado); }

.counter { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--linea); border-radius: 6px; padding: 10px 12px; font-size: 14px; }
.counter > div { display: flex; align-items: center; gap: 14px; }
.counter button { width: 28px; height: 28px; border-radius: 100px; border: 1px solid var(--linea); background: var(--fondo); font-size: 16px; line-height: 1; padding: 0; }
.counter button:disabled { opacity: 0.35; cursor: not-allowed; }
.counter output { min-width: 16px; text-align: center; }
.counter-hint { font-size: 12px; color: var(--verde-suave); margin: -12px 0 0; }

/* ---------- Foto en grande ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(31, 42, 36, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: flex; align-items: center; justify-content: center; outline: none; }
.lightbox[hidden] { display: none; }
.lightbox .frame { position: relative; display: flex; }
.lightbox .frame img { max-width: 82vw; max-height: 84vh; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 100px; border: 1px solid rgba(250, 246, 236, 0.5); background: rgba(31, 42, 36, 0.35); color: var(--fondo); display: flex; align-items: center; justify-content: center; padding: 0; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-close { top: 20px; right: 24px; width: 44px; height: 44px; }
.lb-count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: 2px; color: var(--fondo); opacity: 0.85; }

/* ---------- Reservar ---------- */
.step { padding-top: 48px; padding-bottom: 48px; border-top: 1px solid var(--linea); }
.step:first-of-type { border-top: none; }
.step h1, .step h2 { font-size: 30px; margin: 8px 0 24px; }
.guests { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--linea); border-radius: 4px; overflow: hidden; background: var(--blanco); }
.guests .g { display: flex; align-items: center; gap: 20px; padding: 18px 28px; }
.guests .g + .g { border-left: 1px solid var(--linea); }
.guests button { width: 44px; height: 44px; border-radius: 100px; border: 1px solid var(--linea); background: var(--blanco); font-size: 18px; line-height: 1; padding: 0; }
.guests .num { display: flex; flex-direction: column; align-items: center; min-width: 56px; }
.guests .num output { font-size: 26px; font-family: var(--serif); }
.guests .num span { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--verde-suave); }
.search-cal { max-width: 420px; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.result { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--linea); border-radius: 8px; overflow: hidden; background: var(--blanco); }
.result .photo { height: 180px; background-size: cover; background-position: center; }
.result .meta { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.result .name { font-family: var(--serif); font-size: 19px; }
.result .price { font-size: 13px; color: var(--verde-suave); }
.result .total { font-size: 14px; font-weight: 600; margin-top: 4px; }

/* ---------- Normas y políticas ---------- */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 80px; font-size: 15px; line-height: 1.7; }
.legal section { padding-top: 24px; }
.legal section + section { margin-top: 40px; border-top: 1px solid var(--linea); }
.legal h1 { font-size: 30px; margin-bottom: 16px; }
.legal h2 { font-family: var(--sans); font-size: 16px; font-weight: 600; margin: 28px 0 8px; }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 10px; padding-left: 20px; list-style: disc; }
.legal li { margin-bottom: 4px; }

/* Casilla de aceptación en la caja de reserva */
.acepto { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; cursor: pointer; }
.acepto[hidden] { display: none; }
.acepto input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--verde); flex-shrink: 0; }
.acepto a { text-decoration: underline; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* ---------- Libro de Reclamaciones ---------- */
.footer .libro-link { display: inline-flex; align-items: center; gap: 6px; }
.reclamos h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 12px; }
.proveedor { margin: 20px 0 8px; padding: 16px 20px; border: 1px solid var(--linea); border-radius: 8px; background: var(--blanco); font-size: 14px; line-height: 1.6; }
.proveedor .eyebrow { margin-bottom: 4px; }
.falta { background: #F6E3DE; color: #7E3328; padding: 1px 6px; border-radius: 4px; font-weight: 600; font-size: 12px; letter-spacing: 0.5px; }
.form-error a, .notas a { text-decoration: underline; }
.reclamos fieldset { border: none; padding: 0; margin: 36px 0 0; min-width: 0; }
.reclamos legend { font-family: var(--serif); font-size: 20px; padding: 0; margin-bottom: 16px; }
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.campos .ancho { grid-column: 1 / -1; }
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.campo[hidden] { display: none; }
.campo input, .campo select, .campo textarea { font: inherit; font-size: 15px; font-weight: 400; color: var(--oscuro); background: var(--blanco); border: 1px solid #D9D1BA; border-radius: 6px; padding: 11px 12px; min-height: 44px; width: 100%; }
.campo input, .campo select { height: 46px; }
.campo textarea { resize: vertical; line-height: 1.5; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 2px solid var(--verde); outline-offset: 1px; border-color: var(--verde); }
.mal input, .mal select, .mal textarea, .tipo-opciones.mal .tipo { border-color: #A3483A; }
.acepto.mal { color: #A3483A; }
.tipo-opciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tipo { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border: 1px solid #D9D1BA; border-radius: 8px; background: var(--blanco); cursor: pointer; line-height: 1.45; }
.tipo input { margin: 3px 0 0; accent-color: var(--verde); flex-shrink: 0; }
.tipo b { display: block; font-size: 15px; }
.tipo small { display: block; font-size: 13px; color: var(--verde-suave); margin-top: 2px; }
.tipo:has(input:checked) { border-color: var(--verde); box-shadow: inset 0 0 0 1px var(--verde); }
.reclamos form > .acepto { margin-top: 32px; }
.reclamos form .btn { margin-top: 20px; min-width: 180px; }
.reclamos form .btn:disabled { opacity: 0.6; cursor: wait; }
.form-error { margin: 16px 0 0; padding: 12px 16px; border-radius: 6px; background: #F6E3DE; color: #7E3328; font-size: 14px; }
.notas { margin-top: 28px; font-size: 13px; line-height: 1.6; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hoja-lista .hoja { margin-top: 32px; padding: 24px; border: 1px solid var(--linea); border-radius: 8px; background: var(--blanco); color: var(--oscuro); }
.hoja h3 { font-size: 20px; margin-bottom: 4px; }
.hoja table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.hoja th, .hoja td { text-align: left; vertical-align: top; padding: 7px 8px; border-bottom: 1px solid var(--linea); }
.hoja th { width: 34%; font-weight: 600; }
.hoja th[colspan] { width: auto; padding-top: 18px; font-family: var(--serif); font-size: 16px; font-weight: 500; }
.hoja .muted { font-size: 12px; }
@media print {
  .topbar, .footer, .no-imprimir, .reclamos > h1, .reclamos > p { display: none !important; }
  body { background: #fff; }
  .legal { padding: 0; max-width: none; }
  .hoja-lista .hoja { border: none; padding: 0; margin: 0; }
}

/* ---------- Celular ---------- */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .hide-mobile { display: none !important; }
  .nav-fin { gap: 14px; }
  .btn-outline-light { padding: 10px 14px; }
  .hero-title { font-size: 34px; }
  .intro, .quote { padding-top: 88px; padding-bottom: 88px; }
  .houses-grid, .results-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .contact-cta { grid-template-columns: repeat(1, minmax(0, 1fr)); padding-top: 72px; padding-bottom: 72px; gap: 24px; }
  .quote p { font-size: 22px; }
  .quote p.quote-texto { font-size: 16px; }
  .story h2 { font-size: 26px; }
  .house-head h1 { font-size: 36px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 150px; height: auto; }
  .gallery button:first-child { grid-column: 1 / -1; grid-row: span 2; }
  .detail { grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 40px; }
  .booking { position: static; padding: 20px; }
  .amenities, .rules { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .campos, .tipo-opciones { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .campo-hueco { display: none; }
  .brand img { height: 44px; }
  .brand span { font-size: 17px; }
  .guests .g { padding: 14px 18px; gap: 14px; }
  .guests .g + .g { border-left: none; border-top: 1px solid var(--linea); }
  .guests { flex-direction: column; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lightbox .frame img { max-width: 94vw; }
}
