/* Tipografías:
   - Títulos: Cinzel (serif con aire clásico)
   - Subtítulos: Cormorant Garamond
   - Texto: Inter
*/
:root {
  --bg: #0b0b0b;
  --panel: #0f0f0f;
  --ink: #e7e2d7;
  --muted: #b1ab9e;
  --accent: #c7a874;
  /* dorado suave */
  --line: rgba(255, 255, 255, 0.08);
  --pill: #141414;
  --pill-border: rgba(255, 255, 255, 0.16);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: radial-gradient(1200px 800px at 20% -10%, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
  backdrop-filter: blur(4px);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 16px;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ===== Barra superior ===== */
.sm-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-rail {
  height: 64px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
}

/* Marca */
.nav-brand .brand-badg {
  display: inline-block;
  font-family: Cinzel, serif;
  font-weight: 700;
  letter-spacing: .08em;
  font-size: 18px;
  padding: 6px 10px;
  border-radius: 6px;
}

/* Burger */
.nav-burger {
  inline-size: 40px;
  block-size: 40px;
  border-radius: 999px;
  background: #272727;
  border: 1px solid var(--nav-border);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 3px 0;
  border-radius: 2px;
}

/* Enlaces desktop */
.nav-links.desktop {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #232323;
  border: 1px solid var(--nav-border);
  border-radius: 22px;
  padding: 6px;
}

.nav-links.desktop a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 16px;
  opacity: .9;
}

.nav-links.desktop a.active,
.nav-links.desktop a:hover {
  background: #2c2c2c
}

/* CTA móvil */
.cta.mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  color: var(--text);
  background: #2a2a2a;
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

/* ===== Menú desplegable (desktop y móvil) ===== */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 16px;
  right: 16px;
  z-index: 1200;
  background: var(--panel);
  border: 1px solid var(--nav-border);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  padding: clamp(16px, 2vw, 24px);
  transform: translateY(-6px);
  opacity: 0;
  display: none;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(10px, 2vw, 22px);
  text-align: center;
}

.mm-link {
  display: block;
  text-decoration: none;
  color: var(--accent);
  font-family: Cinzel, serif;
  letter-spacing: .06em;
  font-size: clamp(18px, 2.2vw, 28px);
  padding: 8px 10px;
  border-radius: 10px;
}

.mm-link:hover {
  background: rgba(255, 255, 255, .06)
}

/* Mostrar cuando se abre */
.mobile-open .mobile-menu {
  display: block;
  opacity: .99;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .nav-links.desktop {
    display: none
  }
}

@media (max-width: 480px) {
  .mobile-menu {
    left: 10px;
    right: 10px;
    border-radius: 12px
  }
}



.top-nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
}

.top-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 12px;
  transition: color .2s, background .2s;
}

.top-nav a:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
}

/* LAYOUT */
.layout {
  display: grid;
  grid-template-columns: minmax(320px, 48vw) 1fr;
  min-height: calc(100vh - 60px);
}

.left-pane {
  position: sticky;
  top: 0px;
  height: 100dvh;
  border-right: 1px solid var(--line);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.22)), var(--panel);
}

.hero {
  position: relative;
  height: 100%;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.95) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 10%, rgba(0, 0, 0, 0.55) 80%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 40px;
}

.hero-title {
  font-family: "Cinzel", serif;
  font-size: clamp(44px, 7vw, 120px);
  letter-spacing: 0.06em;
  margin: 0;
}

/* CONTENIDO DERECHA */
.right-pane {
  padding: 28px 28px 80px;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)), var(--bg);
}

/* Píldoras categorías */
.category-pills {
  top: 70px;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0 22px;
}

.pill {
  border: 1px solid var(--pill-border);
  background: var(--pill);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .06em;
  font-family: "Cinzel", serif;
  cursor: pointer;
  transition: transform .08s ease, border-color .2s, color .2s, background .2s;
}

.pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pill.active {
  background: linear-gradient(180deg, rgba(199, 168, 116, 0.12), rgba(199, 168, 116, 0.05));
  border-color: var(--accent);
}

/* Secciones de menú */
.menu-section {
  padding: 28px 0 18px;
  border-bottom: 1px dashed var(--line);
}

.section-title {
  font-family: "Cinzel", serif;
  text-align: center;
  font-size: clamp(25px, 4vw, 35px);
  letter-spacing: 0.18em;
  color: var(--ink);
  font-weight: 600;
  margin: 18px auto 22px;
  position: relative;
  max-width: 75vw;
}

.section-title::before,
.section-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34px;
  height: 1px;
  background: var(--pill-border);
}

.section-title::before {
  right: 100%;
  margin-right: 12px;
}

.section-title::after {
  left: 100%;
  margin-left: 12px;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.item {
  padding: 10px 0;
}

.item-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 12px;
}

