[hidden] { display: none !important; }
:root {
  --azul: #7ccae9;
  --azul-osc: #2f8fb8;
  --amarillo: #fbdc35;
  --verde: #97be4f;
  --coral: #e1867f;
  --crema: #fffbec;
  --crema-2: #f6f1da;
  --tinta: #242321;
  --gris: #6b6a63;
  --linea: #e6e0c8;
  --radio: 22px;
  --sombra: 0 10px 30px rgba(36, 35, 33, 0.1);
  --display: 'Fredoka', system-ui, sans-serif;
  --texto: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font: 400 17px/1.55 var(--texto);
  -webkit-font-smoothing: antialiased;
}
body.sin-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; hyphens: none; }
button, input, select { font: inherit; color: inherit; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 14px 26px; cursor: pointer;
  background: var(--tinta); color: #fff; font-weight: 800; text-decoration: none;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-chico { padding: 9px 18px; font-size: 15px; background: var(--verde); color: var(--tinta); }

/* ---------- Barra ---------- */
.barra {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 10px clamp(16px, 4vw, 48px);
  background: rgba(255, 251, 236, 0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
}
.barra-logo img { height: 46px; width: auto; }
.barra-nav { display: flex; gap: 26px; margin-left: auto; font-weight: 700; font-size: 15px; }
.barra-nav a { text-decoration: none; }
.barra-nav a:hover { color: var(--azul-osc); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 40px;
  max-width: 1240px; margin: 0 auto; padding: clamp(32px, 6vw, 80px) clamp(16px, 4vw, 48px) 56px;
}
.hero-pre { font-weight: 800; color: var(--azul-osc); letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; margin: 0 0 14px; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 700; }
.hero-sub { font-size: 19px; color: var(--gris); max-width: 520px; margin: 18px 0 30px; }
.hero-logo { display: flex; justify-content: center; }
.logo-anim { width: min(100%, 380px); height: auto; overflow: visible; }

/* Buscador */
.buscador {
  position: relative; display: flex; align-items: stretch; gap: 6px;
  background: #fff; border-radius: 999px; padding: 8px; box-shadow: var(--sombra);
  max-width: 600px; border: 1px solid var(--linea);
}
.b-campo {
  display: flex; align-items: center; gap: 14px; background: none; border: 0; cursor: pointer;
  padding: 6px 18px; border-radius: 999px; text-align: left;
}
.b-campo:hover { background: var(--crema); }
#b-fechas { flex: 1; }
.b-par { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.b-campo small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.b-par span, .b-huesp select { font-size: 15px; color: var(--gris); white-space: nowrap; }
.b-sep { width: 1px; align-self: stretch; background: var(--linea); }
.b-huesp { flex-direction: column; align-items: flex-start; gap: 0; }
.b-huesp select { border: 0; background: none; padding: 0; cursor: pointer; }
.b-buscar { background: var(--coral); padding: 12px 28px; }
.buscador-cal {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 15;
  background: #fff; border-radius: var(--radio); box-shadow: var(--sombra); padding: 18px 20px 12px;
  border: 1px solid var(--linea); width: max-content; max-width: calc(100vw - 32px);
}
.buscador-pie { text-align: right; }
.buscador-pie button { background: none; border: 0; text-decoration: underline; font-weight: 700; cursor: pointer; padding: 6px; }

/* ---------- Calendario ---------- */
.cal { position: relative; }
.cal-nav { position: absolute; inset: 0 0 auto; display: flex; justify-content: space-between; pointer-events: none; }
.cal-flecha {
  pointer-events: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--linea);
  background: #fff; cursor: pointer; font-size: 20px; line-height: 1;
}
.cal-flecha:disabled { opacity: 0.3; cursor: default; }
.cal-meses { display: flex; gap: 32px; }
.cal-mes { width: 294px; }
.cal-titulo { text-align: center; font-family: var(--display); font-weight: 600; font-size: 18px; text-transform: capitalize; height: 34px; line-height: 34px; margin-bottom: 8px; }
.cal-grilla { display: grid; grid-template-columns: repeat(7, 42px); row-gap: 2px; }
.cal-dow { text-align: center; font-size: 12px; font-weight: 800; color: var(--gris); padding: 4px 0; }
.cal-dia {
  height: 42px; border: 0; background: none; border-radius: 50%; cursor: pointer; font-weight: 700; font-size: 15px; position: relative;
}
.cal-dia:hover:not(:disabled) { outline: 2px solid var(--tinta); outline-offset: -2px; }
.cal-dia:disabled { cursor: default; }
.cal-dia.is-pasado, .cal-dia.is-bloqueado { color: #c9c4ae; }
.cal-dia.is-ocupado { color: #a9a48d; text-decoration: line-through; background: repeating-linear-gradient(45deg, #efeadb 0 3px, transparent 3px 6px); border-radius: 10px; }
.cal-dia.is-ocupado:not(:disabled) { text-decoration: none; color: var(--tinta); background: none; border-radius: 50%; }
.cal-dia.is-hoy::after { content: ''; position: absolute; bottom: 6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--coral); }
.cal-dia.is-rango { background: #e3f4fb; border-radius: 0; }
.cal-dia.is-inicio, .cal-dia.is-fin, .cal-dia.is-elegido { background: var(--tinta); color: #fff; }
.leyenda { font-size: 14px; color: var(--gris); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ley { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.ley-ocup { background: repeating-linear-gradient(45deg, #ddd8c2 0 3px, #fff 3px 6px); border: 1px solid #ddd8c2; }
.ley-sel { background: var(--tinta); margin-left: 8px; }

/* ---------- Secciones ---------- */
.seccion, .duenos { scroll-margin-top: 80px; }
.seccion { max-width: 1240px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 48px); }
.seccion-cab { margin-bottom: 30px; }
.seccion-cab h2 { font-size: clamp(32px, 4vw, 48px); }
.seccion-cab p { color: var(--gris); margin: 10px 0 0; max-width: 560px; }
.lista-aviso { background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: 12px 18px; font-weight: 700; }
.lista-aviso button { background: none; border: 0; text-decoration: underline; font-weight: 800; cursor: pointer; color: var(--azul-osc); }

.lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px 24px; }
.depto-link { text-decoration: none; display: block; }
.depto-fotos {
  position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radio);
  aspect-ratio: 4 / 3.4; background: var(--crema-2); scrollbar-width: none;
}
.depto-fotos::-webkit-scrollbar { display: none; }
.depto-fotos img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; transition: transform 0.4s; }
.depto-barrio, .depto-chip {
  position: absolute; top: 12px; left: 12px; background: #fff; border-radius: 999px; padding: 4px 12px;
  font-size: 13px; font-weight: 800; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.depto-chip { left: auto; right: 12px; background: #eee9d3; }
.depto-chip.ok { background: var(--verde); }
.depto-info { padding: 12px 4px 0; }
.depto-fila { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.depto-fila h3 { font-size: 22px; }
.estrella { font-weight: 800; font-size: 15px; white-space: nowrap; }
.estrella small { font-weight: 600; color: var(--gris); }
.nuevo { font-size: 12px; font-weight: 800; background: var(--amarillo); border-radius: 999px; padding: 2px 10px; }
.depto-sub { margin: 4px 0; color: var(--gris); font-size: 15px; }
.depto-precio { margin: 0; }
.depto-precio span { color: var(--gris); text-decoration: underline; }
.depto.no-disp { opacity: 0.45; }
.depto.esqueleto { aspect-ratio: 4 / 4; border-radius: var(--radio); background: linear-gradient(90deg, var(--crema-2), #fff, var(--crema-2)); background-size: 200% 100%; animation: brillo 1.4s infinite; }
@keyframes brillo { to { background-position: -200% 0; } }

/* Cómo */
.pasos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pasos li { background: #fff; border-radius: var(--radio); padding: 28px; border: 1px solid var(--linea); }
.paso-n {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--display); font-weight: 700; font-size: 22px; background: var(--azul); margin-bottom: 14px;
}
.pasos li:nth-child(2) .paso-n { background: var(--amarillo); }
.pasos li:nth-child(3) .paso-n { background: var(--verde); }
.pasos h3 { font-size: 22px; margin-bottom: 6px; }
.pasos p { margin: 0; color: var(--gris); }

/* Dueños */
.duenos {
  max-width: 1144px; margin: 40px auto 70px; padding: 44px clamp(24px, 5vw, 56px); border-radius: 32px;
  background: var(--azul); display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.duenos h2 { font-size: clamp(30px, 4vw, 44px); }
.duenos p { margin: 10px 0 0; max-width: 560px; }
.btn-oscuro { flex: none; }
@media (max-width: 1240px) { .duenos { margin-left: clamp(16px, 4vw, 48px); margin-right: clamp(16px, 4vw, 48px); } }

/* Pie */
.pie { border-top: 1px solid var(--linea); padding: 40px clamp(16px, 4vw, 48px); display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.pie-logo { height: 70px; width: auto; }
.pie-links { display: flex; gap: 22px; font-weight: 700; }
.pie-credito { margin: 0 0 0 auto; font-size: 13px; color: var(--gris); }

/* ---------- Ficha ---------- */
.ficha { position: fixed; inset: 0; z-index: 50; background: var(--crema); overflow-y: auto; animation: entrar 0.25s ease-out; }
@keyframes entrar { from { opacity: 0; transform: translateY(16px); } }
.ficha-cerrar {
  position: fixed; top: 16px; right: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; box-shadow: var(--sombra); font-size: 18px; cursor: pointer;
}
.ficha-cuerpo { max-width: 1180px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 60px; }
.galeria {
  display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px;
  border-radius: var(--radio); overflow: hidden;
}
.galeria img { width: 100%; height: 100%; object-fit: cover; }
.galeria img:first-child { grid-row: span 2; }
.galeria img:nth-child(n + 6) { display: none; }
.ficha-grid { display: grid; grid-template-columns: 1fr 380px; gap: 56px; margin-top: 32px; align-items: start; }
.ficha-barrio { font-weight: 800; color: var(--azul-osc); margin: 0 0 6px; }
.ficha-texto h2 { font-size: clamp(34px, 4vw, 48px); }
.ficha-amb { color: var(--gris); margin: 10px 0 0; }
.ficha-desc { font-size: 18px; margin: 22px 0 30px; padding-bottom: 28px; border-bottom: 1px solid var(--linea); }
.ficha-texto h4 { font-size: 22px; margin: 0 0 14px; }
.comodidades { list-style: none; padding: 0; margin: 0 0 34px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.comodidades li::before { content: '✓'; color: var(--verde); font-weight: 800; margin-right: 10px; }
.cal-ficha { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 20px; width: max-content; max-width: 100%; }
.cargando { color: var(--gris); margin: 0; }

.reserva { position: sticky; top: 24px; background: #fff; border-radius: var(--radio); padding: 26px; box-shadow: var(--sombra); border: 1px solid var(--linea); }
.reserva-precio { margin: 0 0 16px; font-size: 18px; }
.reserva-precio b { font-family: var(--display); font-size: 28px; font-weight: 600; }
.reserva-fechas { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #cfc9b0; border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.reserva-fechas div { padding: 10px 14px; display: flex; flex-direction: column; }
.reserva-fechas div + div { border-left: 1px solid #cfc9b0; }
.reserva-fechas small, .reserva label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.reserva label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.reserva label small { text-transform: none; font-weight: 600; color: var(--gris); letter-spacing: 0; }
.reserva input, .reserva select {
  font-size: 16px; font-weight: 400; text-transform: none; letter-spacing: 0;
  padding: 11px 13px; border: 1px solid #cfc9b0; border-radius: 12px; background: #fff;
}
.reserva input:focus, .reserva select:focus { outline: 2px solid var(--azul); border-color: var(--azul); }
.desglose { margin: 6px 0 16px; font-size: 16px; }
.desglose div { display: flex; justify-content: space-between; padding: 4px 0; }
.desglose .total { border-top: 1px solid var(--linea); margin-top: 8px; padding-top: 12px; font-weight: 800; }
.desglose-vacio { color: var(--gris); margin: 0; font-size: 15px; }
.aviso-min { color: #b5473e; font-weight: 700; margin: 6px 0 0; font-size: 14px; }
.btn-reservar { width: 100%; background: var(--coral); font-size: 17px; }
.reserva-nota { font-size: 13px; color: var(--gris); text-align: center; margin: 12px 0 0; }
.reserva-error { color: #b5473e; font-weight: 700; margin: 8px 0 0; text-align: center; }
.reserva-error:empty { display: none; }
.reserva-ok { text-align: center; }
.reserva-ok h3 { font-size: 28px; margin: 10px 0; }
.ok-icono { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--verde); font-size: 30px; font-weight: 800; }
.ok-codigo { font-size: 15px; color: var(--gris); }
.btn-wa { background: #25d366; color: #fff; width: 100%; }

/* ---------- Logo animado ---------- */
.logo-anim .let, .logo-anim .house, .logo-anim .flower, .logo-anim .ast, .logo-anim .swirl { transform-box: fill-box; opacity: 0; }
.logo-anim .let { transform-origin: 50% 100%; }
.logo-anim .house { transform-origin: 50% 100%; }
.logo-anim .flower { transform-origin: 50% 50%; }
.logo-anim .ast { transform-origin: 50% 50%; }
.logo-anim .swirl { transform-origin: 80% 90%; }
body.listo .logo-anim .house { animation: pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards, mecer 4s ease-in-out 1.6s infinite; }
body.listo .logo-anim .flower { animation: girar 0.9s cubic-bezier(0.34, 1.4, 0.64, 1) 0.6s forwards, latir 3s ease-in-out 2.2s infinite; }
body.listo .logo-anim .let { animation: caer 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
body.listo .logo-anim .l1 { animation-delay: 0.9s; }
body.listo .logo-anim .l2 { animation-delay: 0.98s; }
body.listo .logo-anim .l3 { animation-delay: 1.06s; }
body.listo .logo-anim .l4 { animation-delay: 1.14s; }
body.listo .logo-anim .l5 { animation-delay: 1.3s; }
body.listo .logo-anim .l6 { animation-delay: 1.38s; }
body.listo .logo-anim .l7 { animation-delay: 1.46s; }
body.listo .logo-anim .l8 { animation-delay: 1.54s; }
body.listo .logo-anim .ast { animation: pop 0.6s ease-out 1.8s forwards, rotar 14s linear 2.4s infinite; }
body.listo .logo-anim .swirl { animation: pop 0.6s ease-out 1.9s forwards, mecer 3s ease-in-out 2.5s infinite; }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes caer { from { opacity: 0; transform: translateY(-90px) scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes girar { from { opacity: 0; transform: rotate(-220deg) scale(0); } to { opacity: 1; transform: none; } }
@keyframes mecer { 0%, 100% { opacity: 1; transform: rotate(-2.5deg); } 50% { opacity: 1; transform: rotate(2.5deg); } }
@keyframes latir { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05) rotate(4deg); } }
@keyframes rotar { from { opacity: 1; transform: rotate(0); } to { opacity: 1; transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .logo-anim .let, .logo-anim .house, .logo-anim .flower, .logo-anim .ast, .logo-anim .swirl { opacity: 1 !important; animation: none !important; }
}

/* ---------- Celular ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-logo { order: -1; }
  .logo-anim { width: min(62vw, 260px); }
  .ficha-grid { grid-template-columns: 1fr; gap: 30px; }
  .reserva { position: static; }
  .pasos { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .barra-nav { display: none; }
  .barra .btn-chico { margin-left: auto; }
  .barra-logo img { height: 40px; }
  .buscador { flex-wrap: wrap; border-radius: 24px; }
  #b-fechas { flex: 1 1 100%; }
  .b-huesp { flex: 1; }
  .buscador-cal { left: 50%; transform: translateX(-50%); padding: 14px 10px 8px; }
  .cal-grilla { grid-template-columns: repeat(7, 40px); }
  .cal-mes { width: 280px; }
  .galeria { grid-template-columns: 1fr; grid-template-rows: none; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 18px; }
  .galeria img { flex: 0 0 88%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .galeria img:nth-child(n + 6) { display: block; }
  .ficha-cuerpo { padding-top: 70px; }
  .cal-ficha { padding: 14px 10px; margin: 0 auto; }
  .comodidades { grid-template-columns: 1fr; }
  .duenos { flex-direction: column; align-items: flex-start; }
  .pie-credito { margin-left: 0; }
}
@media (max-width: 360px) {
  .cal-grilla { grid-template-columns: repeat(7, 36px); }
  .cal-mes { width: 252px; }
}
