/* =========================================================
   Quincho Comalle · Estilos
   Mobile first. Colores y tipografías en :root.
   ========================================================= */
:root {
  --forest: #234536;
  --forest-deep: #183226;
  --sage: #A7B7A0;
  --ivory: #F8F5EF;
  --sand: #EFE7DA;
  --sand-line: #E0D4C0;
  --terracotta: #B8694A; /* acento discreto (oscurecido para contraste AA) */
  --ink: #292D29;
  --ink-soft: #545A54;
  --white: #fff;

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --gutter: 20px;
  --header-h: 68px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65;
  color: var(--ink); background: var(--ivory); overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; }
h2 { font-size: clamp(30px, 6.5vw, 50px); }
h3 { font-size: 23px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 80px 0; }
.section--sand { background: var(--sand); }
.section--forest { background: var(--forest); color: var(--ivory); }
.section__head { max-width: 640px; margin-bottom: 44px; }
.section__head p:last-child { color: var(--ink-soft); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 8px; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.eyebrow--light { color: #F1DCC9; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--forest); color: var(--ivory); }
.btn--primary:hover { background: var(--forest-deep); }
.btn--light { background: var(--ivory); color: var(--forest); }
.btn--light:hover { background: #fff; }
.btn--ghost { color: var(--ivory); border-color: rgba(248,245,239,.6); }
.btn--ghost:hover { background: rgba(248,245,239,.12); border-color: var(--ivory); }
.btn--outline { color: var(--forest); border-color: var(--forest); }
.btn--outline:hover { background: var(--forest); color: var(--ivory); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--lg { min-height: 58px; padding: 0 34px; font-size: 17px; }
.btn--block { width: 100%; }
.wa-ico { width: 20px; height: 20px; fill: currentColor; }

.link-arrow { font-weight: 600; color: var(--forest); text-decoration: none; border-bottom: 1.5px solid var(--sage); padding-bottom: 3px; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--ivory); transition: background .3s, box-shadow .3s, color .3s;
}
.header.is-solid, .header.menu-open { background: rgba(248,245,239,.97); color: var(--forest); box-shadow: 0 1px 0 var(--sand-line); backdrop-filter: blur(8px); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { text-decoration: none; display: flex; align-items: baseline; gap: 6px; font-family: var(--serif); font-size: 25px; line-height: 1; }
.logo__sub { font-style: italic; }
.logo--light { color: var(--ivory); }

.burger { width: 46px; height: 46px; border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav {
  position: fixed; inset: var(--header-h) 0 auto; background: var(--ivory); color: var(--forest);
  padding: 12px var(--gutter) 28px; border-bottom: 1px solid var(--sand-line);
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s var(--ease);
}
.nav.is-open { transform: none; opacity: 1; visibility: visible; }
.nav ul { list-style: none; margin: 0 0 18px; padding: 0; }
.nav li a { display: block; padding: 13px 0; font-size: 19px; text-decoration: none; border-bottom: 1px solid var(--sand-line); }
.nav__cta { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 880px); display: flex; align-items: flex-start; color: var(--ivory); overflow: hidden; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 60%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,42,32,.82) 0%, rgba(20,42,32,.62) 50%, rgba(20,42,32,.15) 72%, rgba(20,42,32,.3) 100%); }
.hero__content { position: relative; padding-top: calc(var(--header-h) + 36px); padding-bottom: 120px; }
.hero h1 { font-size: clamp(38px, 10.5vw, 76px); max-width: 13ch; margin-bottom: 18px; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero h1 em { color: #F1DCC9; }
.hero__lead { font-size: 17px; max-width: 34ch; margin-bottom: 28px; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Beneficios ---------- */
.perks { background: var(--forest); color: var(--ivory); }
.perks__list { list-style: none; margin: 0 auto; padding-top: 28px; padding-bottom: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
.perks li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.35; }
.perks svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--sage); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.perks strong { display: block; font-weight: 600; }

/* ---------- Presentación ---------- */
.intro__grid { display: grid; gap: 40px; align-items: center; }
.intro__photo { margin: 0; position: relative; }
.intro__photo img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; object-position: 50% 62%; width: 100%; }
.intro__photo::after { content: ""; position: absolute; inset: 18px -12px -12px 18px; border: 1px solid var(--sage); border-radius: var(--radius); z-index: -1; }
.intro__text p { color: var(--ink-soft); max-width: 52ch; }

/* ---------- Instalaciones ---------- */
.spaces__grid { display: grid; gap: 18px; }
.space { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--forest); color: var(--ivory); min-height: 380px; display: flex; align-items: flex-end; }
.space img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.space:hover img { transform: scale(1.04); }
.space::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,42,32,0) 40%, rgba(20,42,32,.88) 100%); }
.space__body { position: relative; z-index: 2; padding: 24px; }
.space__body p { margin: 0; font-size: 15.5px; opacity: .92; }
.space--list { background: var(--ivory); color: var(--ink); border: 1px solid var(--sand-line); flex-direction: column; align-items: flex-start; justify-content: center; padding: 30px; min-height: 0; }
.space--list::before { display: none; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 9px; border-left: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(-45deg); }

