:root{
  /* Confort (light theme) */
  --bg: #ffffff;
  --panel: rgba(255,255,255,0.92);
  --panel2: rgba(255,255,255,0.84);

  /* ✅ TU COLOR PARA TODO EL TEXTO */
  --text: #ff7d10;
  --muted: #ff7d10;

  --border: rgba(54,34,18,0.14);

  /* Brand (logo brown/gold) */
  --cherry: #906030;   /* primary accent */
  --leaf: #c39a64;     /* secondary accent */
  --accent: var(--cherry);

  --chip: rgba(144,96,48,0.10);
  --shadow: 0 14px 40px rgba(44, 28, 15, 0.14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--bg); }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  background: var(--bg);
}

/* ✅ Fuerza que TODO el texto herede el color (incluye links, labels, etc.) */
body, body * { color: var(--text); }
a { color: inherit; }

/* Fondo fijo para que el degradado se vea en TODA la página (aunque haya mucho scroll) */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  /* warm, subtle background like the logo */
  background:
    radial-gradient(900px 900px at 12% 8%, rgba(144,96,48,0.18), transparent 55%),
    radial-gradient(900px 900px at 88% 12%, rgba(195,154,100,0.18), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #fbf6ef 100%);
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(14px);
}

/* --- Menú (☰) arriba a la derecha --- */
.topbarActions{
  position: relative;
  display: flex;
  align-items: center;
}
.menuBtn{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 10px 12px;
  background: rgba(144,96,48,0.10);
  border: 1px solid rgba(54,34,18,0.14);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(44,28,15,0.12);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}
.menuBtn:hover{
  transform: translateY(-1px);
  border-color: rgba(144,96,48,0.34);
  background: rgba(144,96,48,0.16);
}
.menuBtn span{
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(54,34,18,0.55);
  border-radius: 999px;
  transition: transform 160ms ease, opacity 160ms ease;
}
.menuBtn[aria-expanded="true"] span:nth-child(1){
  transform: translateY(5px) rotate(45deg);
}
.menuBtn[aria-expanded="true"] span:nth-child(2){
  opacity: 0;
}
.menuBtn[aria-expanded="true"] span:nth-child(3){
  transform: translateY(-5px) rotate(-45deg);
}

.menuPanel{
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 240px;
  width: min(320px, 86vw);
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(54,34,18,0.14);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  z-index: 30;
}
.menuPanel.open{ display: flex; }

.menuItem{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  background: rgba(54,34,18,0.06);
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}
.menuItem:hover{
  border-color: rgba(144,96,48,0.30);
  background: rgba(144,96,48,0.12);
}
.menuItem:active{ transform: translateY(1px); }

.menuDivider{
  height: 1px;
  background: rgba(54,34,18,0.12);
  margin: 6px 8px;
  border-radius: 999px;
}

.menuHours{
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(54,34,18,0.10);
}
.menuHoursTitle{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
}
.menuHoursRow{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  padding: 2px 0;
}
.menuHoursDay{ font-weight: 750; }
.menuHoursTime{ white-space: nowrap; }

.brand{ display: flex; gap: 12px; align-items: center; }
.logoImg{
  height: 65px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

.brandText{ display: grid; gap: 2px; }
.title{
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.1;
}
.subtitle{ font-size: 13px; }

.searchwrap{
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 360px;
}

.searchBox{
  display:flex;
  align-items:center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(54,34,18,0.06);
  border: 1px solid rgba(54,34,18,0.12);
  box-shadow: 0 10px 26px rgba(44,28,15,0.10);
}
.searchIcon{ font-size: 14px; }
.searchBox input{
  border: none;
  outline: none;
  width: 100%;
  padding: 0;
  background: transparent;
  color: var(--text);
}

input, select{
  background: rgba(54,34,18,0.06);
  border: 1px solid rgba(54,34,18,0.12);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  outline: none;
}
select{ width: 200px; }

.layout{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  padding: 16px;
}
@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
  .searchwrap{ min-width: 0; width: 60%; }
}

.filters{
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(54,34,18,0.12);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow);
  height: fit-content;
}
.filtersHeader{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.filters h2{ margin: 0; font-size: 18px; }
.filterGroup{ margin: 14px 0; }
.filterGroup h3{
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.chips{ display: flex; flex-wrap: wrap; gap: 8px; }
.chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(54,34,18,0.06);
  border: 1px solid rgba(54,34,18,0.12);
  padding: 9px 11px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}
.chip:hover{
  transform: translateY(-1px);
  border-color: rgba(144,96,48,0.32);
  background: rgba(144,96,48,0.08);
}
.chip input{ width: 16px; height: 16px; accent-color: var(--accent); }
.chip span{ font-size: 13px; color: var(--text); }

.row{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hint{ margin-top: 8px; font-size: 12px; }

.content{
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(54,34,18,0.12);
  border-radius: 20px;
  padding: 14px;
  min-height: 60vh;
  box-shadow: var(--shadow);
}

.contentHeader{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.stats{ font-size: 13px; }

.badge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(144,96,48,0.08);
  border: 1px solid rgba(144,96,48,0.28);
}

.grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1200px){ .grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px){ .grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){
  .grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .meta{ padding: 8px 8px 10px; }
  .name{ font-size: 12px; }
  .tags{ font-size: 11px; }
}

.card{
  border: 1px solid rgba(54,34,18,0.12);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.94);
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}
.card:hover{
  transform: translateY(-3px);
  border-color: rgba(144,96,48,0.34);
  box-shadow: 0 14px 28px rgba(44, 28, 15, 0.16);
}

.thumb{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #ffffff;
}
.thumb--zoomout-bota{ object-fit: contain; }
.thumb--zoomout-botin{ object-fit: contain; }

.meta{ padding: 10px 10px 12px; }
.name{ font-weight: 800; font-size: 14px; letter-spacing: 0.2px; }
.tags{ font-size: 12px; margin-top: 6px; line-height: 1.3; }

.btn{
  background: rgba(144,96,48,0.10);
  border: 1px solid rgba(54,34,18,0.14);
  padding: 9px 11px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(144,96,48,0.32);
  background: rgba(144,96,48,0.16);
}
.btn.subtle{ background: transparent; }
.btn.subtle:hover{
  background: rgba(144,96,48,0.08);
  border-color: rgba(144,96,48,0.22);
}

.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}
.lightboxInner{
  width: min(920px, 96vw);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(54,34,18,0.12);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 26px 70px rgba(44, 28, 15, 0.20);
}
.lightboxTop{
  display:flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.lightboxSlide img{
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(54,34,18,0.10);
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}
.lightboxMeta{
  margin-top: 10px;
  font-size: 13px;
  display: grid;
  gap: 6px;
}

/* --- Lightbox gallery (p1/p2/p3) --- */
.lightboxGalleryWrap{ position: relative; }

.lightboxGallery{
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  background: #ffffff;
}
.lightboxGallery::-webkit-scrollbar{ height: 10px; }
.lightboxGallery::-webkit-scrollbar-track{ background: rgba(54,34,18,0.06); border-radius: 999px; }
.lightboxGallery::-webkit-scrollbar-thumb{ background: rgba(54,34,18,0.18); border-radius: 999px; }

.lightboxSlide{
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 0;
}

.photoNav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(54,34,18,0.14);
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(18,10,4,0.28);
}
.photoNav:hover{
  border-color: rgba(144,96,48,0.34);
  background: rgba(144,96,48,0.16);
}
.photoNav:disabled{
  opacity: 0.35;
  cursor: not-allowed;
}
.photoPrev{ left: 10px; }
.photoNext{ right: 10px; }

.lightboxHint{ display: none; }
