/* All Natural — capa dinámica: botones gráficos, iconos, movimiento.
   Se carga después de styles.css. Todo el movimiento respeta prefers-reduced-motion. */

:root {
  --c-sand: #e9dfcc;
  --c-moss: #6b7a4f;
  --c-accent-2: #3d5e4a;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

.ico { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }

/* ================= BOTONES GRÁFICOS ================= */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 999px; padding: 0 6px 0 24px; min-height: 52px; gap: 14px;
  transition: color .45s var(--ease-out), border-color .45s var(--ease-out), transform .35s var(--ease-out);
}
.btn::before { /* barrido de color */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--c-ink); transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.btn:hover { background: transparent; color: var(--c-canvas); }
.btn:hover::before { transform: translateY(0); }
.btn__label { position: relative; }
.btn__icon {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-ink); color: var(--c-canvas); overflow: hidden; position: relative;
  transition: background .45s var(--ease-out), color .45s var(--ease-out);
}
.btn__icon .ico { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.btn:hover .btn__icon { background: var(--c-canvas); color: var(--c-ink); }
.btn:hover .btn__icon .ico { animation: arrow-loop .55s var(--ease-out); }
@keyframes arrow-loop { 0% { transform: none } 49% { transform: translateX(140%) } 50% { transform: translateX(-140%) } 100% { transform: none } }

.btn--accent { background: var(--c-accent); color: var(--c-accent-ink); border-color: var(--c-accent); }
.btn--accent::before { background: var(--c-ink); }
.btn--accent .btn__icon { background: var(--c-accent-ink); color: var(--c-accent); }
.btn--accent:hover { border-color: var(--c-ink); }

.btn--light, .band-dark .btn { color: #fff; border-color: #ffffff80; }
.btn--light::before, .band-dark .btn::before { background: #fff; }
.btn--light .btn__icon, .band-dark .btn .btn__icon { background: #fff; color: var(--c-ink); }
.btn--light:hover, .band-dark .btn:hover { color: var(--c-ink); }
.btn--light:hover .btn__icon, .band-dark .btn:hover .btn__icon { background: var(--c-ink); color: #fff; }

.btn--sm { min-height: 42px; padding-left: 18px; gap: 10px; }
.btn--sm .btn__icon { width: 32px; height: 32px; }
.btn--sm .btn__icon .ico { width: 15px; height: 15px; }
.btn--block { width: 100%; justify-content: space-between; }
.btn:active { transform: scale(.97); }

/* Tabs con píldora animada */
.tabs { position: relative; padding: 4px; border: 1px solid var(--c-ink); border-radius: 999px; gap: 0; }
.tab { border: 0; border-radius: 999px; padding: 11px 16px; position: relative; z-index: 1; background: none; transition: color .4s var(--ease-out); display: inline-flex; gap: 8px; align-items: center; }
.tab[aria-pressed="true"] { background: none; color: var(--c-canvas); }
.tab sup { font-size: 9px; opacity: .7; }
.tabs__pill { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--c-ink); transition: transform .5s var(--ease-out), width .5s var(--ease-out); }
@media (max-width: 560px) { .tabs { width: 100%; justify-content: space-between; } .tab { padding: 10px 10px; font-size: 10px; } }

/* ================= HERO ================= */
.hero__img { animation: kenburns 22s ease-out both; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1.18); } to { transform: scale(1); } }

[data-letters] { display: flex; flex-wrap: wrap; }
[data-letters] .ch { display: inline-block; transform: translateY(105%) rotate(4deg); opacity: 0; transition: transform 1.1s var(--ease-out), opacity 1.1s var(--ease-out); transition-delay: calc(var(--i) * 55ms + 200ms); }
[data-letters].is-in .ch { transform: none; opacity: 1; }
.hero .h-display { overflow: hidden; padding-bottom: .04em; }
.hero__tagline, .hero__meta, .hero .booking { animation: rise 1.2s var(--ease-out) both; }
.hero__meta { animation-delay: .1s; }
.hero__tagline { animation-delay: .9s; }
.hero .booking { animation-delay: 1.1s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* Sello giratorio "Reserva directo" */
.seal {
  position: absolute; right: var(--gutter); top: 120px; z-index: 2; width: 132px; height: 132px;
  display: grid; place-items: center; color: #fff; text-decoration: none; transition: transform .4s var(--ease-out);
}
.seal svg.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.seal svg.seal__ring text { font: 500 9.5px var(--f-mono); letter-spacing: .32em; text-transform: uppercase; fill: currentColor; }
.seal__core { width: 64px; height: 64px; border-radius: 50%; background: var(--c-accent); display: grid; place-items: center; transition: background .3s, transform .4s var(--ease-out); }
.seal:hover .seal__core { background: #fff; color: var(--c-ink); transform: scale(1.08) rotate(45deg); }
.seal__core .ico { width: 22px; height: 22px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .seal { width: 96px; height: 96px; top: 96px; } .seal__core { width: 46px; height: 46px; } .seal svg.seal__ring text { font-size: 12px; } }

.scroll-cue { position: absolute; left: 50%; bottom: 14px; z-index: 2; width: 1px; height: 46px; background: #ffffff40; overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; inset: 0; background: #fff; animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@media (max-width: 900px) { .scroll-cue { display: none; } }

/* Buscador: iconos y realce */
.booking { border-radius: 20px; overflow: hidden; }
.booking__field label { display: flex; gap: 6px; align-items: center; }
.booking__field label .ico { width: 14px; height: 14px; opacity: .9; }
.booking__field { transition: background .3s; }
.booking__field:focus-within { background: rgba(20,24,21,.8); }
.booking .btn { border-radius: 0; padding: 0 10px 0 28px; }

/* ================= CINTA EN MOVIMIENTO ================= */
.marquee { background: var(--c-accent); color: var(--c-accent-ink); overflow: hidden; border-block: 1px solid var(--c-ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 18px; padding: 18px 28px; font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 34px); font-style: italic; white-space: nowrap; }
.marquee__item .ico { width: 26px; height: 26px; color: var(--c-sand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================= DATOS CON ICONOS Y CONTADORES ================= */
.facts { border-top: 0; gap: 12px; }
.fact {
  border: 1px solid var(--c-line) !important; border-radius: 18px; padding: 22px !important; background: var(--c-surface);
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center;
  transition: transform .5s var(--ease-out), border-color .4s, background .4s;
}
.fact:hover { transform: translateY(-4px); border-color: var(--c-ink) !important; }
.fact__ico { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--c-sand); color: var(--c-accent); transition: background .4s, color .4s, transform .6s var(--ease-out); }
.fact:hover .fact__ico { background: var(--c-accent); color: #fff; transform: rotate(-12deg) scale(1.05); }
.fact__ico .ico { width: 24px; height: 24px; }
.fact strong { margin-top: 0 !important; font-size: 26px !important; }
.fact .num { font-family: var(--f-display); font-size: 44px; line-height: 1; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* ================= TÍTULOS QUE SE REVELAN ================= */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 60ms); }
.js [data-split].is-in .w > span { transform: none; }

/* Escalonado genérico */
.js .stagger > * { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js .stagger.is-in > * { opacity: 1; transform: none; }

/* ================= PARALLAX ================= */
.photo-band img[data-parallax], .split__media img[data-parallax] { will-change: transform; transform: scale(1.12); }
.photo-band .h-xl { max-width: 14ch; }
.photo-band__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* Chips (pastillas con icono) */
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; border-radius: 999px;
  font: 500 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255,253,249,.92); color: var(--c-ink); backdrop-filter: blur(6px);
}
.chip .ico { width: 15px; height: 15px; color: var(--c-accent); }
.chip--glass { background: rgba(20,24,21,.45); color: #fff; border: 1px solid #ffffff40; }
.chip--glass .ico { color: var(--c-sand); }

/* ================= TARJETAS DE ALOJAMIENTO ================= */
.room__media { border-radius: 20px; isolation: isolate; }
.room__media img { position: absolute; inset: 0; }
.room__img--alt { opacity: 0; transition: opacity .8s var(--ease-out), transform 1.2s var(--ease-out) !important; }
.room:hover .room__img--alt { opacity: 1; }
.room:hover .room__media img { transform: scale(1.06); }
.room__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,12,10,.55)); pointer-events: none; }
.room .badge { z-index: 2; border-radius: 999px; padding: 7px 11px; border: 0; }
.room__chips { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.room__chips li { transform: translateY(12px); opacity: 0; transition: transform .5s var(--ease-out), opacity .5s; transition-delay: calc(var(--i) * 60ms); }
.room:hover .room__chips li, .room:focus-visible .room__chips li { transform: none; opacity: 1; }
@media (hover: none) { .room__chips li { transform: none; opacity: 1; } }
.room__go {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-surface); color: var(--c-ink);
  transform: scale(.6) rotate(-45deg); opacity: 0; transition: transform .5s var(--ease-out), opacity .4s;
}
.room:hover .room__go { transform: none; opacity: 1; }
.room__go .ico { width: 20px; height: 20px; }
.room__price b { transition: color .3s; }
.room:hover .room__price b { color: var(--c-accent); }
.room__name { transition: transform .5s var(--ease-out); }
.room:hover .room__name { transform: translateX(6px); }
.rooms .room { transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.rooms.is-switching .room { opacity: 0; transform: translateY(20px); }

/* Cursor "Ver" */
.cursor-view {
  position: fixed; left: 0; top: 0; z-index: 60; width: 88px; height: 88px; border-radius: 50%; pointer-events: none;
  background: var(--c-accent); color: #fff; display: grid; place-items: center;
  font: 500 11px var(--f-mono); letter-spacing: .2em; text-transform: uppercase; transform: scale(0);
  transition: width .3s, height .3s; mix-blend-mode: normal;
}
@media (hover: hover) and (pointer: fine) { .room__media { cursor: none; } .room__go { display: none; } }

/* ================= PLANES COMO TARJETAS ================= */
.plans { border-top: 0; gap: 16px; }
.plan, .plan + .plan {
  border: 1px solid var(--c-line) !important; border-radius: 22px; padding: 26px !important; background: var(--c-surface);
  position: relative; overflow: hidden; transition: transform .6s var(--ease-out), border-color .4s, box-shadow .6s var(--ease-out);
}
.plan::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: var(--c-sand); opacity: .55; transition: transform .8s var(--ease-out); z-index: 0; }
.plan > * { position: relative; z-index: 1; }
.plan:hover { transform: translateY(-8px); border-color: var(--c-ink) !important; box-shadow: 0 24px 48px -28px rgba(31,36,32,.45); }
.plan:hover::before { transform: scale(1.6); }
.plan__ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--c-accent); color: #fff; margin-bottom: 18px; transition: transform .6s var(--ease-out); }
.plan:hover .plan__ico { transform: rotate(-8deg) scale(1.06); }
.plan__ico .ico { width: 28px; height: 28px; }
.plan li { border-color: #1f242018 !important; display: flex; gap: 10px; align-items: flex-start; }
.plan li .ico { width: 16px; height: 16px; color: var(--c-accent); margin-top: 3px; }
.plan__price { align-items: center !important; }
.plan__price b { font-family: var(--f-display) !important; font-size: 34px !important; font-weight: 400 !important; }
.plan .btn { margin-top: 16px; }
@media (max-width: 600px) { .plan, .plan + .plan { border-top: 1px solid var(--c-line) !important; } }

/* ================= RESTAURANTE ================= */
.split__media { border-radius: 24px; position: relative; }
.split__media .chip { position: absolute; left: 16px; bottom: 16px; z-index: 2; }
.band-dark .info-list li { border-color: #ffffff26 !important; }

/* ================= POR QUÉ RESERVAR ================= */
.why__item { border-top: 0 !important; padding: 28px !important; border-radius: 22px; background: var(--c-surface); border: 1px solid var(--c-line); transition: transform .5s var(--ease-out), background .5s, color .5s; }
.why__item:hover { transform: translateY(-6px); background: var(--c-accent); color: #fff; }
.why__item:hover p, .why__item:hover .label { color: #e7efe9 !important; }
.why__ico { width: 56px; height: 56px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; margin-bottom: 14px; transition: transform .6s var(--ease-out); }
.why__item:hover .why__ico { transform: rotate(360deg); }
.why__ico .ico { width: 24px; height: 24px; }

/* ================= FAQ ================= */
.faq summary::after { content: "" !important; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--c-ink); top: 18px !important;
  background: linear-gradient(var(--c-ink), var(--c-ink)) center / 12px 1px no-repeat, linear-gradient(var(--c-ink), var(--c-ink)) center / 1px 12px no-repeat;
  transition: transform .45s var(--ease-out), background-color .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--c-sand); }
.faq summary { padding-right: 56px; transition: color .3s, padding-left .4s var(--ease-out); }
.faq summary:hover { padding-left: 8px; color: var(--c-accent); }
.faq details p { animation: rise .6s var(--ease-out); }

/* ================= UBICACIÓN ================= */
.location iframe { border-radius: 24px; }

/* ================= FOOTER CTA ================= */
.footer__cta { margin-bottom: var(--s-6); }
.footer__big { display: inline-flex; align-items: center; gap: .2em; color: var(--c-canvas); text-decoration: none !important; margin-bottom: 0; transition: color .4s; }
.footer__big:hover { color: var(--c-sand); }
.footer__arrow { display: inline-grid; place-items: center; width: .9em; height: .9em; border-radius: 50%; background: var(--c-accent); transition: transform .6s var(--ease-out), background .4s; }
.footer__arrow .ico { width: .45em; height: .45em; }
.footer__big:hover .footer__arrow { transform: rotate(45deg) scale(1.05); background: var(--c-sand); color: var(--c-ink); }

/* ================= UI DE SCROLL ================= */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 70; background: var(--c-accent); transform-origin: 0 50%; transform: scaleX(0); }
.header { transition: transform .5s var(--ease-out), background .3s, color .3s, border-color .3s !important; }
.header.is-hidden { transform: translateY(-100%); }
.to-top {
  position: fixed; right: 20px; bottom: 88px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--c-surface); color: var(--c-ink); display: grid; place-items: center; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s var(--ease-out);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top .ico { width: 18px; height: 18px; position: relative; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--c-accent); stroke-width: 2; }
.to-top::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--c-line); }

