/* =========================================================
   TETERÍA BODHI · HOJA DE ESTILOS PRINCIPAL
   Jerez de la Frontera · Diseño Artesanal & Premium
   ========================================================= */

:root {
  --bg: #F7F0E3;
  --paper: #FFFBF2;
  --card-bg: #FFFFFF;
  --sand: #EADBC0;
  --sand2: #D9C29B;
  --ink: #2C1810;
  --mut: #6E533F;
  --tost: #A66A3B;
  --gold: #C59B27;
  --gold-light: #F7E7B4;
  --line: #E2D3BA;
  --btn: #3D2214;
  --btnink: #FAF2E6;
  --success: #2E7D32;
  --success-bg: #E8F5E9;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 12px rgba(61, 34, 20, 0.05);
  --shadow-md: 0 10px 30px rgba(61, 34, 20, 0.08);
  --shadow-lg: 0 20px 45px rgba(61, 34, 20, 0.12);
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #1B120C;
  --paper: #241810;
  --card-bg: #2B1D14;
  --sand: #362316;
  --sand2: #4D3320;
  --ink: #F5EADB;
  --mut: #C4AD93;
  --tost: #E09A5F;
  --gold: #E5B83B;
  --gold-light: #4A3A17;
  --line: #422C1D;
  --btn: #EADBC0;
  --btnink: #241810;
  --success: #66BB6A;
  --success-bg: #1C3320;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 45px rgba(0, 0, 0, 0.65);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

html {
  scroll-padding-top: 86px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 1.05rem/1.65 'Figtree', system-ui, -apple-system, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, .font-title {
  font-family: "Abril Fatface", Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  max-width: 1420px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 64px);
  box-sizing: border-box;
}

.header-wrap {
  max-width: 1680px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

section {
  padding: clamp(64px, 8vw, 112px) 0;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

h2 {
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.section-tag {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--tost);
  margin-bottom: 10px;
}

.sub {
  color: var(--mut);
  max-width: 58ch;
  margin-bottom: 42px;
  font-size: 1.15rem;
}

/* =========================================================
   CABECERA & NAVEGACIÓN (LUJO & RESPONSIVE FLUIDO)
   ========================================================= */
header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(247, 240, 227, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
  width: 100%;
}

[data-theme="dark"] header {
  background: rgba(27, 18, 12, 0.96);
}

.header-inner {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.5vw, 56px);
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2.5vw, 36px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
  flex-shrink: 0;
}

.logo {
  font: 400 clamp(1.65rem, 2.2vw, 2.15rem) "Abril Fatface", Georgia, serif;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  text-decoration: none;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(61, 34, 20, 0.16);
  background: #FFFBF2;
  border: 1.5px solid var(--line);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .logo-img {
  transform: rotate(10deg) scale(1.08);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--sand);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--tost);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.badge-city {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
}

/* Navegación Desktop - Centrada y espaciosa */
#menu {
  display: flex;
  align-items: center;
}

#menu ul, .nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
}

#menu a {
  color: var(--ink);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 8px 4px;
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

#menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--tost);
  border-radius: 2px;
  transition: width 0.25s ease;
}

#menu a:hover {
  color: var(--tost);
}

#menu a:hover::after {
  width: 100%;
}

.mobile-nav-arrow {
  display: none;
}

.mobile-drawer-footer {
  display: none;
}

/* Bloque derecho: Horario, Modo oscuro, Botón Reserva, Burger */
.header-right {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 20px);
  flex-shrink: 0;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  white-space: nowrap;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2E7D32;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.25);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.status-dot.closed {
  background: #D32F2F;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.25);
  animation: none;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(46, 125, 50, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}

.theme-toggle {
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--ink);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--sand);
  transform: rotate(15deg);
}

.btn-nav-reserve {
  display: inline-flex !important;
}

