/* ==========================================================================
   Hotel Punto Oriente · Tonalá
   Paleta y tipografía tomadas de los flyers del hotel (brand/flyer-*.jpg):
   crema + arena, café oscuro para texto, tostado para acentos, y el dorado
   y el azul del logotipo.
   ========================================================================== */
:root {
  --cream: #F4EEE6;
  --paper: #FBF8F3;
  --sand:  #E9E0D4;
  --line:  #CDBFAE;
  --ink:   #3F3124;
  --ink-2: #6B5A48;
  --tan:   #B08A5B;
  --gold:  #C49A4E;
  --navy:  #23307A;
  --wa:    #25D366;

  --display: "Italiana", "Didot", "Bodoni 72", Georgia, serif;
  --italic:  "Playfair Display", Georgia, serif;
  --script:  "Allura", "Segoe Script", cursive;
  --sans:    "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 4px;
  --shadow: 0 1px 2px rgba(63,49,36,.06), 0 14px 34px -18px rgba(63,49,36,.35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans);
       font-weight: 300; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

.caps { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .22em;
        text-transform: uppercase; color: var(--ink); margin: 0; }
.caps--tan { color: var(--tan); }
.display { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5.4vw, 56px);
           line-height: 1.05; letter-spacing: -.01em; margin: 10px 0 0; color: var(--ink); }
