/* Hotel Balcón de Cocorná — tarjeta digital v4 */
@font-face { font-family: "Cormorant"; src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("assets/fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --forest: #0a2119;
  --forest-2: #123427;
  --moss: #27503d;
  --paper: #f8f5ee;
  --sand: #efe8da;
  --gold: #d8b763;
  --gold-soft: #ead08c;
  --ink: #1b2922;
  --muted: #66746c;
  --wa: #1fa855;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --pad: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--forest);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Video de fondo único (todas las pantallas) ---------- */
.bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;                    /* no salta cuando se oculta la barra del navegador */
  z-index: 0;
  overflow: hidden;
  background: var(--forest) url("assets/images/fondo-poster.jpg") center / cover no-repeat;
  pointer-events: none;
}
.bg video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.bg::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    linear-gradient(180deg, rgba(6, 22, 16, .55) 0%, rgba(6, 22, 16, .15) 30%, rgba(6, 22, 16, .25) 55%, rgba(6, 22, 16, .85) 100%);
}

/* ---------- Portada: el video se ve completo detrás ---------- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(64px + var(--safe-t)) calc(20px + var(--safe-r)) calc(72px + var(--safe-b)) calc(20px + var(--safe-l));
  color: #fff;
  text-align: center;
}
.play-toggle {
  position: absolute;
  top: calc(14px + var(--safe-t));
  right: calc(14px + var(--safe-r));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: rgba(6, 22, 16, .38);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.play-toggle[hidden] { display: none; }
.play-toggle svg { width: 18px; height: 18px; }

.hero-body { width: 100%; max-width: 420px; margin: 0 auto; }
.hero-logo {
  width: 112px;
  height: 112px;
  margin: 0 auto 14px;
  border-radius: 50%;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
}
.hero-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-soft);
}
.hero-name {
  margin: 2px 0 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 46px;
  font-size: clamp(40px, 12vw, 56px);
  line-height: .95;
  letter-spacing: -.01em;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgba(0, 0, 0, .45);
}
.hero-place {
  margin: 12px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, .88);
}
.hero-place svg { width: 16px; height: 16px; color: var(--gold-soft); }
.hero-tagline {
  margin: 22px auto 22px;
  max-width: 17ch;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  font-size: clamp(25px, 7vw, 32px);
  line-height: 1.08;
  text-wrap: balance;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .45);
}
.hero-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}
.more {
  position: absolute;
  left: 50%;
  bottom: calc(18px + var(--safe-b));
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
}
.more svg { width: 22px; height: 22px; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ---------- Contenido que sube sobre el video ---------- */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--paper);
  border-radius: 28px 28px 0 0;
  overflow: hidden;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .25);
}

/* ---------- Botones ---------- */
.btn {
  min-height: 54px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 21px; height: 21px; flex: none; }
