/* =========================================================
   Don Pepo · Quinta en Lobos
   Hoja de estilos principal (mobile first) · v2
   Desarrollo y posicionamiento: pulpo | marketing digital
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Tierra y vegetación */
  --ink: #26322B;          /* textos principales */
  --green: #4F6B4C;        /* verde hoja */
  --green-deep: #2F4130;   /* footer y fondos oscuros */
  --sage-soft: #E5ECDF;    /* fondo suave verde */
  --cream: #FBF8F2;        /* fondo general */
  --soft: #F3EFE6;         /* secciones alternas */
  --white: #FFFFFF;
  --earth: #985E3A;        /* tierra */
  --earth-soft: #F4E7DB;
  /* Agua */
  --water: #2F7482;        /* acento principal */
  --water-soft: #DCECEE;
  /* Contacto */
  --wa: #13804B;

  --text: #3A443D;
  --muted: #5F6A62;
  --line: rgba(38, 50, 43, .12);

  --font: "Montserrat", system-ui, sans-serif;

  /* Bordes levemente redondeados */
  --r-btn: 12px;
  --r-img: 18px;
  --r-card: 24px;

  --shadow: 0 1px 2px rgba(38, 50, 43, .05), 0 12px 32px rgba(38, 50, 43, .08);
  --wrap: 1240px;
  --gutter: clamp(16px, 5vw, 48px);
  --section: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; color: var(--ink); }
em { font-style: italic; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--water); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: var(--r-btn); }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--soft { background: var(--soft); }

/* ---------- 3. Tipografía ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 6px 14px;
  border-radius: 999px;
  background: var(--sage-soft); color: var(--green);
  font-size: 13px; font-weight: 600; line-height: 1.4;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--glass { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.chip--earth { background: var(--earth-soft); color: var(--earth); }

.h2 {
  font-size: clamp(30px, 5.6vw, 52px);
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
.h2 em { color: var(--water); }
.h2--light { color: #fff; }
.h2--light em { color: var(--water-soft); }

.round-arrow {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.round-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink);
  padding-block: 6px;
}
.link-arrow:hover .round-arrow { background: var(--water); color: #fff; transform: translateX(4px); }

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--r-btn);
  font: 600 15px/1 var(--font);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--water { background: var(--water); color: #fff; }
.btn--water:hover { background: #255e6a; box-shadow: 0 8px 20px rgba(47, 116, 130, .25); }
.btn--earth { background: var(--earth); color: #fff; }
.btn--earth:hover { background: #7f4d2f; box-shadow: 0 8px 20px rgba(152, 94, 58, .25); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #0f6b3e; }

/* ---------- 5. Sello DP (provisorio hasta el logo) ---------- */
.seal {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff;
  box-shadow: inset 0 0 0 3px var(--green), inset 0 0 0 4px rgba(255, 255, 255, .55);
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
}
.seal--lg { width: 60px; height: 60px; font-size: 17px; }

/* ---------- 6. Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .3s var(--ease);
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.brand__name { font-size: 17px; font-weight: 700; }
.brand__tag { font-size: 12px; font-weight: 500; color: var(--muted); }

.burger {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px 0 16px;
  background: var(--water); border: 0; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(47, 116, 130, .25);
  font: 600 15px var(--font); color: var(--white); cursor: pointer;
}
.burger__icon { position: relative; width: 18px; height: 14px; }
.burger__icon span {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease), opacity .2s;
}
.burger__icon span:nth-child(1) { top: 0; }
.burger__icon span:nth-child(2) { top: 6px; }
.burger__icon span:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] { background: var(--ink); box-shadow: none; }
.burger[aria-expanded="true"] .burger__icon span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__icon span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__icon span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Menú mobile: panel que baja */
.nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  display: flex; flex-direction: column; gap: 20px;
  margin: 0 12px; padding: 20px;
  background: var(--white); border-radius: var(--r-card); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-12px); visibility: hidden;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.nav ul { display: flex; flex-direction: column; }
.nav a { text-decoration: none; white-space: nowrap; }
.nav ul a {
  display: block; padding: 12px 14px; border-radius: var(--r-btn);
  font-size: 17px; font-weight: 500; color: var(--ink);
}
.nav ul a:hover { background: var(--soft); }
.nav ul a[aria-current="page"] { background: var(--sage-soft); color: var(--green); font-weight: 600; }
.nav__cta { width: 100%; }

