/* ============================================================
   The Beach Ibiza — main.css
   CSS de los shortcodes/secciones del design system.
   Variables y reset base viven en style.css.
   ============================================================ */

/* Skip link accesible (visualmente oculto hasta foco) */
.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.skip-link:focus {
  background: var(--tbi-paper);
  color: var(--tbi-ink);
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  height: auto;
  left: 1rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  top: 1rem;
  width: auto;
  z-index: 100000;
  clip: auto;
  -webkit-clip-path: none;
  clip-path: none;
}

/* Reset listas dentro del nav (wp_nav_menu mete <ul><li>) */
.tbi-header__nav ul,
.tbi-drawer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2.25rem;
}
.tbi-drawer__nav ul {
  flex-direction: column;
  gap: 0.5rem;
}
.tbi-header__nav li,
.tbi-drawer__nav li { margin: 0; }
.tbi-header__nav a { color: inherit; }

/* ------------------------------------------------------------
   RGB sources para alphas (mantiene color-mix opcional)
   ------------------------------------------------------------ */
:root {
  --tbi-ink-rgb: 22, 32, 43;
  --tbi-paper-rgb: 250, 248, 244;
}

/* ------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------ */
.tbi-wrap {
  max-width: var(--tbi-container);
  margin-inline: auto;
  padding-inline: var(--tbi-gutter);
}

.tbi-serif { font-family: var(--tbi-serif); font-weight: 500; line-height: 1.1; }

/* ------------------------------------------------------------
   Scroll reveal
   .reveal es visible por defecto (sin JS / si IO falla). Con html.js
   arranca oculto y se revela al entrar en viewport (ver reveal.js).
   ------------------------------------------------------------ */
.reveal { opacity: 1; transform: none; }
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--tbi-ease-out), transform .65s var(--tbi-ease-out);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* Stagger de grupos: el contenedor .js-stagger revela sus hijos en cascada.
   Cada hijo entra con 70ms de retraso sobre el anterior (Emil: 30–80ms). */
html.js .js-stagger > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s var(--tbi-ease-out), transform .6s var(--tbi-ease-out);
}
html.js .js-stagger.in > * { opacity: 1; transform: none; }
html.js .js-stagger.in > *:nth-child(2) { transition-delay: .07s; }
html.js .js-stagger.in > *:nth-child(3) { transition-delay: .14s; }
html.js .js-stagger.in > *:nth-child(4) { transition-delay: .21s; }

/* Entrada del hero (above-fold, al cargar): cascada eyebrow → título → resto.
   Delight de primera vista; solo con JS, respeta reduced-motion. */
@keyframes tbi-hero-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
html.js .tbi-home-hero__inner > *,
html.js .tbi-hero__inner > *,
html.js .tbi-page-hero__inner > * {
  opacity: 0;
  animation: tbi-hero-in .8s var(--tbi-ease-out) both;
}
html.js .tbi-home-hero__inner > *:nth-child(1),
html.js .tbi-hero__inner > *:nth-child(1),
html.js .tbi-page-hero__inner > *:nth-child(1) { animation-delay: .15s; }
html.js .tbi-home-hero__inner > *:nth-child(2),
html.js .tbi-hero__inner > *:nth-child(2),
html.js .tbi-page-hero__inner > *:nth-child(2) { animation-delay: .3s; }
html.js .tbi-home-hero__inner > *:nth-child(3),
html.js .tbi-hero__inner > *:nth-child(3),
html.js .tbi-page-hero__inner > *:nth-child(3) { animation-delay: .45s; }
html.js .tbi-home-hero__inner > *:nth-child(4),
html.js .tbi-hero__inner > *:nth-child(4),
html.js .tbi-page-hero__inner > *:nth-child(4) { animation-delay: .6s; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  html.js .js-stagger > * { opacity: 1; transform: none; transition: none; }
  html.js .tbi-home-hero__inner > *,
  html.js .tbi-hero__inner > *,
  html.js .tbi-page-hero__inner > * { opacity: 1; animation: none; }
}

/* ------------------------------------------------------------
   Botones
   ------------------------------------------------------------ */
.tbi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease, transform .15s var(--tbi-ease-out);
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.tbi-btn:active { transform: scale(0.97); }

.tbi-btn--dark {
  background: var(--tbi-ink);
  color: var(--tbi-paper);
}
.tbi-btn--dark:hover,
.tbi-btn--dark:focus {
  background: rgba(var(--tbi-ink-rgb), 0.85);
  color: var(--tbi-paper);
}

.tbi-btn--paper {
  background: var(--tbi-paper);
  color: var(--tbi-ink);
}
.tbi-btn--paper:hover,
.tbi-btn--paper:focus {
  background: #ffffff;
  color: var(--tbi-ink);
}

.tbi-btn--ghost-light {
  background: transparent;
  color: var(--tbi-paper);
  border-color: rgba(var(--tbi-paper-rgb), 0.4);
}
.tbi-btn--ghost-light:hover,
.tbi-btn--ghost-light:focus {
  background: rgba(var(--tbi-paper-rgb), 0.1);
  color: var(--tbi-paper);
}

.tbi-btn--ghost-dark {
  background: transparent;
  color: var(--tbi-ink);
  border-color: var(--tbi-ink);
}
.tbi-btn--ghost-dark:hover,
.tbi-btn--ghost-dark:focus {
  background: var(--tbi-ink);
  color: var(--tbi-paper);
}

.tbi-btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ------------------------------------------------------------
   Chips (sobre fondos oscuros)
   ------------------------------------------------------------ */
.tbi-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  background: rgba(var(--tbi-paper-rgb), 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--tbi-paper);
  font-size: 0.75rem;
  text-decoration: none;
  transition: background-color .2s ease;
  line-height: 1.2;
}
a.tbi-chip:hover,
a.tbi-chip:focus {
  background: rgba(var(--tbi-paper-rgb), 0.25);
}

/* ------------------------------------------------------------
   HERO (sección [tbi_local_hero])
   ------------------------------------------------------------ */
