/* Reserva 3-14: mobile-first. Base = celular; min-width para crecer. */
:root {
  --ink: #14100c;
  --espresso: #403020;
  --sand: #d0b0a0;
  --sand-ink: #735444;      /* sand oscurecido: texto pequeño sobre crema (≥4.5:1) */
  --cream: #f6efe8;
  --line: #e4d6ca;
  --muted: #6b5a4c;
  --on-dark-soft: #cdbcb0;
  --radius: 18px;
  --display: "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--cream); color: var(--espresso);
  font: 400 1rem/1.65 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.12; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--sand-ink); }
.dark .eyebrow, .hero .eyebrow { color: var(--sand); }
.h2 { font-size: clamp(1.6rem, 5.5vw, 2.5rem); font-weight: 300; letter-spacing: .02em; }
.lead { color: var(--muted); max-width: 60ch; margin-top: 14px; }
.dark .lead, .hero .lead { color: var(--on-dark-soft); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; min-height: 48px; border-radius: 999px;
  border: 2px solid var(--sand); background: var(--sand); color: var(--ink);
  font: 600 .95rem/1 var(--body); letter-spacing: .04em; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover { background: #dcc2b4; border-color: #dcc2b4; }
.btn--ghost { background: transparent; color: var(--sand); }
.btn--ghost:hover { background: rgba(208,176,160,.14); border-color: var(--sand); }
.btn--dark { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.btn--dark:hover { background: var(--ink); border-color: var(--ink); }
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s, box-shadow .25s; }
.top.is-solid { background: rgba(20,16,12,.94); box-shadow: 0 1px 0 rgba(208,176,160,.2); backdrop-filter: blur(8px); }
.top__row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: block; line-height: 0; }
.brand img { height: 52px; width: auto; display: block; }
.top__nav { display: none; align-items: center; gap: 26px; }
.top__nav a { color: var(--on-dark-soft); text-decoration: none; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.top__nav a:hover { color: var(--sand); }

/* Hero */
.hero { background: linear-gradient(rgba(20,16,12,.8), rgba(20,16,12,.94)), url("../img/aerea.jpg") center / cover no-repeat, var(--ink); color: #fff; text-align: center; padding: 120px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(ellipse at 50% 0%, rgba(208,176,160,.14), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero__logo { width: min(360px, 78%); height: auto; margin: 0 auto 28px; }
.hero h1 { font-size: clamp(1.7rem, 6.2vw, 3rem); font-weight: 300; letter-spacing: .02em; max-width: 20ch; margin: 18px auto 0; color: #fff; }
.hero .lead { margin-inline: auto; }
.hero__cta { display: flex; flex-direction: column; gap: 12px; margin: 30px auto 0; max-width: 360px; }
.strip { margin-top: 36px; display: grid; gap: 1px; background: rgba(208,176,160,.25); border-radius: var(--radius); overflow: hidden; }
.strip div { background: #1b1510; padding: 16px 14px; font-size: .9rem; color: var(--on-dark-soft); }
.strip b { display: block; color: var(--sand); font-size: 1.15rem; font-weight: 600; letter-spacing: .02em; }

/* Secciones */
.sec { padding: 72px 0; }
.dark { background: var(--ink); color: #fff; }
.mid { background: var(--espresso); color: var(--cream); }
.mid .lead { color: var(--on-dark-soft); }
.mid .eyebrow { color: var(--sand); }
.sec__head { margin-bottom: 36px; }

.cards { display: grid; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.card h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: .02em; margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: .97rem; }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; color: var(--espresso); }
.ico svg { width: 24px; height: 24px; }

/* Galería (marcadores de posición hasta tener fotos) */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph { margin: 0; aspect-ratio: 4/3; border-radius: 14px; border: 1px dashed rgba(208,176,160,.4);
  background: linear-gradient(135deg, #1f1812, #2a2017); display: grid; place-items: center;
  color: var(--sand); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 8px; }
.ph:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
.ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.shot { border: 0; padding: 0; background: #1f1812; overflow: hidden; }
.shot img { transition: transform .8s cubic-bezier(.23,1,.32,1); }
@media (hover: hover) { .shot:hover img { transform: scale(1.04); } }
.gallery .shot:last-child { grid-column: 1 / -1; aspect-ratio: 16/9; }

/* Proyecto */
.spaces { display: grid; gap: 14px; }
.space { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.space .ico { background: var(--cream); flex: none; }
.space h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.space p { color: var(--muted); font-size: .95rem; }
.badge { display: inline-block; margin-top: 8px; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sand-ink); }

/* Acción */
.offer { display: grid; gap: 28px; }
.table { border: 1px solid rgba(208,176,160,.3); border-radius: var(--radius); overflow: hidden; }
.table div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 20px; border-bottom: 1px solid rgba(208,176,160,.2); }
.table div:last-child { border-bottom: 0; }
.table span { color: var(--on-dark-soft); font-size: .92rem; }
.table b { color: var(--sand); font-size: 1.15rem; font-weight: 600; text-align: right; }
.fine { font-size: .82rem; color: var(--on-dark-soft); margin-top: 14px; }

.steps { display: grid; gap: 14px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s); flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--espresso); color: var(--cream); display: grid; place-items: center; font-weight: 600; }

/* Ubicación */
.map { margin-top: 24px; aspect-ratio: 16/10; border-radius: var(--radius); border: 1px dashed var(--sand-ink); display: grid; place-items: center; color: var(--sand-ink); text-align: center; padding: 16px; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; background: #fff; }
.map iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.map--img { padding: 0; border: 0; overflow: hidden; background: var(--espresso); aspect-ratio: auto; display: block; }
.map--img img { width: 100%; height: auto; }

/* Formulario */
.form { display: grid; gap: 14px; margin-top: 28px; max-width: 520px; }
.form label { font-size: .85rem; letter-spacing: .06em; color: var(--on-dark-soft); display: grid; gap: 6px; }
.form input, .form select { font: inherit; padding: 13px 14px; min-height: 48px; border-radius: 12px; border: 1px solid rgba(208,176,160,.4); background: #1b1510; color: #fff; width: 100%; }
.form input::placeholder { color: #8d7d70; }
.form [aria-invalid="true"] { border-color: #e59b8a; }
.form__err { color: #f0b4a6; font-size: .88rem; min-height: 1.2em; }
.form__note { font-size: .8rem; color: var(--on-dark-soft); }

.close { text-align: center; }
.close .h2 { max-width: 22ch; margin-inline: auto; }
.close .btn { margin-top: 28px; }

/* Footer */
.foot { background: var(--ink); color: var(--on-dark-soft); padding: 48px 0 110px; font-size: .9rem; text-align: center; }
.foot img { width: 180px; height: auto; margin: 0 auto 18px; }
.foot nav { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }
.foot a { color: var(--sand); }
.legal { max-width: 70ch; margin: 18px auto 0; font-size: .78rem; opacity: .85; }

/* WhatsApp flotante */
.wa { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; min-height: 52px; border-radius: 999px;
  background: var(--sand); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.wa svg { width: 22px; height: 22px; }
.wa:hover { background: #dcc2b4; }

/* Aparición suave */
.fx .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.23,1,.32,1), transform .7s cubic-bezier(.23,1,.32,1); }
.fx .rv.is-in { opacity: 1; transform: none; }

@media (min-width: 720px) {
  .strip { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .spaces { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { flex-direction: column; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .ph:first-child { grid-column: span 2; aspect-ratio: auto; grid-row: span 2; }
  .gallery .shot:last-child { grid-column: auto; aspect-ratio: 4/3; }
  .hero__cta { flex-direction: row; max-width: none; justify-content: center; }
}
@media (min-width: 900px) {
  .top__nav { display: flex; }
  .sec { padding: 104px 0; }
  .hero { padding: 160px 0 100px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .offer { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fx .rv { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* Planos */
.sec:not(.dark):not(.mid) .fine { color: var(--sand-ink); }
.plan { margin: 0; }
.plan a, .plans2 a { display: block; }
.plan__frame { position: relative; border-radius: 14px; overflow: hidden; background: #1f1812; }
.plan__frame img { width: 100%; height: auto; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--sand); font-size: .72rem; font-weight: 700; display: grid; place-items: center; border: 1.5px solid var(--sand); box-shadow: 0 2px 8px rgba(0,0,0,.45); pointer-events: none; }
.legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--sand-ink); }
.legend b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--ink); color: var(--sand); font-size: .72rem; }
.plans2 { display: grid; gap: 14px; margin-top: 18px; }
.plans2 figure { margin: 0; }
.plans2 img { width: 100%; height: auto; border-radius: 14px; }
.plans2 figcaption { margin-top: 8px; font-size: .88rem; color: var(--sand-ink); }
@media (min-width: 720px) { .plans2 { grid-template-columns: 1fr 1fr; } .pin { width: 28px; height: 28px; font-size: .8rem; } }

/* Tarjetas "Por qué": ícono en línea con el título, sin recuadro */
.card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.card h3 svg { width: 24px; height: 24px; flex: none; color: var(--sand-ink); }
.hero__where { margin-top: 22px; font-size: .9rem; color: var(--on-dark-soft); }

/* Video: hero en loop, clips de galería y recorrido completo */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20,16,12,.5), rgba(20,16,12,.58) 55%, rgba(20,16,12,.9)); pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.hero:has(.hero__video.is-on)::after { opacity: 1; }
.hero .wrap { z-index: 1; }
.clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.clip.is-on { opacity: 1; }
.shot { position: relative; }
.film { margin: 0; }
.film video { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; border-radius: 14px; background: var(--ink); }
.film figcaption { margin-top: 10px; font-size: .82rem; color: var(--on-dark-soft); }

/* Vista 360° */
.pano__stage { position: relative; height: clamp(340px, 62vh, 640px); border-radius: 14px; overflow: hidden; background: var(--espresso); }
.pano__still, .pano canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pano__still { object-fit: cover; }
.pano canvas { opacity: 0; transition: opacity .4s; cursor: grab; touch-action: none; outline-offset: -3px; }
.pano--on canvas { opacity: 1; }
.pano canvas.is-grab { cursor: grabbing; }
.pano--still canvas, .pano--still .pano__hint, .pano--still .pano__zoom { display: none; }
.pano__hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0; padding: 8px 16px; border-radius: 999px; background: rgba(20,16,12,.72); color: var(--cream); font-size: .8rem; pointer-events: none; transition: opacity .3s; white-space: nowrap; }
.pano__hint.is-off { opacity: 0; }
.pano__zoom { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.pano__zoom button { width: 44px; height: 44px; border: 1px solid rgba(208,176,160,.5); border-radius: 50%; background: rgba(20,16,12,.72); color: var(--cream); font: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.pano__zoom button:hover { background: var(--espresso); }
.pano__tabs { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; }
.pano__tabs button { flex: none; min-height: 44px; padding: 0 18px; border: 1px solid rgba(208,176,160,.45); border-radius: 999px; background: transparent; color: var(--on-dark-soft); font: inherit; font-size: .88rem; cursor: pointer; }
.pano__tabs button:hover { border-color: var(--sand); }
.pano__tabs button[aria-pressed="true"] { background: var(--sand); border-color: var(--sand); color: var(--ink); font-weight: 600; }
.pano .fine { margin-top: 10px; color: var(--on-dark-soft); }
.pano--still .pano__still { width: auto; min-width: 100%; max-width: none; object-fit: fill; cursor: grab; touch-action: none; }
.pano--still .pano__hint { display: block; }
.pano--still .pano__stage { touch-action: none; }
.map__go { margin: 20px 0 0; }