/* ---------- 7. Hero ---------- */
.hero { padding: 4px 12px 0; }
.hero__card {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - var(--header-h) - 120px);
  max-width: 1440px; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--r-card);
  color: #fff;
}
.hero__media { position: absolute; inset: -10% 0 0; z-index: -2; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 2.2s var(--ease) both; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(25, 35, 28, .72) 0%, rgba(25, 35, 28, .3) 48%, rgba(25, 35, 28, 0) 75%);
}
.hero__content { padding: 120px 22px 30px; max-width: 760px; }
.hero__title { color: #fff; font-size: clamp(38px, 9.6vw, 84px); font-weight: 700; letter-spacing: -.03em; line-height: 1.02; margin-bottom: 18px; }
.hero__title span { display: block; font-weight: 300; font-style: italic; letter-spacing: -.02em; font-size: .62em; margin-top: .2em; }
.hero__lead { max-width: 32em; font-size: clamp(15px, 2vw, 18px); color: rgba(255, 255, 255, .9); margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.float-card { display: none; }

.facts {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  padding-top: 14px; padding-bottom: 6px;
}
.facts::-webkit-scrollbar { display: none; }
.facts li {
  flex: 1 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 12px; border-radius: 16px;
  background: var(--white); box-shadow: 0 0 0 1px var(--line);
}
.facts__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; }
.facts__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.facts__icon--water { background: var(--water-soft); color: var(--water); }
.facts__icon--sage { background: var(--sage-soft); color: var(--green); }
.facts__icon--earth { background: var(--earth-soft); color: var(--earth); }
.facts__txt { display: flex; flex-direction: column; }
.facts strong { font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.2; white-space: nowrap; }
.facts__txt span { font-size: 13px; color: var(--muted); white-space: nowrap; }

@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }

/* ---------- 8. Intro ---------- */
.intro__grid { display: grid; gap: 48px; }
.intro__copy p:not(.chip) { max-width: 34em; color: var(--muted); }
.intro__visual { position: relative; }
.frame { overflow: hidden; border-radius: var(--r-img); background: var(--soft); }
.frame img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 16 / 10; }

.badge {
  position: absolute; left: 16px; bottom: -32px;
  width: 124px; height: 124px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 30s linear infinite; }