.tbi-hero {
  position: relative;
  height: 82svh;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.tbi-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.tbi-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(var(--tbi-ink-rgb), 0.70) 0%,
    rgba(var(--tbi-ink-rgb), 0.10) 55%,
    rgba(var(--tbi-ink-rgb), 0.00) 100%
  );
  z-index: -1;
}
@media (max-width: 640px) {
  .tbi-hero__gradient {
    background: linear-gradient(
      to top,
      rgba(var(--tbi-ink-rgb), 0.85) 0%,
      rgba(var(--tbi-ink-rgb), 0.55) 38%,
      rgba(var(--tbi-ink-rgb), 0.18) 70%,
      rgba(var(--tbi-ink-rgb), 0.00) 100%
    );
  }
}

.tbi-hero__inner {
  position: relative;
  max-width: var(--tbi-container);
  width: 100%;
  margin-inline: auto;
  padding: 0 var(--tbi-gutter) 3.5rem;
  color: var(--tbi-paper);
}

.tbi-hero__back {
  display: inline-block;
  color: rgba(var(--tbi-paper-rgb), 0.7);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color .2s ease;
}
.tbi-hero__back:hover { color: var(--tbi-paper); }

.tbi-hero__eyebrow {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-tint, rgba(var(--tbi-paper-rgb), 0.8));
}

.tbi-hero__title {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  margin: 0;
}

.tbi-hero__tagline {
  margin-top: 0.75rem;
  max-width: 36rem;
  color: rgba(var(--tbi-paper-rgb), 0.85);
  font-size: 1.125rem;
  line-height: 1.5;
}

.tbi-hero__chips {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ------------------------------------------------------------
   CONCEPT (frase editorial)
   ------------------------------------------------------------ */
.tbi-concept {
  max-width: 48rem;
  margin-inline: auto;
  padding: 6rem var(--tbi-gutter);
  text-align: center;
}

.tbi-concept__bar {
  display: block;
  width: 2.5rem;
  height: 3px;
  margin: 0 auto 1.75rem;
  background: var(--accent, var(--tbi-sand));
}

.tbi-concept__text {
  font-size: clamp(1.35rem, 2.2vw, 1.875rem);
  line-height: 1.35;
  margin: 0;
}

/* ------------------------------------------------------------
   GALLERY
   ------------------------------------------------------------ */
.tbi-gallery {
  max-width: var(--tbi-container);
  margin-inline: auto;
  padding: 0 var(--tbi-gutter) 6rem;
}

.tbi-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .tbi-gallery__grid { grid-template-columns: repeat(4, 1fr); }
}

.tbi-gallery__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* ------------------------------------------------------------
   INSTAGRAM (feed editorial por local)
   ------------------------------------------------------------ */
.tbi-ig {
  max-width: 1180px;
  margin-inline: auto;
  padding: 0 var(--tbi-gutter) 6rem;
}
/* Masthead estilo revista: nombre de la cuenta + enlace a seguir */
.tbi-ig__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--tbi-line);
}
.tbi-ig__handle {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0;
}
.tbi-ig__follow-link {
  color: rgba(var(--tbi-ink-rgb), 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}
.tbi-ig__follow-link:hover { color: var(--tbi-ink); }

/* Pieza editorial: foto protagonista + texto (caption real como standfirst) */
.tbi-ig__feature {
  display: grid;
  grid-template-columns: 1fr;
  /* mismo gap que la fila de apoyo → separación uniforme en toda la pieza */
  gap: clamp(0.5rem, 1vw, 0.9rem);
  align-items: stretch;
}
@media (min-width: 768px) {
  .tbi-ig__feature { grid-template-columns: 1.15fr 0.85fr; }
}
.tbi-ig__feature-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.6rem;
  background: var(--tbi-cream);
}
.tbi-ig__feature-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--tbi-ease-out);
}
@media (hover: hover) {
  .tbi-ig__feature-media:hover img { transform: scale(1.03); }
}
/* Columna de texto = panel crema redondeado, mismo radio que las fotos,
   a la misma altura que la imagen (dos paneles gemelos). */
.tbi-ig__feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--tbi-cream);
  border-radius: 0.6rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.tbi-ig__excerpt {
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  line-height: 1.38;
  margin: 0 0 1.25rem;
}
.tbi-ig__meta {
  color: rgba(var(--tbi-ink-rgb), 0.6);
  font-size: 0.9rem;
  margin: 0;
}
.tbi-ig__meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tbi-ig__meta a:hover { color: var(--tbi-ink); }

/* Apoyo: un cuadrado GRANDE a la derecha (2×2) + dos cuadrados apilados
   a su izquierda que suman su misma altura. */
.tbi-ig__support {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "a c c"
    "b c c";
  gap: clamp(0.5rem, 1vw, 0.9rem);
  /* 3 columnas × 2 filas con esta proporción → cada celda es cuadrada,
     y el grande (2×2) también sale cuadrado. */
  aspect-ratio: 3 / 2;
  /* mismo margen que el hueco entre cuadrados → separación uniforme con la foto */
  margin-top: clamp(0.5rem, 1vw, 0.9rem);
}
.tbi-ig__support-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.5rem;
  background: var(--tbi-cream);
}
.tbi-ig__support-item:nth-child(1) { grid-area: c; }  /* grande dcha (2×2) */
.tbi-ig__support-item:nth-child(2) { grid-area: a; }  /* pequeño sup. izq */
.tbi-ig__support-item:nth-child(3) { grid-area: b; }  /* pequeño inf. izq */
.tbi-ig__support-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--tbi-ease-out);
}
@media (hover: hover) {
  .tbi-ig__support-item:hover img { transform: scale(1.05); }
}