.burger {
  display: none;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  color: var(--ink);
  cursor: pointer;
  place-items: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.burger:hover {
  background: var(--sand);
}

/* =========================================================
   RESPONSIVE MÓVIL Y TABLET (NATIVO & CÓMODO)
   ========================================================= */
@media (max-width: 1040px) {
  .header-inner {
    height: 66px;
    padding: 0 16px;
  }
  .burger {
    display: grid;
  }
  .badge-city, .status-indicator {
    display: none;
  }
  .btn-nav-reserve {
    display: none !important;
  }
  .logo {
    font-size: 1.45rem;
  }
  .logo-icon, .logo-img {
    width: 38px;
    height: 38px;
  }
  #menu {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 66px);
    height: calc(100dvh - 66px);
    background: var(--bg);
    display: none;
    flex-direction: column;
    padding: 24px 20px 36px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: var(--shadow-lg);
  }
  #menu.open {
    display: flex;
    animation: drawerFadeIn 0.24s ease forwards;
  }
  @keyframes drawerFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  #menu ul, .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  #menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.18rem;
    font-weight: 700;
  }
  #menu a::after {
    display: none;
  }
  .mobile-nav-arrow {
    display: block;
    color: var(--tost);
  }
  .mobile-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1.5px dashed var(--line);
  }
  .drawer-schedule-box {
    text-align: center;
    font-size: 0.85rem;
    color: var(--mut);
    margin-top: 4px;
    background: var(--paper);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
  }
}

@media (max-width: 768px) {
  .wa-float {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: 18px;
    right: auto;
    width: 52px;
    height: 52px;
  }
}

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 700 0.98rem 'Figtree', sans-serif;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 26px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn.fill {
  background: var(--btn);
  color: var(--btnink);
  box-shadow: var(--shadow-sm);
}

.btn.fill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.1);
}