/* ---------- Celebraciones ---------- */
.occasions__grid { display: grid; gap: 18px; }
.occ { background: #fff; border: 1px solid var(--sand-line); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; align-items: flex-start; transition: transform .3s var(--ease), box-shadow .3s; }
.occ:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(35,69,54,.45); }
.occ__num { font-family: var(--serif); font-style: italic; color: var(--terracotta); font-size: 22px; margin-bottom: 18px; }
.occ p { color: var(--ink-soft); flex: 1; }

/* ---------- Banner ---------- */
.banner { position: relative; min-height: 76vh; display: flex; align-items: center; color: var(--ivory); overflow: hidden; background: var(--forest-deep); }
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.banner__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,22,30,.82), rgba(12,22,30,.35)); }
.banner__content { position: relative; }
.banner h2 { font-size: clamp(34px, 8vw, 64px); }
.banner p { font-size: 18px; max-width: 36ch; }

/* ---------- Cotización ---------- */
.quote__grid { display: grid; gap: 44px; }
.quote__info > p { color: var(--ink-soft); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; min-height: 36px; padding-top: 4px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--forest); color: var(--ivory); display: grid; place-items: center; font-family: var(--serif); font-size: 18px; }
.note { font-size: 14.5px; color: var(--ink-soft); border-left: 2px solid var(--terracotta); padding-left: 14px; }

