/* Tokens — Inter, naranja del logo tucasa (#fb6d11), radio 0.5rem */
:root {
  --bg: #fafafa;
  --fg: #1a1a1a;
  --card: #ffffff;
  --muted: #737373;
  --muted-bg: #f3f4f6;
  --border: #e6e6e6;
  --primary: #fb6d11;
  --primary-dark: #d95a08;
  --primary-soft: #fff1e8;
  --dark: #161616;
  --wa: #25d366;
  --radius: 0.5rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 80rem;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px -12px rgba(0,0,0,.15);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--fg); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0 0 1rem; }
.container { max-width: var(--container); margin: 0 auto; padding-inline: 1.5rem; }
.ico { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.25rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: all .2s ease; white-space: nowrap;
  font-family: inherit; line-height: 1.2;
}
.btn--lg { padding: .95rem 1.75rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn--outline { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(6px); }
.btn--outline:hover { background: rgba(255,255,255,.2); }
.btn--outline-dark { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn--outline-dark:hover { background: var(--fg); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1fb959; transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .4s, box-shadow .4s;
  color: #fff;
}
.header.is-scrolled, .header.is-open {
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,.06); color: var(--fg);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; gap: 1rem; }
.brand { display: flex; align-items: center; }
.brand__logo { height: 2.4rem; width: auto; display: block; }
@media (min-width: 40rem) { .brand__logo { height: 2.9rem; } }
.brand__logo--dark { display: none; }
.header.is-scrolled .brand__logo--dark, .header.is-open .brand__logo--dark { display: block; }
.header.is-scrolled .brand__logo--light, .header.is-open .brand__logo--light { display: none; }

.nav { display: none; gap: .25rem; }
.nav a { padding: .5rem .75rem; border-radius: var(--radius); font-size: .9rem; font-weight: 500; opacity: .85; transition: all .2s; }
.nav a:hover { opacity: 1; background: rgba(128,128,128,.12); }
.header__cta { display: none; }
.burger { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer; color: inherit; }
.burger span { width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-open .burger span:nth-child(2) { opacity: 0; }
.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: grid; gap: .25rem; padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s; color: var(--fg); }
.is-open .mobile-nav { max-height: 30rem; padding-bottom: 1.5rem; }
.mobile-nav a:not(.btn) { padding: .75rem 1rem; border-radius: var(--radius); font-weight: 500; }
.mobile-nav a:not(.btn):hover { background: var(--muted-bg); }
.mobile-nav .btn { margin-top: .5rem; }
@media (min-width: 64rem) {
  .nav, .header__cta { display: flex; }
  .burger, .mobile-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 15%;
  opacity: 0; transition: opacity 1.4s ease; will-change: opacity, object-position; }
.hero__img.is-active { opacity: 1; animation: heroPan 8.5s linear forwards; }
@keyframes heroPan { from { object-position: center 12%; } to { object-position: center 50%; } }
@media (prefers-reduced-motion: reduce) { .hero__img.is-active { animation: none; object-position: center 30%; } .hero__img { transition: none; } }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.92) 0%, rgba(10,10,10,.55) 45%, rgba(10,10,10,.25) 100%);
}
.hero__content { position: relative; padding-block: 7rem 5rem; max-width: 52rem; margin-inline: auto 0; width: 100%; }
@media (min-width: 64rem) { .hero__content { margin-inline: auto; padding-inline: 1.5rem; max-width: var(--container); } }
.hero__badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.badge { display: inline-block; padding: .3rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; background: var(--primary); color: #fff; }
.badge--ghost { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.25rem); font-weight: 800; max-width: 16ch; text-wrap: balance; }
.hero__sub { font-size: clamp(1rem, 2vw, 1.25rem); opacity: .9; max-width: 42rem; margin-top: 1.25rem; font-weight: 300; }
.hero__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 2rem; margin: 1.75rem 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.25); }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.hero__stats span { font-size: .8rem; opacity: .75; text-transform: uppercase; letter-spacing: .05em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__price { margin-top: 1.5rem; font-size: 1.25rem; font-weight: 600; opacity: .95; }
.hero__scroll { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); width: 2.5rem; height: 2.5rem; color: rgba(255,255,255,.7); animation: bounce 2s infinite; display: none; }
@media (min-width: 64rem) { .hero__scroll { display: block; } }
@keyframes bounce { 0%,100% { transform: translate(-50%,0);} 50% { transform: translate(-50%,8px);} }