.tbi-ig__play {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(var(--tbi-ink-rgb), 0.5);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

/* Variante sin feed conectado: panel crema con el enlace al perfil.
   Mismo masthead que el feed, para que al conectar la cuenta el bloque
   se sustituya sin saltos de maquetación. */
.tbi-ig__invite {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--tbi-cream);
  border-radius: 0.6rem;
  padding: clamp(1.75rem, 4vw, 3rem);
}
@media (min-width: 768px) {
  .tbi-ig__invite {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 3rem);
  }
}
.tbi-ig__invite-text {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.38;
  margin: 0;
  max-width: 34ch;
}
.tbi-ig__invite-cta svg { flex: none; }

/* ------------------------------------------------------------
   REVIEWS
   ------------------------------------------------------------ */
.tbi-reviews {
  border-top: 1px solid var(--tbi-line);
  padding-inline: var(--tbi-gutter);
}

.tbi-reviews__card {
  max-width: 36rem;
  margin: 5rem auto;
  padding: 3rem 2rem;
  background: #ffffff;
  border: 1px solid var(--tbi-line);
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
@media (min-width: 768px) {
  .tbi-reviews__card { padding: 3rem; }
}

.tbi-reviews__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
  font-size: 1rem;
  color: rgba(var(--tbi-ink-rgb), 0.7);
}

.tbi-reviews__score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.tbi-reviews__value {
  font-size: clamp(3.5rem, 8vw, 4.5rem);
  line-height: 1;
}

.tbi-reviews__stars-wrap { text-align: left; }

.tbi-reviews__stars {
  position: relative;
  display: inline-block;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.05em;
}
.tbi-reviews__stars-bg { color: #dcdcdc; }
.tbi-reviews__stars-fg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #FBBC04;
}

.tbi-reviews__count {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: rgba(var(--tbi-ink-rgb), 0.65);
}

.tbi-reviews__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tbi-tag {
  display: inline-block;
  border: 1px solid var(--tbi-line);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  color: rgba(var(--tbi-ink-rgb), 0.70);
  line-height: 1.2;
}

.tbi-reviews__card .tbi-btn {
  margin-top: 2.25rem;
  padding: 0.85rem 1.75rem;
}

/* ------------------------------------------------------------
   CARTA + RESERVAR (banda oscura)
   ------------------------------------------------------------ */
.tbi-cr {
  background: var(--tbi-ink);
  color: var(--tbi-paper);
}

