/* Base */
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Layout: columna editorial sobria; dos imágenes a sangre que se abren al hacer scroll; habitaciones como planos */
  /* Paleta tomada del logo: dorado y bronce sobre blanco cálido y negro cálido */
  :root {
    --paper: #f6f5f2;      /* fondo blanco cálido */
    --paper-2: #ebe8e2;    /* superficie */
    --ink: #1b1916;        /* texto */
    --muted: #645e55;      /* texto secundario */
    --deep: #1a1714;       /* negro cálido del logo sobre fondo oscuro: bandas oscuras */
    --on-deep: #f1ede6;
    --gold: #8b5f27;       /* acento de texto: bronce del escudo, oscurecido para contraste */
    --brand: #b07a3c;      /* dorado del logo */
    --park: #c9d3c4;       /* solo para el parque en el mapa */
    --line: rgba(27, 25, 22, .14);
    --f-brand: "Marcellus", "Trajan Pro", Georgia, serif;
    --f-display: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, serif;
    --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
    --gutter: clamp(16px, 4vw, 56px);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --paper: #121110; --paper-2: #1c1a17; --ink: #ede9e2; --muted: #a49d92;
      --deep: #070605; --on-deep: #f1ede6; --gold: #d39b55; --brand: #c98f47; --park: #26302a; --line: rgba(237, 233, 226, .14);
      color-scheme: dark;
    }
  }
  :root[data-theme="dark"] {
    --paper: #121110; --paper-2: #1c1a17; --ink: #ede9e2; --muted: #a49d92;
    --deep: #070605; --on-deep: #f1ede6; --gold: #d39b55; --brand: #c98f47; --park: #26302a; --line: rgba(237, 233, 226, .14);
    color-scheme: dark;
  }

  * { box-sizing: border-box; }
  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.6;
  }
  main { overflow-x: clip; }
  section[id] { scroll-margin-top: 84px; }
  .wrap { padding-inline: var(--gutter); max-width: 1280px; margin-inline: auto; }
  h1, h2, h3 { font-family: var(--f-display); font-weight: 400; text-wrap: balance; margin: 0; line-height: 1.04; }
  p { margin: 0; text-wrap: pretty; }
  a { color: inherit; }
  :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
  .label {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
  }
  .section { padding-block: clamp(72px, 12vh, 140px); }
  .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 16px clamp(24px, 6vw, 96px);
    align-items: end;
    margin-bottom: clamp(36px, 6vh, 64px);
  }
  .section-head h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
  .section-head p { color: var(--muted); max-width: 52ch; }

  /* Botón con relleno al pasar el ratón (adaptado de InteractiveHoverButton):
     un punto se expande hasta llenar el botón y el texto entra con una flecha */
  .btn {
    --fill: var(--ink); --fill-text: var(--paper);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 22px 13px 34px;
    border-radius: 999px;
    border: 1px solid var(--ink);
    background: transparent; color: var(--ink);
    font: 500 15px/1.3 var(--f-body);
    text-decoration: none;
    cursor: pointer;
  }
  .btn.solid { background: var(--ink); color: var(--paper); --fill: var(--brand); --fill-text: #1a1714; }
  .btn-label { display: inline-block; transition: transform .3s ease, opacity .3s ease; }
  .btn-dot {
    position: absolute; z-index: -1;
    left: 16px; top: calc(50% - 4px);
    width: 8px; height: 8px; border-radius: 8px;
    background: var(--fill);
    transition: all .3s ease;
  }
  .btn-hover {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    color: var(--fill-text);
    opacity: 0; transform: translateX(48px);
    transition: transform .3s ease, opacity .3s ease;
  }
  .btn-hover svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  /* el efecto de hover solo en dispositivos con ratón; en táctiles no se queda "pegado" tras tocar */
  .btn:focus-visible .btn-label { transform: translateX(48px); opacity: 0; }
  .btn:focus-visible .btn-hover { transform: translateX(0); opacity: 1; }
  .btn:focus-visible .btn-dot { left: 0; top: 0; width: 100%; height: 100%; border-radius: 999px; transform: scale(1.8); }
  .btn.solid:focus-visible { border-color: var(--fill); }
  @media (hover: hover) {
    .btn:hover .btn-label { transform: translateX(48px); opacity: 0; }
    .btn:hover .btn-hover { transform: translateX(0); opacity: 1; }
    .btn:hover .btn-dot { left: 0; top: 0; width: 100%; height: 100%; border-radius: 999px; transform: scale(1.8); }
    .btn.solid:hover { border-color: var(--fill); }
  }
  .btn:active { transform: scale(.98); }
  @media (prefers-reduced-motion: reduce) {
    .btn-label, .btn-dot, .btn-hover { transition: none; }
  }

  /* ---------- Bienvenida (siempre en negro, como el logo sobre fondo oscuro) ---------- */
  .splash {
    position: fixed; inset: 0; z-index: 100;
    display: grid; place-items: center;
    padding-inline: 16px;
    background: #0b0907;
    overflow: hidden;
    cursor: pointer;
    animation: splash-out 1s ease-in-out 3s forwards;
  }
  /* resplandor dorado detrás del logo */
  .splash::before {
    content: "";
    position: absolute; left: 50%; top: 50%;
    width: min(900px, 160vw); aspect-ratio: 1;
    translate: -50% -55%;
    background: radial-gradient(circle, rgba(201, 143, 71, .34) 0%, rgba(201, 143, 71, .12) 32%, rgba(201, 143, 71, 0) 62%);
    animation: splash-glow 3.2s ease-out both;
  }
  .splash.is-leaving { animation: splash-out .6s ease-in-out forwards; }
  .splash-inner { position: relative; display: grid; justify-items: center; gap: 16px; text-align: center; }
  .splash-logo { position: relative; width: min(240px, 58vw); animation: splash-in 1.1s cubic-bezier(.2, .7, .2, 1) .15s both; }
  .splash-logo img { display: block; width: 100%; height: auto; }
  /* destello que recorre el logo */
  .splash-shine {
    position: absolute; inset: 0;
    -webkit-mask: url("../assets/logo-emblema.png") center / contain no-repeat;
    mask: url("../assets/logo-emblema.png") center / contain no-repeat;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 238, 205, .95) 50%, transparent 62%) 160% 0 / 250% 100% no-repeat;
    animation: splash-shine 1.5s ease-in-out 1.1s both;
  }
  .splash-title { display: flex; align-items: center; gap: 16px; }
  .splash-rule {
    width: clamp(36px, 10vw, 90px); height: 1px;
    background: linear-gradient(90deg, rgba(201, 143, 71, 0), #c98f47);
    animation: splash-rule 1s cubic-bezier(.2, .7, .2, 1) .7s both;
    transform-origin: right;
  }
  .splash-rule:last-child { background: linear-gradient(90deg, #c98f47, rgba(201, 143, 71, 0)); transform-origin: left; }
  .splash-name {
    font-family: var(--f-brand); font-size: clamp(1.05rem, 4vw, 1.5rem);
    letter-spacing: .42em; padding-left: .42em; color: #c98f47;
    animation: splash-in 1s cubic-bezier(.2, .7, .2, 1) .5s both;
  }
  @keyframes splash-glow { 0% { opacity: 0; transform: scale(.55); } 45% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }
  @keyframes splash-shine { from { background-position: 160% 0; } to { background-position: -60% 0; } }
  @keyframes splash-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .splash-welcome {
    font-family: var(--f-mono); font-size: 12px; letter-spacing: .32em; padding-left: .32em;
    text-transform: uppercase; color: #a49d92;
    animation: splash-in 1s ease .95s both;
  }
  @keyframes splash-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
  @keyframes splash-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }
  @media (prefers-reduced-motion: reduce) {
    .splash { animation-delay: 1.2s; }
    .splash::before, .splash-logo, .splash-name, .splash-welcome, .splash-rule { animation: none; }
    .splash-shine { display: none; }
  }

  /* ---------- Cabecera ---------- */
  .top {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 30;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
  .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand); }
  /* el logo se usa como máscara: toma el color de --brand en tema claro y oscuro */
  /* emblema a color (escudo + ornamentos) con fondo transparente */
  .logo-emblem { display: block; height: 54px; width: auto; }
  .logo-full {
    display: block;
    background: var(--brand);
    -webkit-mask: var(--src) center / contain no-repeat;
    mask: var(--src) center / contain no-repeat;
  }
  .logo-full { --src: url("../assets/logo-hotel-david.png"); width: min(280px, 100%); aspect-ratio: 900 / 408; }
  .brand-word { font-family: var(--f-brand); font-size: 1.15rem; letter-spacing: .32em; line-height: 1; padding-top: 2px; }
  .nav { display: flex; gap: 28px; font-size: 15px; }
  .nav a { text-decoration: none; color: var(--muted); }
  .nav a:hover { color: var(--ink); }
  .top-actions { display: flex; align-items: center; gap: 12px; }
  .lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
  .lang button {
    min-width: 36px; height: 30px; padding: 0 8px;
    border: 0; border-radius: 999px;
    background: transparent; color: var(--muted);
    font: 500 12px var(--f-mono); letter-spacing: .08em;
    cursor: pointer;
  }
  .lang button:hover { color: var(--ink); }
  .lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
  .top .btn { padding: 9px 18px 9px 30px; font-size: 14px; }
  .top .btn .btn-dot { left: 13px; }

  /* ---------- Portada ---------- */
  .hero { padding-block: clamp(48px, 9vh, 104px) clamp(32px, 6vh, 64px); }
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 32px clamp(24px, 5vw, 80px);
    align-items: center;
  }
  .hero-copy { display: grid; gap: 28px; align-content: center; }
  .hero-copy .label { margin-bottom: 0; }
  .hero h1 { font-size: clamp(3.2rem, 7.4vw, 7rem); line-height: .92; letter-spacing: -.01em; }
  .hero-fig { margin: 0; justify-self: end; width: 100%; max-width: 460px; }
  .hero-night {
    display: block; width: 100%; height: auto; max-height: 78vh; object-fit: cover;
    aspect-ratio: 1082 / 1280;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  }
  @media (max-width: 760px) {
    .hero-fig { justify-self: stretch; max-width: none; }
    .hero-night { aspect-ratio: 4 / 5; border-radius: 14px; }
  }
  .hero h1 em { font-style: italic; color: var(--gold); }
  .hero-side { display: grid; gap: 24px; }
  .hero-side p { font-size: 1.15rem; max-width: 38ch; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .hero .label { display: block; margin-bottom: 24px; }

  .score {
    display: flex; align-items: center; gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }
  .score-link { margin-top: 10px; font-size: 15px; }
  .score-link a { color: var(--gold); }
  .score b {
    font-family: var(--f-display); font-weight: 500;
    font-size: 2.6rem; line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .score div { display: grid; line-height: 1.35; }
  .score small { color: var(--muted); font-size: 14px; }

  /* Imagen que se abre al hacer scroll */
  .expand {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: var(--paper-2);
    clip-path: inset(0% var(--gutter) round 20px);
  }
  .expand img {
    position: absolute; left: 0; top: -10%;
    width: 100%; height: 120%;
    max-width: none; object-fit: cover; display: block;
  }
  .expand figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 56px calc(var(--gutter) + clamp(0px, 3vw, 32px)) 20px;
    background: linear-gradient(rgba(10, 8, 6, 0), rgba(10, 8, 6, .6));
    color: #f2efe8;
    font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  }

  /* ---------- Razones ---------- */
  .reasons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px clamp(20px, 3vw, 40px);
  }
  .reason { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 1px solid var(--ink); }
  .reason .label { color: var(--gold); }
  .reason h3 { font-size: 1.6rem; }
  .reason p { color: var(--muted); font-size: 16px; }

  /* ---------- Fotos de habitación: carrusel con deslizamiento nativo; el plano es la última imagen ---------- */
  .room-media { position: relative; border-radius: 12px; overflow: hidden; background: var(--paper); }
  .rm-track {
    display: flex;
    aspect-ratio: 3 / 2;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .rm-track::-webkit-scrollbar { display: none; }
  .rm-track > * { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; }
  .rm-photo { object-fit: cover; display: block; max-width: none; }
  /* habitaciones aún sin fotos */
  .room-soon {
    aspect-ratio: 3 / 2; max-width: 100%;
    display: grid; place-content: center; justify-items: center; gap: 12px;
    border-radius: 12px;
    background: var(--paper-2);
    color: var(--muted);
    font: 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  }
  .room-soon img { width: 96px; height: auto; opacity: .45; }
  .rm-nav {
    position: absolute; top: 50%; translate: 0 -50%;
    width: 36px; height: 36px; display: grid; place-items: center;
    border: 0; border-radius: 50%;
    background: rgba(18, 16, 13, .55); color: #fff; cursor: pointer;
    transition: background .2s, opacity .2s;
  }
  .rm-nav:hover { background: rgba(18, 16, 13, .8); }
  .rm-nav:disabled { opacity: 0; pointer-events: none; }
  .rm-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .rm-prev { left: 8px; }
  .rm-next { right: 8px; }
  .rm-count {
    position: absolute; right: 8px; bottom: 8px;
    padding: 3px 9px; border-radius: 999px;
    background: rgba(18, 16, 13, .55); color: #fff;
    font: 500 11px var(--f-mono); letter-spacing: .06em; font-variant-numeric: tabular-nums;
  }

  /* ---------- Galería: Establecimiento ---------- */
  .gallery-title {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    margin-bottom: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }
  .gallery {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: clamp(150px, 19vw, 270px);
    gap: 12px;
  }
  .gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: var(--paper-2); }
  .gallery img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
  /* fila 1: tres fotos iguales · fila 2: dos fotos iguales */
  .g1, .g2, .g3 { grid-column: span 4; }
  .g4, .g5 { grid-column: span 6; }
  @media (hover: hover) { .gallery figure:hover img { transform: scale(1.04); } }
  @media (max-width: 760px) {
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; gap: 8px; }
    .g1 { grid-column: span 2; }
    .g2, .g3, .g4, .g5 { grid-column: span 1; }  }

  .bf-photo { width: 100%; height: auto; margin-top: 28px; border-radius: 14px; display: block; }

  /* ---------- Habitaciones ---------- */
  .filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; }
  .filter .label { margin-right: 8px; }
  .chip {
    font: 500 14px var(--f-body);
    min-width: 44px; height: 40px; padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent; color: var(--ink);
    cursor: pointer;
    font-variant-numeric: tabular-nums;
  }
  .chip:hover { border-color: var(--ink); }
  .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .filter-note { margin-left: auto; color: var(--muted); font-size: 14px; }

  .rooms {
    list-style: none; margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
  .room {
    display: grid;
    grid-template-rows: auto auto 1fr auto auto;
    gap: 14px;
    padding: 26px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: opacity .3s, background .3s;
  }
  /* las tarjetas de una misma fila comparten filas: título, foto, texto y datos quedan a la misma altura */
  @supports (grid-template-rows: subgrid) {
    .room { grid-row: span 5; grid-template-rows: subgrid; row-gap: 14px; }
  }
  .room.is-out { opacity: .32; }
  .room.is-in { background: var(--paper-2); }
  .room-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .room h3 { font-size: 1.75rem; }
  .cap { white-space: nowrap; color: var(--gold); }
  .room p { color: var(--muted); font-size: 15.5px; }
  .room dl { margin: 0; display: grid; gap: 0; font-size: 14px; }
  .room dl div { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; border-top: 1px solid var(--line); }
  .room dt { color: var(--muted); }
  .room dd { margin: 0; text-align: right; }

  .included {
    margin-top: 28px;
    display: flex; flex-wrap: wrap; gap: 8px 22px;
    font-size: 15px; color: var(--muted);
  }
  .included strong { color: var(--ink); font-weight: 600; }

  /* ---------- Desayuno ---------- */
  .breakfast { background: var(--deep); color: var(--on-deep); }
  .breakfast .label { color: color-mix(in srgb, var(--on-deep) 70%, transparent); }
  .breakfast-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px clamp(24px, 6vw, 96px);
    padding-block: clamp(56px, 10vh, 110px);
  }
  .breakfast h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-block: 14px 20px; }
  .breakfast h2 em { color: #d6a35f; }
  .breakfast-grid > div > p { max-width: 44ch; opacity: .85; }
  .menu { list-style: none; margin: 0; padding: 0; align-self: end; }
  .menu li {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding-block: 14px;
    border-bottom: 1px solid rgba(214, 163, 95, .28);
    font-family: var(--f-display); font-size: 1.45rem;
  }
  .menu li span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .65; text-align: right; }
  .breakfast .expand { background: var(--deep); }

  /* ---------- Servicios ---------- */
  .services {
    list-style: none; margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
  }
  .services li {
    display: flex; align-items: center; gap: 14px;
    padding: 20px 8px 20px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .services svg { width: 26px; height: 26px; flex: none; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

  .extra {
    display: flex; align-items: center; gap: 8px;
    margin-top: 16px;
    font-size: 13.5px; color: var(--muted);
  }
  .extra svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .hours {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px; margin: 28px 0 0;
  }
  .hours div { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; }
  .hours dd { margin: 0; color: var(--muted); font-size: 15px; }
  .hours small { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
  .hours b { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; color: var(--ink); font-variant-numeric: tabular-nums; }
  @media (max-width: 560px) { .hours { grid-template-columns: minmax(0, 1fr); } .hours div { grid-template-columns: 1fr auto; align-items: baseline; } }

  /* ---------- WhatsApp flotante + barra de reserva móvil ---------- */
  .wa-float {
    position: fixed; z-index: 40;
    right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: 56px; height: 56px; border-radius: 50%;
    display: grid; place-items: center;
    background: #25d366; color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    transition: transform .2s, bottom .3s;
  }
  .wa-float svg { width: 30px; height: 30px; fill: currentColor; }
  .wa-float:hover { transform: scale(1.06); }
  .book-bar { display: none; }
  @media (max-width: 760px) {
    .book-bar {
      position: fixed; z-index: 39; left: 0; right: 0; bottom: 0;
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
      padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
      background: color-mix(in srgb, var(--paper) 94%, transparent);
      backdrop-filter: blur(10px);
      border-top: 1px solid var(--line);
      transform: translateY(110%);
      transition: transform .3s ease;
    }
    .book-bar.is-on { transform: none; }
    .book-bar-text { display: grid; line-height: 1.25; font-size: 12.5px; color: var(--muted); }
    .book-bar-text b { color: var(--ink); font-weight: 600; font-size: 13.5px; }
    .book-bar .btn { padding: 10px 16px 10px 28px; font-size: 14px; }
    .book-bar .btn .btn-dot { left: 11px; }
    body.has-bar .wa-float { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
    footer { padding-bottom: 110px; }
  }
  @media (prefers-reduced-motion: reduce) { .book-bar, .wa-float { transition: none; } }

  .extras { display: grid; gap: 0; }
  .extras .extra + .extra { margin-top: 6px; }
  /* ---------- Opiniones (tarjetas escalonadas) ---------- */
  .reviews-note { display: inline-block; margin-top: 10px; color: var(--gold); }
  .stagger {
    --size: 340px;
    position: relative;
    height: 560px;
    overflow: hidden;
    outline: none;
  }
  .stagger:focus-visible { box-shadow: inset 0 0 0 2px var(--gold); }
  .t-card {
    position: absolute; left: 50%; top: 46%;
    width: var(--size); height: var(--size);
    max-width: calc(100vw - 32px);
    padding: 28px;
    display: grid; grid-template-rows: auto 1fr auto; gap: 14px;
    background: var(--paper);
    color: var(--ink);
    border: 1.5px solid var(--line);
    clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%);
    cursor: pointer;
    transition: transform .55s cubic-bezier(.2, .7, .2, 1), background-color .35s, color .35s, border-color .35s;
  }
  .t-card::after {
    content: "";
    position: absolute; right: -1px; top: 43px;
    width: 62.2px; height: 1.5px;
    background: var(--line);
    transform: rotate(45deg); transform-origin: top right;
  }
  .t-card:hover { border-color: var(--gold); }
  .t-card.is-center { background: var(--deep); color: var(--on-deep); border-color: var(--brand); cursor: default; }
  .t-card.is-center::after { background: var(--brand); }
  .t-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .t-initial {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--f-display); font-size: 1.3rem;
    border: 1px solid currentColor;
  }
  /* estrellas parcialmente rellenas según la nota real (--pct) */
  .t-stars {
    font-size: 19px; letter-spacing: 2px; line-height: 1;
    background: linear-gradient(90deg, var(--brand) var(--pct, 100%), rgba(160, 150, 135, .35) var(--pct, 100%));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
  .t-long .t-text { font-size: 1.04rem; }
  @media (max-width: 640px) { .t-long .t-text { font-size: .94rem; } }
  .t-text { font-family: var(--f-display); font-size: 1.22rem; line-height: 1.3; margin: 0; }
  .t-by { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
  .stagger-nav {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px;
  }
  .stagger-nav button {
    width: 52px; height: 52px;
    display: grid; place-items: center;
    background: var(--paper); color: var(--ink);
    border: 1.5px solid var(--line);
    cursor: pointer;
    transition: background .2s, color .2s;
  }
  .stagger-nav button:hover { background: var(--ink); color: var(--paper); }
  .stagger-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  @media (max-width: 640px) {
    .stagger { --size: 272px; height: 480px; }
    .t-card { padding: 22px; }
    .t-text { font-size: 1.08rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    .t-card { transition: none; }
  }

  /* ---------- Corazón + opinión en Google ---------- */
  .love {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
    gap: 20px 32px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
  }
  .love-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
  .heart {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 18px 10px 12px; border-radius: 999px;
    border: 1px solid var(--line); background: transparent; color: var(--ink);
    font: 500 15px var(--f-body); cursor: pointer;
    transition: border-color .2s, background .2s;
  }
  .heart svg { width: 26px; height: 26px; fill: none; stroke: #c0392b; stroke-width: 1.8; transition: fill .25s, transform .25s; }
  .heart:hover:not(.is-on) { border-color: #c0392b; }
  .heart:hover:not(.is-on) svg { transform: scale(1.08); }
  .heart.is-on { cursor: default; border-color: color-mix(in srgb, #c0392b 45%, transparent); }
  .heart.is-on svg { fill: #c0392b; }
  .heart.pop svg { animation: heart-pop .5s ease; }
  @keyframes heart-pop { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }
  @media (prefers-reduced-motion: reduce) { .heart.pop svg { animation: none; } }

  /* ---------- Ubicación ---------- */
  .where {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 40px clamp(24px, 6vw, 96px);
    align-items: center;
  }
  .where address { font-style: normal; font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.25; margin-block: 16px 28px; }
  .dist { margin: 0 0 28px; display: grid; }
  .dist div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-top: 1px solid var(--line); }
  .dist dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
  .map-box { background: var(--paper-2); border-radius: 18px; padding: clamp(12px, 2vw, 24px); }
  .map-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 999px; }
  .map-tabs button {
    height: 34px; padding: 0 16px; border: 0; border-radius: 999px;
    background: transparent; color: var(--muted);
    font: 500 13px var(--f-body); cursor: pointer;
  }
  .map-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
  .sat {
    position: relative; aspect-ratio: 4 / 3; max-width: 100%;
    border-radius: 12px; overflow: hidden;
    background:
      radial-gradient(circle at 50% 42%, rgba(201, 143, 71, .28), rgba(201, 143, 71, 0) 45%),
      repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 34px),
      repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 34px),
      #15130f;
  }
  .sat iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .sat-poster {
    position: absolute; inset: 0;
    display: grid; place-content: center; justify-items: center; gap: 10px;
    padding: 20px; text-align: center; color: #f1ede6;
  }
  .sat-poster strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
  .sat-addr { color: #b9b0a3; font-size: 14px; margin-bottom: 6px; }
  .sat-poster .label { color: #9c9385; }
  .sat-poster .btn.solid { background: #f1ede6; color: #1a1714; border-color: #f1ede6; }
  .sat-pin { width: 44px; height: 44px; fill: #c98f47; stroke: #15130f; stroke-width: 1.2; }
  .sat-pin circle { fill: #15130f; }
  .sat-fallback { margin: 10px 0 0; }
  .sat-fallback a { color: var(--muted); }
  .map { width: 100%; height: auto; display: block; }
  .map .street { stroke: var(--paper); stroke-linecap: round; fill: none; }
  .map .park { fill: var(--park); }
  .map .tree { fill: color-mix(in srgb, var(--park) 78%, var(--ink)); }
  .map .route { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 5 5; fill: none; }
  .map text { font: 11px var(--f-mono); fill: var(--muted); letter-spacing: .06em; }
  .map .strong { fill: var(--ink); font-weight: 500; }
  .map .pin { fill: var(--gold); }
  .map .metro { fill: var(--ink); }
  .map .metro-t { fill: var(--paper); font-weight: 500; font-size: 11px; }

  /* ---------- Cierre ---------- */
  .cta { border-top: 1px solid var(--line); }
  .contact {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px clamp(24px, 6vw, 96px);
    align-items: end;
  }
  .contact-main { display: grid; gap: 18px; }
  .phone {
    font-family: var(--f-display);
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    user-select: all;
  }
  .channels { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
  .channels a {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding-block: 18px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    font-family: var(--f-display); font-size: 1.5rem;
  }
  .channels a:hover .label { color: var(--gold); }
  /* ---------- Reserva: calendario + datos ---------- */
  .booking {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px clamp(24px, 5vw, 72px);
    padding: clamp(20px, 3vw, 36px);
    margin-bottom: clamp(56px, 9vh, 96px);
    background: var(--paper-2);
    border-radius: 20px;
  }
  .cal { display: grid; gap: 10px; align-content: start; }
  .cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .cal-title { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; text-transform: capitalize; }
  .cal-nav {
    width: 40px; height: 40px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 50%;
    background: transparent; color: var(--ink); cursor: pointer;
  }
  .cal-nav:hover:not(:disabled) { border-color: var(--ink); }
  .cal-nav:disabled { opacity: .3; cursor: default; }
  .cal-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .cal-week span { text-align: center; font: 500 12px var(--f-mono); color: var(--muted); padding-block: 4px; }
  .day {
    aspect-ratio: 1; max-width: 100%;
    display: grid; place-items: center;
    border: 0; border-radius: 10px;
    background: transparent; color: var(--ink);
    font: 500 15px var(--f-body); font-variant-numeric: tabular-nums;
    cursor: pointer;
  }
  .day:hover:not(:disabled) { background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
  .day:disabled { color: var(--muted); opacity: .35; cursor: default; }
  .day.is-today { box-shadow: inset 0 0 0 1px var(--brand); }
  .day.in-range { background: color-mix(in srgb, var(--brand) 22%, var(--paper-2)); border-radius: 0; }
  .day.is-start, .day.is-end { background: var(--ink); color: var(--paper); }
  .day.is-start { border-radius: 10px 0 0 10px; }
  .day.is-end { border-radius: 0 10px 10px 0; }
  .day.is-start.is-end, .day.is-start.solo { border-radius: 10px; }
  .cal-hint { margin: 4px 0 0; color: var(--gold); }

  .book-fields { display: grid; gap: 16px; align-content: start; }
  .stay {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
    padding-bottom: 16px; border-bottom: 1px solid var(--line);
  }
  .stay div { display: grid; gap: 2px; min-width: 0; }
  .stay b { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; line-height: 1.2; }
  .field { display: grid; gap: 6px; min-width: 0; }
  .field-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
  .field input, .field select {
    width: 100%; height: 48px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: 10px;
    background: var(--paper); color: var(--ink);
    font: 400 16px var(--f-body);
  }
  .field input:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
  .field input[aria-invalid="true"] { border-color: #b3261e; }
  .check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
  .check input { width: 18px; height: 18px; accent-color: var(--brand); }
  .check small { color: var(--muted); }
  .book-msg { min-height: 1.4em; margin: 0; font-size: 14px; color: #b3261e; }
  .book-msg.ok { color: var(--muted); }
  .book-send { justify-self: start; }
  .book-privacy { font-size: 13px; color: var(--muted); }
  @media (max-width: 860px) {
    .booking { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 420px) {
    .stay b { font-size: 1.05rem; }
    .field-row { grid-template-columns: minmax(0, 1fr); }
  }

  .room-link {
    font-size: 14px; font-weight: 500;
    color: var(--gold);
    text-decoration: none;
    justify-self: start;
  }
  .room-link:hover { text-decoration: underline; text-underline-offset: 3px; }
  footer { padding-block: 48px 56px; border-top: 1px solid var(--line); }
  footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; }
  .foot-info { display: grid; gap: 6px; text-align: right; }
  @media (max-width: 760px) { .foot-info { text-align: left; } }

  /* ---------- Adaptación por tamaño de pantalla ----------
     ≥1600 monitores grandes · ≤1000 tablets y portátiles pequeños · ≤760 móviles · ≤400 móviles pequeños */
  @media (min-width: 1600px) {
    body { font-size: 18px; }
    .wrap { max-width: 1440px; }
  }
  @media (max-width: 1120px) {
    .nav { display: none; }   /* en tablet y portátiles pequeños el menú no cabe junto al logo; queda el botón Reservar */
  }
  @media (max-width: 1000px) {
    .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .reasons, .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 760px) {
    .hero-grid, .section-head, .breakfast-grid, .where, .contact { grid-template-columns: minmax(0, 1fr); }
    .expand { aspect-ratio: 4 / 3; clip-path: inset(0% var(--gutter) round 14px); }
    .rooms { grid-template-columns: minmax(0, 1fr); }
    .filter-note { margin-left: 0; width: 100%; }
    .brand-word { font-size: .95rem; letter-spacing: .2em; }
    .logo-emblem { height: 44px; }
  }
  @media (max-width: 480px) {
    .reasons, .services { grid-template-columns: minmax(0, 1fr); }
    .phone { font-size: 2rem; }
  }
  @media (max-width: 520px) {
    .brand-word { display: none; }   /* en móviles queda el escudo + idioma + Reservar */
  }
  @media (max-width: 400px) {
    .top-actions { gap: 8px; }
    .lang button { min-width: 32px; padding: 0 6px; }
    .top .btn { padding: 8px 14px 8px 26px; }
    .top .btn .btn-dot { left: 11px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .room { transition: none; }
  }
