/*
Theme Name: Hotel Capri Landing
Theme URI: https://hotelcapri.com.ar/
Description: Child theme con la landing de una sola pagina del Hotel Capri (Caleta Olivia, Santa Cruz, Argentina). Trae la plantilla "Landing Hotel Capri" a ancho completo. Objetivo unico: consultas por WhatsApp.
Author: Hotel Capri
Version: 1.0.0
Template: twentytwentyfour
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hotel-capri
*/

/* =====================================================================
   Hotel Capri - Landing
   Un solo CSS, mobile-first. El unico breakpoint es 1024px:
   <= 1024px  -> movil / tablet  (estilos base)
   >= 1025px  -> desktop         (bloque @media al final del archivo)
   Las fuentes (Domine + Plus Jakarta Sans) se cargan desde functions.php.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --c-brand:        #A32A13;
  --c-brand-hover:  #7d2410;
  --c-brand-tint:   #F5E4DE;
  --c-salmon:       #F0AF9E;
  --c-ink:          #2B2B2B;
  --c-text-2:       #55504A;
  --c-text-3:       #8A8479;
  --c-cream:        #F9F8F6;
  --c-white:        #FFFFFF;
  --c-chip:         #F4F1EC;
  --c-border:       #E8E3DC;
  --c-btn-border:   #E0D9D0;
  --c-divider:      #F1EEE8;
  --c-hero-text:    #F1EFEB;
  --c-footer-text:  #F1EFEB;
  --c-footer-muted: #C9C4BC;
  --c-footer-border:#444038;

  --font-serif: 'Domine', Georgia, 'Times New Roman', serif;
  --font-sans:  'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --wrap-header: 1280px;
}

/* ---------- Reset / base ----------
   Esta hoja SOLO se encola en la plantilla page-landing.php (ver
   functions.php), asi que se pueden usar selectores de elemento sin
   riesgo de afectar al resto del sitio. */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-cream);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--c-brand); }
a:hover { color: var(--c-brand-hover); }
button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Barra de admin de WordPress (solo usuarios logueados) */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
/* Foco visible tambien sobre superficies oscuras */
.hero :focus-visible,
.franja :focus-visible,
.footer :focus-visible,
.cta-flotante:focus-visible,
.barra-fija__wa:focus-visible { outline-color: #FFFFFF; }

/* ---------- Utilidades desktop / movil ---------- */
/* .u-d: solo desktop  ·  .u-m: solo movil (visible por defecto). */
.u-d { display: none !important; }

/* Skip link accesible */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 3000;
  background: #FFFFFF;
  color: var(--c-brand);
  padding: 10px 16px;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Anclas: que el titulo no quede tapado por el header */
#habitaciones, #servicios, #ubicacion, #historia, #faq, #contacto {
  scroll-margin-top: 84px;
}

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
}

