/* extra.css — CN-340 Suites · piezas añadidas el 23/09/2026 (Cowork)
   ===================================================================
   Va DESPUÉS de style.css en todas las páginas. Contiene solo lo nuevo:
   accesibilidad, buscador con precios reales, fichas de alojamiento,
   guías completas, legales, «Qué hacer», consentimiento de vídeo y mapa,
   pie legal y avisos del chat. No redefine nada de style.css salvo donde
   se indica. */

/* ---------- accesibilidad ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--ink-strong); color: var(--cream-strong); padding: 12px 18px 10px; border-radius: 999px; font-size: 13px; letter-spacing: 0.12em; text-decoration: none; transition: top 0.2s ease; }
.skip-link:focus { top: 12px; outline: 2px solid var(--sky); outline-offset: 2px; }
:focus-visible { outline: 2px solid var(--sky-dark); outline-offset: 2px; }

/* enlaces con aspecto de botón (antes eran <button>) */
a.btn-reserve, a.rcard-btn { display: inline-block; }
a.room-card { text-decoration: none; color: inherit; display: block; }
a.rcard-link { cursor: pointer; }

/* ---------- vídeo de portada: solo se carga si el visitante lo pide ---------- */
.hero-videobtn { position: absolute; right: 24px; bottom: 26px; z-index: 6; display: inline-flex; align-items: center; gap: 9px; background: rgba(40,42,34,0.55); color: var(--cream-strong); border: 1px solid rgba(247,241,231,0.35); border-radius: 999px; padding: 10px 16px 8px; font-family: 'Outfit', sans-serif; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(6px); transition: background 0.3s ease; }
.hero-videobtn:hover { background: rgba(40,42,34,0.8); }
.hero-videobtn small { display: block; text-transform: none; letter-spacing: 0.02em; font-size: 10.5px; color: rgba(247,241,231,0.7); }
@media (max-width: 700px) { .hero-videobtn { right: 12px; bottom: 12px; padding: 8px 12px 6px; } }

