/* El Rincón de Soto — estilos base + comportamiento responsive
   La mayoría del diseño vive en estilos inline (fiel al diseño original).
   Aquí solo: reset, navegación responsive, menú móvil y conmutador de tarifas. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Mulish', system-ui, sans-serif;
  color: #3b332a;
  background: #f4ece0;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== Navegación responsive (sustituye a isDesktop/isMobile @ 900px) ===== */
.btn-burger { display: none; }

@media (max-width: 899px) {
  .nav-desktop { display: none !important; }
  .btn-burger { display: flex !important; }
}

/* ===== Menú móvil ===== */
.mobile-menu { display: none; }
.mobile-menu.is-open { display: flex; }
.mobile-menu a:hover { background: rgba(255, 255, 255, .06); }

/* ===== Tarifas: tabla en escritorio, tarjetas en móvil (sin conmutador) ===== */
.price-view-cards { display: none; }
@media (max-width: 899px) {
  .price-view-table { display: none; }
  .price-view-cards { display: block; }
}

/* ===== Galería: tira horizontal (slider) ===== */
.gallery { position: relative; }
.gallery-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}
.gallery-strip::-webkit-scrollbar { height: 8px; }
.gallery-strip::-webkit-scrollbar-track { background: transparent; }
.gallery-strip::-webkit-scrollbar-thumb { background: rgba(176, 141, 74, .45); border-radius: 4px; }
.gallery-img {
  flex: 0 0 auto;
  height: 260px;
  width: auto;                 /* conserva proporción, sin recorte */
  border-radius: 12px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-img:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(43, 34, 20, .2);
}
/* flechas del slider — indican que hay más fotos (la de un lado desaparece
   al llegar a ese extremo). Visibles en todas las pantallas. */
.gal-nav {
  position: absolute;
  top: calc(50% - 5px);
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(227, 205, 152, .5);
  background: rgba(21, 34, 43, .85);
  color: #fbf7ef;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  z-index: 5;
  opacity: 1;
  transition: opacity .2s ease, background .15s ease;
}
.gal-nav.is-hidden { opacity: 0; pointer-events: none; }
.gal-prev { left: 8px; }
.gal-next { right: 8px; }
.gal-nav:hover { background: rgba(176, 141, 74, .92); }
@media (min-width: 700px) {
  .gallery-img { height: 300px; }
  .gal-nav { width: 48px; height: 48px; font-size: 32px; }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 22, 27, .94);
}
.lightbox.is-open { display: flex; }
.lb-img {
  max-width: 92vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
}
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(227, 205, 152, .45);
  color: #fbf7ef;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .15s ease;
}
.lightbox button:hover { background: rgba(227, 205, 152, .28); }
.lb-close { top: 18px; right: 18px; width: 46px; height: 46px; font-size: 28px; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 36px; line-height: 1; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #e7dcc8;
  font-size: 14px;
  letter-spacing: 1.5px;
}
@media (max-width: 600px) {
  .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 30px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-img { max-width: 96vw; }
}

/* ===== Banner de cookies ===== */
.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(21, 34, 43, .97);
  color: #e7dcc8;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .25);
}
.cookie-bar a { color: #e3cd98; text-decoration: underline; }
.cookie-bar button {
  flex: 0 0 auto;
  background: #e3cd98;
  color: #5e4f2a;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.cookie-bar button:hover { background: #d8bf85; }

/* Placeholder de consentimiento sobre los iframes de terceros */
.consent-ph {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  background: #fbf8f2;
  color: #6b6151;
  font-size: 14px;
  line-height: 1.5;
}
.consent-ph p { margin: 0; max-width: 300px; }
.consent-ph button {
  background: #15222b;
  color: #fbf7ef;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.consent-ph button:hover { background: #1d2f3a; }

/* ===== Botón flotante "subir arriba" ===== */
#to-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(227, 205, 152, .55);
  background: #15222b;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, background .15s ease;
}
#to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#to-top:hover { background: #1d2f3a; }

/* ===== Detalles de interacción ===== */
header a:focus-visible,
.price-tab:focus-visible,
.btn-burger:focus-visible,
#to-top:focus-visible { outline: 2px solid #e3cd98; outline-offset: 3px; }
