.home-header { border-bottom: 1px solid #ded4c4; }
.home-header nav { position: relative; }
.home-header .marca { font-size: 1.125rem; text-decoration: none; }
.home-header .mesa, .chat summary { border: 1px solid #786d5f; text-decoration: none; }
.chat summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .75rem;
  border-radius: .5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.chat summary::-webkit-details-marker { display: none; }
.chat[open] summary, .home-header .mesa:hover, .chat summary:hover { background: #e6dbca; }
.chat-panel {
  position: absolute;
  top: calc(100% + 1rem);
  right: 0;
  width: min(22rem, 100%);
  max-height: min(23rem, 60svh);
  overflow: auto;
  padding: 1.25rem;
  background: #faf7f0;
  border: 1px solid #b7a794;
  border-radius: .75rem;
  box-shadow: 0 .75rem 2rem #18181833;
}
.chat-panel h2 { font-size: 1.25rem; line-height: 1.75rem; }
.chat-panel ul { padding-left: 1.25rem; }
.chat-panel a, .contacto a { display: inline-flex; align-items: center; min-height: 44px; }
.chat-estado { font-size: .875rem; }
.tarjetas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.tarjetas article { overflow: hidden; margin: 0; padding: 1rem; background: #faf7f0; border: 1px solid #ded4c4; border-radius: .75rem; }
.tarjetas img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .5rem; margin-bottom: 1rem; }
.tarjetas a { display: inline-flex; align-items: center; min-height: 44px; }
.reservas .tarjetas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guias ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .5rem 1.5rem; padding-left: 1.25rem; }
.contacto address { margin-top: 1rem; font-style: normal; }
.contacto a { margin-right: 1rem; }
@media (max-width: 40rem) {
  .home-header nav { column-gap: .25rem; }
  .home-header nav > a:not(.marca), .chat summary { padding-inline: .5rem; font-size: .875rem; }
  .tarjetas, .reservas .tarjetas { grid-template-columns: 1fr; }
}

body { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
.home-header nav { justify-content: center; gap: .25rem .5rem; }
.home-header .marca { margin-right: auto; }
.home-header nav a { font-size: .875rem; }
.acciones {
  position: fixed;
  z-index: 5;
  inset: auto 0 0;
  padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  gap: .375rem;
  background: #faf7f0;
  border-top: 1px solid #ded4c4;
}
.acciones > a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem .625rem; font-size: .875rem; border-radius: .5rem; font-weight: 600; }
.acciones .reserva-hotel { background: #1a1612; color: #faf7f0; text-decoration: none; }
.acciones .chat summary { font-size: .875rem; padding-inline: .625rem; }
.acciones .chat-panel { top: auto; bottom: calc(100% + .5rem); right: .5rem; width: min(22rem, calc(100% - 1rem)); }
.bucle-plano, .plano { padding-bottom: 5rem; }
.guias ul {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2rem) / 3);
  grid-template-columns: none;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
  padding: .25rem .125rem 1rem;
}
.guias li { scroll-snap-align: start; }
.guias li a { display: block; text-decoration: none; }
.guias li a:hover h3 { text-decoration: underline; }
.guias img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: .5rem; margin-bottom: .5rem; }
@media (max-width: 56rem) { .guias ul { grid-auto-columns: calc((100% - 1rem) / 2); } }
@media (max-width: 40rem) {
  .home-header .marca { flex-basis: 100%; margin: 0; justify-content: center; }
  .home-header nav a { padding-inline: .375rem; }
  .guias ul { grid-auto-columns: 100%; }
}
.acciones { flex-wrap: wrap; align-items: center; }
.lc-booking-form { display: grid; grid-template-columns: 2.25fr 1fr 1fr 1fr auto; gap: .5rem; align-items: end; flex: 1 1 42rem; max-width: 62rem; min-width: 0; }
.lc-field { display: grid; gap: .25rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.lc-field label { font-size: .8125rem; font-weight: 600; }
.lc-date-group { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .375rem; }
.lc-field input, .lc-field select, .lc-booking-button { width: 100%; min-width: 0; min-height: 44px; padding: .375rem .5rem; border-radius: .5rem; font: inherit; }
.lc-field input, .lc-field select { background: white; border: 1px solid #a39888; color: #1a1612; }
.lc-booking-button { background: #88561d; color: white; border: 0; cursor: pointer; font-weight: 700; }
body { padding-bottom: var(--altura-reserva, 12rem); }
.bucle-plano, .plano { padding-bottom: calc(var(--altura-reserva, 12rem) + .75rem); }
html { scroll-padding-bottom: var(--altura-reserva, 12rem); }
@media (max-width: 48rem) {
  .lc-booking-form { flex-basis: 100%; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .25rem; }
  .lc-field-dates { grid-column: 1 / -1; }
  .lc-field input, .lc-field select, .lc-booking-button { font-size: .875rem; padding-inline: .25rem; }
}

.home-header {
  background: #30231e;
  color: #fff7e9;
  border-bottom: 2px solid #bc925f;
  padding-block: .75rem;
}
.home-header nav { gap: .25rem .75rem; }
.home-header .marca {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .25rem;
  padding: 0 .75rem 0 0;
  color: inherit;
}
.marca-nombre {
  font: 500 2.25rem / 1 "Cormorant Garamond", Georgia, serif;
  letter-spacing: -.025em;
}
.marca-lugar {
  color: #e4bc87;
  font-size: .75rem;
  line-height: 1.25;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.home-header nav > a:not(.marca) {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  border-radius: .375rem;
}
.home-header nav > a:not(.marca):hover { background: #48362c; color: #ffe0ae; }
.home-header a:focus-visible { outline-color: #f4ca91; }
@media (max-width: 48rem) {
  .home-header .marca { flex-basis: 100%; align-items: center; margin: 0; padding: 0; }
  .home-header nav { gap: .25rem; }
  .home-header nav > a:not(.marca) { padding-inline: .375rem; }
  .marca-nombre { font-size: 1.875rem; }
}

/* Miniaturas de las guías: altura adaptable al ancho de la tarjeta. */
.guias img { height: auto; }

/* Celebraciones al final del contenido de portada. */
.eventos-home > p { margin-top: 16px; max-width: 800px; }
.eventos-home .tarjetas { margin-block: 24px; }
.evento-contacto { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: .5rem; background: #181818; color: white; font-weight: 600; }

.eventos-home .tarjetas { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media(max-width:40rem) { .eventos-home .tarjetas { grid-template-columns: 1fr; } }

/* Espacio desplazable real bajo Contacto, además de la altura de la barra fija. */
body { padding-bottom: calc(var(--altura-reserva, 12rem) + 32px); }
.acciones { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
