/* El Nido · sitio público. Misma familia visual que grupopreysol.com: crema, verde bosque, Marcellus + Archivo. */
:root {
  --cream: #faf8f1;
  --sand: #f1ede1;
  --paper: #ffffff;
  --forest: #17251a;
  --forest-2: #22352a;
  --green: #2e4a34;
  --brass: #94762f;
  --brass-2: #c9a55a;
  --ink: #191512;
  --ink-2: #3b3a33;
  --muted: #6b6a60;
  --line: #e2dccb;
  --wa: #1f7a4d;
  --serif: 'Marcellus', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.005em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 21px; }
b { font-weight: 600; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--brass-2); }
.lead { font-size: 18px; color: var(--ink-2); max-width: 60ch; margin-top: 18px; }
.lead + .lead { margin-top: 12px; }
.note { font-size: 14.5px; color: var(--muted); max-width: 72ch; margin-top: 28px; }
.note--light { color: #c9cfc4; }

/* Botones: rectángulos sobrios como Preysol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 4px; border: 1px solid transparent; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn[hidden] { display: none; }
.btn--dark { background: var(--forest); color: #fff; }
.btn--dark:hover { background: var(--green); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: var(--cream); color: var(--forest); }
.btn--light:hover { background: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #18663f; }
.link { background: none; border: 0; padding: 0; font: 600 14px var(--sans); color: var(--green); text-decoration: underline; cursor: pointer; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__mark rect { fill: var(--green); }
.logo__mark text { fill: #f6f1e6; font: 16px var(--serif); }
.logo__txt { display: grid; line-height: 1.05; }
.logo__txt b { font: 400 22px var(--serif); letter-spacing: 0.01em; }
.logo__txt small { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

/* Barra de navegación */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 241, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.nav__links { display: flex; gap: 26px; font-size: 15px; }
.nav__links a { text-decoration: none; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.nav__cta { display: flex; gap: 10px; }
.nav__cta .btn { min-height: 42px; padding: 0 16px; font-size: 14px; }

/* Portada */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--forest); }
.hero picture, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: center 55%; }
.hero__veil { position: absolute; inset: 0; background: rgba(12, 20, 14, 0.42); }
.hero__in { position: relative; padding: 140px 0 40px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 78px); max-width: 15ch; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 52ch; margin-top: 20px; color: #f2eee4; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, 0.35); }
.hero__facts div { padding: 20px 20px 4px 0; }
.hero__facts div + div { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, 0.22); }
.hero__facts dt { font-size: 13px; letter-spacing: 0.06em; color: #d9d6cb; }
.hero__facts dd { margin: 4px 0 0; font: 400 clamp(26px, 3vw, 38px) var(--serif); font-variant-numeric: lining-nums tabular-nums; }

/* Secciones */
.sec { padding: clamp(72px, 9vw, 120px) 0; }
.sec--sand { background: var(--sand); }
.sec--dark { background: var(--forest); color: #f1ede1; }
.sec--dark .lead { color: #d3d6cc; }
.head { max-width: 760px; margin-bottom: 44px; }
.head h2 { margin-top: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev .split__img { order: -1; }
.split__txt h2 { margin-top: 16px; }
.split__txt .btn { margin-top: 28px; }
.split__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.split__img--wide img { aspect-ratio: 4 / 3; }

.checks { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checks li::before { content: ''; position: absolute; left: 0; top: 9px; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.checks b { color: var(--ink); }

.price { display: grid; grid-template-columns: 1fr 1fr; margin-top: 32px; border-top: 1px solid var(--line); }
.price div { padding: 18px 16px 0 0; }
.price div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.price span { font-size: 13px; color: var(--muted); }
.price b { display: block; font: 400 30px var(--serif); margin-top: 4px; }
.price small { font: 500 13px var(--sans); color: var(--muted); }

/* Simulador */
.sim { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.sim__pick { padding: clamp(24px, 3vw, 36px); }
.sim__pick p { margin-top: 6px; font-size: 15px; }
.trips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.trips button { position: relative; text-align: left; background: var(--cream); border: 1px solid var(--line); border-radius: 4px; padding: 14px 64px 14px 16px; font: inherit; color: inherit; cursor: pointer; display: grid; gap: 2px; transition: border-color .15s, background-color .15s; }
.trips button:hover { border-color: var(--green); }
.trips button:active { background: #fff; }
.trips b { font-size: 15px; }
.trips span { font-size: 13px; color: var(--muted); }
.trips em { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 600 13px var(--sans); font-style: normal; color: var(--brass); }
.trips button:disabled { opacity: .45; cursor: not-allowed; border-color: var(--line); }
.sim__out { background: var(--forest); color: #f1ede1; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.gauge__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: #c9cfc4; }
.gauge__row b { font: 400 26px var(--serif); color: #fff; font-variant-numeric: tabular-nums; }
.bar { height: 10px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: #a8c7ae; transition: width .25s ease; }
.bar--brass i { background: var(--brass-2); }
.sim__list { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 14px; max-height: 180px; overflow: auto; }
.sim__list li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.sim__list li button { background: none; border: 0; color: #c9cfc4; cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.sim__list .muted { color: #a7ada3; border: 0; }
.sim__msg { font-size: 15px; color: #e6e2d6; margin-top: auto; padding-top: 6px; }
.sim__out .link { color: var(--brass-2); align-self: flex-start; }

.table { margin-top: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); }
.table summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.table summary::-webkit-details-marker { display: none; }
.table summary::after { content: '+'; color: var(--brass); font-size: 20px; line-height: 1; }
.table[open] summary::after { content: '–'; }
.table__in { padding: 0 20px 20px; }
.table__in p { font-size: 14px; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
th { font-size: 12.5px; color: var(--muted); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
td:last-child, th:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* Rotación */
.rot { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; }
.rot__ctl label { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-2); font-weight: 600; }
.rot__ctl select { margin-top: 10px; width: 100%; height: 50px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .3); background: var(--forest-2); color: #fff; font: 500 17px var(--sans); padding: 0 14px; }
.rot__now { margin-top: 18px; font-size: 18px; color: #e6e2d6; }
.rot__now b { color: #fff; font-weight: 600; }
.rot__years { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .14); }
.rot__years li { background: var(--forest); padding: 14px 16px; min-height: 84px; display: grid; align-content: start; gap: 2px; }
.rot__years li span { font-size: 13px; color: #a7ada3; font-variant-numeric: tabular-nums; }
.rot__years li b { font: 400 18px var(--serif); color: #fff; }
.rot__years li small { font-size: 12.5px; color: #a7ada3; }
.rot__years li.on { background: var(--forest-2); box-shadow: inset 3px 0 0 var(--brass-2); }

/* Pasos */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.steps li { padding: 22px 24px 0 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps span { font: 400 15px var(--serif); color: var(--brass); }
.steps h3 { margin-top: 10px; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* Villas */
.villas { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.villa { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.villa img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.villa__b { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.villa__b p { color: var(--muted); font-size: 15px; }
.villa dl { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.villa dl div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.villa dt { font-size: 12.5px; color: var(--muted); }
.villa dd { margin: 2px 0 0; font: 400 19px var(--serif); }

/* Amenidades: mosaico editorial */
.mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 300px 300px; gap: 14px; }
.mosaic figure { position: relative; overflow: hidden; border-radius: 4px; background: var(--forest); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic picture { display: contents; }
.mosaic .m1 { grid-row: 1; grid-column: 1; }
.mosaic .m2 { grid-row: 1; grid-column: 2; }
.mosaic .m3 { grid-row: 2; grid-column: 2; }
.mosaic .m4 { grid-row: 2; grid-column: 1; }
.mosaic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px; background: rgba(12, 20, 14, 0.72); color: #e6e2d6; font-size: 14px; display: grid; }
.mosaic figcaption b { font: 400 19px var(--serif); color: #fff; }
.amen { list-style: none; padding: 0; margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.amen li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--ink-2); background: var(--paper); }

/* Ubicación */
.dist { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; border-top: 1px solid var(--line); }
.dist div { padding: 16px 14px 0 0; }
.dist div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.dist dt { font-size: 13px; color: var(--muted); }
.dist dd { margin: 2px 0 0; font: 400 28px var(--serif); }
.plan { margin-top: clamp(48px, 7vw, 80px); }
.plan img { width: 100%; border-radius: 4px; border: 1px solid var(--line); }
.plan figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* Preguntas */
.faqwrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start; }
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 17px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font: 400 24px var(--serif); color: var(--brass); }
.faq details[open] summary::after { content: '–'; }
.faq p { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }

/* Contacto */
.contact { position: relative; color: #fff; padding: clamp(96px, 12vw, 160px) 0; overflow: hidden; background: var(--forest); }
.contact picture, .contact__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact__img { object-fit: cover; }
.contact__veil { position: absolute; inset: 0; background: rgba(12, 20, 14, 0.62); }
.contact__in { position: relative; text-align: center; display: grid; justify-items: center; }
.contact__in h2 { margin-top: 16px; font-size: clamp(34px, 5vw, 58px); }
.contact__in .lead { color: #e6e2d6; text-align: center; }
.contact__in .hero__cta { justify-content: center; }
.contact__alt { margin-top: 18px; color: #d9d6cb; }

/* Pie */
.foot { background: var(--cream); border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: 14.5px; color: var(--muted); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot__brand { max-width: 420px; display: grid; gap: 14px; }
.foot__links { display: grid; gap: 8px; align-content: start; }
.foot__links a { color: var(--ink-2); text-decoration: none; }
.foot__links a:hover { text-decoration: underline; }
.foot__small { margin-top: 32px; font-size: 12.5px; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .22); }
.wa-float[hidden] { display: none; }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* Responsivo */
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .rot { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 860px) {
  .split, .villas, .sim, .faqwrap { grid-template-columns: 1fr; }
  .split--rev .split__img { order: 0; }
  .split__img img { aspect-ratio: 4 / 3; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 200px 200px; }
  .mosaic .m1 { grid-column: 1 / -1; grid-row: 1; }
  .mosaic .m2 { grid-column: 1; grid-row: 2; }
  .mosaic .m3 { grid-column: 2; grid-row: 2; }
  .mosaic .m4 { grid-column: 1 / -1; grid-row: 3; }
  .rot__years { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .nav__in { height: 64px; }
  .logo__txt small { display: none; }
  .nav__cta .btn--ghost { display: none; }
  .hero { min-height: 92vh; }
  .hero__in { padding-top: 100px; }
  .hero__facts dd { font-size: 26px; }
  .trips { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding-left: 0; border-left: 0; }
  .price, .dist { grid-template-columns: 1fr; }
  .price div + div, .dist div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
  .villa dl { grid-template-columns: 1fr 1fr 1fr; }
  .mosaic { grid-template-columns: 1fr; grid-template-rows: repeat(4, 220px); }
  .mosaic .m1, .mosaic .m2, .mosaic .m3, .mosaic .m4 { grid-column: 1; grid-row: auto; }
  .rot__years { grid-template-columns: 1fr 1fr; }
  .faq summary { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .bar i { transition: none; } }