.script { font-family: var(--script); font-size: clamp(40px, 6vw, 60px); line-height: 1;
          color: var(--tan); margin: 0; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-lead { color: var(--ink-2); font-size: 16px; margin: 16px 0 0; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
       background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
       padding: 13px 26px; border-radius: 999px; font-weight: 400; font-size: 15px;
       text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.btn:hover { background: #2C2219; }
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--sm { padding: 9px 20px; font-size: 14px; }
.btn--wa { background: var(--wa); border-color: var(--wa); color: #fff; font-weight: 500; }
.btn--wa:hover { background: #1FB857; }
.btn--wa svg { width: 22px; height: 22px; }
.link { background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--tan);
        font-weight: 500; font-size: 14.5px; }
.link:hover { color: var(--ink); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(244,238,230,.9);
       backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
       border-bottom: 1px solid transparent; transition: border-color .2s;
       padding-top: env(safe-area-inset-top, 0px); }
.nav.scrolled { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.star { width: 34px; height: 34px; color: var(--gold); flex: none; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.05; }
.logo__txt b { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--navy);
               letter-spacing: .02em; }
.logo__txt i { font-family: var(--script); font-style: normal; font-size: 21px; color: var(--tan);
               margin-top: -2px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: 14.5px; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav .btn--sm { margin-left: auto; }
  .logo__txt b { font-size: 17px; }
}

/* ---------- foto estilo negativo (como en los flyers) ---------- */
.film { position: relative; background: #fff; padding: 12px 24px; margin: 0; border: 0;
        box-shadow: var(--shadow); display: block; cursor: default; }
button.film { cursor: zoom-in; transition: transform .25s ease; }
button.film:hover { transform: translateY(-3px) rotate(0deg) !important; }
.film img { width: 100%; height: 100%; object-fit: cover; }
.film::before, .film::after { position: absolute; font-family: var(--mono); font-size: 7.5px;
        letter-spacing: .12em; color: #8C8278; writing-mode: vertical-rl; pointer-events: none; }
.film::before { content: attr(data-n) "  ↓"; left: 7px; top: 14px; }
.film::after { content: "FILM NEGATIVE"; right: 7px; bottom: 14px; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 72px; }
.hero__in { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.hero h1 { margin: 0; font-weight: 400; color: var(--ink); line-height: .92; }
.h1a { display: block; font-family: var(--display); font-size: clamp(52px, 9vw, 104px);
       letter-spacing: -.02em; }
.h1b { display: block; font-family: var(--italic); font-style: italic;
       font-size: clamp(56px, 10vw, 112px); letter-spacing: -.03em; }
.hero .script { margin-top: 6px; }
.lead { font-size: clamp(16px, 1.8vw, 18.5px); color: var(--ink-2); max-width: 44ch; margin: 18px 0 0; }
.from { margin-top: 30px; display: inline-flex; flex-direction: column; align-items: flex-start;
        position: relative; padding: 22px 34px 20px; background: var(--ink); color: var(--paper);
        border-radius: 6px; box-shadow: 0 18px 40px -18px rgba(63,49,36,.7); }
.from::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(196,154,78,.55);
                border-radius: 3px; pointer-events: none; }
.from__k { font-size: 12.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: #E2C58F; }
.from__n { font-family: var(--display); font-weight: 400; font-size: clamp(72px, 11vw, 104px);
           line-height: .95; letter-spacing: -.02em; color: #fff; margin-top: 6px;
           display: flex; align-items: flex-start; }
.from__n small { font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: .12em;
                 color: #E2C58F; margin: 14px 0 0 10px; }
.from__s { margin-top: 6px; font-size: 13.5px; color: #D9CCBC; letter-spacing: .04em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__pics { position: relative; aspect-ratio: 1 / .9; max-width: 560px; width: 100%; justify-self: center; }
.hero__pics .film { position: absolute; }
.film--a { left: 0; top: 0; width: 82%; aspect-ratio: 3/2; transform: rotate(-1.5deg); z-index: 1; }
.film--b { right: 0; top: 34%; width: 38%; aspect-ratio: 2/3; transform: rotate(2.5deg); z-index: 2; }
.film--c { left: 12%; bottom: 0; width: 34%; aspect-ratio: 2/3; transform: rotate(-3deg); z-index: 3; }

@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero__in { grid-template-columns: 1.05fr 1fr; }
}

/* ---------- reservas ---------- */
.book { padding: 0 0 80px; }
.book__card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
              box-shadow: var(--shadow); padding: 28px 24px; }
.book__head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3.6vw, 38px);
                 margin: 0; line-height: 1.1; }
.book__head p { margin: 6px 0 0; color: var(--ink-2); }
.book__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field span { font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field select { width: 100%; min-width: 0; font: inherit; font-weight: 400; color: var(--ink);
        background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
        padding: 12px 12px; height: 48px; appearance: none; -webkit-appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%),
                                  linear-gradient(-45deg, transparent 50%, var(--ink-2) 50%);
                background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px;
                background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.field input:focus, .field select:focus { outline: 2px solid var(--tan); outline-offset: 0; border-color: var(--tan); }
.field--wide, .book__go { grid-column: 1 / -1; }
.book__go { height: 48px; }
@media (max-width: 440px) {
  .book__grid .field:nth-child(1), .book__grid .field:nth-child(2) { grid-column: 1 / -1; }
}
.book__msg { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); min-height: 1.4em; }
.book__msg.err { color: #A0412D; }
.book__alt { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); display: flex; flex-wrap: wrap;
             align-items: baseline; gap: 4px 8px; }
.book__alt[hidden] { display: none; }
@media (min-width: 900px) {
  .book__card { padding: 32px 36px; }
  .book__grid { grid-template-columns: 1.2fr 1.2fr .7fr .7fr 1fr auto; }
  .field--wide { grid-column: auto; }
  .book__go { grid-column: auto; padding: 0 28px; }
}

/* ---------- habitaciones ---------- */
.rooms { padding: 88px 0; background: var(--paper); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.room { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.room + .room { margin-top: 88px; }
.room__pics { position: relative; aspect-ratio: 1 / .82; width: 100%; max-width: 580px; justify-self: center; }
.room__pics .film { position: absolute; padding: 10px 22px; }
.room .film--1 { left: 0; top: 0; width: 76%; aspect-ratio: 3/2; transform: rotate(-1deg); z-index: 1; }
.room .film--2 { right: 0; top: 10%; width: 32%; aspect-ratio: 2/3; transform: rotate(2deg); z-index: 2; }
.room .film--3 { left: 18%; bottom: 0; width: 56%; aspect-ratio: 3/2; transform: rotate(1.2deg); z-index: 3; }
.room__name { font-family: var(--italic); font-style: italic; font-weight: 400;
              font-size: clamp(44px, 6vw, 62px); line-height: 1; margin: 0 0 18px; letter-spacing: -.02em; }
.room__txt .caps { padding: 10px 0 8px; border-top: 1.5px solid var(--ink); }
.amen-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.amen-list li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 400; color: var(--ink); }
.room__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 26px; }
@media (min-width: 900px) {
  .room { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .room--rev .room__pics { order: 2; }
}

/* ---------- videos ---------- */
.videos { padding: 96px 0; }
.sec-head--c { margin-left: auto; margin-right: auto; text-align: center; }
.reels { display: grid; grid-template-columns: 1fr; gap: 34px; max-width: 1000px; margin: 0 auto; }
.reel { padding: 12px 24px 14px; }
.reel:nth-child(1) { transform: rotate(-1.2deg); }
.reel:nth-child(2) { transform: rotate(.8deg); }
.reel:nth-child(3) { transform: rotate(-.6deg); }
.reel video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: var(--sand); display: block; }
.reel figcaption { font-family: var(--italic); font-style: italic; font-size: 22px; text-align: center;
                   margin-top: 10px; color: var(--ink); }
@media (min-width: 560px) { .reels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .reels { grid-template-columns: repeat(3, 1fr); gap: 30px; } }

/* ---------- el hotel ---------- */
.hotel { padding: 96px 0; }
.hotel__in { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.amen-grid { list-style: none; margin: 30px 0 0; padding: 0; display: grid;
             grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 4px 24px; }
.amen-grid li { display: flex; align-items: center; gap: 14px; padding: 12px 0;
                border-bottom: 1px solid var(--line); font-size: 15.5px; font-weight: 400; }
.amen-grid svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--tan);
                 stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.hotel__pics { position: relative; aspect-ratio: 1 / 1.25; width: 100%; max-width: 540px; justify-self: center; }
.hotel__pics .film { position: absolute; padding: 8px 20px; }
.film--t1 { left: 0;   top: 0;     width: 60%; aspect-ratio: 3/2; transform: rotate(-1.5deg); z-index: 1; }
.film--t2 { right: 0;  top: 2.4%;  width: 36%; aspect-ratio: 2/3; transform: rotate(2deg);    z-index: 2; }
.film--t3 { left: 4%;  top: 32%;   width: 58%; aspect-ratio: 3/2; transform: rotate(1deg);    z-index: 3; }
.film--t4 { right: 2%; top: 41.6%; width: 34%; aspect-ratio: 2/3; transform: rotate(-2deg);   z-index: 4; }
.film--t5 { left: 18%; top: 60.8%; width: 32%; aspect-ratio: 2/3; transform: rotate(2.5deg);  z-index: 5; }
@media (min-width: 900px) { .hotel__in { grid-template-columns: 1.1fr 1fr; gap: 64px; } }

/* ---------- Tonalá ---------- */
.tonala { position: relative; padding: 110px 0; text-align: center; color: #fff;
          background: linear-gradient(rgba(40,30,20,.55), rgba(40,30,20,.62)),
                      url("assets/img/dob-1.webp") center / cover no-repeat; }
.tonala .display, .tonala .caps--tan { color: #fff; }
.tonala .caps--tan { color: #EAD6B6; }
.tonala__p { max-width: 38ch; margin: 22px auto 0; font-size: clamp(17px, 2.2vw, 21px); font-weight: 300; }
.tonala .script--sm { font-size: clamp(34px, 5vw, 48px); color: #EAD6B6; margin-top: 28px; }

/* ---------- contacto ---------- */
.contact { padding: 88px 0; }
.contact__in { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.contact__links { display: flex; flex-direction: column; gap: 12px; align-items: stretch; margin-top: 18px; }
.perks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.perks li { padding-left: 18px; border-left: 2px solid var(--tan); }
.perks b { display: block; font-weight: 600; font-size: 16px; color: var(--ink); }
.perks span { font-size: 14.5px; color: var(--ink-2); }
.chat { background: #EFE7DC; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px 16px;
        box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.chat__top { display: flex; align-items: center; gap: 10px; margin: 0 -14px 6px; padding: 12px 16px;
             background: var(--ink); color: var(--paper); }
.chat__top .star { width: 28px; height: 28px; }
.chat__top span { display: flex; flex-direction: column; line-height: 1.2; }
.chat__top b { font-weight: 500; font-size: 14.5px; }
.chat__top i { font-style: normal; font-size: 12px; color: #BFE8C9; }
.msg { margin: 0; max-width: 84%; padding: 9px 12px 6px; border-radius: 10px; font-size: 14.5px;
       font-weight: 400; line-height: 1.4; color: var(--ink); }
.msg span { display: block; text-align: right; font-size: 10.5px; color: #8C8278; margin-top: 2px; }
.msg--in { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.msg--out { background: #DCF3D8; align-self: flex-end; border-top-right-radius: 2px; }
.contact__links .btn { font-size: 15px; overflow-wrap: anywhere; }
@media (min-width: 900px) { .contact__in { grid-template-columns: 1.2fr 1fr; gap: 64px; } }

/* ---------- footer ---------- */
.foot { background: var(--sand); text-align: center; padding: 56px 0 110px; }
.star--lg { width: 64px; height: 64px; margin: 0 auto 12px; }
.foot__name { font-family: var(--display); font-size: 28px; color: var(--navy); margin: 0; letter-spacing: .04em; }
.script--foot { font-size: 34px; margin-top: -2px; }
.foot__small { font-size: 13px; color: var(--ink-2); margin: 18px 0 0; overflow-wrap: anywhere; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
            right: calc(18px + env(safe-area-inset-right, 0px));
            bottom: calc(18px + env(safe-area-inset-bottom, 0px));
            display: grid; place-items: center; background: var(--wa); color: #fff;
            box-shadow: 0 8px 24px rgba(0,0,0,.28); transition: transform .16s, box-shadow .2s; }
.wa-float svg { width: 31px; height: 31px; }
.wa-float:hover { transform: scale(1.06); box-shadow: 0 12px 30px rgba(37,211,102,.45); }
.wa-float:active { transform: scale(.94); }

/* ---------- visor de fotos ---------- */
.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
      border: 0; background: rgba(25,19,13,.94); color: #fff; }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: rgba(25,19,13,.6); }
.lb__fig { margin: 0; max-width: min(92vw, 1400px); text-align: center; }
.lb__fig img { max-width: 100%; max-height: 82vh; margin: 0 auto; object-fit: contain; }
.lb__fig figcaption { margin-top: 12px; font-size: 13.5px; color: #D8CBBB; }
.lb__close, .lb__nav { position: fixed; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
       color: #fff; border-radius: 50%; width: 48px; height: 48px; font-size: 28px; line-height: 1;
       cursor: pointer; display: grid; place-items: center; }
.lb__close:hover, .lb__nav:hover { background: rgba(255,255,255,.2); }
.lb__close { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
.lb__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb__prev, .lb__next { top: auto; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .lb__prev { left: calc(50% - 60px); } .lb__next { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