/* ---------- mapa de contacto: solo se carga si el visitante lo pide ---------- */
.cmap-consent { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; min-height: 260px; padding: 28px; background: repeating-linear-gradient(45deg, #EDE5D5 0 14px, #E6DCC9 14px 28px); color: var(--ink); font-size: 14px; line-height: 1.6; }
.cmap-consent p { margin: 0; max-width: 46ch; }
.cmap-consent .cbtn { font-size: 11px; }

/* ---------- buscador de la portada ---------- */
.be-bar-wrap--home { margin-top: 36px; margin-bottom: 20px; }
.be-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; }
.be-actions .be-search { flex: 1 1 200px; }
.be-alt { font-size: 12px; color: var(--muted-2); text-decoration: none; border-bottom: 1px solid rgba(61,63,53,0.35); padding-bottom: 2px; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font-family: 'Outfit', sans-serif; }
.be-alt:hover { color: var(--ink-strong); }

/* resultados con precio real del motor */
.be-results { max-width: 1360px; margin: 26px auto 0; padding: 0 32px; }
.be-results[hidden] { display: none; }
.be-results-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.be-results-head h2 { font-family: 'Prata', serif; font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); margin: 0; color: var(--ink-strong); }
.be-results-note { font-size: 12.5px; line-height: 1.6; color: var(--muted-2); max-width: 70ch; margin: 0 0 18px; }
.be-results-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.be-res { background: var(--paper); border: 1px solid rgba(61,63,53,0.12); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 26px rgba(40,42,34,0.08); }
.be-res-media { aspect-ratio: 16 / 9; background: #E2D8C4; overflow: hidden; position: relative; }
.be-res-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.be-res-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.be-res-name { font-family: 'Prata', serif; font-size: 19px; line-height: 1.3; color: var(--ink-strong); margin: 0; }
.be-res-meta { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
.be-rates { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(61,63,53,0.12); }
.be-rate { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(61,63,53,0.12); }
.be-rate-name { font-size: 14px; color: var(--ink-strong); font-weight: 400; }
.be-rate-cond { display: block; font-size: 12px; color: var(--muted-2); margin-top: 2px; line-height: 1.45; }
.be-rate-total { font-family: 'Prata', serif; font-size: 18px; color: var(--ink-strong); white-space: nowrap; }
.be-rate-total small { display: block; font-family: 'Outfit', sans-serif; font-size: 11px; color: var(--muted-2); text-align: right; }
.be-res-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.be-msg { background: #fff; border: 1px solid rgba(61,63,53,0.14); border-radius: 12px; padding: 18px 20px; font-size: 14.5px; line-height: 1.7; color: var(--ink); }
.be-msg a { color: var(--sky-dark); }
.be-msg .chat-links { margin-top: 10px; }
.be-loading { font-size: 14px; color: var(--muted-2); padding: 10px 0; }

/* ---------- chat ---------- */
.chat-ai-note { display: block; padding: 6px 14px 0; font-size: 11px; line-height: 1.5; color: var(--muted-2); text-align: center; }
.chat-ai-note a { color: var(--muted-2); }
.chat-room-card-rates { display: block; font-size: 12px; color: var(--muted); line-height: 1.45; }
.chat-room-card-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.chat-room-card-links a { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky-dark); text-decoration: none; border-bottom: 1px solid rgba(21,101,192,0.35); }
div.chat-room-card { cursor: default; }

/* ---------- pie legal ---------- */
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { font-size: 12px; color: rgba(247,241,231,0.7); text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }

/* ---------- formulario de contacto: estado del envío ---------- */
.cstatus { display: none; border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.6; }
.cstatus.on { display: block; }
.cstatus--ok { background: rgba(138,160,126,0.16); border: 1px solid rgba(138,160,126,0.5); color: var(--ink-strong); }
.cstatus--err { background: rgba(168,80,43,0.08); border: 1px solid rgba(168,80,43,0.35); color: #6E3219; }
.cstatus a { color: inherit; }
.cfield.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- migas ---------- */
.crumbs { max-width: 1360px; margin: 0 auto; padding: 22px 32px 0; font-size: 12px; letter-spacing: 0.14em; color: var(--muted-2); text-transform: uppercase; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: '›'; margin-right: 8px; color: var(--muted-3); }
.crumbs a { color: var(--muted-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink-strong); }

/* ---------- ficha de alojamiento ---------- */
.room-wrap { max-width: 1360px; margin: 0 auto; padding: 34px 32px 60px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.room-main { min-width: 0; }
.room-lead { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--sage); margin: 0 0 10px; }
.room-desc { font-size: 16.5px; line-height: 1.85; color: var(--muted); }
.room-desc p { margin: 0 0 16px; }
.room-h2 { font-family: 'Prata', serif; font-weight: 400; font-size: 26px; line-height: 1.3; color: var(--ink-strong); margin: 40px 0 16px; }
.room-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 0; margin: 0; border-top: 1px solid rgba(61,63,53,0.14); }
.room-spec { padding: 14px 0; border-bottom: 1px solid rgba(61,63,53,0.14); }
.room-spec dt { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--sage); margin-bottom: 4px; }
.room-spec dd { margin: 0; font-size: 15.5px; color: var(--ink-strong); }
.room-services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 10px 18px; }
.room-services li { font-size: 14.5px; color: var(--ink); padding-left: 18px; position: relative; }
.room-services li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.room-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.room-gallery button { padding: 0; border: 0; background: #E2D8C4; border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; display: block; width: 100%; }
.room-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.room-gallery button:hover img { transform: scale(1.04); }
.room-nophotos { padding: 26px; border-radius: 12px; background: repeating-linear-gradient(45deg, #EDE5D5 0 14px, #E6DCC9 14px 28px); color: var(--muted-2); font-size: 14px; }
.room-info { font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.room-info p { margin: 0 0 10px; }
.room-aside { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 16px; }
.room-book { background: #fff; border: 1px solid rgba(61,63,53,0.14); border-radius: 18px; padding: 20px; box-shadow: 0 24px 60px rgba(40,42,34,0.14); }
.room-book h2 { font-family: 'Prata', serif; font-weight: 400; font-size: 22px; margin: 0 0 6px; color: var(--ink-strong); }
.room-book > p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.6; color: var(--muted-2); }
.room-book .be-card { max-width: none; box-shadow: none; border-radius: 12px; }
.room-book-res { margin-top: 14px; }
.room-book-res .be-rates { margin-bottom: 12px; }
.room-engine { display: block; text-align: center; margin-top: 12px; font-size: 12px; letter-spacing: 0.14em; color: var(--ink); text-decoration: none; border: 1px solid rgba(61,63,53,0.3); border-radius: 999px; padding: 12px 16px 10px; text-transform: uppercase; }
.room-engine:hover { background: var(--ink-strong); color: var(--cream-strong); }
.room-note { background: var(--paper); border: 1px solid rgba(61,63,53,0.12); border-radius: 14px; padding: 16px 18px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.room-note strong { color: var(--ink-strong); font-weight: 500; }
.room-others { max-width: 1360px; margin: 0 auto; padding: 10px 32px 100px; }
.room-others .rgrid { padding: 0; }
@media (max-width: 1000px) {
  .room-wrap { grid-template-columns: 1fr; gap: 30px; padding: 26px 22px 40px; }
  .room-aside { position: static; order: -1; }
  .room-others { padding: 10px 22px 80px; }
  .crumbs { padding: 18px 22px 0; }
}

/* visor de fotos */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(28,29,24,0.92); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox-btn { position: absolute; background: rgba(247,241,231,0.14); color: #fff; border: 1px solid rgba(247,241,231,0.3); border-radius: 50%; width: 46px; height: 46px; font-size: 20px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox-btn:hover { background: rgba(247,241,231,0.28); }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: rgba(247,241,231,0.8); font-size: 12px; letter-spacing: 0.2em; }

/* ---------- guías completas ---------- */
.post-full { border-top: 1px solid rgba(61,63,53,0.14); }
.post-full-eyebrow { display: block; font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--sky-dark); margin: 6px 0 -18px; }
.post-body h3 { font-family: 'Prata', serif; font-weight: 400; font-size: 20px; color: var(--ink-strong); margin: 26px 0 8px; }
.post-figure { margin: 26px 0 30px; }
.post-figure img { width: 100%; height: auto; display: block; border-radius: 12px; aspect-ratio: 2 / 1; object-fit: cover; background: #E2D8C4; }
.post-figure figcaption { font-size: 12.5px; color: var(--muted-2); margin-top: 8px; }
.post-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; margin: 0 0 18px; }
.post-style { background: var(--paper); border: 1px solid rgba(61,63,53,0.12); border-radius: 12px; padding: 16px 18px; }
.post-style h3 { margin: 0 0 6px; font-size: 17px; }
.post-style p { margin: 0; font-size: 14.5px; line-height: 1.65; }
.post-note { font-size: 13px; color: var(--muted-2); line-height: 1.6; }
.post-sources { font-size: 12.5px; color: var(--muted-2); line-height: 1.7; border-top: 1px solid rgba(61,63,53,0.12); padding-top: 14px; margin-top: 30px; }

/* ---------- páginas de texto (legales, qué hacer, 404) ---------- */
.doc-hero { max-width: 900px; margin: 0 auto; padding: 150px 32px 10px; }
.doc-hero h1 { font-family: 'Prata', serif; font-weight: 400; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.12; color: var(--ink-strong); margin: 0; }
.doc-hero p { margin: 16px 0 0; font-size: 15px; color: var(--muted-2); }
.doc-body { max-width: 900px; margin: 0 auto; padding: 30px 32px 90px; font-size: 15.5px; line-height: 1.8; color: var(--muted); }
.doc-body h2 { font-family: 'Prata', serif; font-weight: 400; font-size: 24px; line-height: 1.3; color: var(--ink-strong); margin: 38px 0 12px; }
.doc-body h3 { font-size: 17px; font-weight: 500; color: var(--ink-strong); margin: 26px 0 8px; }
.doc-body p { margin: 0 0 14px; }
.doc-body ul, .doc-body ol { margin: 0 0 14px; padding-left: 22px; }
.doc-body li { margin-bottom: 6px; }
.doc-body a { color: var(--sky-dark); word-break: break-word; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 14px; display: block; overflow-x: auto; }
.doc-body th, .doc-body td { border: 1px solid rgba(61,63,53,0.18); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc-draft { border: 1px dashed #A8502B; background: rgba(168,80,43,0.06); color: #6E3219; border-radius: 12px; padding: 14px 18px; font-size: 14px; line-height: 1.6; margin: 0 0 26px; }
.pend { background: #FFF3CD; color: #6E4B00; padding: 0 4px; border-radius: 4px; font-weight: 500; }
.qh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; margin: 0 0 20px; }
.qh-card { text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid rgba(61,63,53,0.12); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; transition: box-shadow 0.3s ease; }
.qh-card:hover { box-shadow: 0 14px 30px rgba(40,42,34,0.12); }
.qh-card strong { font-family: 'Prata', serif; font-weight: 400; font-size: 19px; color: var(--ink-strong); }
.qh-card span { font-size: 14px; color: var(--muted); line-height: 1.6; }
.qh-card em { font-style: normal; font-size: 12px; color: var(--sky-dark); letter-spacing: 0.06em; }
@media (max-width: 860px) {
  .doc-hero { padding: 120px 22px 6px; }
  .doc-body { padding: 24px 22px 70px; }
  .be-results { padding: 0 22px; }
}
.doc-body, .post-body, .room-desc { overflow-wrap: break-word; }

/* Contraste AA (WCAG 2.1, 4,5:1) para los textos pequeños: mismos tonos del diseño, algo más oscuros.
   Afecta solo a color de texto (y a los puntos de la lista de servicios). Para volver al tono
   original basta con borrar este bloque. Revisado con axe-core 4.13 el 23/09/2026. */
:root {
  --sage: #596B4F;     /* antes #8AA07E: 2,4:1 sobre crema */
  --muted-2: #65675D;  /* antes #74766A: 4,0:1 */
  --muted-3: #686859;  /* antes #A2A292: 2,4:1 */
}
.be-results { scroll-margin-top: 110px; }

/* Menú en móvil: una sola fila. Con el nombre en texto, «alex 24/7» y «reservar» pasaban a dos
   filas y la primera se salía por arriba de la barra (medido a 375-480 px). El logo lleva alt. */
@media (max-width: 560px) {
  .nav-brand-text { display: none; }
  .nav-links { gap: 14px; flex-wrap: nowrap; }
  .nav-link { letter-spacing: 0.12em; }
  .btn-reserve { padding: 10px 16px 8px; letter-spacing: 0.16em; }
}