.btn.line {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn.line:hover {
  border-color: var(--btn);
  background: var(--sand);
  transform: translateY(-2px);
}

.btn.gold {
  background: linear-gradient(135deg, #C59B27 0%, #E5B83B 100%);
  color: #1A1208;
  font-weight: 800;
  border: none;
  box-shadow: 0 4px 15px rgba(197, 155, 39, 0.25);
}

.btn.gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(197, 155, 39, 0.4);
}

.btn.sm {
  padding: 8px 18px;
  font-size: 0.88rem;
}

.btn-nav-reserve {
  display: none;
}

@media (min-width: 680px) {
  .btn-nav-reserve {
    display: inline-flex;
  }
}

/* =========================================================
   HERO SECTION
   ========================================================= */
#inicio {
  padding: clamp(36px, 6vw, 80px) 0 clamp(64px, 8vw, 110px);
  position: relative;
  overflow: hidden;
  overflow: clip;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-glow {
  position: absolute;
  top: 10%;
  right: 0;
  max-width: 100%;
  width: min(550px, 90vw);
  height: min(550px, 90vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 106, 59, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero h1 {
  font-size: clamp(2.6rem, 5.8vw, 5.2rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.hero h1 span {
  display: block;
  font-size: 0.38em;
  color: var(--tost);
  letter-spacing: 0.08em;
  margin-bottom: 0.15em;
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.orn {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--tost);
  margin: 20px 0;
}

.orn i {
  flex: 0 0 60px;
  height: 2px;
  background: currentColor;
  opacity: 0.5;
}

.orn b {
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: currentColor;
}

.hero p {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--mut);
  max-width: 46ch;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-pill {
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 680px) {
  .hero-glow {
    width: 240px;
    height: 240px;
    right: 0;
    top: 5%;
    opacity: 0.6;
  }
  .hero {
    gap: 28px;
    padding-top: 10px;
  }
  .hero h1 {
    font-size: clamp(2.3rem, 11vw, 3.2rem);
    line-height: 1.06;
  }
  .hero p {
    font-size: 1.02rem;
    line-height: 1.55;
    margin-bottom: 20px;
  }
  .orn {
    margin: 14px 0;
  }
  .hero-pills {
    gap: 8px;
    margin-bottom: 24px;
  }
  .hero-pill {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  .cta {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .cta .btn {
    width: 100%;
    min-height: 52px;
    font-size: 1.02rem;
    justify-content: center;
  }
  .arch-frame {
    max-width: 320px;
    margin: 16px auto 0;
  }
  .arch-badge {
    font-size: 0.78rem;
    padding: 8px 16px;
    white-space: nowrap;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Marco arquitectónico árabe/andalusí */
.arch-frame {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}

.arch-card {
  border: 3px solid var(--btn);
  border-radius: 999px 999px 24px 24px;
  padding: 12px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.arch-card .img-wrapper {
  aspect-ratio: 4/5;
  border-radius: 999px 999px 14px 14px;
  overflow: hidden;
  position: relative;
}

.arch-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.arch-card:hover img {
  transform: scale(1.04);
}

.arch-badge {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(44, 24, 16, 0.92);
  backdrop-filter: blur(10px);
  color: #FAF2E6;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  border: 1px solid rgba(226, 211, 186, 0.2);
}

/* =========================================================
   NUESTRA TETERÍA (ABOUT)
   ========================================================= */
.about {
  display: grid;
  gap: clamp(36px, 6vw, 70px);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: 1fr 1fr;
  }
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.feat-item {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feat-item span.icon {
  font-size: 1.5rem;
}

.feat-item strong {
  font-size: 0.98rem;
  color: var(--ink);
}

.feat-item p {
  font-size: 0.85rem;
  color: var(--mut);
  line-height: 1.4;
}

.stack {
  position: relative;
  min-height: 460px;
  max-width: 100%;
  overflow: hidden;
}

.stack .a, .stack .b {
  position: absolute;
  background: var(--paper);
  padding: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s ease;
}

.stack .a {
  left: 0;
  top: 0;
  width: 72%;
  height: 330px;
  transform: rotate(-2.5deg);
}

.stack .b {
  right: 0;
  bottom: 0;
  width: 65%;
  height: 280px;
  transform: rotate(3deg);
}

.stack .a:hover, .stack .b:hover {
  transform: rotate(0deg) scale(1.02);
  z-index: 5;
}

.stack .frame {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
}

.stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   CARTA INTERACTIVA
   ========================================================= */
#carta {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.carta-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 20px;
}

.carta-search {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 380px;
}

.carta-search input {
  width: 100%;
  padding: 12px 18px 12px 42px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.carta-search input:focus {
  border-color: var(--tost);
  box-shadow: 0 0 0 3px rgba(166, 106, 59, 0.15);
}

.carta-search svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mut);
}

.tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
  padding-bottom: 8px;
  margin-bottom: 32px;
  scrollbar-width: thin;
}

.tab {
  flex: none;
  font: 600 0.95rem 'Figtree', sans-serif;
  background: var(--card-bg);
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  transition: var(--transition);
}

.tab:hover {
  border-color: var(--tost);
}

.tab[aria-pressed="true"] {
  background: var(--btn);
  color: var(--btnink);
  border-color: var(--btn);
  box-shadow: var(--shadow-sm);
}

.items-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 780px) {
  .items-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.menu-card {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--sand2);
}

.menu-card.unavailable {
  opacity: 0.55;
  filter: grayscale(0.5);
}

.menu-card .thumb {
  width: 108px;
  height: 108px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.menu-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-card .info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-card .title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.menu-card h3 {
  font-size: 1.28rem;
  color: var(--ink);
}

.menu-card .price {
  font: 700 1.15rem 'Figtree', sans-serif;
  color: var(--tost);
  white-space: nowrap;
}

.menu-card p {
  color: var(--mut);
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 8px;
}

.menu-card .badge {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--sand);
  color: var(--ink);
}

.menu-card .badge.top {
  background: var(--gold-light);
  color: #634700;
}

.menu-card .badge.out {
  background: #FFEBEE;
  color: #C62828;
}

/* =========================================================
   RESERVAS (TICKET WIZARD)
   ========================================================= */
.res-layout {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .res-layout {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

.res-perks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.res-perk {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.res-perk span.icon {
  font-size: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 10px;
}

.res-perk h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.res-perk p {
  font-size: 0.92rem;
  color: var(--mut);
}

/* Ticket estilo vintage con muescas */
.ticket {
  background: var(--paper);
  border: 2px solid var(--btn);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 42px);
  position: relative;
  box-shadow: var(--shadow-lg);
}

.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  top: 48%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--btn);
  transform: translateY(-50%);
  z-index: 2;
}

.ticket::before {
  left: -15px;
  clip-path: inset(0 0 0 50%);
}

.ticket::after {
  right: -15px;
  clip-path: inset(0 50% 0 0);
}

.ticket-header {
  border-bottom: 2px dashed var(--sand2);
  padding-bottom: 18px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-header .title {
  font-family: "Abril Fatface", Georgia, serif;
  font-size: 1.55rem;
  color: var(--ink);
}

.ticket-header .step-badge {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tost);
  background: var(--sand);
  padding: 4px 12px;
  border-radius: 999px;
}

.fields {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.fields > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.f1 {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--ink);
}

input, select, textarea {
  width: 100%;
  max-width: 100%;
  font: inherit;
  font-size: 16px; /* Impide zoom automático en Safari iOS en móviles */
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  min-height: 50px;
  box-sizing: border-box;
  outline: none;
  transition: var(--transition);
}

/* Altura y proporciones estrictas para todos los controles del formulario */
#n, #t, #d, #h, #p,
input:not([type="checkbox"]):not([type="radio"]),
select {
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  line-height: normal !important;
  box-sizing: border-box !important;
}

/* =========================================================
   BLINDAJE Y CONTROL DE INPUT TYPE="DATE" (Móvil, Tablet y PC)
   Evita que se vea más grande o se solape sobre la hora
   ========================================================= */
#d,
input[type="date"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  box-sizing: border-box !important;
  padding: 12px 16px !important;
  font-family: inherit !important;
  font-size: 16px !important;
  color: var(--ink) !important;
  background-color: var(--bg) !important;
  cursor: pointer;
  display: block;
}

/* Safari / iOS / iPadOS: previene desbordes y alinea texto a la izquierda como los demás inputs */
#d::-webkit-date-and-time-value,
input[type="date"]::-webkit-date-and-time-value {
  text-align: left !important;
  height: 100% !important;
  min-height: 1.25em !important;
  line-height: 1.25em !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
}

/* Chrome / Edge / Android: normaliza la edición interna de fecha para altura exacta */
#d::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 100% !important;
}

#d::-webkit-datetime-edit-fields-wrapper,
input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0 !important;
}

/* Icono del calendario en Chrome/Edge desktop */
#d::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s;
  padding: 0;
  margin: 0;
  margin-left: auto;
}

#d::-webkit-calendar-picker-indicator:hover,
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

[data-theme="dark"] #d::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--tost);
  box-shadow: 0 0 0 3px rgba(166, 106, 59, 0.15);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.zone-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.zone-selector label {
  margin: 0;
  cursor: pointer;
  flex: 1;
  min-width: 120px;
}

.zone-selector input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.zone-selector span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  background: var(--bg);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
}

.zone-selector input:checked + span {
  background: var(--btn);
  color: var(--btnink);
  border-color: var(--btn);
}

.hint-box {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--tost);
  font-weight: 500;
  min-height: 1.4em;
}

.submit-btn-row {
  margin-top: 24px;
}

@media (max-width: 680px) {
  .ticket {
    padding: 24px 18px;
    border-radius: 20px;
  }
  .ticket::before, .ticket::after {
    display: none; /* Elimina cualquier posible desborde horizontal en móviles */
  }
  .fields {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
  }
  .fields > * {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
  .submit-btn-row .btn {
    width: 100%;
    min-height: 52px;
    font-size: 1.05rem;
    justify-content: center;
  }
}

/* =========================================================
   GALERÍA
   ========================================================= */
.mosaic {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 170px;
}

@media (min-width: 840px) {
  .mosaic {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 210px;
  }
}

.mosaic-item, .m-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--sand);
  height: 100%;
  width: 100%;
  box-sizing: border-box;
}

.mosaic-item img, .m-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}