.tbi-cr__inner {
  max-width: var(--tbi-container);
  margin-inline: auto;
  padding: 6rem var(--tbi-gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .tbi-cr__inner {
    /* Carta = rail estrecho; reservas = ancho para que CoverManager ponga
       calendario y formulario en paralelo (necesita ~800px). */
    grid-template-columns: minmax(0, 18rem) 1fr;
    gap: 3.5rem;
  }
  /* Sin reserva online (solo teléfono): rejilla equilibrada, no la ancha de CM */
  .tbi-cr--phone .tbi-cr__inner {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Reserva por teléfono (locales sin CoverManager) */
.tbi-cr__book-phone {
  padding: 1.75rem 1.5rem 2rem;
}
.tbi-cr__book-phone .tbi-btn { width: 100%; }

/* ------------------------------------------------------------
   WhatsApp flotante (site-wide) — pulso + expansión a pastilla en hover
   ------------------------------------------------------------ */
.tbi-wa {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 55; /* sobre contenido/header (50), bajo el drawer (60) */
  display: inline-flex;
  align-items: center;
  height: 3.5rem;
  background: #25D366;
  color: #fff;
  border-radius: 9999px;
  box-shadow: 0 6px 20px rgba(var(--tbi-ink-rgb), 0.22);
  transition: transform .25s var(--tbi-ease-out), box-shadow .2s ease;
}
.tbi-wa__icon {
  flex: 0 0 3.5rem;
  width: 3.5rem;
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tbi-wa__label {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  font-weight: 600;
  font-size: 0.9rem;
  transition: max-width .4s var(--tbi-ease-out), opacity .25s ease, padding .4s var(--tbi-ease-out);
}
/* Anillo de pulso (atención) detrás del icono */
.tbi-wa::after {
  content: "";
  position: absolute;
  left: 1.75rem;
  top: 50%;
  width: 3.5rem;
  height: 3.5rem;
  margin: -1.75rem 0 0 -1.75rem;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: tbi-wa-pulse 2.6s var(--tbi-ease-out) infinite;
}
@keyframes tbi-wa-pulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  70%  { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}
.tbi-wa:hover,
.tbi-wa:focus { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(var(--tbi-ink-rgb), 0.3); }
.tbi-wa:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .tbi-wa:hover .tbi-wa__label,
  .tbi-wa:focus .tbi-wa__label { max-width: 11rem; opacity: 1; padding-right: 1.2rem; }
  .tbi-wa:hover::after { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tbi-wa::after { animation: none; }
  .tbi-wa__label { transition: opacity .2s ease; }
}
@media print { .tbi-wa { display: none; } }

.tbi-cr__menu h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0;
}

.tbi-cr__copy {
  margin-top: 1.25rem;
  max-width: 28rem;
  color: rgba(var(--tbi-paper-rgb), 0.70);
  line-height: 1.6;
}

.tbi-cr__menu .tbi-btn {
  margin-top: 1.75rem;
}
.tbi-cr__cartas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.tbi-cr__cartas .tbi-btn { margin-top: 0; }

.tbi-cr__book {
  background: var(--tbi-paper);
  color: var(--tbi-ink);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tbi-cr__book-head {
  padding: 1.5rem 1.5rem 0.75rem;
}

.tbi-cr__book-head h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin: 0;
  color: var(--tbi-ink);
}

.tbi-cr__book-copy {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: rgba(var(--tbi-ink-rgb), 0.65);
}

/* En móvil el panel se sale del gutter: el widget de CoverManager tiene un
   ancho mínimo propio y a 350px cortaba el desplegable de la hora. */
@media (max-width: 767px) {
  .tbi-cr__book {
    margin-inline: calc(var(--tbi-gutter) * -1);
    border-radius: 0;
  }
}

.tbi-cm-iframe {
  display: block;
  width: 100%;
  min-height: 200px; /* suelo; iframeResizer ajusta a la altura real del contenido */
  border: 0;
  background: #ffffff;
}

.tbi-cr__book-foot {
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(var(--tbi-ink-rgb), 0.70);
  border-top: 1px solid var(--tbi-line);
}
.tbi-cr__book-foot a {
  color: var(--tbi-ink);
  font-weight: 500;
}
.tbi-cr__book-foot a:hover { text-decoration: underline; }

/* ------------------------------------------------------------
   LOCATION
   ------------------------------------------------------------ */
.tbi-loc__inner {
  max-width: var(--tbi-container);
  margin-inline: auto;
  padding: 6rem var(--tbi-gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .tbi-loc__inner {
    grid-template-columns: 1fr 1fr;
  }
}

.tbi-loc__info h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  margin: 0;
}

.tbi-loc__line {
  margin: 0.25rem 0 0;
  color: rgba(var(--tbi-ink-rgb), 0.65);
}

.tbi-loc__info .tbi-btn {
  margin-top: 1.75rem;
}

.tbi-loc__map {
  width: 100%;
  height: 18rem;
  border: 0;
  border-radius: 0.75rem;
}

/* ------------------------------------------------------------
   EVENTS CTA (cierre)
   ------------------------------------------------------------ */
.tbi-events-cta {
  background: var(--tbi-cream);
  border-top: 1px solid var(--tbi-line);
}

.tbi-events-cta__inner {
  max-width: 48rem;
  margin-inline: auto;
  padding: 5rem var(--tbi-gutter);
  text-align: center;
}

.tbi-events-cta__inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0;
}

.tbi-events-cta__inner p {
  margin: 0.75rem 0 0;
  color: rgba(var(--tbi-ink-rgb), 0.65);
}

.tbi-events-cta__inner .tbi-btn {
  margin-top: 1.75rem;
}

/* ------------------------------------------------------------
   HEADER overlay (translucent fixed) — usado por inc/header.php
   ------------------------------------------------------------ */
.tbi-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  background: rgba(var(--tbi-paper-rgb), 0.95);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  border-bottom: 1px solid var(--tbi-line);
}

.tbi-header__inner {
  max-width: var(--tbi-container);
  margin-inline: auto;
  padding: 0 var(--tbi-gutter);
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tbi-header__logo img {
  height: 2.25rem;
  width: auto;
}

.tbi-header__nav {
  display: none;
  align-items: center;
  gap: 2.25rem;
  font-size: 0.875rem;
  color: rgba(var(--tbi-ink-rgb), 0.8);
}
@media (min-width: 1024px) {
  .tbi-header__nav { display: flex; }
}

.tbi-header__nav a { text-decoration: none; transition: color .2s ease; }
.tbi-header__nav a:hover { color: var(--tbi-ink); }

/* Submenu Locales — dropdown desktop */
.tbi-header__nav .tbi-menu > li { position: relative; }
.tbi-header__nav .menu-item-has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.tbi-header__nav .menu-item-has-children > a::after {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.55;
  transition: transform .2s ease, opacity .2s ease;
}
.tbi-header__nav .menu-item-has-children:hover > a::after,
.tbi-header__nav .menu-item-has-children:focus-within > a::after {
  transform: rotate(-135deg) translateY(-1px);
  opacity: 0.9;
}
.tbi-header__nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  flex-direction: column;
  gap: 0.15rem;
  min-width: 13rem;
  margin: 0;
  padding: 0.5rem;
  background: var(--tbi-paper);
  border: 1px solid var(--tbi-line);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(var(--tbi-ink-rgb), 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 60;
}
/* Puente invisible para no perder el hover en el hueco parent→dropdown */
.tbi-header__nav .sub-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.tbi-header__nav .menu-item-has-children:hover > .sub-menu,
.tbi-header__nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.tbi-header__nav .sub-menu li { width: 100%; }
.tbi-header__nav .sub-menu a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 9px;
  white-space: nowrap;
  font-size: 0.875rem;
  color: rgba(var(--tbi-ink-rgb), 0.8);
}
.tbi-header__nav .sub-menu a:hover {
  background: var(--tbi-cream);
  color: var(--tbi-ink);
}

/* Submenu Locales — lista indentada en el drawer móvil */
.tbi-drawer__nav .sub-menu {
  flex-direction: column;
  gap: 0.1rem;
  margin: 0.1rem 0 0.5rem;
  padding-left: 0.9rem;
}
.tbi-drawer__nav .sub-menu a {
  padding: 0.3rem 0;
  border-bottom: 0;
  font-family: var(--tbi-sans, inherit);
  font-size: 0.95rem;
  color: rgba(var(--tbi-ink-rgb), 0.65);
}
.tbi-drawer__nav .sub-menu a:hover { color: var(--tbi-ink); }

.tbi-header__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.tbi-header__lang {
  font-size: 0.75rem;
}
.tbi-header__lang .is-active { font-weight: 600; }
.tbi-header__lang span.sep { color: rgba(var(--tbi-ink-rgb), 0.3); margin-inline: 0.35rem; }
.tbi-header__lang a {
  color: rgba(var(--tbi-ink-rgb), 0.65);
  text-decoration: none;
}
.tbi-header__lang a:hover { color: var(--tbi-ink); }

.tbi-header__cta {
  display: none;
  align-items: center;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  background: var(--tbi-ink);
  color: var(--tbi-paper);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .2s ease, transform .15s var(--tbi-ease-out);
}
@media (min-width: 640px) {
  .tbi-header__cta { display: inline-flex; }
}
.tbi-header__cta:hover,
.tbi-header__cta:focus { opacity: 0.85; color: var(--tbi-paper); }
.tbi-header__cta:active { transform: scale(0.97); }

/* Hamburguesa (mobile) */
.tbi-header__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--tbi-ink);
}
/* Neutralizar el [type=button]:hover/:focus{background:#c36} del reset del parent */
.tbi-header__burger:hover,
.tbi-header__burger:focus,
.tbi-header__burger:active {
  background: transparent;
  color: var(--tbi-ink);
}
@media (min-width: 1024px) { .tbi-header__burger { display: none; } }

