/* ==========================================================================
   La Juncal Parrilla — Dynamic Menu Styles
   Plugin: lajuncal-menu
   All rules scoped to .lj-menu to avoid conflicts with the theme.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Scoped Reset
   -------------------------------------------------------------------------- */
.lj-menu *,
.lj-menu *::before,
.lj-menu *::after {
  box-sizing: border-box;
}

.lj-menu img {
  display: none;
}

/* --------------------------------------------------------------------------
   2. Design Tokens & Base
   -------------------------------------------------------------------------- */
.lj-menu {
  /* Color palette */
  --lj-charcoal:   #121212;
  --lj-charcoal-2: #1A1A1A;
  --lj-charcoal-3: #242424;
  --lj-ivory:      #E8D9C5;
  --lj-ivory-2:    #DECCB3;   /* tint más oscuro para secciones cards/alternadas */
  --lj-ivory-3:    #D4C3A0;   /* tint aun más oscuro si se necesita */
  --lj-bordeaux:   #4A1517;
  --lj-bordeaux-h: #5E1D20;
  --lj-gold:       #B08A57;
  --lj-gold-h:     #C9A36A;
  --lj-smoke:      #8B8B8B;
  --lj-smoke-2:    #B5B5B5;

  /* Overlays: usamos versión dark para líneas sobre fondo claro */
  --lj-line:          rgba(18, 18, 18, 0.10);   /* antes era ivory; ahora dark sobre ivory */
  --lj-line-dark:     rgba(18, 18, 18, 0.12);
  --lj-line-gold:     rgba(176, 138, 87, 0.55); /* un poco más opaco para resaltar sobre ivory */

  /* Animation */
  --lj-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Typography */
  --lj-f-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --lj-f-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  /* Base — fondo ivory, texto charcoal */
  background:              var(--lj-ivory);
  color:                   var(--lj-charcoal);
  font-family:             var(--lj-f-body);
  -webkit-font-smoothing:  antialiased;
  text-rendering:          optimizeLegibility;
}

/* --------------------------------------------------------------------------
   3. Empty State
   -------------------------------------------------------------------------- */
.lj-empty {
  text-align:  center;
  padding:     80px 24px;
  font-family: var(--lj-f-body);
  font-size:   16px;
  color:       var(--lj-charcoal);
}

/* --------------------------------------------------------------------------
   4. Sticky Navigation
   -------------------------------------------------------------------------- */
.lj-nav-wrap {
  position:                 sticky;
  top:                      0;    /* JS overrides this at runtime to sit below the theme header */
  z-index:                  100;
  background:               rgba(232, 217, 197, 0.95);
  -webkit-backdrop-filter:  saturate(140%) blur(8px);
  backdrop-filter:          saturate(140%) blur(8px);
  border-top:               1px solid rgba(176, 138, 87, 0.35);
  border-bottom:            1px solid rgba(18, 18, 18, 0.12);
  font-family:              var(--lj-f-body);
}

.lj-nav {
  display:                    flex;
  gap:                        28px;
  justify-content:            center;
  align-items:                center;
  padding:                    16px 24px;
  max-width:                  1280px;
  margin:                     0 auto;
  overflow-x:                 auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width:            none;
}

.lj-nav::-webkit-scrollbar {
  display: none;
}

.lj-nav__link {
  font-size:       11px;
  font-weight:     600;
  letter-spacing:  0.22em;
  text-transform:  uppercase;
  color:           var(--lj-bordeaux);
  text-decoration: none;
  padding:         6px 0;
  position:        relative;
  white-space:     nowrap;
  transition:      color 260ms var(--lj-ease);
}

.lj-nav__link::after {
  content:    '';
  position:   absolute;
  left:       50%;
  bottom:     0;
  width:      0;
  height:     1px;
  background: var(--lj-gold);
  transform:  translateX(-50%);
  transition: width 320ms var(--lj-ease);
}

.lj-nav__link:hover,
.lj-nav__link:focus-visible,
.lj-nav__link.is-active {
  color: var(--lj-gold);
}

.lj-nav__link:hover::after,
.lj-nav__link.is-active::after {
  width: 100%;
}