.mosaic-item:hover img, .m-item:hover img {
  transform: scale(1.06);
}

.mosaic-item .caption,
.m-item .caption,
.mosaic-item .m-overlay,
.m-item .m-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 24px 14px 12px;
  background: linear-gradient(to top, rgba(27, 18, 12, 0.92), transparent);
  color: #FAF2E6;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
  pointer-events: none;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.mosaic-item:hover .caption,
.m-item:hover .caption,
.mosaic-item:hover .m-overlay,
.m-item:hover .m-overlay {
  opacity: 1;
  transform: translateY(0);
}

.m-overlay .m-tag {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 2px;
  font-weight: 700;
}

.m-overlay p {
  margin: 0;
  color: #FAF2E6;
  font-size: 0.82rem;
  line-height: 1.35;
}

.mosaic .w, .mosaic .m-w { grid-column: span 2; }
.mosaic .t, .mosaic .m-t { grid-row: span 2; }

/* =========================================================
   OPINIONES / GOOGLE REVIEWS
   ========================================================= */
#opiniones {
  background: var(--sand);
  border-top: 1px solid var(--line);
}

.reviews-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(32px, 5vw, 48px);
}

.reviews-header .sub {
  margin: 0 auto;
}

/* Tarjeta destacada Google Callout */
.google-callout-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 860px) {
  .google-callout-card {
    grid-template-columns: 1.4fr 1fr;
    padding: 36px 48px;
  }
}