.btn-wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 28px rgba(18, 120, 60, .35);
}
.btn-ghost {
  color: #fff;
  border: 1px solid rgba(234, 208, 140, .8);
  background: rgba(6, 22, 16, .35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-gold {
  width: 100%;
  color: var(--forest);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 10px 24px rgba(185, 143, 54, .25);
}
@media (hover: hover) {
  .btn:hover { filter: brightness(1.06); }
  .social:hover .social-icon { transform: translateY(-2px); background: var(--moss); color: #fff; }
  .pill:hover { background: var(--sand); }
}

/* ---------- Barra de contacto ---------- */
.contact-bar {
  padding: 22px calc(var(--pad) + var(--safe-r)) 22px calc(var(--pad) + var(--safe-l));
  background: #fff;
  border-bottom: 1px solid rgba(27, 41, 34, .07);
}
.socials {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}
.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.social-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-soft);
  background: var(--forest-2);
  border: 1px solid rgba(216, 183, 99, .55);
  box-shadow: inset 0 0 0 3px var(--forest-2), inset 0 0 0 4px rgba(216, 183, 99, .18);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.social-icon svg { width: 21px; height: 21px; }
.social-icon.fb svg { width: 22px; height: 22px; }
.social-icon.call svg { width: 20px; height: 20px; }
.social-label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
}
.utility {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pill {
  min-height: 46px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  border: 1px solid rgba(27, 41, 34, .14);
  border-radius: 999px;
  background: var(--paper);
  color: var(--forest-2);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease;
}
.pill svg { width: 19px; height: 19px; flex: none; }

/* ---------- Secciones ---------- */
.section { padding: 34px calc(var(--pad) + var(--safe-r)) 30px calc(var(--pad) + var(--safe-l)); }
.section-tight { padding-top: 8px; }
.section-title {
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  color: var(--forest);
}
.section-sub {
  margin: 8px 0 20px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* Galería: se desliza con el dedo, con flechas o arrastrando con el mouse */
.carousel { position: relative; }
.gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: calc(var(--pad) + var(--safe-l));
  margin: 0 calc(-1 * (var(--pad) + var(--safe-r))) 0 calc(-1 * (var(--pad) + var(--safe-l)));
  padding: 4px calc(var(--pad) + var(--safe-r)) 12px calc(var(--pad) + var(--safe-l));
  scrollbar-width: none;
}
.gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery:focus-visible { outline-offset: -3px; }
.shot {
  position: relative;
  flex: 0 0 64%;
  max-width: 300px;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--sand);
  box-shadow: 0 10px 24px rgba(10, 33, 25, .12);
  aspect-ratio: 6 / 7;
  -webkit-user-select: none;
  user-select: none;
}
@supports not (aspect-ratio: 1) { .shot { height: 300px; } }
.shot img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.nav-btn {
  position: absolute;
  top: calc(50% - 28px);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(216, 183, 99, .6);
  background: rgba(18, 52, 39, .94);
  color: var(--gold-soft);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
  transition: opacity .2s ease;
}
.nav-btn svg { width: 20px; height: 20px; }
.nav-prev { left: -6px; }
.nav-prev svg { transform: rotate(90deg); }
.nav-next { right: -6px; }
.nav-next svg { transform: rotate(-90deg); }
.nav-btn:disabled { opacity: 0; pointer-events: none; }
.dots { display: none; justify-content: center; gap: 8px; margin-top: 8px; }
.dots button {
  width: 8px; height: 8px; padding: 0;
  border: 0; border-radius: 99px;
  background: rgba(39, 80, 61, .25);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.dots button[aria-current="true"] { width: 22px; background: var(--moss); }
.carousel.can-scroll + .dots { display: flex; }
@media (hover: hover) and (pointer: fine) {
  .carousel.can-scroll .nav-btn { display: grid; }
  .carousel.can-scroll .gallery { cursor: grab; }
}
.shot::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent, rgba(6, 22, 16, .82));
}
.shot figcaption {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  z-index: 1;
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.05;
}

/* Servicios */
.amenities {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
/* Celular: 3 + 3 + 2 (la última fila centrada) */
.amenities li { grid-column: span 2; }
.amenities li:nth-child(7):last-child,
.amenities li:nth-child(7):nth-last-child(2) { grid-column: 2 / span 2; }
.amenities li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 6px 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(27, 41, 34, .07);
  font-size: 13px;
  font-weight: 700;
  color: var(--forest-2);
  text-align: center;
}
.amenities svg { width: 30px; height: 30px; color: var(--moss); }

/* Ubicación */
.visit {
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(27, 41, 34, .08);
  box-shadow: 0 16px 40px rgba(10, 33, 25, .10);
}
.map { height: 280px; background: #e4ebe4; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.visit-body { padding: 20px 18px 20px; }
.visit-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.05;
  color: var(--forest);
}
.visit-sub { margin: 6px 0 14px; font-size: 14px; color: var(--muted); }
.visit-links { display: grid; gap: 2px; margin-bottom: 16px; }
.visit-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 4px;
  border-top: 1px solid rgba(27, 41, 34, .08);
  font-size: 15px;
  font-weight: 700;
  color: var(--forest-2);
  text-decoration: none;
}
.visit-link svg { width: 20px; height: 20px; flex: none; color: var(--moss); }
.visit-link .ext { width: 16px; height: 16px; margin-left: auto; color: var(--muted); }

/* Pie */
.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 24px calc(18px + var(--safe-r)) calc(28px + var(--safe-b)) calc(18px + var(--safe-l));
  background: var(--forest);
  color: #fff;
}
.footer-logo { width: 56px; height: 56px; object-fit: contain; }
.footer-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.footer-name span {
  display: block;
  margin-top: 7px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .64);
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(216, 183, 99, .45);
  color: var(--gold-soft);
}
.footer-social svg { width: 16px; height: 16px; }