.lj-nav-sep {
  color:          var(--lj-gold);
  font-size:      6px;
  user-select:    none;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   5. Section Base
   -------------------------------------------------------------------------- */
.lj-sec {
  padding:    96px 0;
  border-top: 1px solid var(--lj-line);
  background: var(--lj-bg, var(--lj-sec-default-bg, var(--lj-ivory)));
}

.lj-sec:first-of-type {
  border-top: none;
}

/* Default backgrounds per layout — used as fallback when --lj-bg is not set */
.lj-sec--list  { --lj-sec-default-bg: var(--lj-ivory);   }
.lj-sec--cards { --lj-sec-default-bg: var(--lj-ivory-2); }
.lj-sec--bento { --lj-sec-default-bg: var(--lj-ivory);   }

/* --------------------------------------------------------------------------
   6. Section Header
   -------------------------------------------------------------------------- */
.lj-sec__head {
  max-width:     1100px;
  margin:        0 auto 52px;
  padding:       0 48px;
  display:       flex;
  flex-direction: column;
  gap:           8px;
  position:      relative;
}

.lj-sec__head::after {
  content:    '';
  display:    block;
  width:      52px;
  height:     1px;
  background: var(--lj-gold);
  margin-top: 14px;
}

.lj-eyebrow {
  font-family:    var(--lj-f-body);
  font-size:      11px;
  font-weight:    600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color:          var(--lj-gold);
}

.lj-sec__title {
  font-family:    var(--lj-f-display);
  font-size:      clamp(2rem, 5vw, 3.25rem);
  font-weight:    700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height:    1.05;
  color:          var(--lj-text, var(--lj-bordeaux));
  margin:         0;
}

.lj-sec__en {
  font-family:  var(--lj-f-body);
  font-size:    14px;
  font-weight:  300;
  font-style:   italic;
  color:        rgba(18, 18, 18, 0.55); /* era smoke */
  margin:       0;
}

/* --------------------------------------------------------------------------
   7. List Layout
   -------------------------------------------------------------------------- */
.lj-list {
  max-width:      1100px;
  margin:         0 auto;
  padding:        0 48px;
  display:        flex;
  flex-direction: column;
}

.lj-row {
  padding:       22px 0;
  border-bottom: 1px solid var(--lj-line);
}

.lj-row:first-child {
  padding-top: 0;
}

.lj-row:last-child {
  border-bottom: none;
}

.lj-row__top {
  display:               grid;
  grid-template-columns: auto 1fr auto;
  align-items:           baseline;
  gap:                   14px;
}

.lj-row__name {
  font-family:    var(--lj-f-display);
  font-size:      1.25rem;   /* 20px — era 17px */
  font-weight:    600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color:          var(--lj-text, var(--lj-bordeaux));
  line-height:    1.2;
}

.lj-row__leader {
  border-bottom: 1px dotted var(--lj-line-gold);
  transform:     translateY(-4px);
  min-width:     24px;
}

.lj-row__price {
  font-family:    var(--lj-f-display);
  font-size:      var(--lj-price-size, 1.125rem);
  font-weight:    600;
  color:          var(--lj-gold);
  letter-spacing: 0.04em;
  white-space:    nowrap;
  text-align:     right;
  display:        flex;
  flex-direction: column;
  align-items:    flex-end;
}

/* ½ precio — chip dorado debajo del precio principal */
.lj-row__price-med {
  display:        inline-block;
  font-family:    var(--lj-f-body);
  font-size:      11px;
  font-weight:    500;
  color:          var(--lj-gold);
  letter-spacing: 0.06em;
  margin-top:     8px;
  padding:        3px 9px;
  background:     rgba(176, 138, 87, 0.10);
  border:         1px solid rgba(176, 138, 87, 0.30);
  border-radius:  4px;
}

.lj-row__sub {
  margin-top:     6px;
  display:        flex;
  flex-direction: column;
  gap:            3px;
}

.lj-row__desc {
  font-family: var(--lj-f-body);
  font-size:   13px;
  font-weight: 400;
  color:       var(--lj-charcoal); /* era smoke-2 */
  line-height: 1.55;
}

.lj-row__en {
  font-family: var(--lj-f-body);
  font-size:   12px;
  font-weight: 300;
  font-style:  italic;
  color:       rgba(18, 18, 18, 0.55); /* era smoke */
  line-height: 1.5;
}

.lj-row__nota {
  font-family:    var(--lj-f-body);
  font-size:      10px;
  font-weight:    600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color:          var(--lj-gold);
  margin-top:     4px;
}

/* --------------------------------------------------------------------------
   8. Card Layout
   -------------------------------------------------------------------------- */
.lj-cards {
  max-width:             1100px;
  margin:                0 auto;
  padding:               0 48px;
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap:                   20px;
}

.lj-card {
  background:     var(--lj-charcoal-3);
  border:         1px solid var(--lj-line);
  border-radius:  8px;
  padding:        28px 30px;
  display:        flex;
  flex-direction: column;
  gap:            12px;
  transition:     transform    320ms var(--lj-ease),
                  border-color 320ms var(--lj-ease),
                  box-shadow   320ms var(--lj-ease);
}

.lj-card:hover {
  transform:    translateY(-5px);
  border-color: var(--lj-line-gold);
  box-shadow:   0 20px 60px rgba(0, 0, 0, 0.55);
}

.lj-card__badge {
  font-family:    var(--lj-f-body);
  font-size:      10px;
  font-weight:    600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color:          var(--lj-gold);
}

.lj-card__name {
  font-family:    var(--lj-f-display);
  font-size:      1.1875rem; /* 19px */
  font-weight:    700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color:          var(--lj-ivory);
  line-height:    1.15;
  margin:         0;
}

.lj-card__desc {
  font-family: var(--lj-f-body);
  font-size:   13px;
  font-weight: 300;
  color:       var(--lj-smoke-2);
  line-height: 1.6;
  margin:      0;
  flex:        1;
}

.lj-card__en {
  font-family: var(--lj-f-body);
  font-size:   12px;
  font-weight: 300;
  font-style:  italic;
  color:       var(--lj-smoke);
  line-height: 1.5;
  margin:      0;
}

.lj-card__footer {
  margin-top:  auto;
  padding-top: 18px;
  border-top:  1px solid var(--lj-line);
  display:     flex;
  align-items: baseline;
  gap:         12px;
  flex-wrap:   wrap;
}

.lj-card__price {
  font-family:    var(--lj-f-display);
  font-size:      var(--lj-price-size, 1.125rem);
  font-weight:    700;
  color:          var(--lj-gold);
  letter-spacing: 0.04em;
}

.lj-card__price-med {
  font-family: var(--lj-f-body);
  font-size:   12px;
  font-weight: 400;
  color:       var(--lj-smoke);
}

/* --------------------------------------------------------------------------
   9. Bento Layout
   -------------------------------------------------------------------------- */
.lj-bento {
  max-width:             1100px;
  margin:                0 auto;
  padding:               0 48px;
  display:               grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:                   14px;
}

.lj-tile {
  background:     var(--lj-charcoal-3);
  border:         1px solid var(--lj-line);
  border-radius:  6px;
  padding:        22px 24px;
  display:        flex;
  flex-direction: column;
  gap:            6px;
  transition:     background    280ms var(--lj-ease),
                  border-color  280ms var(--lj-ease),
                  transform     280ms var(--lj-ease);
}

.lj-tile:hover {
  background:   var(--lj-charcoal-2);
  border-color: var(--lj-line-gold);
  transform:    translateY(-3px);
}

.lj-tile__name {
  font-family:    var(--lj-f-display);
  font-size:      14px;
  font-weight:    600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color:          var(--lj-ivory);
  line-height:    1.25;
  margin:         0;
}

.lj-tile__desc {
  font-family: var(--lj-f-body);
  font-size:   12px;
  font-weight: 300;
  color:       var(--lj-smoke-2);
  line-height: 1.55;
  margin:      0;
}

.lj-tile__en {
  font-family: var(--lj-f-body);
  font-size:   11px;
  font-weight: 300;
  font-style:  italic;
  color:       var(--lj-smoke);
  margin:      0;
}

.lj-tile__price {
  margin-top:     auto;
  padding-top:    12px;
  font-family:    var(--lj-f-display);
  font-size:      var(--lj-price-size, 1.125rem);
  font-weight:    600;
  color:          var(--lj-gold);
  letter-spacing: 0.04em;
  display:        flex;
  align-items:    baseline;
  gap:            8px;
}

.lj-tile__price-med {
  font-family: var(--lj-f-body);
  font-size:   11px;
  font-weight: 400;
  color:       var(--lj-smoke);
}

/* --------------------------------------------------------------------------
   10. Closing Section
   -------------------------------------------------------------------------- */
.lj-closing {
  padding:    72px 24px;
  text-align: center;
  border-top: 1px solid var(--lj-line);
}

.lj-closing__ornament {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             16px;
  color:           var(--lj-gold);
  font-size:       8px;
  letter-spacing:  0.4em;
  margin-bottom:   32px;
}

.lj-closing__bar {
  display:    inline-block;
  width:      80px;
  height:     1px;
  background: var(--lj-gold);
}

.lj-closing__diamond {
  color:       var(--lj-gold);
  font-size:   8px;
  line-height: 1;
}

.lj-closing__text {
  font-family:    var(--lj-f-body);
  font-size:      12px;
  font-weight:    300;
  color:          rgba(18, 18, 18, 0.55); /* era smoke */
  letter-spacing: 0.10em;
  line-height:    2.2;
  margin:         0;
}

.lj-closing__text--em {
  color:      rgba(18, 18, 18, 0.75); /* era smoke-2 */
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   11. Responsive Breakpoints
   -------------------------------------------------------------------------- */

/* — Tablet / medium screens -------------------------------------------- */
@media (max-width: 900px) {
  .lj-sec {
    padding: 64px 0;
  }

  .lj-sec__head {
    padding:       0 24px;
    margin-bottom: 36px;
  }

  .lj-list,
  .lj-cards,
  .lj-bento {
    padding: 0 24px;
  }

  .lj-cards {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .lj-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lj-nav {
    gap:             18px;
    padding:         14px 16px;
    justify-content: flex-start;
  }

  .lj-nav__link {
    font-size:      10.5px;
    letter-spacing: 0.18em;
  }
}

/* — Mobile / small screens --------------------------------------------- */
@media (max-width: 600px) {
  .lj-sec {
    padding: 48px 0;
  }

  .lj-sec__head {
    padding:       0 16px;
    margin-bottom: 28px;
  }

  .lj-list,
  .lj-cards,
  .lj-bento {
    padding: 0 16px;
  }

  .lj-cards {
    grid-template-columns: 1fr;
  }

  .lj-bento {
    grid-template-columns: 1fr;
  }

  .lj-sec__title {
    font-size: 1.75rem;
  }

  .lj-row__name {
    font-size: 1.0625rem;
  }

  .lj-row__price {
    font-size: var(--lj-price-size, 1.0625rem);
  }

  .lj-row__top {
    gap: 10px;
  }
}