/* Drawer */
.tbi-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.tbi-drawer.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity .25s ease;
}

.tbi-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(var(--tbi-ink-rgb), 0.5);
}

.tbi-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 22rem);
  background: var(--tbi-paper);
  padding: 1.25rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform .35s var(--tbi-ease-drawer);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tbi-drawer.is-open .tbi-drawer__panel { transform: translateX(0); }

.tbi-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.tbi-drawer__logo {
  height: 2.4rem;
  width: auto;
}

.tbi-drawer__close {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--tbi-ink);
}
.tbi-drawer__close:hover,
.tbi-drawer__close:focus,
.tbi-drawer__close:active {
  background: transparent;
  color: var(--tbi-ink);
}
.tbi-drawer__close svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.tbi-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--tbi-serif);
  font-size: 1.5rem;
}
.tbi-drawer__nav a {
  padding: 0.5rem 0;
  text-decoration: none;
  color: var(--tbi-ink);
}

.tbi-drawer__cta {
  margin-top: 1rem;
}

/* Cuando el drawer está abierto, congelar el body */
body.tbi-no-scroll {
  overflow: hidden;
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
.tbi-footer {
  background: var(--tbi-ink);
  color: rgba(var(--tbi-paper-rgb), 0.6);
}

.tbi-footer__inner {
  max-width: var(--tbi-container);
  margin-inline: auto;
  padding: 2.5rem var(--tbi-gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(var(--tbi-paper-rgb), 0.45);
}
@media (min-width: 640px) {
  .tbi-footer__inner { flex-direction: row; }
}

.tbi-footer__logo img {
  height: 2.25rem;
  width: auto;
}

.tbi-footer__credit { color: rgba(var(--tbi-paper-rgb), 0.6); text-decoration: none; }
.tbi-footer__credit:hover { color: var(--tbi-paper); }

/* ------------------------------------------------------------
   single-tbi_local — el hero ya tapa el header overlay, sin extra padding-top
   En páginas distintas se gestiona desde el template/CSS de la página.
   ------------------------------------------------------------ */
.site-main.tbi-single-local { padding: 0; }
.site-main.tbi-home { padding: 0; }

/* ============================================================
   HOME — secciones
   ============================================================ */

/* HERO HOME (vídeo bg) */
.tbi-home-hero {
  position: relative;
  height: 88svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.tbi-home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.tbi-home-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--tbi-ink-rgb), 0.60) 0%, rgba(var(--tbi-ink-rgb), 0.10) 55%, rgba(var(--tbi-ink-rgb), 0.00) 100%);
  z-index: -1;
}
.tbi-home-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--tbi-container);
  width: 100%;
  margin-inline: auto;
  padding: 0 var(--tbi-gutter) 5.5rem;
  color: var(--tbi-paper);
}
@media (min-width: 640px) {
  .tbi-home-hero__inner { padding-bottom: 7rem; }
}
.tbi-home-hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(var(--tbi-paper-rgb), 0.85);
  margin: 0 0 1.25rem;
}
.tbi-home-hero__title {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  line-height: 1.04;
  margin: 0;
  max-width: 60rem;
}
.tbi-br-sm-up { display: none; }
@media (min-width: 640px) {
  .tbi-br-sm-up { display: inline; }
}

/* MANIFIESTO */
.tbi-manifiesto {
  max-width: 48rem;
  margin-inline: auto;
  padding: 7rem var(--tbi-gutter);
  text-align: center;
}
@media (min-width: 640px) {
  .tbi-manifiesto { padding-block: 8rem; }
}
.tbi-manifiesto__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--tbi-sand-text);
  margin: 0 0 1.75rem;
}
.tbi-manifiesto__title {
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  line-height: 1.25;
  margin: 0;
}
.tbi-manifiesto__text {
  margin-top: 1.75rem;
  color: rgba(var(--tbi-ink-rgb), 0.70);
  line-height: 1.65;
  font-size: 1.0625rem;
}

/* LO QUE NOS UNE — 3 pilares */
.tbi-pillars {
  border-block: 1px solid var(--tbi-line);
  background: var(--tbi-cream);
}
.tbi-pillars__grid {
  max-width: 72rem;
  margin-inline: auto;
  padding: 5rem var(--tbi-gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .tbi-pillars__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    padding-block: 6rem;
  }
}
.tbi-pillar__eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--tbi-sand-text);
  margin: 0 0 1rem;
}
.tbi-pillar__title {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
.tbi-pillar__text {
  color: rgba(var(--tbi-ink-rgb), 0.65);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0;
}

/* SELECTOR DE LOCALES */
.tbi-locales {
  max-width: var(--tbi-container);
  margin-inline: auto;
  padding: 6rem var(--tbi-gutter);
}
@media (min-width: 640px) {
  .tbi-locales { padding-block: 7rem; }
}
.tbi-locales__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--tbi-line);
}
@media (min-width: 640px) {
  .tbi-locales__head { margin-bottom: 3.5rem; }
}
.tbi-locales__head h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  margin: 0;
}
.tbi-locales__count {
  font-size: 0.875rem;
  color: rgba(var(--tbi-ink-rgb), 0.65);
}
.tbi-locales__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem 1.5rem;
}
@media (min-width: 640px) { .tbi-locales__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tbi-locales__grid { grid-template-columns: repeat(4, 1fr); } }

.tbi-loc-card {
  display: block;
  text-decoration: none;
  color: var(--tbi-ink);
}
.tbi-loc-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--tbi-line);
}
.tbi-loc-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
@media (hover: hover) and (pointer: fine) {
  .tbi-loc-card:hover .tbi-loc-card__img { transform: scale(1.04); }
}

