/* ==========================================================================
   CIELO MÁGICO — WEB PÚBLICA · Minimalista claro, estilo revista
   ========================================================================== */
:root {
  --bg: #FAFAF7;
  --bg-alt: #F2F0EA;
  --ink: #1C1C1A;
  --ink-soft: #6B6B66;
  --line: #E4E1D8;
  --gold: #B8935A;
  --gold-dark: #8E6E3E;
  --busy: #D9D6CF;
  --ok: #3F6B4F;
  --bad: #9A3B32;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.7; font-weight: 400; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 16px; top: 16px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: .75rem; }
em { font-style: italic; }

.eyebrow { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; color: rgba(255,255,255,.85); margin-bottom: 1.25rem; }
.eyebrow.dark { color: var(--gold-dark); }
.lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 46ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.narrow { width: min(760px, 92%); }
.section { padding: clamp(80px, 12vw, 150px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(40px, 6vw, 70px); }
.section-head::after { content: ''; display: block; width: 48px; height: 1px; background: var(--gold); margin-top: 1.5rem; }
.section-head.center::after { margin-inline: auto; }

/* BOTONES */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; font: 500 .85rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; border-radius: 0; cursor: pointer; transition: all .3s var(--ease); }
.btn-sm { padding: 10px 18px; font-size: .75rem; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--gold-dark); }
.btn-dark[aria-disabled="true"] { background: var(--busy); color: var(--ink-soft); pointer-events: none; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--gold); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-link { background: none; border: none; color: var(--ink-soft); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; margin-top: 12px; }

/* MENÚ */
.nav { position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 50; transition: background .4s var(--ease), box-shadow .4s; color: #fff; }
.nav.scrolled { background: rgba(250,250,247,.94); backdrop-filter: blur(10px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav-inner { height: 100%; width: min(1280px, 92%); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--serif); font-size: 1.5rem; text-decoration: none; letter-spacing: .01em; display: flex; align-items: center; gap: 0.5rem; }
.logo-icon { flex-shrink: 0; display: block; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) { text-decoration: none; font-size: .85rem; letter-spacing: .04em; position: relative; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: currentColor; transition: width .3s var(--ease); }
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav:not(.scrolled) .nav-links .btn-dark { background: #fff; color: var(--ink); }
.nav-toggle { display: none; background: none; border: none; width: 32px; height: 32px; cursor: pointer; color: inherit; }
.nav-toggle span { display: block; height: 1px; background: currentColor; margin: 8px 0; transition: transform .3s; }

/* PORTADA */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.1) 60%), linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.05) 40%, rgba(0,0,0,.6) 100%); }
.hero-content { position: relative; width: min(1280px, 92%); margin: 0 auto; padding-bottom: clamp(70px, 12vh, 130px); }
.hero h1 { font-size: clamp(3rem, 9vw, 7.5rem); font-weight: 400; margin-bottom: 1.5rem; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 300; max-width: 40ch; margin-bottom: 2.5rem; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { position: absolute; bottom: 28px; right: 4%; color: #fff; text-decoration: none; font-size: 1.4rem; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(8px); } }

/* EXPERIENCIA (estilo revista) */
.feature { display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: clamp(32px, 6vw, 96px); width: min(1280px, 100%); margin: clamp(70px, 10vw, 130px) auto 0; padding-right: 4%; }
.feature-reverse { grid-template-columns: 1fr 1.35fr; padding: 0 0 0 4%; }
.feature-reverse .feature-img { order: 2; }
.feature-img { overflow: hidden; aspect-ratio: 4 / 3; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature-img img { transform: scale(1.04); }
.feature-text { max-width: 420px; }
.feature-text p { color: var(--ink-soft); }
.feature-num { display: block; font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.1rem; margin-bottom: 1rem; }

/* GALERÍA */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 12px; grid-auto-flow: dense; }
.g-item { border: none; padding: 0; cursor: zoom-in; overflow: hidden; background: var(--busy); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

.spaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin-top: 72px; }
.space h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; margin-bottom: 8px; padding-top: 16px; border-top: 1px solid var(--ink); }
.space p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 960px) { .spaces { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .spaces { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; } }
.amenities { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--line); }
.amenities li { padding: 22px 8px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; font-size: .95rem; }
.am-icon { color: var(--gold); font-size: 1.1rem; width: 22px; text-align: center; }