.badge__ring text { font: 600 13px var(--font); letter-spacing: .22em; fill: var(--green); }
.badge__dp { font-size: 24px; font-weight: 700; color: var(--water); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 9. Espacios ---------- */
.section__head { margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--center { text-align: center; }
.section__head--split { display: grid; gap: 4px; }
.section__note { color: var(--muted); max-width: 30em; }

.spaces__grid { display: grid; gap: 18px; }
.space {
  display: flex; flex-direction: column;
  padding: 10px; border-radius: var(--r-card);
  background: var(--white); box-shadow: var(--shadow);
  text-decoration: none; color: var(--text);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.space:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(38, 50, 43, .05), 0 20px 44px rgba(38, 50, 43, .12); }
.space__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-img); }
.space__media img { width: 100%; height: 112%; object-fit: cover; transition: scale 1.2s var(--ease); }
.space:hover .space__media img { scale: 1.05; }
.space__tag {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); color: var(--ink);
  font-size: 12px; font-weight: 600;
}
.space__body { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 10px 10px; }
.space h3 { font-size: 21px; margin-bottom: 4px; }
.space p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.space:hover .round-arrow { background: var(--water); color: #fff; }

/* ---------- 10. Comodidades ---------- */
.amen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.amen li { padding: 20px 18px; border-radius: 20px; background: var(--white); box-shadow: 0 0 0 1px var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.amen li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.amen__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 16px; }
.amen__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.amen__icon--water { background: var(--water-soft); color: var(--water); }
.amen__icon--sage { background: var(--sage-soft); color: var(--green); }
.amen__icon--earth { background: var(--earth-soft); color: var(--earth); }
.amen h3 { font-size: 16px; margin-bottom: 4px; }
.amen p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* ---------- 11. Banda parallax ---------- */
.band-wrap { padding-inline: 12px; }
.band { position: relative; isolation: isolate; overflow: hidden; max-width: 1440px; margin: 0 auto; border-radius: var(--r-card); padding: clamp(80px, 14vw, 168px) 22px; color: #fff; }
.band__content { max-width: var(--wrap); margin: 0 auto; padding-inline: max(0px, calc(var(--gutter) - 22px)); }
.band__media { position: absolute; inset: -25% 0; z-index: -2; will-change: transform; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__veil { position: absolute; inset: 0; z-index: -1; background: rgba(28, 40, 32, .55); }
.stays { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.stays li span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: var(--r-btn);
  background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 15px; font-weight: 500;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.stays li span:hover { background: #fff; color: var(--ink); }

/* ---------- 12. Eventos ---------- */
.events__card {
  display: grid; gap: 28px; align-items: center;
  padding: 12px 12px 28px; border-radius: var(--r-card);
  background: var(--earth-soft);
}
.events__copy { padding-inline: 10px; }
.events__copy > p:not(.chip) { color: var(--text); }
.events__copy strong { color: var(--ink); font-weight: 600; }
.checks { margin: 6px 0 28px; display: grid; gap: 8px; }
.checks li { position: relative; padding: 2px 0 2px 34px; font-size: 15px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23985E3A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- 13. Tira galería ---------- */
.strip { overflow: hidden; padding-block: 0 var(--section); }
.strip__track { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.strip__track img { width: clamp(220px, 30vw, 360px); aspect-ratio: 1; object-fit: cover; border-radius: var(--r-img); }
.strip:hover .strip__track { animation-play-state: paused; }
.strip__foot { display: flex; justify-content: center; margin-top: 32px; padding-inline: var(--gutter); }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------- 14. Consulta / ubicación ---------- */
.contact__grid { display: grid; gap: 40px; }
.contact__grid > *, .intro__grid > *, .footer__grid > * { min-width: 0; }
.contact__info > p:not(.chip) { color: var(--muted); }
.loc { margin: 26px 0 22px; display: grid; gap: 10px; }
.loc li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1px var(--line); line-height: 1.45; overflow-wrap: anywhere; }
.loc small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.loc__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--water-soft); color: var(--water); }
.loc__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.loc a { color: var(--water); font-weight: 600; text-decoration: none; }

.form { background: var(--white); padding: clamp(22px, 4vw, 40px); border-radius: var(--r-card); box-shadow: var(--shadow); }
.form__title { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 20px; }
.form__row { margin-bottom: 16px; }
.form__row--2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: 400 15px var(--font); color: var(--ink);
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-btn);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--water); box-shadow: 0 0 0 3px rgba(47, 116, 130, .16); }
.form [aria-invalid="true"] { border-color: #A23B2A; }
.form__hint { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- 15. Footer ---------- */
.footer { background: var(--green-deep); color: rgba(255, 255, 255, .78); font-size: 14px; padding-top: 64px; padding-bottom: 28px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer__brand { display: flex; align-items: center; gap: 16px; color: #fff; }
.footer__brand .seal { background: #fff; color: var(--green-deep); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px var(--green-deep); }
.footer__brand p { margin: 0; line-height: 1.5; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; }
.footer__nav a { display: inline-block; padding: 6px 0; }
.footer__nap { line-height: 1.9; }
.footer__legal { display: flex; flex-direction: column; gap: 6px; padding-top: 22px; font-size: 13px; }
.footer__legal p { margin: 0; }
.footer__legal a { color: #fff; font-weight: 600; }

/* ---------- 16. Botonera flotante (derecha) ---------- */
.dock {
  position: fixed; right: 0; top: 50%; z-index: 60;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-50%);
}
.dock__btn {
  position: relative; margin-left: auto;
  display: flex; align-items: center;
  width: 50px; height: 50px; border-radius: 14px 0 0 14px;
  color: #fff; text-decoration: none; overflow: hidden;
  box-shadow: 0 6px 18px rgba(25, 35, 28, .2);
  transition: width .45s var(--ease);
}
.dock__btn svg { position: absolute; left: 14px; width: 22px; height: 22px; fill: currentColor; }
.dock__btn svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dock__label {
  padding-left: 48px; white-space: nowrap;
  font-size: 14px; font-weight: 600;
  opacity: 0; transition: opacity .3s var(--ease);
}
.dock__btn--wa { background: var(--wa); }
.dock__btn--call { background: var(--water); }
.dock__btn--map { background: var(--earth); }
@media (hover: hover) {
  .dock__btn:hover, .dock__btn:focus-visible { width: 164px; }
  .dock__btn:hover .dock__label, .dock__btn:focus-visible .dock__label { opacity: 1; }
}

/* ---------- 17. Animaciones de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 18. Breakpoints ---------- */
@media (min-width: 640px) {
  .hero { padding-inline: 16px; }
  .hero__content { padding: 140px 40px 44px; }
  .facts li { flex: 1 1 0; }
  .spaces__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spaces__grid .space:first-child { grid-column: 1 / -1; }
  .spaces__grid .space:first-child .space__media { aspect-ratio: 16 / 8; }
  .amen { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .band-wrap { padding-inline: 16px; }
  .band { padding-inline: 40px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__legal { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 960px) {
  .hero__card { min-height: min(760px, calc(100svh - var(--header-h) - 110px)); }
  .hero__content { padding: 160px 64px 64px; }
  .float-card {
    position: absolute; right: 32px; z-index: 1;
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px 14px 14px; border-radius: 18px;
    background: rgba(255, 255, 255, .94); color: var(--ink);
    box-shadow: var(--shadow);
  }
  .float-card strong { display: block; font-size: 15px; line-height: 1.3; }
  .float-card small { display: block; font-size: 13px; color: var(--muted); }
  .float-card--top { top: 40px; }
  .float-card--bottom { bottom: 48px; }
  .float-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; }
  .float-card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .float-card__icon--water { background: var(--water-soft); color: var(--water); }
  .float-card__icon--sage { background: var(--sage-soft); color: var(--green); }
  .facts { margin-top: -44px; position: relative; z-index: 2; padding-inline: calc(var(--gutter) + 24px); }
  .facts li { box-shadow: var(--shadow); align-items: center; }

  .intro__grid { grid-template-columns: 1.05fr .95fr; gap: 88px; align-items: center; }
  .badge { left: -56px; bottom: 40px; width: 140px; height: 140px; }

  .section__head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; }
  .spaces__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .spaces__grid .space:first-child { grid-column: auto; }
  .spaces__grid .space:first-child .space__media, .space__media { aspect-ratio: 4 / 4.4; }

  .amen { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .amen li { padding: 26px 24px; }

  .band { padding-inline: 64px; }
  .events__card { grid-template-columns: 1.1fr .9fr; gap: 56px; padding: 16px 56px 16px 16px; }
  .contact__grid { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }

  .dock__btn { width: 54px; height: 54px; }
  .dock__btn svg { left: 16px; }
  .dock__label { padding-left: 52px; }
}

/* Menú horizontal solo cuando entra completo en una línea */
@media (min-width: 1180px) {
  .burger { display: none; }
  .nav {
    position: static; flex-direction: row; align-items: center; gap: 22px;
    margin: 0; padding: 0; background: none; box-shadow: none; border-radius: 0;
    opacity: 1; transform: none; visibility: visible; transition: none;
  }
  .nav ul { flex-direction: row; gap: 2px; }
  .nav ul a { padding: 8px 12px; font-size: 14.5px; }
  .nav__cta { width: auto; }
}

/* ---------- 20. Páginas internas ---------- */
.page-hero { padding: 4px 12px 0; }
.page-hero__card {
  position: relative; isolation: isolate; overflow: hidden;
  max-width: 1440px; margin: 0 auto; min-height: 360px;
  display: flex; flex-direction: column; justify-content: flex-end;
  border-radius: var(--r-card); color: #fff;
}
.page-hero__media { position: absolute; inset: -12% 0 0; z-index: -2; will-change: transform; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 2.2s var(--ease) both; }
.page-hero__veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(25, 35, 28, .7) 0%, rgba(25, 35, 28, .2) 60%, rgba(25, 35, 28, .05) 100%); }
.page-hero__content { padding: 96px 22px 32px; max-width: 820px; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 7vw, 64px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 14px; }
.page-hero h1 span { display: block; font-weight: 300; font-style: italic; font-size: .6em; margin-top: .2em; }
.page-hero p { color: rgba(255, 255, 255, .9); max-width: 36em; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 13px; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs li + li::before { content: "/"; opacity: .6; }
.crumbs a { color: #fff; text-decoration: none; font-weight: 600; }
.crumbs [aria-current] { opacity: .85; }

.lead { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.65; color: var(--text); max-width: 46em; }
.prose p { color: var(--muted); max-width: 40em; }

/* Filas alternadas imagen / texto */
.rows { display: grid; gap: clamp(56px, 8vw, 104px); }
.row { display: grid; gap: 28px; align-items: center; }
.row__media { overflow: hidden; border-radius: var(--r-img); aspect-ratio: 4 / 3; background: var(--soft); }
.row__media img { width: 100%; height: 112%; object-fit: cover; }
.row__copy p { color: var(--muted); }
.row__copy .h3 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.015em; margin-bottom: 14px; }
.ticks { display: grid; gap: 8px; margin: 4px 0 0; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 10px; height: 5px; border-left: 2px solid var(--water); border-bottom: 2px solid var(--water); transform: rotate(-45deg); }

/* Ambientes (cards) */
.rooms { display: grid; gap: 18px; }
.room { padding: 10px; border-radius: var(--r-card); background: var(--white); box-shadow: var(--shadow); }
.room__media { overflow: hidden; border-radius: var(--r-img); aspect-ratio: 4 / 3; }
.room__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.room:hover .room__media img { scale: 1.04; }
.room__body { padding: 16px 10px 10px; }
.room__body h3 { font-size: 19px; margin-bottom: 4px; }
.room__body p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.room__tag { display: inline-flex; margin-top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--sage-soft); color: var(--green); font-size: 12px; font-weight: 600; }

/* Distribución de camas */
.beds { display: grid; gap: 12px; }
.bed { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.bed strong { display: block; color: var(--ink); }
.bed small { color: var(--muted); font-size: 13px; }
.total { margin-top: 14px; padding: 16px 20px; border-radius: 18px; background: var(--water); color: #fff; font-weight: 600; }

/* Cita / valores */
.quote { margin: 0; padding: 28px; border-radius: var(--r-card); background: var(--sage-soft); color: var(--ink); }
.quote p { font-size: clamp(19px, 2.6vw, 24px); font-style: italic; font-weight: 400; line-height: 1.5; color: var(--ink); }
.quote footer { font-size: 14px; font-weight: 600; color: var(--green); }
.values { display: grid; gap: 14px; }
.value { padding: 24px; border-radius: 20px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.value h3 { font-size: 17px; margin: 14px 0 6px; }
.value p { margin: 0; font-size: 14px; color: var(--muted); }

/* Banda CTA */
.cta { padding-inline: 12px; }
.cta__card { max-width: 1440px; margin: 0 auto; padding: clamp(40px, 7vw, 72px) 24px; border-radius: var(--r-card); background: var(--green-deep); color: rgba(255, 255, 255, .85); text-align: center; }
.cta__card .h2 { color: #fff; }
.cta__card .h2 em { color: var(--water-soft); }
.cta__card p { max-width: 34em; margin: 0 auto 26px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Galería */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  min-height: 44px; padding: 0 18px; border-radius: var(--r-btn);
  border: 0; background: var(--white); box-shadow: 0 0 0 1px var(--line);
  font: 600 14px var(--font); color: var(--ink); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.filters button[aria-pressed="true"] { background: var(--water); color: #fff; box-shadow: none; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gallery__item { padding: 0; border: 0; background: var(--soft); border-radius: 14px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease); }
.gallery__item:hover img { scale: 1.05; }
.gallery__item[hidden] { display: none; }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 2 / 1; }

.lightbox { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 56px 12px; background: rgba(20, 28, 23, .92); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--r-img); object-fit: contain; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.lightbox button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__caption { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .85); font-size: 14px; }

/* Contacto */
.map { overflow: hidden; border-radius: var(--r-card); box-shadow: var(--shadow); background: var(--soft); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--white); box-shadow: 0 0 0 1px var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--water-soft); color: var(--water); font-size: 18px; font-weight: 500; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

@media (min-width: 640px) {
  .page-hero { padding-inline: 16px; }
  .page-hero__content { padding: 120px 40px 44px; }
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .beds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .cta { padding-inline: 16px; }
}
@media (min-width: 960px) {
  .page-hero__card { min-height: 460px; }
  .page-hero__content { padding: 140px 64px 56px; }
  .row { grid-template-columns: 1.1fr .9fr; gap: 72px; }
  .row:nth-child(even) .row__media { order: 2; }
  .rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
}

/* ---------- 19. Accesibilidad: movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  [data-parallax] { transform: none !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 21. Logo (img/logo.png) ---------- */
.brand__logo { display: block; height: 36px; width: auto; }
.footer__logo { display: block; height: 52px; width: auto; filter: brightness(0) invert(1); }
@media (min-width: 960px) { .brand__logo { height: 42px; } }
.badge__logo { position: relative; width: 44px; height: 44px; object-fit: contain; }
@media (min-width: 960px) { .badge__logo { width: 50px; height: 50px; } }
@media (min-width: 960px) {
  .room--wide { grid-column: span 2; }
  .room--wide .room__media { aspect-ratio: 2.75 / 1; }
  .amen--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.footer__map { padding-top: 32px; }
.footer__map iframe { display: block; width: 100%; height: 260px; border: 0; border-radius: var(--r-card); }
@media (min-width: 960px) { .footer__map iframe { height: 320px; } }

/* 22. Formulario en mobile: fechas iOS sin desborde y campos apilados */
.form input[type="date"] {
  -webkit-appearance: none; appearance: none;
  display: block; min-width: 0; max-width: 100%; text-align: left;
}
.form input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.form select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .form__row--2 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