.tbi-loc-card__body { margin-top: 1.25rem; }
.tbi-loc-card__bar {
  display: block;
  width: 2rem;
  height: 3px;
  background: var(--accent, var(--tbi-sand));
  margin-bottom: 0.75rem;
}
.tbi-loc-card__title {
  font-size: 1.5rem;
  margin: 0;
}
.tbi-loc-card__caption {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: rgba(var(--tbi-ink-rgb), 0.65);
}
.tbi-loc-card__cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-text, var(--accent, var(--tbi-ink)));
}
.tbi-arrow {
  display: inline-block;
  transition: transform .3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .tbi-loc-card:hover .tbi-arrow { transform: translateX(4px); }
}

.tbi-locales__help {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--tbi-line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}
@media (min-width: 768px) {
  .tbi-locales__help {
    grid-template-columns: 1fr auto;
    gap: 3rem;
    margin-top: 5rem;
    padding-top: 3.5rem;
  }
}
.tbi-locales__help h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  line-height: 1.25;
  margin: 0;
  max-width: 36rem;
}
.tbi-locales__help p {
  margin: 0.75rem 0 0;
  color: rgba(var(--tbi-ink-rgb), 0.65);
  line-height: 1.65;
  max-width: 36rem;
}
.tbi-locales__help-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* TEASERS (Eventos / Real Estate) */
.tbi-teaser {
  border-top: 1px solid var(--tbi-line);
}
.tbi-teaser--paper { background: var(--tbi-paper); }
.tbi-teaser--cream { background: var(--tbi-cream); }

.tbi-teaser__inner {
  max-width: 72rem;
  margin-inline: auto;
  padding: 3.5rem var(--tbi-gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 640px) {
  .tbi-teaser__inner {
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
    padding-block: 4rem;
  }
}
.tbi-teaser__title {
  font-size: clamp(1.35rem, 2.5vw, 1.875rem);
  line-height: 1.3;
  margin: 0;
}

/* FOOTER LOCALES (sustituye al footer minimal) */
.tbi-footer--rich {
  background: var(--tbi-ink);
  color: rgba(var(--tbi-paper-rgb), 0.70);
}
.tbi-footer--rich .tbi-footer__inner {
  flex-direction: column;
  align-items: stretch;
  padding-block: 4rem;
}
@media (min-width: 640px) {
  .tbi-footer--rich .tbi-footer__inner { padding-block: 5rem; }
}
.tbi-footer--rich .tbi-footer__logo img,
.tbi-footer--rich .tbi-footer__logo picture {
  height: 2.5rem;
  width: auto;
  margin-bottom: 3rem;
}
.tbi-footer-locales {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  font-size: 0.875rem;
  color: rgba(var(--tbi-paper-rgb), 0.65);
}
@media (min-width: 640px) { .tbi-footer-locales { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tbi-footer-locales { grid-template-columns: repeat(4, 1fr); } }
.tbi-footer-locales__name {
  color: var(--tbi-paper);
  font-size: 1.125rem;
  margin: 0 0 0.25rem;
}
.tbi-footer-locales__dir { margin: 0; }
.tbi-footer-locales__temp {
  margin: 0.45rem 0 0;
  color: rgba(var(--tbi-paper-rgb), 0.55);
}
.tbi-footer-locales__hor {
  margin: 0.1rem 0 0;
  color: rgba(var(--tbi-paper-rgb), 0.55);
}
.tbi-footer__legal {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(var(--tbi-paper-rgb), 0.10);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(var(--tbi-paper-rgb), 0.55);
}
@media (min-width: 640px) { .tbi-footer__legal { flex-direction: row; } }
.tbi-footer__legal a {
  color: inherit;
  text-decoration: none;
}
.tbi-footer__legal a:hover { color: var(--tbi-paper); }
.tbi-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
}

/* ============================================================
   PÁGINAS INTERIORES
   ============================================================ */

/* Page hero (más pequeño que home hero) */
.tbi-page-hero {
  position: relative;
  min-height: 56svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 641px) {
  .tbi-page-hero { min-height: max(56svh, 360px); }
}
.tbi-page-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.tbi-page-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--tbi-ink-rgb), 0.65) 0%, rgba(var(--tbi-ink-rgb), 0.10) 60%, rgba(var(--tbi-ink-rgb), 0.00) 100%);
  z-index: -1;
}
.tbi-page-hero__inner {
  position: relative;
  max-width: var(--tbi-container);
  width: 100%;
  margin-inline: auto;
  padding: 6rem var(--tbi-gutter) 3rem;
  color: var(--tbi-paper);
}
@media (max-width: 640px) {
  .tbi-page-hero__inner { padding: 6rem var(--tbi-gutter) 2.25rem; }
  .tbi-page-hero__eyebrow { letter-spacing: 0.2em; }
}
.tbi-page-hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(var(--tbi-paper-rgb), 0.85);
  margin: 0 0 1rem;
}
.tbi-page-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin: 0;
  max-width: 50rem;
}
.tbi-page-hero__subtitle {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  color: rgba(var(--tbi-paper-rgb), 0.85);
  max-width: 36rem;
  line-height: 1.5;
}

/* Form section (texto izq + form der) */
.tbi-form-sec {
  border-top: 1px solid var(--tbi-line);
}
.tbi-form-sec--paper { background: var(--tbi-paper); }
.tbi-form-sec--cream { background: var(--tbi-cream); }

.tbi-form-sec__inner {
  max-width: 72rem;
  margin-inline: auto;
  padding: 5rem var(--tbi-gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 900px) {
  .tbi-form-sec__inner {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
    padding-block: 6rem;
  }
}
.tbi-form-sec__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  margin: 0 0 1.25rem;
}
.tbi-form-sec__text {
  color: rgba(var(--tbi-ink-rgb), 0.70);
  line-height: 1.65;
  margin: 0;
}