.google-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sand);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

.google-rating-display {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.rating-number {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.stars-gold {
  color: #F5A623;
  letter-spacing: 3px;
  font-size: 1.25rem;
  display: block;
  line-height: 1.2;
}

.rating-count {
  font-size: 0.88rem;
  color: var(--mut);
  font-weight: 600;
}

.google-callout-desc {
  color: var(--mut);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

.google-callout-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

@media (min-width: 580px) and (max-width: 859px) {
  .google-callout-right {
    flex-direction: row;
  }
  .google-callout-right .btn {
    flex: 1;
  }
}

.btn-google-write {
  background: #1A73E8;
  color: #fff;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px 24px;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.3);
  transition: all 0.25s ease;
}

.btn-google-write:hover {
  background: #1558b0;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 115, 232, 0.4);
}

.btn-google-read {
  justify-content: center;
  font-size: 0.95rem;
}

/* Grid de opiniones */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.review-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.2;
}

.review-badge {
  display: block;
  font-size: 0.72rem;
  color: var(--mut);
  font-weight: 600;
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 14px;
  flex-grow: 1;
}

.review-date {
  font-size: 0.76rem;
  color: var(--mut);
  font-weight: 600;
}

/* Pasos explicativos */
.review-steps-box {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 22px 28px;
}

.steps-title {
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 16px;
}

.steps-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  .steps-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-col {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tost);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.step-col p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--mut);
  line-height: 1.45;
}

.step-col p strong {
  color: var(--ink);
}

/* =========================================================
   CONTACTO & MAPA
   ========================================================= */
#contacto {
  background: var(--sand);
}

.contact-grid {
  display: grid;
  gap: clamp(28px, 6vw, 64px);
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-md);
}

.contact-dl dt {
  font-family: "Abril Fatface", Georgia, serif;
  font-size: 1.35rem;
  color: var(--ink);
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-dl dt:first-child {
  margin-top: 0;
}

.contact-dl dd {
  color: var(--mut);
  margin-top: 4px;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.95rem;
}

.schedule-table tr {
  border-bottom: 1px dashed var(--sand2);
}

.schedule-table td {
  padding: 8px 0;
}

.schedule-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--ink);
}

.schedule-table tr.today {
  color: var(--tost);
  font-weight: 700;
}

.schedule-table tr.today td:last-child {
  color: var(--tost);
}

.map-container {
  border: 2px solid var(--btn);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 380px;
  position: relative;
  background: var(--paper);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  display: block;
}

.map-overlay-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  text-decoration: none;
  background: rgba(20, 12, 8, 0.05);
  cursor: pointer;
  z-index: 10;
  transition: background var(--trans);
}