/* Botón flotante de WhatsApp */
.wa-fab {
  position: fixed;
  right: calc(16px + var(--safe-r));
  bottom: calc(16px + var(--safe-b));
  z-index: 20;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest-2);
  color: var(--gold-soft);
  border: 1px solid rgba(216, 183, 99, .6);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
  opacity: 0;
  transform: translateY(16px) scale(.9);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.wa-fab svg { width: 27px; height: 27px; }
.wa-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--safe-b));
  z-index: 30;
  max-width: 90vw;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(10, 33, 25, .95);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  -webkit-transform: translate(-50%, 16px);
  transform: translate(-50%, 16px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0); }

/* ---------- Celulares pequeños ---------- */
@media (max-width: 374px) {
  .social-icon { width: 44px; height: 44px; border-radius: 14px; }
  .social-label { font-size: 10.5px; }
  .pill { font-size: 12px; padding: 0 6px; gap: 5px; }
  .pill svg { width: 16px; height: 16px; }
  .btn { font-size: 14px; padding: 0 12px; }
  .amenities li { font-size: 12px; }
  .section-title { font-size: 34px; }
}

/* ---------- Tablet: la tarjeta se amplía ---------- */
@media (min-width: 640px) {
  :root { --pad: 36px; }
  .bg::after {
    background:
      radial-gradient(ellipse at center, rgba(6, 22, 16, .05), rgba(6, 22, 16, .55)),
      linear-gradient(180deg, rgba(6, 22, 16, .2), rgba(6, 22, 16, .45));
  }
  .hero-body { max-width: 600px; }
  .hero-name { font-size: 64px; }
  .hero-tagline { font-size: 34px; }
  .card {
    width: calc(100% - 48px);
    max-width: 1120px;
    margin: 0 auto 56px;
    border-radius: 32px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* recorte de esquinas en Safari */
  }

  .contact-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px 28px;
    padding-top: 26px;
    padding-bottom: 26px;
  }
  .socials { display: flex; gap: 22px; }
  .utility { margin-top: 0; display: flex; gap: 10px; }
  .pill { padding: 0 20px; }

  .section { padding-top: 52px; padding-bottom: 44px; }
  .section-tight { padding-top: 12px; }
  .section-title { font-size: 46px; }
  .section-sub { font-size: 15px; margin-bottom: 28px; }

  /* 3 fotos visibles; las demás con flechas, arrastre o deslizando */
  .gallery { margin: 0; padding: 4px 0 12px; scroll-padding-left: 0; gap: 16px; }
  .shot { flex-basis: calc((100% - 32px) / 3); max-width: none; }
  .nav-prev { left: -20px; }
  .nav-next { right: -20px; }

  .amenities { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .amenities li,
  .amenities li:nth-child(7):last-child,
  .amenities li:nth-child(7):nth-last-child(2) { grid-column: auto; }

  .visit { display: grid; grid-template-columns: 1.25fr 1fr; }
  .map { height: auto; min-height: 380px; }
  .visit-body { padding: 32px 30px; display: flex; flex-direction: column; justify-content: center; }
  .visit-title { font-size: 36px; }

  .footer { padding: 28px var(--pad); gap: 18px; }
  .footer-logo { width: 64px; height: 64px; }
  .footer-name { font-size: 24px; }
  .wa-fab { right: 28px; bottom: 28px; }
}

/* ---------- Computador: las 4 experiencias a la vista ---------- */
@media (min-width: 1024px) {
  :root { --pad: 56px; }
  .contact-bar { justify-content: space-between; }
  .shot { flex-basis: calc((100% - 48px) / 4); }
  .amenities { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .section-title { font-size: 52px; }
  .map { min-height: 420px; }
}

/* Pantallas bajitas (celular horizontal) */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { padding-top: calc(24px + var(--safe-t)); padding-bottom: calc(56px + var(--safe-b)); }
  .hero-logo { width: 72px; height: 72px; margin-bottom: 8px; }
  .hero-tagline { margin: 10px auto 14px; font-size: 24px; }
  .hero-name { font-size: 40px; }
  .hero-kicker, .hero-place { font-size: 12px; }
  .more { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bg video { display: none; }
  .play-toggle { display: none; }
  .more svg { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
