/* =========================================================
   MAMUD BURGER — pedir para llevar (pedir.html, js/pedir.js)
   Oscuro como la carta; el pedido, al lado, como un ticket de
   papel; y la pasarela de pago, blanca, como las de los bancos
   (es de prueba y lo dice).
   ========================================================= */
.page-pedir { background: var(--char); }
.nav-cta--line.is-current { background: rgba(207,162,77,0.16); }

/* ── Cabecera ── */
.pd-hero { position: relative; background: var(--bg-dark); overflow: hidden; }
.pd-hero::before {
    content: 'TAKE AWAY'; position: absolute; right: -0.04em; bottom: -0.16em; pointer-events: none; white-space: nowrap;
    font-family: var(--f-display); font-weight: 900; font-size: 19vw; line-height: 1; color: rgba(255,255,255,0.03);
}
.pd-hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 70% at 85% 120%, rgba(228,87,46,0.2), transparent 70%);
}
.pd-hero-in { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: calc(var(--nav-solid) + 64px) 48px 56px; }
.pd-titulo {
    font-family: var(--f-display); font-size: clamp(46px, 6.2vw, 92px); font-weight: 900; text-transform: uppercase;
    color: var(--white); line-height: 0.9; letter-spacing: 0.005em; text-wrap: balance; max-width: 880px;
}
.pd-titulo em {
    font-family: var(--f-serif); font-style: italic; font-weight: 600; font-size: 1.02em;
    text-transform: none; letter-spacing: -0.015em; color: var(--gold);
}
.pd-sub { margin-top: 22px; max-width: 640px; font-size: clamp(15px, 1.5vw, 17.5px); font-weight: 300; line-height: 1.7; color: rgba(255,255,255,0.74); }
.pd-ventajas { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; }
.pd-ventajas li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.84); }
.pd-ventajas i { color: var(--gold); font-size: 14px; width: 16px; text-align: center; }
.pd-hero .open-now { margin-top: 22px; }
.pd-hero .open-now.is-open { color: #74D69E; }
.pd-hero .open-now.is-closed { color: #FF9C73; }

/* ── El pedido: los pasos, el paso y el ticket ── */
.pd { max-width: 1336px; margin: 0 auto; padding: 0 48px 130px; color: var(--white); }
.pd-pasos {
    list-style: none; display: flex; align-items: center; gap: 0;
    padding: 26px 0; margin-bottom: 40px; border-bottom: 1px solid var(--line-d);
}
.pd-p { display: flex; align-items: center; flex: 1 1 0; min-width: 0; }
.pd-p:last-child { flex: 0 0 auto; }
.pd-p > button, .pd-p > span {
    display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 0;
    background: none; border: 0; color: inherit; text-align: left;
}
.pd-p > button { cursor: pointer; }
.pd-p:not(:last-child)::after { content: ''; flex: 1; min-width: 12px; height: 1px; margin: 0 14px; background: rgba(255,255,255,0.14); }
.pd-p.es-hecho:not(:last-child)::after { background: rgba(207,162,77,0.5); }
.pd-p-n {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-style: normal; font-family: var(--f-display); font-size: 15px; font-weight: 800;
    border: 1px solid rgba(255,255,255,0.22); color: rgba(255,255,255,0.5); transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pd-p-n i { font-size: 12px; }
.pd-p-t {
    font-family: var(--f-display); font-size: 16px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
    color: rgba(255,255,255,0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pd-p.es-ahora .pd-p-n { background: var(--gold); border-color: var(--gold); color: var(--bg-dark); }
.pd-p.es-ahora .pd-p-t { color: var(--white); }
.pd-p.es-hecho .pd-p-n { border-color: var(--gold); color: var(--gold); }
.pd-p.es-hecho .pd-p-t { color: rgba(255,255,255,0.75); }
.pd-p > button:hover .pd-p-t { color: var(--gold-light); }
.pd-p > button:hover .pd-p-n { border-color: var(--gold-light); }

.pd-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 52px; align-items: start; }
.pd-paso { min-width: 0; }
.pd-paso:focus { outline: none; }
.pd-cargando { display: flex; align-items: center; gap: 14px; padding: 70px 0; color: rgba(255,255,255,0.6); font-size: 15px; }
.pd-spin {
    flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
    border: 3px solid rgba(207,162,77,0.22); border-top-color: var(--gold); animation: pdGira 0.8s linear infinite;
}
@keyframes pdGira { to { transform: rotate(360deg); } }

.pd-paso-cab { margin-bottom: 8px; }
.pd-paso-num { display: block; font-family: var(--f-display); font-size: 14px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.pd-paso-t { font-family: var(--f-display); font-size: clamp(36px, 4vw, 54px); font-weight: 900; text-transform: uppercase; line-height: 0.95; letter-spacing: 0.01em; color: var(--white); }
.pd-paso-sub { margin-top: 12px; max-width: 640px; font-size: 15px; line-height: 1.65; color: rgba(255,255,255,0.62); }

.pd-grupo { margin-top: 34px; }
.pd-grupo-t {
    display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
    font-family: var(--f-display); font-size: 17px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
}
.pd-grupo-t::after { content: ''; flex: 1; height: 1px; background: rgba(207,162,77,0.3); }
.pd-grupo-nota { margin: -4px 0 10px; font-size: 13px; color: rgba(255,255,255,0.55); }

/* Las tarjetas de los platos (las que se eligen) */
.pd-platos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.pd-plato {
    display: grid; grid-template-columns: 112px minmax(0, 1fr); min-height: 150px;
    background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.pd-plato[data-elige] { cursor: pointer; }
.pd-plato[data-elige]:hover { border-color: rgba(207,162,77,0.6); background: rgba(255,255,255,0.055); }
.pd-plato.es-puesto { border-color: rgba(207,162,77,0.55); box-shadow: inset 3px 0 0 var(--gold); }
.pd-plato.es-agotado { opacity: 0.5; }
.pd-foto { position: relative; background: var(--char-2); overflow: hidden; }
.pd-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pd-plato[data-elige]:hover .pd-foto img { transform: scale(1.06); }
.pd-foto.es-vacia { display: flex; align-items: center; justify-content: center; font-size: 30px; color: rgba(207,162,77,0.35); }
.pd-info { display: flex; flex-direction: column; min-width: 0; padding: 14px 16px 14px; }
.pd-nombre { font-family: var(--f-display); font-size: 21px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.05; color: var(--white); }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.pd-tag {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 7px; border-radius: 2px;
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.pd-tag i { font-size: 10px; }
.pd-tag.es-hot { background: rgba(228,87,46,0.16); color: #FF9C73; }
.pd-tag.es-veg { background: rgba(116,214,158,0.14); color: #86D6A0; }
.pd-tag.es-star { background: rgba(207,162,77,0.16); color: var(--gold-light); }
.pd-desc {
    margin-top: 7px; font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.58);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pd-pie { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-top: auto; padding-top: 12px; }
.pd-precio { font-family: var(--f-display); font-size: 23px; font-weight: 900; color: var(--gold); letter-spacing: 0.01em; }
.pd-anadir {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; cursor: pointer;
    font-family: var(--f-display); font-size: 15px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    background: transparent; color: var(--gold); border: 2px solid var(--gold); border-radius: var(--r);
    transition: background 0.2s, color 0.2s;
}
.pd-anadir i { font-size: 11px; }
.pd-anadir:hover { background: var(--gold); color: var(--bg-dark); }
.pd-lleva { font-size: 12.5px; font-weight: 600; color: var(--gold-light); width: 100%; text-align: right; }
.pd-pie .pd-lleva { order: 3; }
.pd-agotado { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #FF9C73; }

/* Más y menos */
.pd-cant { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,0.22); border-radius: var(--r); }
.pd-cant button {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    background: none; border: 0; color: var(--gold); cursor: pointer; font-size: 12px; transition: background 0.2s;
}
.pd-cant button:hover { background: rgba(207,162,77,0.14); }
.pd-cant b { min-width: 28px; text-align: center; font-family: 'DM Mono', ui-monospace, monospace; font-size: 15px; font-weight: 500; }

/* Las filas (bebidas, salsas, papas) */
.pd-filas { list-style: none; columns: 2; column-gap: 40px; }
.pd-fila {
    break-inside: avoid; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px;
    padding: 11px 0; min-height: 60px; border-bottom: 1px dashed rgba(255,255,255,0.12);
}
.pd-fila-n { font-size: 15.5px; font-weight: 600; color: rgba(255,255,255,0.9); }
.pd-fila-p { font-family: var(--f-display); font-size: 19px; font-weight: 900; color: var(--gold); }
.pd-fila.es-puesto .pd-fila-n { color: var(--white); }
.pd-fila.es-agotado { opacity: 0.5; }
.pd-fila .pd-anadir { padding: 6px 11px; font-size: 14px; }

/* El pie de cada paso */
.pd-paso-pie {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
    margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line-d);
}
.pd-sigue { margin-left: auto; }
.pd-atras {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 4px; cursor: pointer;
    background: none; border: 0; color: rgba(255,255,255,0.7);
    font-family: var(--f-display); font-size: 16px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    transition: color 0.2s;
}
.pd-atras i { font-size: 13px; }
.pd-atras:hover { color: var(--gold); }

/* ── El ticket: el pedido, como un ticket de papel ── */
.pd-ticket { position: sticky; top: calc(var(--nav-solid) + 20px); filter: drop-shadow(0 22px 34px rgba(0,0,0,0.42)); }
.pd-ticket:empty { display: none; }
.pd-ticket-in {
    --dt: 14px;
    background: var(--cream); color: var(--text); padding: 22px 22px calc(26px + var(--dt) / 2);
    max-height: calc(100vh - var(--nav-solid) - 44px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--dt) 100%;
            mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--dt) 100%;
}
.pd-ticket.destella .pd-ticket-in { animation: pdDestella 0.7s ease-out; }
@keyframes pdDestella { 0% { background: #FFF3CF; } 100% { background: var(--cream); } }
.pd-ticket-cab { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 2px solid var(--text); }
.pd-ticket-cab img { width: 46px; height: 46px; border-radius: 50%; background: var(--bg-dark); }
.pd-ticket-cab div { flex: 1; min-width: 0; }
.pd-ticket-cab b { display: block; font-family: var(--f-display); font-size: 24px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1; }
.pd-ticket-cab small { display: block; margin-top: 4px; font-family: 'DM Mono', ui-monospace, monospace; font-size: 11px; color: var(--muted); }
.pd-ticket-x { display: none; }
.pd-ticket-vacio { padding: 30px 6px 10px; text-align: center; color: var(--muted); }
.pd-ticket-vacio i { font-size: 30px; color: rgba(140,100,32,0.45); margin-bottom: 12px; }
.pd-ticket-vacio p { font-size: 14px; line-height: 1.6; }
.pd-aviso-cesta { margin-top: 12px; text-align: center; font-size: 13.5px; font-weight: 600; color: #B8431A; }
.salta { animation: pdSalta 0.45s ease; }
@keyframes pdSalta { 0%, 100% { transform: none; } 30% { transform: translateX(-6px); } 60% { transform: translateX(5px); } }

.pd-lineas { list-style: none; }
.pd-linea { padding: 13px 0 12px; border-bottom: 1px dashed rgba(27,23,20,0.22); }
.pd-linea-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pd-linea-n { font-size: 15px; font-weight: 600; line-height: 1.35; }
.pd-linea-n b { font-family: 'DM Mono', ui-monospace, monospace; font-weight: 500; color: var(--gold-deep); }
.pd-linea-p { font-family: 'DM Mono', ui-monospace, monospace; font-size: 14px; white-space: nowrap; }
.pd-linea-op { margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.pd-linea-acc { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 9px; }
.pd-cant--sm { border-color: rgba(27,23,20,0.22); }
.pd-cant--sm button { width: 30px; height: 30px; color: var(--gold-deep); font-size: 10px; }
.pd-cant--sm button:hover { background: rgba(140,100,32,0.1); }
.pd-cant--sm b { min-width: 22px; font-size: 13px; }
.pd-linea-btn {
    background: none; border: 0; padding: 6px 0; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted);
    text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(111,102,93,0.4);
}
.pd-linea-btn:hover { color: var(--text); }

.pd-totales { margin-top: 14px; display: grid; gap: 6px; }
.pd-totales div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pd-totales dt { font-size: 13px; color: var(--muted); }
.pd-totales dd { font-family: 'DM Mono', ui-monospace, monospace; font-size: 13.5px; }
.pd-totales .pd-total { margin-top: 6px; padding-top: 12px; border-top: 2px solid var(--text); }
.pd-total dt { font-family: var(--f-display); font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text); }
.pd-total dt small { display: block; font-family: var(--f-body); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.pd-total dd { font-family: var(--f-display); font-size: 30px; font-weight: 900; }
.pd-ticket-hora { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 11px; background: rgba(207,162,77,0.16); font-size: 13px; font-weight: 600; }
.pd-ticket-hora i { color: var(--gold-deep); }
.pd-ticket-sigue { width: 100%; margin-top: 18px; padding: 14px 18px; font-size: 16px; }
.pd-ticket-sigue i { font-size: 13px; }
.pd-ticket-pagado { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-family: 'DM Mono', ui-monospace, monospace; font-size: 13px; color: #1E7A45; }

/* ── La hoja de un plato ── */
.pd-hoja {
    position: fixed; inset: 0; z-index: 980; display: flex; align-items: center; justify-content: center; padding: 24px;
    background: rgba(8,6,5,0.74); opacity: 0; transition: opacity 0.2s ease;
}
.pd-hoja.is-on { opacity: 1; }
.pd-hoja-abierta { overflow: hidden; }
.pd-hoja-caja {
    position: relative; width: min(620px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain;
    background: var(--char-2); color: var(--white); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px;
    transform: translateY(14px); transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.pd-hoja.is-on .pd-hoja-caja { transform: none; }
.pd-hoja-x {
    position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center; font-size: 17px;
    background: rgba(13,11,9,0.72); color: var(--white); border: 1px solid rgba(255,255,255,0.16);
}
.pd-hoja-x:hover { color: var(--gold); }
.pd-hoja-cab img { width: 100%; height: 250px; object-fit: cover; }
.pd-hoja-titulo { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 24px 0; }
.pd-hoja-titulo h3 { font-family: var(--f-display); font-size: 32px; font-weight: 900; text-transform: uppercase; line-height: 1; letter-spacing: 0.01em; padding-right: 8px; }
.pd-hoja-cab > :first-child.pd-hoja-titulo { padding-right: 64px; }
.pd-hoja-precio { font-family: var(--f-display); font-size: 26px; font-weight: 900; color: var(--gold); white-space: nowrap; }
.pd-hoja-desc { padding: 8px 24px 0; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.64); }
.pd-hoja-al { display: flex; gap: 8px; padding: 10px 24px 0; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,0.5); }
.pd-hoja-al i { color: var(--gold); margin-top: 2px; }
.pd-hoja-form { padding: 4px 24px 0; }
.pd-op { border: 0; margin: 22px 0 0; padding: 0; min-width: 0; }
.pd-op legend, .pd-op-l {
    display: block; padding: 0; margin-bottom: 11px;
    font-family: var(--f-display); font-size: 16px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.72);
}
.pd-op legend small, .pd-op-l small { font-family: var(--f-body); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: rgba(255,255,255,0.45); margin-left: 6px; }
.pd-op-nota { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.55); }
.pd-hoja-form > .pd-op-nota { padding-top: 18px; }

.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-chip { position: relative; display: inline-flex; cursor: pointer; }
.pd-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pd-chip span {
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22); font-size: 14px; line-height: 1.2; color: rgba(255,255,255,0.86);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pd-chip:hover span { border-color: rgba(207,162,77,0.7); }
.pd-chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--bg-dark); font-weight: 600; }
.pd-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.pd-chip small { font-size: 12px; opacity: 0.75; }

.pd-extras { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
.pd-extra { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px dashed rgba(255,255,255,0.1); cursor: pointer; }
.pd-extra input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--gold); cursor: pointer; }
.pd-extra-n { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
.pd-extra-p { font-family: 'DM Mono', ui-monospace, monospace; font-size: 12.5px; color: var(--gold); white-space: nowrap; }
.pd-extra.es-tope { opacity: 0.42; cursor: not-allowed; }
.pd-extra.es-tope input { cursor: not-allowed; }
.pd-op > .pd-extra { border-bottom: 0; padding-top: 0; }

.pd-op-nota-libre { display: block; }
.pd-op-nota-libre input, .pd-campo input, .pd-campo textarea {
    width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.18); border-radius: 2px;
    padding: 12px 14px; color: var(--white); font-size: 15px; font-family: inherit; color-scheme: dark;
    transition: border-color 0.2s, background 0.2s;
}
.pd-op-nota-libre input, .pd-campo input { height: 48px; }
.pd-campo textarea { resize: vertical; min-height: 74px; }
.pd-op-nota-libre input::placeholder, .pd-campo input::placeholder, .pd-campo textarea::placeholder { color: rgba(255,255,255,0.35); }
.pd-op-nota-libre input:focus, .pd-campo input:focus, .pd-campo textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.08); }

.pd-hoja-pie {
    position: sticky; bottom: 0; z-index: 1; display: flex; align-items: center; gap: 14px;
    margin: 22px -24px 0; padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px));
    background: var(--char-2); border-top: 1px solid var(--line-d);
}
.pd-hoja-pie .pd-cant b { font-size: 16px; }
.pd-hoja-ok { flex: 1; padding: 14px 18px; font-size: 16px; }

/* ── La recogida y tus datos ── */
.pd-form { margin-top: 6px; }
.pd-horas { max-height: 236px; overflow-y: auto; padding: 2px; }
.pd-chip--ya span { border-color: rgba(207,162,77,0.6); }
.pd-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.pd-campo { display: flex; flex-direction: column; gap: 7px; }
.pd-campo--ancho { grid-column: 1 / -1; }
.pd-campo > span { font-family: var(--f-display); font-size: 15px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.pd-campo > span small { font-family: var(--f-body); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: rgba(255,255,255,0.42); margin-left: 4px; }
.pd-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; cursor: pointer; font-size: 13.5px; line-height: 1.55; color: rgba(255,255,255,0.72); }
.pd-check input { flex-shrink: 0; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--gold); cursor: pointer; }
.pd-check a { color: var(--gold); text-underline-offset: 2px; }
.pd-msg { margin-top: 12px; min-height: 20px; font-size: 13.5px; }
.pd-msg.es-mal { color: #FF9C73; }
#pdAlPago i { font-size: 13px; }

/* ── La pasarela de pago (de prueba) ── */
.pd-pasarela {
    max-width: 540px; margin-top: 26px; overflow: hidden;
    background: #FFFFFF; color: #1F2328; border-radius: 10px; box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    font-family: var(--f-body);
}
.pp-cab { display: flex; align-items: center; gap: 8px; padding: 12px 18px; background: #F4F5F7; border-bottom: 1px solid #E3E5E8; font-size: 13px; font-weight: 600; color: #4B5563; }
.pp-cab > i { color: #1E8E4F; }
.pp-prueba {
    margin-left: auto; font-style: normal; padding: 3px 9px; border-radius: 999px;
    background: #FFF4D6; color: #8A5A00; border: 1px solid #F2D58A;
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
}
.pp-comercio { display: flex; align-items: center; gap: 12px; padding: 18px; }
.pp-comercio img { width: 42px; height: 42px; border-radius: 9px; background: var(--bg-dark); padding: 2px; }
.pp-comercio div { min-width: 0; }
.pp-comercio b { display: block; font-size: 15px; }
.pp-comercio small { display: block; margin-top: 2px; font-size: 12.5px; color: #6B7280; }
.pp-importe { margin-left: auto; font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-metodos { display: flex; gap: 8px; padding: 0 18px; }
.pp-metodo {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 10px; cursor: pointer;
    background: #FFFFFF; border: 1px solid #D7DBE0; border-radius: 8px; font-size: 14px; font-weight: 600; color: #374151;
    transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.pp-metodo:hover { border-color: #9AA3AF; }
.pp-metodo.is-on { border-color: #2563EB; box-shadow: 0 0 0 1px #2563EB; color: #1D4ED8; }
.pp-metodo:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; }
.pp-form { padding: 16px 18px 18px; }
.pp-campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.pp-campo > span { font-size: 13px; font-weight: 600; color: #374151; }
.pp-campo input {
    width: 100%; height: 46px; padding: 0 12px; border: 1px solid #D7DBE0; border-radius: 8px;
    background: #FFFFFF; color: #111827; font-size: 15.5px; font-family: inherit; color-scheme: light;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pp-campo input::placeholder { color: #9AA3AF; }
.pp-campo input:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.18); }
.pp-num { position: relative; display: block; }
.pp-num input { padding-right: 52px; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.pp-marca { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 26px; color: #1A1F71; }
.pp-marca.fa-cc-mastercard { color: #EB001B; }
.pp-marca.fa-cc-amex { color: #2E77BC; }
.pp-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pp-nota { font-size: 13px; line-height: 1.5; color: #6B7280; margin-bottom: 8px; }
.pp-msg { min-height: 18px; margin: 2px 0 10px; font-size: 13.5px; font-weight: 600; color: #B42318; }
.pp-pagar {
    width: 100%; height: 52px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
    background: #15110F; color: #FFFFFF; border: 0; border-radius: 8px; font-size: 16.5px; font-weight: 700; font-family: inherit;
    transition: background 0.15s;
}
.pp-pagar:hover { background: #2A2420; }
.pp-pagar i { font-size: 13px; color: var(--gold); }
.pp-aviso {
    display: flex; gap: 10px; margin-top: 14px; padding: 11px 12px; border-radius: 8px;
    background: #F8F9FB; border: 1px dashed #CBD1D8; font-size: 12.5px; line-height: 1.55; color: #5B6470;
}
.pp-aviso i { color: #8A5A00; margin-top: 3px; }
.pp-aviso b { font-family: 'DM Mono', ui-monospace, monospace; font-weight: 500; color: #111827; white-space: nowrap; }
.pp-procesa { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 46px 18px 54px; text-align: center; }
.pp-procesa .pd-spin { width: 34px; height: 34px; border-color: #E3E5E8; border-top-color: #2563EB; margin-bottom: 6px; }
.pp-procesa b { font-size: 16px; color: #111827; }
.pp-procesa small { font-size: 13px; color: #6B7280; }

/* ── El pedido hecho ── */
.pd-hecho { padding-top: 4px; }
.pd-hecho-ico {
    position: relative; width: 74px; height: 74px; border-radius: 50%; margin-bottom: 22px;
    display: flex; align-items: center; justify-content: center; background: var(--gold); color: var(--bg-dark); font-size: 30px;
}
.pd-hecho-ico .fa-check {
    position: absolute; right: -4px; bottom: -2px; width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 13px;
    background: #1E8E4F; color: #FFFFFF; border: 3px solid var(--char);
}
.pd-hecho-txt { margin-top: 16px; max-width: 600px; font-size: 16px; line-height: 1.65; color: rgba(255,255,255,0.78); }
.pd-hecho-txt b { color: var(--white); }
.pd-hecho-cod { margin-top: 10px; font-family: var(--f-display); font-size: clamp(46px, 6vw, 66px); font-weight: 900; letter-spacing: 0.06em; color: var(--gold); line-height: 1; }
.pd-hecho-datos { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; margin-top: 24px; padding: 18px 0; border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.pd-hecho-datos dt { font-family: var(--f-display); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.pd-hecho-datos dd { margin-top: 4px; font-size: 16.5px; font-weight: 600; color: var(--white); }
.pd-hecho-acc { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; }
.pd-hecho-demo { display: flex; gap: 10px; margin-top: 28px; max-width: 600px; padding: 4px 0 4px 14px; border-left: 3px solid var(--gold); font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,0.6); }
.pd-hecho-demo i { color: var(--gold); margin-top: 4px; }

/* ── La barra del móvil ── */
.pd-barra { display: none; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1100px) {
    .pd-hero-in { padding-left: 32px; padding-right: 32px; }
    .pd { padding: 0 32px 120px; }
    .pd-cuerpo { grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; }
    .pd-platos { grid-template-columns: 1fr; }
    .pd-p-t { font-size: 14.5px; }
    .pd-p:not(:last-child)::after { margin: 0 10px; }
}

/* Hasta 1000 px: el ticket se va abajo, en una hoja que se abre desde la barra. */
@media (max-width: 1000px) {
    .pd-cuerpo { grid-template-columns: minmax(0, 1fr); }
    .pd-platos { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
    .pd-ticket {
        position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 970; filter: none;
        transform: translateY(105%); visibility: hidden; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), visibility 0s linear 0.3s;
    }
    .pd-ticket.es-abierto { transform: none; visibility: visible; transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), visibility 0s; }
    .pd-ticket-in {
        -webkit-mask: none; mask: none; border-radius: 14px 14px 0 0;
        max-height: 84vh; max-height: 84dvh; padding: 18px 20px calc(22px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -18px 50px rgba(0,0,0,0.5);
    }
    .pd-ticket-x {
        display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: -8px; cursor: pointer;
        background: none; border: 0; font-size: 20px; color: var(--muted);
    }
    body.pd-con-ticket { overflow: hidden; }
    body.pd-con-ticket::after { content: ''; position: fixed; inset: 0; z-index: 965; background: rgba(8,6,5,0.6); }
    .pd-barra {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 940; display: flex; align-items: center; gap: 10px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        background: var(--bg-dark); border-top: 1px solid var(--line-d); box-shadow: 0 -10px 30px rgba(0,0,0,0.35);
    }
    .page-pedir { padding-bottom: 76px; }
    .pd-barra-ver {
        flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; cursor: pointer;
        background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--r); color: var(--white); text-align: left;
    }
    .pd-barra-n {
        flex: 0 0 auto; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center;
        background: var(--gold); color: var(--bg-dark); font-family: 'DM Mono', ui-monospace, monospace; font-size: 13px; font-weight: 500;
    }
    .pd-barra-n.salta { animation: pdPop 0.4s ease; }
    @keyframes pdPop { 50% { transform: scale(1.3); } }
    .pd-barra-txt { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pd-barra-ver b { margin-left: auto; font-family: 'DM Mono', ui-monospace, monospace; font-size: 15px; font-weight: 500; white-space: nowrap; }
    .pd-barra-sig { height: 50px; padding: 0 18px; font-size: 16px; white-space: nowrap; }
    .pd-barra-sig i { font-size: 12px; }
}

@media (max-width: 768px) {
    .pd-hero-in { padding: calc(var(--nav-solid) + 34px) 20px 40px; }
    .pd { padding: 0 20px 90px; }
    .pd-pasos { margin: 0 -20px 30px; padding: 16px 20px; overflow-x: auto; scrollbar-width: none; }
    .pd-pasos::-webkit-scrollbar { display: none; }
    .pd-p { flex: 0 0 auto; }
    .pd-p:not(:last-child)::after { width: 18px; flex: 0 0 18px; margin: 0 8px; }
    .pd-p:not(.es-ahora) .pd-p-t { display: none; }
    .pd-p-n { width: 28px; height: 28px; font-size: 14px; }
    .pd-filas { columns: 1; }
    .pd-campos { grid-template-columns: 1fr; }
    .pd-hecho-datos { grid-template-columns: 1fr 1fr; gap: 14px 24px; }
}

/* En el móvil, la hoja de un plato sube desde abajo. */
@media (max-width: 640px) {
    .pd-platos { grid-template-columns: 1fr; gap: 10px; }
    .pd-plato { grid-template-columns: 96px minmax(0, 1fr); min-height: 128px; }
    .pd-info { padding: 12px 13px; }
    .pd-nombre { font-size: 19px; }
    .pd-desc { -webkit-line-clamp: 2; font-size: 12.5px; }
    .pd-precio { font-size: 20px; }
    .pd-anadir { padding: 7px 11px; font-size: 14px; }
    .pd-hoja { align-items: flex-end; padding: 0; }
    .pd-hoja-caja {
        width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 14px 14px 0 0; border-bottom: 0;
        transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
    }
    .pd-hoja-cab img { height: 190px; }
    .pd-hoja-titulo { padding: 18px 18px 0; }
    .pd-hoja-titulo h3 { font-size: 27px; }
    .pd-hoja-precio { font-size: 22px; }
    .pd-hoja-desc, .pd-hoja-al { padding-left: 18px; padding-right: 18px; }
    .pd-hoja-form { padding: 4px 18px 0; }
    .pd-hoja-pie { margin: 20px -18px 0; padding-left: 18px; padding-right: 18px; }
    .pd-extras { grid-template-columns: 1fr; }
    .pd-pasarela { margin-left: -6px; margin-right: -6px; border-radius: 8px; }
    .pp-comercio { flex-wrap: wrap; }
    .pp-importe { font-size: 21px; }
}

@media (max-width: 400px) {
    .pd-barra { padding-left: 10px; padding-right: 10px; gap: 8px; }
    .pd-barra-txt { display: none; }
    .pd-hecho-datos { grid-template-columns: 1fr; }
    .pd-fila { gap: 10px; }
    .pp-fila { grid-template-columns: 1fr 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .pd-spin { animation-duration: 2s; }
    .pd-ticket, .pd-hoja-caja, .pd-hoja { transition: none; }
    .salta, .pd-barra-n.salta, .pd-ticket.destella .pd-ticket-in { animation: none; }
}