.item-name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 20px;
  margin: 0;
  letter-spacing: .02em;
}

.item-name-cat {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 30px;
  margin: 0;
  letter-spacing: .02em;
  text-align: center;
}

.item-price {
  font-family: "Cinzel", serif;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: .08em;
}

.item-desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* Figuras de referencia */
.section-figure {
  margin: 16px 0 6px;
  opacity: .95;
}

.section-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--pill-border);
}

.section-figure figcaption {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

/* Secciones fantasma para anclas del nav */
.spacer-section {
  height: 1px;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .left-pane {
    position: relative;
    top: 0;
    height: 56vh;
    border-right: 0;
    width: 100vw;
  }

  .right-pane {
    width: 100vw;
  }

  .category-pills {
    top: 64px;
  }

  .top-nav {
    display: none;
  }

  .hamburger {
    display: inline-block;
  }
}

/* Menú móvil desplegable */
.mobile-open .top-nav {
  position: fixed;
  inset: 56px 16px auto 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #0e0e0e;
  padding: 16px;
  border: 1px solid var(--pill-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}


/* ====== NAVBAR SANTA MARÍA ====== */
:root {
  --ink: #e7e2d7;
  --accent: #e7e2d7;
  /* borde claro de la placa */
  --nav-bg: #121212;
  --nav-pill: #0f0f0f;
  --nav-border: #2a2a2a;
}


/* Contenedor fijo */
.sm-nav {
  position: fixed;
  top: 14px;
  left: 16px;
  /* desktop: izquierda */
  z-index: 1000;
}

/* Rail con borde redondeado */
.nav-rail {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .05) inset;
}

/* Botón hamburguesa circular */
.nav-burger {
  width: 44px;
  height: 25px;
  border-radius: 999px;
  border: 1px solid var(--nav-border);
  background: #0b0b0b;
  display: grid;
  justify-content: center;
  align-content: center;
  place-items: center;
  padding: 20px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  background: var(--ink);
  opacity: .9;
}

/* Placa de marca */
.nav-brand {
  text-decoration: none;
  color: var(--ink);
  display: flex;
}

.brand-plaque {
  font-family: "Cinzel", serif;
  letter-spacing: .08em;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  padding: 8px 12px;
  border: 2px solid var(--accent);
  border-radius: 10px;
  position: relative;
}

.brand-plaque::before,
.brand-plaque::after {
  /* pequeñas “orejas” decorativas */
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 6px;
  background: transparent;
}

/* Grupo cápsula (desktop) */
.nav-links.desktop {
  display: flex;
  gap: 18px;
  background: var(--nav-pill);
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  padding: 10px 14px;
}

.nav-links.desktop a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  opacity: .9;
}

.nav-links.desktop a:hover {
  opacity: 1;
}

.nav-links.desktop a.active {
  opacity: 1;
  text-shadow: 0 0 1px rgba(255, 255, 255, .15);
}

/* CTA móvil (oculto en desktop) */
.cta.mobile {
  display: none;
  margin-left: auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--nav-pill);
  border: 1px solid var(--nav-border);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {

  /* centrar todo el nav en móviles */
  .sm-nav {
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-rail {
    padding: 10px 14px;
    gap: 12px;
  }

  .nav-links.desktop {
    display: none;
  }

  .cta.mobile {
    display: inline-flex;
  }

  /* placa un poco más grande en móvil */
  .brand-plaque {
    font-size: 15px;
    padding: 9px 14px;
  }
}

/* (opcional) estado de menú abierto para animar hamburguesa */
.mobile-open .nav-burger span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.mobile-open .nav-burger span:nth-child(2) {
  opacity: 0;
}

.mobile-open .nav-burger span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ===== Menú desplegable del burger (desktop & móvil, sin difuminar fondo) ===== */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 16px;
  right: 16px;
  z-index: 1200;
  background: #303030;
  border: 1px solid var(--nav-border);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  padding: clamp(16px, 2vw, 24px);
  transform: translateY(-6px);
  opacity: 0;
  display: none;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(10px, 2vw, 22px);
  text-align: center;
}

.mm-link {
  display: block;
  text-decoration: none;
  color: var(--accent);
  font-family: "Cinzel", serif;
  letter-spacing: .06em;
  font-size: clamp(18px, 2.2vw, 28px);
  padding: 8px 10px;
  border-radius: 10px;
}

.mm-link:hover {
  background: rgba(255, 255, 255, .06);
}

/* Mostrar panel cuando está abierto */
.mobile-open .mobile-menu {
  display: block;
  opacity: .99;
  transform: translateY(0);
}

/* Responsive: ajusta márgenes y radios en pantallas pequeñas */
@media (max-width: 480px) {
  .mobile-menu {
    top: 64px;
    left: 10px;
    right: 10px;
    border-radius: 12px;
  }
}