/* Reset visual mínimo para Fluent Forms inputs (que se integren a paleta) */
.tbi-form-sec .ff-el-input--label label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tbi-ink);
  margin-bottom: 0.4rem;
  display: block;
}
.tbi-form-sec .ff_t_c,
.tbi-form-sec input[type="text"],
.tbi-form-sec input[type="email"],
.tbi-form-sec input[type="tel"],
.tbi-form-sec input[type="number"],
.tbi-form-sec input[type="date"],
.tbi-form-sec textarea,
.tbi-form-sec select {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--tbi-line);
  border-radius: 0.5rem;
  background: var(--tbi-paper);
  color: var(--tbi-ink);
  font-family: var(--tbi-sans);
  font-size: 1rem; /* 16px: por debajo, iOS hace zoom al enfocar el campo */
  transition: border-color .2s ease;
}
.tbi-form-sec input:focus,
.tbi-form-sec textarea:focus,
.tbi-form-sec select:focus {
  outline: none;
  border-color: var(--tbi-ink);
}
.tbi-form-sec .ff-btn,
.tbi-form-sec button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--tbi-ink);
  color: var(--tbi-paper);
  border: 0;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .2s ease, transform .15s var(--tbi-ease-out);
}
.tbi-form-sec button[type="submit"]:active { transform: scale(0.97); }
.tbi-form-sec .ff-btn:hover,
.tbi-form-sec .ff-btn:focus,
.tbi-form-sec button[type="submit"]:hover,
.tbi-form-sec button[type="submit"]:focus {
  opacity: 0.85;
  background: var(--tbi-ink);
  color: var(--tbi-paper);
}
.tbi-form-sec .ff-message-success { color: #2c7a4a; }
.tbi-form-sec .ff-el-form-check label { font-size: 0.875rem; color: rgba(var(--tbi-ink-rgb), 0.70); }
.tbi-form-sec .ff-el-form-check a { text-decoration: underline; }
/* Check RGPD: el checkbox nativo mide 13px y es intocable con el dedo */
.tbi-form-sec .ff-el-form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.tbi-form-sec .ff-el-form-check input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.05rem 0 0;
  flex: none;
  accent-color: var(--tbi-ink);
}
.tbi-form-sec .ff-el-form-check label { line-height: 1.5; }

/* Layout 2 columnas (≥640px): emparejar campos cortos para acortar el form.
   Sin :has() (o en móvil) degrada a una columna. Empareja por name:
   Email|Teléfono · Local|Tipo de evento · Nº personas|Fecha. */
@media (min-width: 640px) {
  /* .tbi-form-sec extra para ganar a `.frm-fluent-form .ff-t-cell{display:flex}` (0,2,0) de FF */
  .tbi-form-sec .tbi-form-sec__form .ff-t-cell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.25rem;
  }
  .tbi-form-sec .tbi-form-sec__form .ff-t-cell > .ff-el-group { grid-column: 1 / -1; }
  .tbi-form-sec .tbi-form-sec__form .ff-el-group:has(input[name="email"]),
  .tbi-form-sec .tbi-form-sec__form .ff-el-group:has(input[name="phone"]),
  .tbi-form-sec .tbi-form-sec__form .ff-el-group:has(select[name="local"]),
  .tbi-form-sec .tbi-form-sec__form .ff-el-group:has(select[name="event_type"]),
  .tbi-form-sec .tbi-form-sec__form .ff-el-group:has(input[name="attendees"]),
  .tbi-form-sec .tbi-form-sec__form .ff-el-group:has(input[name="event_date"]) {
    grid-column: span 1;
  }
}

/* ------------------------------------------------------------
   BANNER DE COOKIES (Complianz)
   ------------------------------------------------------------ */
/* Complianz oculta con .cmplz-hidden los enlaces que no aplican
   (declaración de privacidad, impressum) pero deja su <li>, que
   sigue pintando una viñeta vacía bajo "Política de cookies". */
.cmplz-links li:has(> a.cmplz-hidden) { display: none; }
/* Aviso de contenido bloqueado (mapa, reservas) antes del consentimiento: Complianz lo pinta
   blanco sobre rgba(0,0,0,.5) → 3,94:1 sobre el placeholder gris. Tinta de marca → AA holgado. */
.cmplz-blocked-content-container .cmplz-blocked-content-notice,
.cmplz-wp-video .cmplz-blocked-content-notice {
  background-color: rgba(var(--tbi-ink-rgb), 0.92);
  color: var(--tbi-paper);
  border: 0; /* el reset de Hello pinta los <button> con borde #c36 */
  border-radius: 999px;
}

/* ------------------------------------------------------------
   PÁGINAS LEGALES (aviso legal, privacidad, cookies)
   Documentos largos de texto corrido. El resto de páginas del
   sitio son secciones full-bleed, así que el ancho de lectura se
   acota solo aquí y en el documento que genera Complianz.
   ------------------------------------------------------------ */
.tbi-legal,
#cmplz-document {
    max-width: 760px;
    margin-inline: auto;
    padding: clamp(40px, 7vw, 88px) var(--tbi-gutter) clamp(64px, 9vw, 120px);
    color: var(--tbi-ink);
    font-size: 1rem;
    line-height: 1.75;
}

.tbi-legal h2,
#cmplz-document h2 {
    font-family: var(--tbi-serif);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    line-height: 1.25;
    margin: 2.4em 0 0.6em;
}

.tbi-legal h3,
#cmplz-document h3 {
    font-family: var(--tbi-serif);
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    margin: 1.8em 0 0.5em;
}

.tbi-legal h2:first-child,
#cmplz-document h2:first-child { margin-top: 0; }

.tbi-legal p,
#cmplz-document p { margin: 0 0 1.1em; }

.tbi-legal ul,
#cmplz-document ul { margin: 0 0 1.4em; padding-left: 1.25em; }

.tbi-legal li,
#cmplz-document li { margin-bottom: 0.4em; }

.tbi-legal a,
#cmplz-document a { color: var(--tbi-ink); text-underline-offset: 3px; }

/* Ficha de datos del titular / responsable */
.tbi-legal__datos {
    background: var(--tbi-cream);
    border: 1px solid var(--tbi-line);
    border-radius: 14px;
    padding: clamp(20px, 3vw, 28px);
    margin: 0 0 2.4em;
}
.tbi-legal__datos p { margin-bottom: 0.35em; }
.tbi-legal__datos p:last-child { margin-bottom: 0; }