.wa-float { transition: background .2s, transform .4s var(--ease-out); }
.wa-float::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--c-accent); animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* Barra inferior móvil */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .wa-float { display: none; }
  .to-top { bottom: 84px; }
  .mobile-bar {
    display: flex; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45;
    padding: 6px; border-radius: 999px; background: rgba(22,26,23,.92); backdrop-filter: blur(10px);
    animation: rise .8s var(--ease-out) 1.4s both;
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; text-decoration: none; min-height: 50px; }
  .mobile-bar__wa { width: 50px; background: #ffffff1a; color: #fff; }
  .mobile-bar__book { flex: 1; background: var(--c-accent); color: #fff; font: 500 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
  .mobile-bar .ico { width: 20px; height: 20px; }
  body { padding-bottom: 76px; }
}

/* ================= FICHA DE ALOJAMIENTO ================= */
.gallery { border-radius: 24px; overflow: hidden; }
.amenities { border-top: 0 !important; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important; }
.amenities li { border: 1px solid var(--c-line) !important; border-radius: 14px; padding: 12px 14px !important; display: flex; gap: 12px; align-items: center; background: var(--c-surface); transition: transform .4s var(--ease-out), border-color .3s; }
.amenities li::before { content: none !important; }
.amenities li:hover { transform: translateY(-3px); border-color: var(--c-ink) !important; }
.amenities li .ico { width: 22px; height: 22px; color: var(--c-accent); }
.rates { border-radius: 24px; border-color: var(--c-line) !important; box-shadow: 0 30px 60px -40px rgba(31,36,32,.5); }
.rates tr { transition: background .3s; }
.rates tr.is-today td { color: var(--c-accent); }
.rates tr.is-today td:first-child::after { content: " · hoy"; font: 500 10px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.rates .booking-mini input { border-radius: 12px; }
.lightbox button { border-radius: 50%; }

/* ================= MOVIMIENTO REDUCIDO ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-letters] .ch, .js [data-split] .w > span, .js .stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ================= AJUSTES MÓVIL ================= */
@media (max-width: 760px) {
  .header .header__actions .btn { display: none; } /* la barra inferior ya ofrece reservar */
  .seal { display: none; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; flex: none; }
  .hero__content { padding-bottom: 96px; } /* deja espacio para la barra inferior */
  .hero .h-display { font-size: 23vw; }
}