/* ---------- Secciones ---------- */
.section { padding-block: 5rem; }
@media (min-width: 64rem) { .section { padding-block: 7rem; } }
.section--gray { background: var(--muted-bg); }
.section--dark { background: var(--dark); color: #fff; }
.section__head { max-width: 40rem; margin-bottom: 3rem; }
.section__head h2, .detail h2, .location h2, .contact h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1rem; text-wrap: balance; }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow { display: block; color: var(--primary); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; margin-bottom: .75rem; }
.eyebrow--light { color: #ffb27a; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; grid-auto-rows: 42vw; grid-auto-flow: dense; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--muted-bg); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.25), transparent 50%); opacity: 0; transition: opacity .3s; }
.gallery__item:hover::after { opacity: 1; }
@media (min-width: 40rem) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 15rem; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 2; }
}
@media (min-width: 64rem) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 16rem; } }

/* ---------- Detalle ---------- */
.detail { display: grid; gap: 3rem; }
@media (min-width: 64rem) { .detail { grid-template-columns: 1.4fr 1fr; gap: 5rem; align-items: start; } }
.detail__text p { color: #404040; font-size: 1.05rem; }
.detail__text .btn { margin-top: .5rem; }
.detail__card { background: var(--card); border-radius: calc(var(--radius) + 4px); padding: 2rem; box-shadow: var(--shadow); position: sticky; top: 6rem; }
.detail__card h3 { font-size: 1.15rem; margin-bottom: 1.25rem; }
.specs { margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.specs__price { margin-top: 1.5rem; padding: 1.25rem; border-radius: var(--radius); background: var(--muted-bg); display: flex; flex-direction: column; }
.specs__price span { font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); }
.specs__price strong { font-size: 1.6rem; color: var(--primary); }

/* ---------- Features ---------- */
.features { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-bottom: 2.5rem; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 1.1rem 1.15rem; transition: box-shadow .3s, transform .3s; display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; align-items: start; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature__ico { font-size: 1.4rem; line-height: 1.3; grid-row: span 2; }
.feature h3 { font-size: .98rem; margin-bottom: .2rem; }
.feature p { color: var(--muted); font-size: .85rem; margin: 0; line-height: 1.45; }
.checklist { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.checklist h4 { font-size: 1rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--primary); display: inline-block; }
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: .25rem 0 .25rem 1.5rem; position: relative; color: #404040; font-size: .92rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ---------- Ubicación ---------- */
.location { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .location { grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; } }
.location__text p { color: #404040; font-size: 1.05rem; }
.poi { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .75rem; }
.poi li { display: flex; gap: 1rem; align-items: baseline; padding-bottom: .75rem; border-bottom: 1px solid var(--border); }
.poi strong { color: var(--primary); min-width: 5.5rem; font-size: .95rem; }
.location__map { border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; max-width: 100%; }
.location__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 3rem; }
@media (min-width: 64rem) { .contact { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; } }
.contact__text p { opacity: .8; font-size: 1.05rem; max-width: 34rem; }
.contact__phone { margin-top: 1.25rem; font-size: .95rem; }
.contact__phone a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.form { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: calc(var(--radius) + 4px); padding: 2rem; display: grid; gap: 1rem; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 500; opacity: .9; }
.form input, .form textarea {
  width: 100%; padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 1rem; transition: border-color .2s, background .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: #fff; background: rgba(255,255,255,.1); }
.form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form__msg { margin: 0; font-size: .9rem; min-height: 1.2em; }
.form__msg.is-ok { color: #7ee2a0; }
.form__msg.is-error { color: #ff9aa0; }
.form__msg a { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: #0e0e0e; color: rgba(255,255,255,.7); padding-block: 2.5rem; font-size: .875rem; }
.footer__inner { display: grid; gap: 1.5rem; }
.footer__logo { height: 2.6rem; width: auto; display: block; margin-bottom: .6rem; }
.footer p { margin: .25rem 0 0; }
.footer__legal { opacity: .6; }
@media (min-width: 40rem) { .footer__inner { grid-template-columns: 1fr auto; align-items: end; } .footer__legal { text-align: right; max-width: 28rem; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 60; width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px -5px rgba(37,211,102,.5); transform: translateY(1rem); opacity: 0; pointer-events: none;
  transition: transform .3s, opacity .3s, scale .2s;
}
.wa-float.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.wa-float:hover { scale: 1.1; }
.wa-float svg { width: 1.75rem; height: 1.75rem; fill: currentColor; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.94); display: none; align-items: center; justify-content: center; padding: 1rem; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { color: rgba(255,255,255,.8); font-size: .9rem; text-align: center; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.08); border: 0; color: #fff; cursor: pointer; border-radius: 50%; width: 3rem; height: 3rem; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.2); }
.lightbox__close { top: 1rem; right: 1rem; font-size: 2rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: .75rem; }
.lightbox__nav--next { right: .75rem; }
.lightbox__count { position: absolute; top: 1.4rem; left: 1.5rem; color: rgba(255,255,255,.7); font-size: .85rem; font-variant-numeric: tabular-nums; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero__scroll { animation: none; } }

/* ---------- Carrusel ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: .25rem;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide {
  flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 16 / 10; border-radius: calc(var(--radius) + 4px);
  overflow: hidden; background: var(--muted-bg); cursor: zoom-in; position: relative;
}
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.carousel__slide:hover img { transform: scale(1.03); }
.carousel__slide::after { content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.25rem .9rem; color: #fff; font-size: .9rem; font-weight: 500;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent); }
@media (min-width: 64rem) { .carousel__slide { flex-basis: 78%; aspect-ratio: 16 / 9; } }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--fg); font-size: 1.25rem; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: background .2s, transform .2s; z-index: 2;
}
.carousel__btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.carousel__btn--prev { left: .75rem; } .carousel__btn--next { right: .75rem; }
.carousel__dots { display: flex; justify-content: center; gap: .4rem; margin-top: 1rem; flex-wrap: wrap; }
.carousel__dots button { width: .55rem; height: .55rem; border-radius: 50%; border: 0; padding: 0; background: #cfcfcf; cursor: pointer; transition: background .2s, transform .2s; }
.carousel__dots button.is-active { background: var(--primary); transform: scale(1.3); }

/* ---------- Amenities + reel ---------- */
.amenities { display: grid; gap: 3rem; }
@media (min-width: 64rem) { .amenities { grid-template-columns: 1fr 22rem; gap: 4rem; align-items: start; } .amenities__video { position: sticky; top: 6rem; } }
.amenities__video { max-width: 22rem; margin: 0 auto; width: 100%; }
.phone { position: relative; aspect-ratio: 9 / 16; border-radius: 1.75rem; overflow: hidden; background: #000; box-shadow: 0 25px 50px -12px rgba(0,0,0,.35), 0 0 0 6px #1a1a1a, 0 0 0 7px rgba(255,255,255,.08); max-width: 100%; }
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone__sound { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border-radius: 999px; border: 0; cursor: pointer; background: rgba(0,0,0,.6); color: #fff; font: 600 .8rem/1 var(--font); backdrop-filter: blur(8px); transition: background .2s; white-space: nowrap; }
.phone__sound:hover { background: rgba(0,0,0,.8); }
.phone__sound svg { width: 1rem; height: 1rem; }
.phone.is-unmuted .phone__sound span { display: none; }
.phone.is-unmuted .phone__sound { padding: .55rem; }
.amenities__video-cap { text-align: center; color: var(--muted); font-size: .85rem; margin: .9rem 0 0; }