.site-header__inner {
  max-width: var(--wrap-header);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-header__logo img { height: 44px; width: auto; }

/* Tagline roja sutil (solo movil): reemplaza al titulo grande del hero */
.site-header__tagline {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.3;
  color: var(--c-brand);
  opacity: .85;
  text-wrap: balance;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Nav horizontal - solo desktop */
.site-nav { display: none; gap: 28px; align-items: center; }
.site-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
}
.site-header.is-scrolled .site-nav a { color: var(--c-ink); }

/* CTA terracota del header - solo desktop */
.site-header__cta {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--c-brand);
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.site-header__cta:hover { background: var(--c-brand-hover); color: #FFFFFF; }
.site-header__cta svg { color: #FFFFFF; }

/* Boton cuadrado "llamar" - solo movil */
.site-header__call {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1.5px solid var(--c-btn-border);
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #FFFFFF;
  color: var(--c-brand);
  flex-shrink: 0;
}

/* Hamburguesa - solo movil */
.site-header__burger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--c-btn-border);
  border-radius: 8px;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}
.site-header__burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-ink);
  transition: transform .2s ease, opacity .2s ease;
}
.site-header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Panel desplegable - solo movil */
.mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-top: 1px solid var(--c-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
  padding: 4px 20px 16px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 15px 2px;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--c-divider);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mobile-menu__call {
  color: var(--c-brand);
  font-weight: 700;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0.55) 0%, rgba(20,18,16,0.35) 35%, rgba(20,18,16,0.92) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 28px;
  max-width: 720px;
}
/* Movil: "Hotel historico..." arriba, pegado al header; el resto abajo */
.hero__text.hero__text--top {
  order: -1;
  margin-bottom: auto;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: #FFFFFF;
  text-wrap: balance;
}
.hero__eyebrow { color: var(--c-salmon); }
.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  text-wrap: balance;
}
.hero__text {
  color: var(--c-hero-text);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 560px;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

/* Wrapper de la foto (solo cobra forma en desktop con .hero--split) */
.hero__media { display: contents; }
.hero__badge { display: none; }

/* Movil/tablet: hero apilado (foto limpia -> botones) para que la foto no
   quede tapada; el texto va sutil arriba de la foto con un degrade suave. */
@media (max-width: 1024px) {
  .hero { flex-direction: column; min-height: 0; background: #141210; }
  .hero__overlay { display: none; }
  .hero__content { display: contents; }
  .hero__text.hero__text--top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    margin: 0;
    padding: 18px 20px 56px;
    font-size: 20px;
    background: linear-gradient(180deg, rgba(20,18,16,0.72) 0%, rgba(20,18,16,0.38) 55%, rgba(20,18,16,0) 100%);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  }
  .hero__img {
    order: 1;
    position: relative;
    inset: auto;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 560px;
    object-position: center 45%;
  }
  .hero__eyebrow { order: 3; padding: 18px 20px 0; }
  .hero__actions { order: 4; margin: 0; padding: 12px 20px 24px; }
}

/* =====================================================================
   BOTONES reutilizables
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border: none;
}
.btn--wa { background: var(--c-brand); color: #FFFFFF; }
.btn--wa:hover { background: var(--c-brand-hover); color: #FFFFFF; }
.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 18px;
}
.btn--ghost:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.2); }
.btn--outline {
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--c-brand);
  color: var(--c-brand);
  font-weight: 700;
  font-size: 14px;
  padding: 13px;
  border-radius: 8px;
}
.btn--outline:hover { background: var(--c-brand); color: #FFFFFF; }

/* =====================================================================
   FRANJA DE CONFIANZA
   ===================================================================== */
.franja {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  text-align: center;
  background: var(--c-ink);
  color: var(--c-footer-text);
  padding: 14px 16px;
}
.franja__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.franja__big {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: #FFFFFF;
}
.franja__small {
  font-size: 11px;
  color: var(--c-footer-muted);
  line-height: 1.3;
}

/* =====================================================================
   SECCIONES genericas
   ===================================================================== */
.section { padding: 40px 16px; }
.section--cream { background: var(--c-cream); }
.section--white { background: var(--c-white); }
.section__inner { max-width: var(--wrap); margin: 0 auto; }

.eyebrow {
  display: inline-block;
  color: var(--c-brand);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  color: var(--c-ink);
  margin: 6px 0 8px;
  text-wrap: balance;
}
.lead {
  color: var(--c-text-2);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 560px;
}

/* =====================================================================
   HABITACIONES
   ===================================================================== */
.rooms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.room {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  overflow: hidden;
}
.room__media {
  position: relative;
  height: 170px;
  background: var(--c-border);
}
.room__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.room__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--c-brand);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.room__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  flex: 1;
}
.room__name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--c-ink);
  margin: 0 0 3px;
}
.room__cap {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--c-text-2);
  font-size: 13px;
}
.room__cap svg { display: none; color: var(--c-brand); flex-shrink: 0; }

.room__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.room__amenities li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #3A3733;
  background: var(--c-chip);
  border-radius: 20px;
  padding: 5px 10px;
}
.room__amenities svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  color: var(--c-brand);
}
.room__cta { margin-top: auto; }

/* =====================================================================
   SERVICIOS
   ===================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.service {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 14px;
  background: var(--c-cream);
  border: 1px solid var(--c-border);
  border-radius: 10px;
}
.service__icon {
  width: 24px;
  height: 24px;
  color: var(--c-brand);
}
.service__icon svg { width: 100%; height: 100%; }
.service__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
  margin: 0;
}
.service__desc {
  font-size: 12px;
  color: var(--c-text-2);
  line-height: 1.45;
  margin: 0;
}
.services__note {
  font-size: 13px;
  color: var(--c-text-3);
  line-height: 1.6;
  margin: 20px 0 0;
  max-width: 760px;
}

/* =====================================================================
   GALERIA  "El hotel por dentro"
   ===================================================================== */