.form { background: #fff; border-radius: 20px; padding: 26px 20px; box-shadow: 0 30px 60px -40px rgba(35,69,54,.5); }
.form__title { font-family: var(--serif); font-size: 26px; margin-bottom: 18px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.field legend span { font-weight: 400; color: var(--ink-soft); }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 0 14px; font: 16px var(--sans); color: var(--ink);
  background: var(--ivory); border: 1.5px solid var(--sand-line); border-radius: 10px; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--forest) 50%), linear-gradient(135deg, var(--forest) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus { border-color: var(--forest); outline: none; box-shadow: 0 0 0 3px rgba(35,69,54,.15); }
.field [aria-invalid="true"] { border-color: #B3412B; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 500; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--sand-line); font-size: 14.5px; transition: .2s; }
.chips input:checked + span { background: var(--forest); color: var(--ivory); border-color: var(--forest); }
.chips input:focus-visible + span { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.form__error { color: #B3412B; font-size: 14.5px; font-weight: 500; }
.form__hint { font-size: 13.5px; color: var(--ink-soft); margin: 12px 0 0; text-align: center; }

/* ---------- Galería ---------- */
.gallery__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 10px; grid-auto-flow: dense; }
.g button { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--sand); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.g button:hover img { transform: scale(1.05); }
.g--wide { grid-column: span 2; }
.g--tall { grid-row: span 2; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(14,22,18,.95); display: flex; align-items: center; justify-content: center; padding: 56px 12px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 140px); max-width: 100%; width: auto; border-radius: 6px; }
.lightbox figcaption { color: #D9D4CA; font-size: 14.5px; margin-top: 12px; text-align: center; }
.lb__close, .lb__nav { position: absolute; background: rgba(248,245,239,.12); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; display: grid; place-items: center; }
.lb__close { top: 12px; right: 12px; }
.lb__prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Ubicación ---------- */
.location__grid { display: grid; gap: 40px; }
.location p { color: #DDE3DA; max-width: 50ch; }
.location__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(167,183,160,.35); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--forest); padding: 22px 18px; }
.facts dt { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); margin-bottom: 6px; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.25; }
.facts a { text-decoration: none; }

/* ---------- FAQ ---------- */
.faq__list { border-top: 1px solid var(--sand-line); }
.faq details { border-bottom: 1px solid var(--sand-line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--serif); font-size: 28px; color: var(--forest); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding-right: 30px; margin: -4px 0 22px; }

/* ---------- CTA final ---------- */
.final { background: var(--forest) radial-gradient(ellipse at 80% 0%, rgba(167,183,160,.22), transparent 60%); color: var(--ivory); padding: 96px 0 104px; }
.final__inner { max-width: 760px; }
.final h2 { font-size: clamp(34px, 7.5vw, 60px); }
.final h2 em { color: #F1DCC9; }
.final p { color: #DDE3DA; font-size: 18px; max-width: 48ch; margin-bottom: 30px; }
.final small { display: block; margin-top: 16px; color: var(--sage); font-size: 14.5px; }

/* ---------- Footer ---------- */
.footer { background: var(--forest-deep); color: #C9D2C5; padding: 56px 0 110px; font-size: 15px; }
.footer__grid { display: grid; gap: 34px; }
.footer p { max-width: 36ch; margin-top: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__title { font-weight: 600; color: var(--ivory); margin-bottom: 12px !important; }
.footer__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(201,210,197,.18); font-size: 13.5px; }

/* ---------- WhatsApp flotante / barra móvil ---------- */
.wa-float { position: fixed; right: 18px; bottom: 88px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #1E8E50; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 89; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(248,245,239,.96); border-top: 1px solid var(--sand-line); transform: translateY(110%); transition: transform .35s var(--ease); }
.mobile-bar.is-visible { transform: none; }

/* ---------- Toast (aviso) ---------- */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14.5px; z-index: 400; max-width: calc(100% - 32px); }

/* ---------- Animación de aparición ---------- */
.reveal { transform: translateY(18px); transition: transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { transform: none; }

/* =========================================================
   Tablet
   ========================================================= */
@media (min-width: 768px) {
  :root { --gutter: 36px; --header-h: 76px; }
  .section { padding: 110px 0; }
  .hero { align-items: flex-end; }
  .hero__media img { object-position: 50% 50%; }
  .hero__shade { background: linear-gradient(90deg, rgba(20,42,32,.86) 0%, rgba(20,42,32,.62) 38%, rgba(20,42,32,.1) 68%, rgba(20,42,32,0) 100%), linear-gradient(180deg, rgba(20,42,32,.45) 0%, rgba(20,42,32,0) 22%); }
  .hero h1 { font-size: clamp(48px, 5.4vw, 72px); max-width: 12ch; }
  .hero__content { padding-bottom: 80px; }
  .hero__lead { font-size: 19px; max-width: 46ch; }
  .perks__list { grid-template-columns: repeat(4, 1fr); }
  .spaces__grid { grid-template-columns: repeat(2, 1fr); }
  .occasions__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 14px; }
  .form { padding: 34px 32px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .wa-float { bottom: 24px; }
  .mobile-bar { display: none; }
  .footer { padding-bottom: 56px; }
}

/* =========================================================
   Escritorio
   ========================================================= */
@media (min-width: 1024px) {
  .burger { display: none; }
  .nav { position: static; transform: none; opacity: 1; visibility: visible; background: none; color: inherit; padding: 0; border: 0; display: flex; align-items: center; gap: 30px; }
  .nav ul { display: flex; gap: 26px; margin: 0; }
  .nav li a { border: 0; padding: 6px 0; font-size: 15.5px; font-weight: 500; position: relative; }
  .nav li a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
  .nav li a:hover::after { transform: scaleX(1); }
  .nav__cta { width: auto; min-height: 46px; font-size: 15px; }
  .header:not(.is-solid) .nav__cta { background: var(--ivory); color: var(--forest); }

  .intro__grid { grid-template-columns: 5fr 6fr; gap: 90px; }
  .spaces__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; }
  .space { min-height: 0; }
  .space--tall { grid-row: span 2; }
  .space--list { grid-column: span 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 40px; }
  .space--list h3 { width: 100%; }
  .space--list .checks { grid-template-columns: repeat(3, auto); gap: 10px 28px; margin: 0; }
  .occasions__grid { grid-template-columns: repeat(4, 1fr); }
  .quote__grid { grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: start; }
  .quote__info { position: sticky; top: calc(var(--header-h) + 30px); }
  .gallery__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; }
  .location__grid { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 80px; }
  .faq__wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
  .faq .section__head { position: sticky; top: calc(var(--header-h) + 30px); }
}

@media (min-width: 1440px) {
  .wrap { max-width: 1320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { color-scheme: light; scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { transform: none; }
}