/* Aviso de documento no validado. Es temporal: se retira junto con
   los textos definitivos que apruebe el cliente. */
.tbi-legal__pendiente {
    border: 1px dashed #B5732A;
    border-radius: 14px;
    background: #FBF3E9;
    padding: clamp(18px, 3vw, 26px);
    margin: 0 0 2.6em;
    font-size: 0.95rem;
}
.tbi-legal__pendiente strong { display: block; margin-bottom: 0.4em; }
.tbi-legal__pendiente p:last-child { margin-bottom: 0; }

/* Dato pendiente de aportar por el cliente */
.tbi-legal mark {
    background: #FBE6C8;
    color: #7A4A12;
    padding: 0.1em 0.4em;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

/* Encabezado de documento legal (sin foto: son documentos, no secciones) */
.tbi-legal__eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--tbi-sand-text);
    margin: 0 0 0.6em;
}

.tbi-legal__title {
    font-family: var(--tbi-serif);
    font-size: clamp(2rem, 5vw, 2.85rem);
    line-height: 1.1;
    margin: 0 0 0.5em;
}

.tbi-legal__intro {
    font-size: 1.05rem;
    color: rgba(var(--tbi-ink-rgb), 0.72);
    margin: 0 0 2.4em;
}

/* ============================================================
   ÁREAS TÁCTILES
   Enlaces que se leían bien pero no se dejaban pulsar con el dedo.
   El objetivo cómodo son 44px: se gana con padding e inline-flex,
   sin mover de sitio el texto ni cambiar la tipografía.
   ============================================================ */

/* Botones: se quedaban en 43px de alto, un pelo por debajo del mínimo */
.tbi-btn { min-height: 2.75rem; }

/* Logo del header (es el enlace a la home) */
.tbi-header__logo {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* Selector de idioma: "EN" medía 16x15px */
.tbi-header__lang {
  display: inline-flex;
  align-items: center;
}
.tbi-header__lang a,
.tbi-header__lang .is-active {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.4rem;
}

/* Chips del hero de ficha (horario · Instagram) */
.tbi-chip { min-height: 2.75rem; }

/* "← Todos los locales": el margen negativo compensa el padding nuevo */
.tbi-hero__back {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: -0.7rem;
  margin-bottom: -0.7rem;
}

/* "Ver local →" de las cards y "Seguir en Instagram ›" */
.tbi-loc-card__cta,
.tbi-ig__follow-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* Teléfonos y enlaces sueltos dentro del contenido: eran texto de 17px */
.tbi-loc__line a[href^="tel:"],
.tbi-cr__book-foot a,
.tbi-ig__meta a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* Menú móvil: ítems y botón de cerrar */
.tbi-drawer__close {
  width: 2.75rem;
  height: 2.75rem;
}
.tbi-drawer__nav .tbi-menu > li > a {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}

/* Pie: teléfono y enlaces legales */
.tbi-footer__legal a,
.tbi-footer__legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* WhatsApp flotante: se aparta mientras hay un formulario o el widget de
   reservas en pantalla (tapaba sus controles en móvil). Ver assets/js/wa-float.js */
.tbi-wa {
  transition: transform .25s var(--tbi-ease-out), box-shadow .2s ease,
              opacity .25s ease, visibility .25s ease;
}
.tbi-wa.is-away {
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem) scale(0.92);
  pointer-events: none;
}
.tbi-wa.is-away::after { animation: none; }

/* CTA del hero de la home: en móvil, la primera pantalla ofrecía
   solo el titular; ahora lleva al selector de locales. */
.tbi-home-hero__cta {
  margin-top: clamp(1.5rem, 4vw, 2rem);
  align-self: flex-start;
}

/* ============================================================
   BARRA DE ACCIONES DE FICHA (solo móvil)
   Lo que busca quien entra a una ficha desde Instagram: reservar,
   llamar, WhatsApp y cómo llegar. Aparece al dejar atrás el hero.
   ============================================================ */
.tbi-actionbar {
  display: none;
}

@media (max-width: 767px) {
  .tbi-actionbar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 56; /* sobre el contenido, bajo el drawer (60) */
    background: rgba(var(--tbi-paper-rgb), 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--tbi-line);
    padding: 0.6rem clamp(1rem, 4vw, 1.5rem);
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
    transform: translateY(110%);
    transition: transform .35s var(--tbi-ease-out);
  }
  .tbi-actionbar.is-visible { transform: translateY(0); }

  .tbi-actionbar__inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* Acción principal: la píldora oscura del sitio */
  .tbi-actionbar__primary {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.7rem 1.25rem;
    background: var(--tbi-ink);
    color: var(--tbi-paper);
    border-radius: 9999px;
    font-family: var(--tbi-sans);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: opacity .2s ease, transform .15s var(--tbi-ease-out);
  }
  .tbi-actionbar__primary:hover,
  .tbi-actionbar__primary:focus { color: var(--tbi-paper); opacity: 0.9; }
  .tbi-actionbar__primary:active { transform: scale(0.97); }

  /* Acciones secundarias: cuadradas, solo icono */
  .tbi-actionbar__btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--tbi-line);
    border-radius: 9999px;
    background: var(--tbi-cream);
    color: var(--tbi-ink);
    text-decoration: none;
    transition: background-color .2s ease, transform .15s var(--tbi-ease-out);
  }
  .tbi-actionbar__btn:hover,
  .tbi-actionbar__btn:focus { color: var(--tbi-ink); }
  .tbi-actionbar__btn:active { transform: scale(0.94); }

  /* El contenido no debe quedar debajo de la barra */
  body:has(.tbi-actionbar) .tbi-footer { padding-bottom: 5rem; }

  /* En las fichas manda la barra: el flotante repetiría el mismo WhatsApp */
  body:has(.tbi-actionbar) .tbi-wa { display: none; }
}