.galeria { margin-top: 24px; }
.galeria__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
}
.galeria__head h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--c-ink);
  margin: 0;
}
.galeria__hint {
  font-size: 11px;
  color: var(--c-text-3);
  letter-spacing: 0.4px;
}
.galeria__grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.galeria__grid::-webkit-scrollbar { display: none; }
.galeria__grid figure {
  position: relative;
  flex: 0 0 240px;
  height: 180px;
  scroll-snap-align: start;
  border-radius: 10px;
  overflow: hidden;
  background: var(--c-border);
  margin: 0;
}
.galeria__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.galeria__grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, rgba(20,18,16,0) 0%, rgba(20,18,16,0.85) 100%);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
}

/* =====================================================================
   UBICACION
   ===================================================================== */
.ubicacion__row {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
}
.ubicacion__map {
  order: -1;
  height: 200px;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--c-border);
}
.ubicacion__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.ubicacion__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}
.ubicacion__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.ubicacion__pin {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-brand-tint);
  color: var(--c-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ubicacion__item h4 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-ink);
}
.ubicacion__item p {
  margin: 0;
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.5;
}
.ubicacion__cta { margin-top: 20px; }

/* =====================================================================
   NUESTRA HISTORIA
   ===================================================================== */
.historia__media {
  aspect-ratio: 5 / 3; /* foto historica apaisada: se ve entera, sin recorte */
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--c-border);
}
.historia__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.historia__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.historia__body .h2 {
  font-size: 24px;
  line-height: 1.3;
  margin: 6px 0 0;
}
.historia p {
  font-size: 14px;
  color: var(--c-text-2);
  line-height: 1.7;
  margin: 0;
}
.historia__more {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}
.historia__more > p { max-width: 640px; }
.historia__anecdotas {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.anecdota {
  background: var(--c-cream);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 16px;
}
.anecdota h4 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--c-ink);
}
.anecdota p { font-size: 13px; line-height: 1.6; }
.historia__quote {
  border-left: 3px solid var(--c-brand);
  padding-left: 16px;
  max-width: 640px;
}
.historia__quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--c-ink);
  line-height: 1.8;
  margin: 0 0 8px;
}
.historia__quote cite {
  font-style: normal;
  font-size: 12px;
  color: var(--c-text-3);
}

/* =====================================================================
   PREGUNTAS FRECUENTES
   ===================================================================== */
.faq__inner { max-width: 760px; }
.faq__list {
  margin-top: 12px;
  border-top: 1px solid var(--c-border);
}
.faq__item { border-bottom: 1px solid var(--c-border); }
.faq__q { margin: 0; }
.faq__trigger {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 2px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
}
.faq__icon {
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--c-brand);
  transition: transform .2s ease;
}
.faq__trigger[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }
.faq__panel[hidden] { display: none; }
.faq__panel p {
  margin: 0 2px 16px;
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.6;
  max-width: 640px;
}

/* =====================================================================
   FOOTER / CONTACTO
   ===================================================================== */
.footer {
  background: var(--c-ink);
  color: var(--c-footer-text);
  padding: 36px 16px 110px; /* espacio extra por la barra fija movil */
}
.footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__brand { gap: 16px; max-width: 320px; }
.footer__logo {
  height: 64px;
  width: auto;
  align-self: flex-start;
  background: #FFFFFF;
  padding: 8px 14px;
  border-radius: 4px;
}
.footer__brand p {
  margin: 0;
  font-size: 13px;
  color: var(--c-footer-muted);
  line-height: 1.6;
}
.footer__title {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--c-footer-text);
}
.footer__col a {
  color: #E8E3DC;
  font-size: 14px;
  text-decoration: none;
}
.footer__col a:hover { color: #FFFFFF; }
.footer__col span { color: #E8E3DC; font-size: 14px; }
.footer__nav { display: none; }
.footer__bottom {
  max-width: var(--wrap);
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--c-footer-border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--c-text-3);
}

/* =====================================================================
   CTA PERSISTENTE
   ===================================================================== */
/* Movil: barra fija al pie */
.barra-fija {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  gap: 10px;
  background: #FFFFFF;
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.10);
  padding: 12px 14px calc(16px + env(safe-area-inset-bottom));
}
.barra-fija__call {
  flex: 0 0 52px;
  height: 52px;
  border-radius: 8px;
  border: 1.5px solid var(--c-btn-border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--c-brand);
}
.barra-fija__wa {
  flex: 1;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--c-brand);
  color: #FFFFFF;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.barra-fija__wa:hover { background: var(--c-brand-hover); color: #FFFFFF; }

/* Desktop: boton flotante con pulso */
.cta-flotante { display: none; }

