/* Barco Hotel · Página de una categoría de habitación (usa los tokens de css/styles.css) */
.room-wrap { padding-block: 28px 96px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--crimson); }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }

.room-head { margin-bottom: 28px; }
.room-head .h2 { font-size: clamp(44px, 6vw, 76px); }
.room-head .body-lg { margin-top: 14px; max-width: 640px; }
.h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); line-height: 1.15; margin-bottom: 20px; }

/* Galería */
.gallery { display: grid; gap: 12px; border-radius: var(--radius-lg); overflow: hidden; }
.gal-1 { grid-template-columns: 1fr; }
.gal-1 .gal-item { aspect-ratio: 16 / 8; }
.gal-2 { grid-template-columns: 1.6fr 1fr; height: min(64vh, 560px); }
.gal-3 { grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; height: min(64vh, 560px); }
.gal-3 .gal-main { grid-row: span 2; }
.gal-item { position: relative; display: block; padding: 0; border: 0; background: #DCD3C2; cursor: zoom-in; overflow: hidden; min-height: 220px; }
.gal-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.gal-item:hover img { transform: scale(1.04); }
.gal-item:focus-visible { outline-offset: -4px; }

/* Contenido */
.room-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; margin-top: 48px; }
.room-main { display: flex; flex-direction: column; gap: 56px; min-width: 0; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div:nth-child(3n) { border-right: 0; }
.facts div:nth-last-child(-n+3) { border-bottom: 0; }
.facts dt { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-weight: 700; font-size: 16px; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.plan { display: flex; flex-direction: column; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.plan:hover { border-color: var(--gold); box-shadow: 0 18px 40px rgba(11, 35, 71, .08); transform: translateY(-2px); }
.plan header { display: flex; flex-direction: column; gap: 6px; }
.plan h3 { font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--navy); }
.plan-price strong { font-family: var(--serif); font-size: 40px; font-weight: 400; color: var(--ink); }
.plan-price span { color: var(--muted); font-size: 14px; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; }
.plan-list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.plan-list li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--gold); }
.room-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.info-card h3 { font-family: var(--sans); font-size: 16px; font-weight: 700; }
.info-card p, .info-card li { font-size: 14.5px; color: var(--ink-2); }
.info-card .link-arrow { margin-top: auto; padding-top: 8px; font-size: 14px; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.book-card { position: sticky; top: calc(var(--hdr-h) + 24px); background: var(--navy-deep); color: var(--on-dark); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.book-card .muted { color: var(--on-dark-2); }
.book-price strong { font-family: var(--serif); font-size: 46px; font-weight: 400; color: var(--gold); }
.book-price span { color: var(--on-dark-2); }
.book-card .plain li { color: var(--on-dark-2); padding-left: 16px; position: relative; }
.book-card .plain li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); }

.others { margin-top: 80px; }
.others-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.other { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.other:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(11, 35, 71, .1); }
.other img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.other > span { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 16px 20px; }
.other strong { font-family: var(--serif); font-size: 22px; font-weight: 400; }

/* Barra fija en móvil */
.room-bar { display: none; }

/* Galería a pantalla completa */
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 18, 38, .96); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: lbIn .25s var(--ease); }
.lightbox::backdrop { background: rgba(6, 18, 38, .6); }
.lightbox img { max-width: min(92vw, 1400px); max-height: 82dvh; object-fit: contain; border-radius: 12px; }
.lb-close, .lb-nav { position: absolute; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 50%; width: 52px; height: 52px; font-size: 30px; line-height: 1; cursor: pointer; transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .18); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .75); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1080px) {
  .room-layout { grid-template-columns: minmax(0, 1fr); }
  .book-card { display: none; }
}
@media (max-width: 860px) {
  .gal-2, .gal-3 { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; height: auto; }
  .gal-3 .gal-main { grid-row: auto; }
  .gal-item { min-height: 0; aspect-ratio: 4 / 3; }
  .gal-item:not(.gal-main) { aspect-ratio: 16 / 9; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3n) { border-right: 1px solid var(--line); }
  .facts div:nth-child(2n) { border-right: 0; }
  .facts div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .facts div:nth-last-child(-n+2) { border-bottom: 0; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .room-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(11, 35, 71, .08);
  }
  .room-bar strong { font-family: var(--serif); font-size: 26px; font-weight: 400; }
  .room-bar .btn { min-height: 50px; padding-inline: 32px; }
  .room-page .ftr { padding-bottom: 110px; }
}
@media (max-width: 600px) {
  .room-wrap { padding-block: 20px 72px; }
  .gallery { border-radius: var(--radius); gap: 8px; }
  .room-main { gap: 44px; }
  .plan { padding: 22px; }
}

/* Más de 3 fotos: aviso «+N fotos» sobre la tercera; precio todavía sin publicar */
.gal-mas { position: absolute; right: 12px; bottom: 12px; z-index: 1; padding: 8px 14px; border-radius: 999px; background: rgba(11, 35, 71, .82); color: #fff; font-weight: 700; font-size: 14px; }
.book-price strong.book-price-txt { font-size: 26px; line-height: 1.2; }
