/* ==========================================================================
   Menú Dinámico (platia-menu) — Estilos del menú
   Plugin: platia-menu
   All rules scoped to .ptm-menu to avoid conflicts with the theme.
   ========================================================================== */

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

.ptm-menu img {
  display: none;
}

/* --------------------------------------------------------------------------
   2. Design Tokens & Base
   -------------------------------------------------------------------------- */
.ptm-menu {
  /* Color palette — negro/rojo (paleta propia de Arte de Mafia) */
  --ptm-charcoal:   #121212;
  --ptm-charcoal-2: #1A1A1A;
  --ptm-charcoal-3: #242424;
  --ptm-ivory:      #F2ECE3;
  --ptm-bordeaux:   #B32019;
  --ptm-bordeaux-h: #D6382C;
  --ptm-gold:       #D6382C;
  --ptm-gold-h:     #E85A4C;
  --ptm-smoke:      #8B8B8B;
  --ptm-smoke-2:    #B5B5B5;

  /* Overlays: líneas claras sobre fondo oscuro */
  --ptm-line:          rgba(242, 236, 227, 0.10);
  --ptm-line-dark:     rgba(242, 236, 227, 0.14);
  --ptm-line-gold:     rgba(179, 32, 25, 0.55);

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

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

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

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

/* --------------------------------------------------------------------------
   4. Sticky Navigation
   -------------------------------------------------------------------------- */
.ptm-nav-wrap {
  position:                 sticky;
  top:                      0;    /* JS overrides this at runtime to sit below the theme header */
  z-index:                  100;
  background:               rgba(18, 18, 18, 0.92);
  -webkit-backdrop-filter:  saturate(140%) blur(8px);
  backdrop-filter:          saturate(140%) blur(8px);
  border-top:               1px solid rgba(179, 32, 25, 0.35);
  border-bottom:            1px solid rgba(242, 236, 227, 0.12);
  font-family:              var(--ptm-f-body);
}

.ptm-nav {
  display:                    flex;
  gap:                        28px;
  /* ponytail: flex-start, not center — centering a flex container that can
     overflow makes the start of the content unreachable by scroll in most
     browsers. flex-start keeps the whole list scrollable when it overflows;
     it still reads as left-aligned (not centered) when it fits. */
  justify-content:            flex-start;
  align-items:                center;
  padding:                    16px 24px;
  max-width:                  1280px;
  margin:                     0 auto;
  overflow-x:                 auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width:            none;
}

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

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

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

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

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

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

/* --------------------------------------------------------------------------
   5. Section Base
   -------------------------------------------------------------------------- */
.ptm-sec {
  padding:    96px 0;
  border-top: 1px solid var(--ptm-line);
}

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

/* Background variants — fondo negro; cards/bento con tinte levemente más claro */
.ptm-sec--list  { background: var(--ptm-charcoal);   }
.ptm-sec--cards { background: var(--ptm-charcoal-2); }
.ptm-sec--bento { background: var(--ptm-charcoal-2); }

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

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

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

.ptm-sec__title {
  font-family:    var(--ptm-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(--ptm-ivory);
  margin:         0;
}

.ptm-sec__en {
  font-family:  var(--ptm-f-body);
  font-size:    14px;
  font-weight:  300;
  font-style:   italic;
  color:        rgba(242, 236, 227, 0.55);
  margin:       0;
}

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

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

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

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

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

.ptm-row__name {
  font-family:    var(--ptm-f-display);
  font-size:      var(--ptm-name-size, 1.25rem);   /* 20px */
  font-weight:    700;
  letter-spacing: normal;
  text-transform: var(--ptm-name-transform, none);
  color:          var(--ptm-name-color, var(--ptm-bordeaux));
  line-height:    1.2;
}

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

.ptm-row__price {
  font-family:    var(--ptm-f-display);
  font-size:      1.25rem;   /* 20px */
  font-weight:    600;
  color:          var(--ptm-gold);
  letter-spacing: 0.04em;
  white-space:    nowrap;
  text-align:     right;
  display:        flex;
  flex-direction: column;
  align-items:    flex-end;
}

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

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

.ptm-row__desc {
  font-family: var(--ptm-f-body);
  font-size:   var(--ptm-desc-size, 13px);
  font-weight: 400;
  color:       var(--ptm-desc-color, var(--ptm-ivory));
  line-height: 1.55;
}

.ptm-row__en {
  font-family: var(--ptm-f-body);
  font-size:   12px;
  font-weight: 300;
  font-style:  italic;
  color:       rgba(242, 236, 227, 0.55);
  line-height: 1.5;
}

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

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

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

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

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

.ptm-card__name {
  font-family:    var(--ptm-f-display);
  font-size:      var(--ptm-name-size, 1.1875rem); /* 19px */
  font-weight:    700;
  letter-spacing: normal;
  text-transform: var(--ptm-name-transform, none);
  color:          var(--ptm-name-color, var(--ptm-ivory));
  line-height:    1.15;
  margin:         0;
}

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

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

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

.ptm-card__price {
  font-family:    var(--ptm-f-display);
  font-size:      1.5rem; /* 24px */
  font-weight:    700;
  color:          var(--ptm-gold);
  letter-spacing: 0.04em;
}

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

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

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

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

.ptm-tile__name {
  font-family:    var(--ptm-f-display);
  font-size:      var(--ptm-name-size, 14px);
  font-weight:    600;
  letter-spacing: normal;
  text-transform: var(--ptm-name-transform, none);
  color:          var(--ptm-name-color, var(--ptm-ivory));
  line-height:    1.25;
  margin:         0;
}

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

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

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

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

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

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

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

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

.ptm-closing__text {
  font-family:    var(--ptm-f-body);
  font-size:      12px;
  font-weight:    300;
  color:          rgba(242, 236, 227, 0.55);
  letter-spacing: 0.10em;
  line-height:    2.2;
  margin:         0;
}

.ptm-closing__text--em {
  color:      rgba(242, 236, 227, 0.75);
  margin-top: 10px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .ptm-row__name {
    font-size: 1.0625rem; /* 17px en mobile — escala desde 20px desktop */
  }

  .ptm-row__price {
    font-size: 1.0625rem;
  }

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

/* ── CSS vars por sección (inyectadas inline desde el admin) ──────────────── */
.ptm-sec         { background: var(--ptm-bg, transparent); color: var(--ptm-text, inherit); }
.ptm-sec__title  { color: var(--ptm-text, inherit); }
.ptm-row__price,
.ptm-card__price,
.ptm-tile__price { font-size: var(--ptm-price-size, 1rem); }