@keyframes waPulse {
  0%   { box-shadow: 0 0 0 0    rgba(163, 42, 19, 0.45); }
  70%  { box-shadow: 0 0 0 14px rgba(163, 42, 19, 0); }
  100% { box-shadow: 0 0 0 0    rgba(163, 42, 19, 0); }
}

/* =====================================================================
   ============  DESKTOP  >= 1025px  ===================================
   ===================================================================== */
@media (min-width: 1025px) {

  #habitaciones, #servicios, #ubicacion, #historia, #faq, #contacto {
    scroll-margin-top: 100px;
  }

  .u-d { display: block !important; }
  span.u-d, br.u-d, cite.u-d, a.u-d { display: inline !important; }
  .u-m { display: none !important; }

  /* ---- Header ---- */
  .site-header {
    position: fixed;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom-color: transparent;
    transition: background .25s ease, box-shadow .25s ease;
  }
  .site-header.is-scrolled {
    background: #FFFFFF;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  }
  .site-header__inner { padding: 14px 32px; gap: 20px; }
  .site-header__logo {
    background: #FFFFFF;
    padding: 6px 12px;
    border-radius: 4px;
  }
  .site-header__logo img { height: 48px; }
  .site-nav { display: flex; }
  .site-header__cta { display: inline-flex; }
  .site-header__call,
  .site-header__burger { display: none; }
  .mobile-menu { display: none !important; }

  /* ---- Hero ---- */
  .hero {
    min-height: 760px;
    align-items: center;
    padding-top: 100px;
  }
  .hero__img { object-position: center 30%; }
  .hero__overlay {
    background: linear-gradient(100deg, rgba(20,18,16,0.86) 0%, rgba(20,18,16,0.66) 48%, rgba(20,18,16,0.32) 100%);
  }
  .hero__content { padding: 0 64px; gap: 20px; }
  .hero__title { font-size: 56px; }
  .hero__text { font-size: 17px; line-height: 1.6; }
  .hero__actions { display: none; }

  /* ---- Hero variante "split": foto cuadrada a dos columnas ----
     Para volver al formato anterior (foto apaisada a todo el ancho) basta
     con $hero_layout = 'full' en page-landing.php. */
  .hero--split {
    background: #141210;
    justify-content: center;
    gap: 56px;
    padding-bottom: 72px;
  }
  /* Misma foto desenfocada de fondo: da color sin recortar la foto real */
  .hero--split::before {
    content: "";
    position: absolute;
    inset: -60px;
    background: var(--hero-bg) center / cover no-repeat;
    filter: blur(40px) saturate(1.15);
    opacity: .6;
  }
  .hero--split .hero__overlay {
    background: linear-gradient(100deg, rgba(20,18,16,0.94) 0%, rgba(20,18,16,0.72) 50%, rgba(20,18,16,0.45) 100%);
  }
  .hero--split .hero__media {
    display: block;
    position: relative;
    order: 2;
    flex: 0 0 auto;
    width: min(42vw, 560px);
    margin-right: 72px;
    z-index: 2;
  }
  /* Marco desplazado en color de marca */
  .hero--split .hero__media::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate(20px, 20px);
    border: 2px solid var(--c-salmon);
    border-radius: 14px;
    opacity: .85;
  }
  .hero--split .hero__img {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  }
  .hero--split .hero__badge {
    position: absolute;
    left: -36px;
    bottom: 36px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 22px;
    background: #FFFFFF;
    color: #1C1917;
    border-radius: 10px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  }
  .hero__badge-big {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 26px;
    line-height: 1.1;
    color: var(--c-brand);
  }
  .hero__badge-small { font-size: 13px; line-height: 1.35; color: #4A453F; }
  .hero--split .hero__content { order: 1; flex: 1 1 auto; padding: 0 0 0 64px; }
  .hero--split .hero__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
  }

  /* ---- Franja ---- */
  .franja {
    gap: 40px;
    justify-content: center;
    padding: 18px 16px;
  }
  .franja__item { flex: 0 1 auto; min-width: 150px; }
  .franja__big { font-size: 20px; }
  .franja__small { font-size: 12px; }

  /* ---- Secciones ---- */
  .section { padding: 96px 64px; }
  .eyebrow { font-size: 13px; letter-spacing: 1.5px; }
  .h2 { font-size: 40px; margin: 4px 0 0; }
  .lead { font-size: 16px; margin: 8px 0 40px; }

  /* ---- Habitaciones ---- */
  .rooms { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .room { border-radius: 8px; }
  .room__media { height: 210px; }
  .room__badge { top: 12px; right: 12px; font-size: 11px; padding: 6px 10px; letter-spacing: 0.3px; }
  .room__body { padding: 24px; gap: 16px; }
  .room__name { font-size: 22px; margin: 0 0 4px; }
  .room__cap { font-size: 14px; }
  .room__cap svg { display: block; }
  .room__amenities { flex-direction: column; align-items: flex-start; gap: 8px; }
  .room__amenities li {
    background: none;
    border-radius: 0;
    padding: 0;
    font-size: 14px;
    gap: 8px;
  }
  .room__amenities svg { width: 14px; height: 14px; }
  .room__cta { padding: 11px; border-radius: 6px; }

  /* ---- Servicios ---- */
  .services { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
  .service { padding: 24px; gap: 12px; border-radius: 8px; }
  .service__icon { width: 26px; height: 26px; }
  .service__title { font-size: 16px; }
  .service__desc { font-size: 14px; line-height: 1.5; }
  .services__note { font-size: 14px; margin-top: 32px; }

  /* ---- Galeria ---- */
  .galeria { margin-top: 40px; }
  .galeria__head { display: none; }
  .galeria__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    overflow: visible;
  }
  .galeria__grid figure {
    flex: none;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
  }
  .galeria__grid figcaption { padding: 24px 14px 10px; font-size: 13px; }

  /* ---- Ubicacion ---- */
  .ubicacion__row { flex-direction: row; gap: 40px; margin-top: 40px; align-items: stretch; }
  .ubicacion__map {
    order: 2; /* en desktop el mapa va a la derecha */
    flex: 1;
    height: auto;
    min-height: 340px;
    border-radius: 8px;
  }
  .ubicacion__list { flex: 1; margin-top: 0; gap: 20px; }
  .ubicacion__pin { width: 38px; height: 38px; }
  .ubicacion__item h4 { font-size: 15px; }
  .ubicacion__item p { font-size: 14px; }
  .ubicacion__cta { display: none; }

  /* ---- Historia ---- */
  .historia__row { display: flex; gap: 48px; align-items: center; }
  .historia__media {
    flex: 1;
    height: auto;
    margin-bottom: 0;
    border-radius: 8px;
  }
  .historia__body { flex: 1; gap: 16px; }
  .historia__body .h2 { font-size: 32px; line-height: 1.25; margin: 0; }
  .historia p { font-size: 15px; }
  .historia__more { display: block; margin-top: 24px; }
  .historia__anecdotas { flex-direction: row; gap: 24px; margin-top: 48px; }
  .anecdota { flex: 1; padding: 24px; border-radius: 8px; }
  .anecdota p { font-size: 14px; }
  .historia__quote { margin-top: 40px; padding-left: 24px; }
  .historia__quote p { font-size: 15px; }
  .historia__quote cite { font-size: 13px; }

  /* ---- FAQ ---- */
  .faq__list { margin-top: 24px; }
  .faq__trigger { padding: 20px 4px; font-size: 16px; }
  .faq__panel p { margin: 0 4px 20px; font-size: 14px; }

  /* ---- Footer ---- */
  .footer { padding: 64px 24px 32px; }
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
  }
  .footer__logo { height: 80px; padding: 10px 16px; }
  .footer__brand p { font-size: 14px; }
  .footer__title { font-size: 14px; letter-spacing: 0.5px; }
  .footer__nav { display: flex; }
  .footer__bottom { margin-top: 40px; padding-top: 24px; font-size: 13px; }

  /* ---- CTA persistente ---- */
  .barra-fija { display: none; }
  .cta-flotante {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2000;
    background: var(--c-brand);
    color: #FFFFFF;
    padding: 14px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    animation: waPulse 2.5s infinite;
  }
  .cta-flotante:hover { background: var(--c-brand-hover); color: #FFFFFF; }
  .cta-flotante span { font-size: 14px; font-weight: 600; padding-right: 4px; }
}

/* =====================================================================
   Movimiento reducido
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta-flotante { animation: none; }
  * { transition-duration: 0.001ms !important; }
}

/* =====================================================================
   LIGHTBOX (fotos de habitaciones y galeria ampliadas al hacer click)
   ===================================================================== */
.room__img,
.galeria__grid img { cursor: zoom-in; }
.room__badge { pointer-events: none; }
.has-lightbox { overflow: hidden; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 16px 24px;
  background: rgba(20, 18, 16, 0.92);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin: 0;
}
.lightbox__img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}
.lightbox__caption {
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.lightbox__caption:empty { display: none; }
.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox :focus-visible { outline-color: #FFFFFF; }