/* DISPONIBILIDAD */
.booking { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.cal { background: #fff; border: 1px solid var(--line); padding: clamp(20px, 3vw, 36px); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cal-head h3 { margin: 0; font-size: 1.5rem; text-transform: capitalize; }
.cal-nav { width: 40px; height: 40px; border: 1px solid var(--line); background: none; font-size: 1.3rem; cursor: pointer; transition: all .2s; }
.cal-nav:hover:not(:disabled) { border-color: var(--ink); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week span { text-align: center; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 10px; }
.day { aspect-ratio: 1; border: none; background: none; font: 400 .95rem var(--sans); color: var(--ink); cursor: pointer; position: relative; transition: background .2s, color .2s; }
.day:hover:not(:disabled) { background: var(--bg-alt); }
.day.empty { pointer-events: none; }
.day.past { color: #c4c1b9; cursor: default; }
.day.busy-full { color: #a9a59b; text-decoration: line-through; background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(0,0,0,.035) 5px 6px); }
.day.checkout-only { background: linear-gradient(135deg, rgba(0,0,0,.04) 50%, transparent 50%); }
.day.checkin-only { background: linear-gradient(135deg, transparent 50%, rgba(0,0,0,.04) 50%); }
.day.today::after { content: ''; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); transform: translateX(-50%); }
.day.in-range { background: #EFE6D6; }
.day.sel-start, .day.sel-end { background: var(--ink) !important; color: #fff !important; text-decoration: none; }
.day.conflict { background: #F3DCD8; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px; font-size: .8rem; color: var(--ink-soft); }
.lg { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 1px solid var(--line); }
.lg-free { background: #fff; }
.lg-busy { background: var(--busy); }
.lg-sel { background: var(--ink); border-color: var(--ink); }
.cal-status { margin-top: 14px; font-size: .8rem; color: var(--ink-soft); }

.summary { background: #fff; border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); position: sticky; top: calc(var(--nav-h) + 24px); }
.summary-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.summary-row span { color: var(--ink-soft); }
.summary-row strong { font-weight: 500; }
.result { margin: 20px 0 4px; padding: 14px 16px; font-size: .95rem; border-left: 2px solid; }
.result.ok { color: var(--ok); border-color: var(--ok); background: #EEF3EF; }
.result.bad { color: var(--bad); border-color: var(--bad); background: #F7ECEA; }
.result.info { color: var(--ink-soft); border-color: var(--gold); background: var(--bg-alt); }
.summary .btn-block { margin-top: 20px; }
.note { display: block; margin-top: 16px; color: var(--ink-soft); font-size: .8rem; line-height: 1.5; }

/* TARIFAS */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: #fff; margin-bottom: 24px; }
.price-card { padding: clamp(32px, 4vw, 52px) clamp(24px, 3vw, 40px); text-align: center; }
.price-card + .price-card { border-left: 1px solid var(--line); }
.price-card.featured { background: var(--ink); color: #fff; }
.price-card.featured .price-note, .price-card.featured .price-label { color: rgba(255,255,255,.7); }
.price-label { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
.price { font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1; margin-bottom: 18px; }
.price small { font-family: var(--sans); font-size: .85rem; color: inherit; opacity: .7; }
.price-note { font-size: .9rem; color: var(--ink-soft); }

/* UBICACIÓN */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split p { color: var(--ink-soft); margin-bottom: 1.5rem; }
.list { list-style: none; }
.list li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .95rem; }
.list strong { color: var(--ink); font-weight: 500; }
.map { aspect-ratio: 4 / 3; background: var(--busy); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.85) contrast(1.05); }

/* PREGUNTAS */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-family: var(--serif); font-size: 1.2rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 300; font-size: 1.5rem; color: var(--gold); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-soft); }

/* PIE */
.footer { padding: 56px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { text-decoration: none; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-links a:hover { color: var(--gold-dark); }

/* WHATSAPP FLOTANTE */
.wa-float { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.18); z-index: 40; transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }

/* VISOR */
.lightbox { position: fixed; inset: 0; background: rgba(20,20,18,.94); z-index: 200; display: grid; place-items: center; padding: 4%; user-select: none; touch-action: pan-y; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 86vh; max-width: 90vw; object-fit: contain; cursor: pointer; transition: opacity .2s ease; }
.lb-close { position: absolute; top: 18px; right: 24px; background: none; border: none; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; z-index: 2; padding: 8px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.9rem; line-height: 1; display: grid; place-items: center; cursor: pointer; z-index: 2; transition: background .2s ease; }
.lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-counter { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.78); font-size: .85rem; letter-spacing: .12em; }

/* ANIMACIÓN AL HACER SCROLL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .booking, .split { grid-template-columns: 1fr; }
  .summary { position: static; }
  .amenities { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: 1fr; }
  .price-card + .price-card { border-left: none; border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: var(--nav-h) 0 auto; background: var(--bg); color: var(--ink); flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 4% 28px; box-shadow: 0 12px 24px rgba(0,0,0,.06); transform: translateY(-120%); transition: transform .4s var(--ease); z-index: -1; }
  .nav-links.open { transform: none; }
  .nav-links a:not(.btn) { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links .btn { margin-top: 18px; }
  .nav:not(.scrolled) .nav-links .btn-dark { background: var(--ink); color: #fff; }
  .nav.menu-open { background: var(--bg); color: var(--ink); }
  .nav.menu-open .nav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .feature, .feature-reverse { grid-template-columns: 1fr; padding: 0; gap: 28px; }
  .feature-reverse .feature-img { order: 0; }
  .feature-text { padding: 0 6%; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .g-wide { grid-column: span 2; }
  .g-tall { grid-row: span 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