.map-overlay-link:hover {
  background: rgba(20, 12, 8, 0.2);
}

.map-badge-btn {
  background: var(--bg);
  color: var(--tost);
  border: 2px solid var(--btn);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform var(--trans), background var(--trans), color var(--trans), box-shadow var(--trans);
  backdrop-filter: blur(8px);
}

.map-overlay-link:hover .map-badge-btn {
  transform: translateY(-3px) scale(1.03);
  background: var(--btn);
  color: var(--bg);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  padding: 50px 0 35px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.foot-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 60px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.foot-brand small {
  display: block;
  color: var(--mut);
  margin-top: 6px;
  font-size: 0.88rem;
}

.foot-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.foot-links a {
  color: var(--ink);
  font-weight: 500;
  transition: color 0.2s;
}

.foot-links a:hover {
  color: var(--tost);
}

.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--mut);
}

.foot-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.82rem;
  transition: var(--transition);
}

.foot-admin-link:hover {
  background: var(--btn);
  color: var(--btnink);
}

/* =========================================================
   MODALES Y TOASTS
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 8, 0.75);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--paper);
  border: 2px solid var(--btn);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 36px);
  max-width: 540px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--sand);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 1.2rem;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--btn);
  color: var(--btnink);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 300;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: 380px;
  font-size: 0.95rem;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  background: #2E7D32;
  color: #FFFFFF;
}

.toast.error {
  background: #C62828;
  color: #FFFFFF;
}

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 90;
  transition: var(--transition);
}

.wa-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.wa-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* =========================================================
   ACCESIBILIDAD WCAG 2.2 AA & MEJORAS DE FOCO
   ========================================================= */
:focus-visible {
  outline: 2.5px solid var(--tost);
  outline-offset: 3px;
}

/* =========================================================
   RGPD: CONSENTIMIENTO, ENLACES LEGALES Y COOKIES
   ========================================================= */
.privacy-row {
  margin-top: 6px;
}

.privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--mut);
  cursor: pointer;
  line-height: 1.45;
}

.privacy-label input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  accent-color: var(--tost);
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.text-link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: var(--tost);
  text-decoration: underline;
  cursor: pointer;
}

.text-link-btn:hover {
  color: var(--ink);
}

.foot-legal-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.foot-link-btn {
  background: none;
  border: none;
  font: inherit;
  color: var(--mut);
  cursor: pointer;
  padding: 2px 4px;
  transition: var(--transition);
}

.foot-link-btn:hover {
  color: var(--ink);
  text-decoration: underline;
}

.foot-legal-links .sep {
  opacity: 0.4;
}

/* Banner de Cookies AEPD */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 20px;
  right: 20px;
  max-width: 580px;
  margin: 0 auto;
  background: var(--paper);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-lg);
  border-radius: 16px;
  padding: 20px 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: slideUpCookie 0.35s ease-out;
}

.cookie-banner.hidden {
  display: none !important;
}

@keyframes slideUpCookie {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-banner p {
  font-size: 0.88rem;
  color: var(--mut);
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-btn.accept {
  background: var(--btn);
  color: var(--btnink);
  border: 1.5px solid var(--btn);
}

.cookie-btn.accept:hover {
  opacity: 0.92;
}

.cookie-btn.reject {
  background: transparent;
  color: var(--mut);
  border: 1.5px solid var(--line);
}

.cookie-btn.reject:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.legal-content-box {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 12px;
  font-size: 0.92rem;
  color: var(--mut);
  line-height: 1.6;
}

.legal-content-box h4 {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 18px 0 6px;
}

.legal-content-box p {
  margin-bottom: 12px;
}

.legal-content-box ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-content-box li {
  margin-bottom: 6px;
}

/* Aviso de día sin reservas online */
.closed-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin: -8px 0 20px;
  color: #6B4A12;
  background: #FFF8E7;
  border: 1px solid #E9CFA0;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.5;
}

.closed-notice[hidden] { display: none; }
