/* ==========================================================
   ZORBA HELADOS · PEDIDOS
   Misma línea visual de Inicio e Historia: azul metalizado, crema, tarjetas redondeadas,
   scoops y goteo. Usa las variables de index.css (--font-title, --font-body, --cream, etc.).
   Todas las clases empiezan con "pd-" para no pisar otras hojas.
   ========================================================== */
.pd-page { background: var(--cream, #FFFBF5); overflow-x: clip; }
@keyframes pdFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes pdGira { to { transform: rotate(360deg); } }
@keyframes pdCinta { to { transform: translateX(-50%); } }

/* ---------------- ENCABEZADO ---------------- */
.pd-hero {
    position: relative; isolation: isolate; z-index: 2; color: #fff;
    background-color: #28549C;
    background-image:
        linear-gradient(112deg, rgba(255,255,255,0) 26%, rgba(255,255,255,.085) 39%, rgba(255,255,255,0) 52%),
        radial-gradient(ellipse 44% 86% at 76% 46%, rgba(80,168,255,.58) 0%, rgba(80,168,255,.24) 48%, rgba(80,168,255,0) 100%),
        radial-gradient(ellipse 70% 100% at 0% 100%, rgba(8,28,72,.42) 0%, rgba(8,28,72,0) 70%);
}
.pd-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.pd-marca {
    position: absolute; right: 3%; top: 50%; transform: translateY(-50%);
    font-family: var(--font-title); font-size: clamp(240px, 36vw, 520px); font-weight: 800; line-height: .8; letter-spacing: -.08em;
    color: rgba(255,255,255,.075); user-select: none;
}
.pd-sp { position: absolute; width: 15px; height: 5px; border-radius: 3px; background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 45%, rgba(0,0,0,.14) 100%), var(--spr, #F08CB0); box-shadow: 0 2px 2px rgba(5,20,55,.35); }
.pd-sp-1 { left: 16%; top: 22%; --spr: #F08CB0; transform: rotate(32deg); }
.pd-sp-2 { left: 40%; top: 78%; --spr: #F2C66C; transform: rotate(-24deg); }
.pd-sp-3 { left: 52%; top: 16%; --spr: #8FD18B; transform: rotate(40deg); }
.pd-sp-4 { left: 8%; top: 70%; --spr: #6DCBFF; transform: rotate(-10deg); }
.pd-sp-5 { right: 6%; top: 80%; --spr: #E5483E; transform: rotate(20deg); }

.pd-hero-inner {
    position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 40px;
    width: min(1180px, calc(100% - 48px)); min-height: 420px; margin: 0 auto; padding: 56px 0 84px;
}
.pd-migas { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 22px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.pd-migas a { color: #BFE6FF; transition: color .2s ease; }
.pd-migas a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.pd-migas [aria-current] { color: #fff; }
.pd-titulo { margin: 0; font-family: var(--font-title); font-size: clamp(56px, 8.6vw, 112px); font-weight: 800; line-height: .96; letter-spacing: -.06em; text-transform: none; color: #fff; text-shadow: 0 10px 34px rgba(5,20,55,.28); }
.pd-subtitulo { max-width: 520px; margin: 22px 0 0; padding: 0 0 0 22px; border-left: 4px solid #F08CB0; font-family: var(--font-body); font-size: clamp(17px, 1.7vw, 22px); font-weight: 500; line-height: 1.5; color: #DDF1FF; }

/* Aro con cono y scoops */
.pd-aro { position: relative; width: min(340px, 100%); aspect-ratio: 1; margin: 0 auto; }
.pd-aro-borde { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(255,255,255,.5); animation: pdGira 48s linear infinite; }
.pd-aro-nucleo { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.34) 0%, rgba(255,255,255,.08) 62%), rgba(12,36,84,.32); box-shadow: inset 0 0 0 3px rgba(255,255,255,.22), 0 24px 46px rgba(5,20,55,.34); }
.pd-aro-img { position: absolute; height: auto; filter: drop-shadow(0 14px 14px rgba(5,20,55,.38)); animation: pdFloat 8s ease-in-out infinite; }
.pd-a1 { width: 30%; left: 35%; top: 16%; transform: rotate(-8deg); }
.pd-a2 { width: 24%; left: 8%; top: 52%; transform: rotate(-12deg); animation-delay: -2s; }
.pd-a3 { width: 24%; right: 8%; top: 50%; transform: rotate(12deg); animation-delay: -3s; }
.pd-a4 { width: 22%; left: 30%; bottom: 6%; transform: rotate(-6deg); animation-delay: -5s; }
.pd-a5 { width: 16%; right: 0; top: 12%; transform: rotate(14deg); animation-delay: -1s; }

/* Goteo del baño azul */
.pd-goteo { position: absolute; left: 0; top: calc(100% - 1px); z-index: 1; display: block; width: 100%; height: 86px; fill: #28549C; filter: drop-shadow(0 10px 8px rgba(8,28,72,.22)); pointer-events: none; }

/* ---------------- CUERPO ---------------- */
.pd-cuerpo { position: relative; padding: 150px 0 40px; }
.pd-deco { position: absolute; z-index: 0; height: auto; pointer-events: none; filter: drop-shadow(0 10px 10px rgba(31,40,60,.22)); animation: pdFloat 9s ease-in-out infinite; }

/* ---------------- CUERPO DE PEDIDOS ---------------- */
.pd-cuerpo { position: relative; padding: 120px 0 40px; }
.pd-contenedor { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.pd-pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pd-pasos li { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-radius: 24px; background: #fff; border: 1px solid rgba(40,84,156,.09); box-shadow: 0 14px 30px rgba(31,57,73,.07); font-family: var(--font-body); font-size: 15px; line-height: 1.4; color: #4A4540; }
.pd-pasos strong { display: block; font-family: var(--font-title); font-size: 16px; color: #28549C; }
.pd-paso-num { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #28549C; color: #fff; font-family: var(--font-title); font-weight: 800; font-size: 19px; }
.pd-paso-2 { background: #1C7FB8; } .pd-paso-3 { background: #25A559; }
.pd-leyenda { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 22px; font-family: var(--font-body); font-size: 13px; color: #6F675E; }
.pd-leyenda strong { color: #28549C; }
.pd-aviso { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding: 24px 28px; border-radius: 24px; background: #FFF1D6; color: #6B4600; font-family: var(--font-body); }
.pd-aviso i { font-size: 26px; } .pd-aviso p { margin: 0; line-height: 1.6; } .pd-aviso a { font-weight: 700; text-decoration: underline; }

/* Barra de categorías */
.pd-tabs-barra { position: sticky; top: var(--header-h, 81px); z-index: 40; margin-top: 30px; padding: 12px 0; background: rgba(255,251,245,.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(40,84,156,.1); }
.pd-tabs { display: flex; gap: 10px; width: min(1180px, calc(100% - 48px)); margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid rgba(40,84,156,.16); color: #28549C; font-family: var(--font-body); font-weight: 800; font-size: 13.5px; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.pd-tab b { padding: 1px 8px; border-radius: 999px; background: rgba(40,84,156,.1); font-size: 11.5px; }
.pd-tab:hover { background: #fff; }
.pd-tab-on, .pd-tab-on:hover { background: #28549C; color: #fff; border-color: #28549C; }
.pd-tab-on b { background: rgba(255,255,255,.2); }

/* Catálogo + panel */
.pd-principal { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.pd-categoria { margin-top: 56px; scroll-margin-top: calc(var(--header-h, 81px) + 70px); --acc: #28549C; --tinte: #E6EEFA; }
.pd-cat-0 { --acc: #F08CB0; --tinte: #FFE9F1; } .pd-cat-1 { --acc: #1C7FB8; --tinte: #E3F4FC; } .pd-cat-2 { --acc: #A31C20; --tinte: #FBE6E6; }
.pd-cat-3 { --acc: #28549C; --tinte: #E6EEFA; } .pd-cat-4 { --acc: #1C7FB8; --tinte: #DDF1FB; } .pd-cat-5 { --acc: #0C2454; --tinte: #E3E8F3; } .pd-cat-6 { --acc: #C98A3E; --tinte: #FFF0DC; }
.pd-cat-cab { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.pd-cat-icono { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--acc); color: #fff; font-size: 24px; box-shadow: 0 0 0 6px var(--cream, #FFFBF5), 0 10px 18px rgba(28,64,126,.22); }
.pd-cat-cab h2 { margin: 0; font-family: var(--font-title); font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.04em; text-transform: none; color: #28549C; }
.pd-cat-cuenta { padding: 5px 12px; border-radius: 999px; background: var(--tinte); color: #28549C; font-family: var(--font-body); font-size: 12px; font-weight: 800; white-space: nowrap; }
.pd-cat-linea { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--acc), transparent); opacity: .35; }
.pd-grilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* Tarjeta de producto */
.pd-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px; border-radius: 24px; background: #fff; border: 1.5px solid rgba(40,84,156,.09); box-shadow: 0 12px 26px rgba(31,57,73,.07); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease; }
.pd-card:hover { transform: translateY(-3px); box-shadow: 0 18px 32px rgba(31,57,73,.12); }
.pd-sel { background: #F3F8FF; border-color: #28549C; box-shadow: 0 0 0 4px rgba(40,84,156,.10), 0 14px 28px rgba(28,64,126,.14); }
.pd-card-agotado { opacity: .62; } .pd-card-agotado:hover { transform: none; box-shadow: 0 12px 26px rgba(31,57,73,.07); }
.pd-card-agotado .pd-img img { filter: grayscale(1); }
.pd-img { flex: none; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 22px; overflow: hidden; background: var(--tinte); color: var(--acc); font-size: 30px; }
.pd-img:has(img) { background: transparent; overflow: visible; }   /* con foto: solo se ve la imagen (ya viene con las esquinas redondeadas) */
.pd-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.pd-info { flex: 1; min-width: 0; }
.pd-info h3 { margin: 0; font-family: var(--font-title); font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; color: #1F3A6B; }
.pd-precio { margin: 5px 0 0; font-family: var(--font-body); font-size: 12px; color: #7A736B; }
.pd-precio strong { font-family: var(--font-title); font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: #28549C; }
.pd-pres { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font-family: var(--font-body); font-size: 11.5px; line-height: 1.35; color: #6F675E; }
.pd-pres li::before { content: "▸ "; color: #1C7FB8; }
.pd-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; padding: 4px 10px; border-radius: 999px; font-family: var(--font-body); font-size: 11px; font-weight: 800; }
.pd-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pd-leyenda .pd-chip { margin-top: 0; }
.pd-chip-ok { background: #E1F5E7; color: #17703A; } .pd-chip-poco { background: #FFF1D6; color: #935B00; } .pd-chip-agotado { background: #EDEEF0; color: #6B7280; }
.pd-ctl { flex: none; }
.pd-add, .pd-nodisp { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 999px; font-family: var(--font-body); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.pd-add { background: #fff; color: #28549C; border: 1.5px solid #28549C; cursor: pointer; transition: background .2s ease, color .2s ease; }
.pd-add:hover { background: #28549C; color: #fff; }
.pd-add[hidden], .pd-step[hidden] { display: none; }
.pd-nodisp { background: #F1F1F2; color: #8A8F98; border: 1px solid #E1E2E5; }
.pd-step { display: inline-flex; align-items: center; gap: 10px; padding: 5px; border-radius: 999px; background: #28549C; color: #fff; }
.pd-step button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 11px; cursor: pointer; transition: background .2s ease; }
.pd-step button:hover { background: rgba(255,255,255,.32); }
.pd-step output { min-width: 22px; text-align: center; font-family: var(--font-title); font-size: 15px; font-weight: 800; }
.pd-add:focus-visible, .pd-step button:focus-visible, .pd-tab:focus-visible, .pd-wa:focus-visible { outline: 3px solid rgba(108,198,240,.95); outline-offset: 3px; }

/* Panel "Tu pedido" */
.pd-panel { position: sticky; top: calc(var(--header-h, 81px) + 84px); margin-top: 56px; padding: 30px 28px 26px; border-radius: 30px; background: #fff; border: 1px solid rgba(40,84,156,.1); box-shadow: 0 26px 54px rgba(28,64,126,.16); }
.pd-panel-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.pd-panel h2 { margin: 0; font-family: var(--font-title); font-size: 22px; font-weight: 800; letter-spacing: -.03em; text-transform: none; color: #28549C; }
.pd-panel-toggle { display: none; border: 0; background: transparent; color: #28549C; font-family: var(--font-body); font-size: 13px; font-weight: 800; text-decoration: underline; cursor: pointer; }
.pd-vacio { display: grid; place-items: center; gap: 10px; padding: 26px 0 30px; text-align: center; color: #7A736B; font-family: var(--font-body); font-size: 14px; line-height: 1.5; }
.pd-vacio span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #EEF3FA; color: #28549C; font-size: 26px; }
.pd-vacio[hidden], .pd-totales[hidden] { display: none; }
.pd-lista { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; max-height: 42vh; overflow-y: auto; }
.pd-lista li { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-body); font-size: 14px; line-height: 1.35; color: #2B2B2B; }
.pd-q { flex: none; min-width: 34px; padding: 2px 7px; border-radius: 8px; background: #E6EEFA; color: #28549C; font-weight: 800; font-size: 12.5px; text-align: center; }
.pd-n { flex: 1; min-width: 0; } .pd-s { flex: none; color: #28549C; font-weight: 700; font-size: 13px; }
.pd-totales { padding: 14px 0; border-top: 1px dashed #CFD9EA; font-family: var(--font-body); font-size: 14px; color: #4A4540; }
.pd-totales p { display: flex; justify-content: space-between; margin: 0 0 6px; } .pd-totales b { color: #28549C; }
.pd-totales p:last-child b { font-family: var(--font-title); font-size: 19px; }
.pd-wa { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 18px; border-radius: 999px; font-family: var(--font-body); font-weight: 800; font-size: 15px; color: #fff; background: linear-gradient(135deg, #25D366, #128C4A); box-shadow: 0 14px 26px rgba(18,140,74,.34); transition: transform .2s ease, box-shadow .2s ease; }
.pd-wa i { font-size: 22px; }
.pd-wa:hover { transform: translateY(-2px); box-shadow: 0 18px 30px rgba(18,140,74,.4); }
.pd-wa[aria-disabled="true"] { background: #E3E6EB; color: #8A8F98; box-shadow: none; cursor: not-allowed; pointer-events: auto; }
.pd-wa[aria-disabled="true"]:hover { transform: none; }
.pd-ayuda { margin: 12px 0 0; font-family: var(--font-body); font-size: 12px; line-height: 1.5; color: #7A736B; text-align: center; }

/* Precio por presentación + dato del precio por unidad */
.pd-dato { margin: 3px 0 0; font-family: var(--font-body); font-size: 11.5px; line-height: 1.35; color: #8A8178; }
a.pd-add { text-decoration: none; }

/* Límite por stock: avisos cuando la cantidad pedida supera lo disponible */
.pd-alerta { flex: 0 0 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 2px 0 0; padding: 11px 14px; border-radius: 16px; background: #FDECEC; border: 1px solid #F3B8B5; color: #8C1D18; font-family: var(--font-body); font-size: 13px; line-height: 1.45; }
.pd-alerta[hidden], .pd-alerta button[hidden], .pd-aviso-panel[hidden] { display: none; }
.pd-alerta i { font-size: 16px; }
.pd-alerta span { flex: 1; min-width: 170px; }
.pd-alerta button { border: 0; border-radius: 999px; padding: 8px 14px; background: #B3261E; color: #fff; font-family: var(--font-body); font-size: 12px; font-weight: 800; cursor: pointer; transition: background .2s ease; }
.pd-alerta button:hover { background: #8C1D18; }
.pd-alerta button:focus-visible { outline: 3px solid rgba(108,198,240,.95); outline-offset: 3px; }
.pd-excede, .pd-excede:hover { background: #FFF8F7; border-color: #D9534F; box-shadow: 0 0 0 4px rgba(217,83,79,.12); }
.pd-excede .pd-step { background: #B3261E; }
.pd-aviso-panel { margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; background: #FDECEC; color: #8C1D18; font-family: var(--font-body); font-size: 12.5px; line-height: 1.45; }
.pd-lista li.pd-mal .pd-n, .pd-lista li.pd-mal .pd-s { color: #B3261E; }
.pd-wa[aria-busy="true"] { opacity: .75; }

/* Botón de WhatsApp como <button> */
button.pd-wa { width: 100%; border: 0; cursor: pointer; }
button.pd-wa[aria-disabled="true"], button.pd-wa:disabled { cursor: not-allowed; }
.pd-wa:disabled { opacity: .7; cursor: progress; transform: none; }

/* Formulario antes de enviar el pedido */
html.pd-sin-scroll { overflow: hidden; }
.pd-modal { width: min(520px, calc(100% - 28px)); max-height: calc(100% - 28px); margin: auto; padding: 0; border: 0; border-radius: 30px; background: #fff; color: #2B2B2B; box-shadow: 0 40px 90px rgba(8,28,72,.45); overflow: auto; }
.pd-modal::backdrop { background: rgba(12,36,84,.55); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
/* Barra de scroll del formulario: fina, redondeada y separada de los bordes (solo estilo) */
.pd-modal::-webkit-scrollbar { width: 14px; }
.pd-modal::-webkit-scrollbar-track { background: transparent; margin: 24px 0; }
.pd-modal::-webkit-scrollbar-thumb { background: rgba(40,84,156,.32); border-radius: 999px; border: 4px solid transparent; background-clip: padding-box; min-height: 48px; }
.pd-modal::-webkit-scrollbar-thumb:hover { background: rgba(40,84,156,.55); background-clip: padding-box; }
.pd-modal::-webkit-scrollbar-thumb:active { background: #28549C; background-clip: padding-box; }
@supports not selector(::-webkit-scrollbar) {
    .pd-modal { scrollbar-width: thin; scrollbar-color: rgba(40,84,156,.4) transparent; }
}
.pd-form { padding: 30px 30px 26px; font-family: var(--font-body); }
.pd-modal-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd-modal-cab h2 { margin: 0; font-family: var(--font-title); font-size: 24px; font-weight: 800; letter-spacing: -.04em; line-height: 1.15; text-transform: none; color: #28549C; }
.pd-modal-cerrar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #EEF3FA; color: #28549C; font-size: 16px; cursor: pointer; transition: background .2s ease; }
.pd-modal-cerrar:hover { background: #DCE7F7; }
.pd-modal-cerrar { margin-right: -10px; }   /* acerca la X al borde derecho del formulario */
.pd-modal-intro { margin: 10px 0 0; font-size: 14.5px; line-height: 1.55; color: #5A534B; }
.pd-modal-resumen { margin: 14px 0 22px; padding: 10px 14px; border-radius: 14px; background: #F3F8FF; border: 1px solid rgba(40,84,156,.14); font-size: 13.5px; color: #4A4540; }
.pd-modal-resumen strong { color: #28549C; font-family: var(--font-title); font-size: 15px; }
.pd-campo { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.pd-campo label, .pd-campo legend { display: block; margin: 0 0 7px; padding: 0; font-size: 13px; font-weight: 800; color: #28549C; }
.pd-campo input[type="text"] { width: 100%; box-sizing: border-box; padding: 13px 16px; border: 1.5px solid #CBD7EA; border-radius: 16px; background: #fff; color: #2B2B2B; font-family: var(--font-body); font-size: 15px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.pd-campo input[type="text"]::placeholder { color: #9AA3B2; }
.pd-campo input[type="text"]:focus { outline: none; border-color: #28549C; box-shadow: 0 0 0 4px rgba(40,84,156,.14); }
.pd-campo input[aria-invalid="true"] { border-color: #D9534F; box-shadow: 0 0 0 4px rgba(217,83,79,.12); }
.pd-campo-off label { color: #8A93A3; }
.pd-campo input:disabled { background: #F1F3F6; border-color: #E1E5EC; color: #8A93A3; cursor: not-allowed; }
.pd-radios { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pd-radios legend { flex: 0 0 100%; }
.pd-radio { position: relative; margin: 0 !important; cursor: pointer; }
.pd-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pd-radio span { display: inline-flex; align-items: center; justify-content: center; min-width: 92px; padding: 11px 20px; border: 1.5px solid #CBD7EA; border-radius: 999px; background: #fff; color: #28549C; font-size: 14.5px; font-weight: 800; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.pd-radio:hover span { border-color: #28549C; }
.pd-radio input:checked + span { background: #28549C; border-color: #28549C; color: #fff; }
.pd-radio input:focus-visible + span { outline: 3px solid rgba(108,198,240,.95); outline-offset: 3px; }
.pd-error { margin: 7px 2px 0; font-size: 12.5px; line-height: 1.4; color: #B3261E; }
.pd-error[hidden], .pd-form-estado[hidden] { display: none; }
/* Aviso bajo la dirección: el envío se coordina por WhatsApp. Se oculta solo cuando el envío no está activo (.pd-campo-off) */
.pd-nota-envio { display: flex; gap: 9px; align-items: flex-start; margin: 9px 0 0; padding: 10px 12px; border: 1px solid #F0DDA6; border-radius: 12px; background: #FFF8E3; font-family: var(--font-body); font-size: 12.5px; line-height: 1.45; color: #6B5300; }
.pd-nota-envio i { flex: none; margin-top: 2px; font-size: 13px; color: #C58A00; }
.pd-nota-envio strong { font-weight: 800; }
.pd-campo-off .pd-nota-envio { display: none; }
.pd-form-estado { margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; background: #FDECEC; color: #8C1D18; font-size: 13px; line-height: 1.45; }
.pd-form-botones { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.pd-btn-sec { padding: 14px 20px; border: 1.5px solid #CBD7EA; border-radius: 999px; background: #fff; color: #28549C; font-family: var(--font-body); font-size: 14px; font-weight: 800; cursor: pointer; transition: background .2s ease; }
.pd-btn-sec:hover { background: #F3F8FF; }
.pd-form-botones .pd-wa { width: auto; flex: 1 1 220px; }
.pd-btn-sec:focus-visible, .pd-modal-cerrar:focus-visible, .pd-form-botones .pd-wa:focus-visible { outline: 3px solid rgba(108,198,240,.95); outline-offset: 3px; }
@media (max-width: 520px) {
    .pd-form { padding: 24px 20px 22px; }
    .pd-modal-cab h2 { font-size: 21px; }
    .pd-form-botones { flex-direction: column-reverse; align-items: stretch; } .pd-form-botones .pd-wa, .pd-btn-sec { width: 100%; flex: 0 0 auto; }
}

/* Cinta con el lema */
.pd-cinta { position: relative; z-index: 1; margin: 20px -30px 22px; padding: 18px 0; overflow: hidden; transform: rotate(-1.4deg); background: linear-gradient(90deg, #1C7FB8, #28549C 50%, #1C7FB8); box-shadow: 0 -8px 24px rgba(28,64,126,.2); }
.pd-cinta-pista { display: flex; align-items: center; gap: 34px; width: max-content; animation: pdCinta 48s linear infinite; }
.pd-cinta-pista span { font-family: var(--font-title); font-size: 22px; font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.pd-cinta-pista img { width: 36px; height: auto; filter: drop-shadow(0 4px 4px rgba(5,20,55,.35)); }


/* ---------------- FICHA DE PRODUCTO ---------------- */
.pd-card { cursor: pointer; }
.pd-ver { color: inherit; text-decoration: none; }
.pd-ver:hover { text-decoration: underline; text-underline-offset: 3px; }
.pd-ver:focus-visible, .pd-volver:focus-visible, .pd-otro:focus-visible { outline: 3px solid rgba(108,198,240,.95); outline-offset: 3px; border-radius: 8px; }
.pd-mas { display: inline-block; margin: 9px 0 0 8px; font-family: var(--font-body); font-size: 11.5px; font-weight: 800; color: #1C7FB8; text-decoration: none; }
.pd-mas i { font-size: 9px; margin-left: 2px; transition: transform .2s ease; }
.pd-card:hover .pd-mas i { transform: translateX(3px); }

/* Con una ficha abierta se oculta el listado (el resumen "Tu pedido" sigue a un costado) */
html.pd-ver-ficha .pd-categoria, html.pd-ver-ficha .pd-tabs-barra, html.pd-ver-ficha .pd-pasos, html.pd-ver-ficha .pd-leyenda { display: none; }
.pd-ficha[hidden] { display: none; }
.pd-catalogo, .pd-ficha { min-width: 0; }
.pd-ficha { margin-top: 56px; }
.pd-ficha-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 22px; }
.pd-volver { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1.5px solid #28549C; border-radius: 999px; background: #fff; color: #28549C; font-family: var(--font-body); font-size: 13.5px; font-weight: 800; cursor: pointer; transition: background .2s ease, color .2s ease; }
.pd-volver:hover { background: #28549C; color: #fff; }
.pd-volver i { transition: transform .2s ease; } .pd-volver:hover i { transform: translateX(-3px); }
.pd-ficha-migas { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7A736B; }
.pd-ficha-migas i { margin: 0 4px; font-size: 9px; }

.pd-ficha-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 34px; padding: 34px; border-radius: 34px; background: #fff; border: 1px solid rgba(40,84,156,.09); box-shadow: 0 22px 46px rgba(31,57,73,.09); }
.pd-ficha-foto { position: relative; display: grid; place-items: center; margin: 0; aspect-ratio: 1; color: var(--acc); font-size: 88px; }
.pd-ficha-halo { position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(circle, var(--tinte) 0%, rgba(255,255,255,0) 70%); }
.pd-ficha-foto img { position: relative; display: block; width: 92%; height: 92%; object-fit: contain; filter: drop-shadow(0 26px 26px rgba(31,57,73,.28)); animation: pdFichaEntra .5s cubic-bezier(.2,.8,.2,1) both; }
.pd-ficha-foto.pd-card-agotado { opacity: 1; } .pd-ficha-foto.pd-card-agotado img { filter: grayscale(1) drop-shadow(0 26px 26px rgba(31,57,73,.2)); opacity: .75; }
@keyframes pdFichaEntra { from { opacity: 0; transform: scale(.92) translateY(12px); } to { opacity: 1; transform: none; } }

.pd-ficha-info { min-width: 0; font-family: var(--font-body); }
.pd-ficha-cat { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 999px; background: var(--tinte); color: #28549C; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pd-ficha-titulo { margin: 14px 0 4px; font-family: var(--font-title); font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; line-height: 1.08; letter-spacing: -.045em; text-transform: none; color: #1F3A6B; }
.pd-ficha-titulo:focus { outline: none; }
.pd-ficha-info .pd-chip { margin-top: 6px; font-size: 12px; padding: 5px 12px; }
.pd-ficha-precio { margin: 22px 0 0; font-size: 14px; color: #7A736B; }
.pd-ficha-precio strong { font-family: var(--font-title); font-size: clamp(32px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.04em; color: #28549C; }
.pd-ficha-precio span { margin-left: 6px; }
.pd-ficha-pres { margin-top: 18px; gap: 6px; font-size: 14px; color: #4A4540; } .pd-ficha-pres strong { color: #28549C; }
.pd-ficha-info .pd-dato { font-size: 13px; }
.pd-ficha-desc { margin: 18px 0 0; font-size: 15.5px; line-height: 1.7; color: #4A4540; }
.pd-ficha-info h3 { margin: 20px 0 6px; font-family: var(--font-title); font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: #28549C; }
.pd-ficha-ingr { margin: 0; font-size: 14px; line-height: 1.65; color: #5A534B; }
.pd-ficha-reg { margin: 8px 0 0; font-size: 12px; color: #8A8178; }
.pd-ficha-compra { margin-top: 26px; }
.pd-ficha-compra .pd-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pd-ficha-compra .pd-add, .pd-ficha-compra .pd-nodisp { padding: 15px 28px; font-size: 15px; }
.pd-ficha-compra .pd-add:not(.pd-consultar) { background: #28549C; color: #fff; box-shadow: 0 14px 26px rgba(28,64,126,.28); }
.pd-ficha-compra .pd-add:not(.pd-consultar):hover { background: #1F4180; }
.pd-ficha-compra .pd-step { padding: 7px; gap: 14px; } .pd-ficha-compra .pd-step button { width: 36px; height: 36px; font-size: 13px; }
.pd-ficha-compra .pd-step output { min-width: 30px; font-size: 19px; }
.pd-ficha-enpedido { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 800; color: #17703A; }
.pd-ficha-enpedido[hidden] { display: none; }
.pd-ficha-compra .pd-alerta { margin-top: 14px; }

.pd-ficha-otros { margin-top: 34px; }
.pd-ficha-otros h3 { margin: 0 0 14px; font-family: var(--font-title); font-size: 18px; font-weight: 800; letter-spacing: -.03em; color: #28549C; }
.pd-otros-lista { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.pd-otro { flex: none; display: flex; align-items: center; gap: 12px; width: 230px; padding: 10px 14px 10px 10px; border-radius: 20px; background: #fff; border: 1.5px solid rgba(40,84,156,.09); box-shadow: 0 10px 22px rgba(31,57,73,.06); color: #1F3A6B; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.pd-otro:hover { transform: translateY(-3px); box-shadow: 0 16px 28px rgba(31,57,73,.12); }
.pd-otro-img { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--tinte); color: var(--acc); font-size: 20px; }
.pd-otro-img:has(img) { background: transparent; }
.pd-otro-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pd-otro-nombre { font-family: var(--font-title); font-size: 14px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }


/* Productos con varias presentaciones: se elige cuál pedir en la ficha */
.pd-ficha-desde strong { font-size: clamp(28px, 3vw, 38px); }
.pd-opciones { margin-top: 22px; }
.pd-opciones h3 { margin: 0 0 10px; }
.pd-opcion { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 10px; padding: 13px 16px; border-radius: 20px; background: #F7FAFF; border: 1.5px solid rgba(40,84,156,.14); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.pd-opcion-sel { background: #F3F8FF; border-color: #28549C; box-shadow: 0 0 0 4px rgba(40,84,156,.10); }
.pd-opcion-agotada { background: #F4F5F7; border-color: #E1E3E8; }
.pd-opcion-agotada .pd-opcion-txt { opacity: .6; }
.pd-opcion-txt { flex: 1; min-width: 150px; display: grid; gap: 2px; }
.pd-opcion-txt strong { font-family: var(--font-title); font-size: 15px; font-weight: 800; letter-spacing: -.02em; color: #1F3A6B; }
.pd-opcion-txt span { font-family: var(--font-title); font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: #28549C; }
.pd-opcion .pd-alerta { margin-top: 2px; }
.pd-opciones-nota { margin: 12px 2px 0; font-size: 12.5px; line-height: 1.5; color: #7A736B; }
.pd-opciones-nota a { color: #1C7FB8; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
a.pd-elegir { text-decoration: none; }

@media (max-width: 760px) {
    .pd-ficha { margin-top: 36px; }
    .pd-ficha-grid { grid-template-columns: 1fr; gap: 6px; padding: 22px 18px 26px; border-radius: 28px; }
    .pd-ficha-foto { width: min(340px, 100%); margin: 0 auto; }
    .pd-ficha-compra .pd-add { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .pd-ficha-foto img { animation: none; } }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1000px) {
    .pd-principal { grid-template-columns: minmax(0, 1fr); padding-bottom: 170px; }
    /* El resumen queda fijo abajo, siempre a mano */
    .pd-panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 70; margin: 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px)); border-radius: 24px 24px 0 0; border-bottom: 0; box-shadow: 0 -14px 34px rgba(28,64,126,.22); }
    .pd-panel-cab { margin-bottom: 8px; } .pd-panel h2 { font-size: 18px; }
    .pd-panel-toggle:not([hidden]) { display: inline-block; }
    .pd-vacio { grid-auto-flow: column; justify-content: start; gap: 12px; padding: 0 0 12px; text-align: left; } .pd-vacio span { width: 38px; height: 38px; font-size: 16px; }
    .pd-lista { display: none; max-height: 30vh; }
    .pd-abierto .pd-lista { display: grid; }
    .pd-totales { padding: 8px 0 10px; border-top: 0; } .pd-totales p { margin-bottom: 2px; }
    .pd-wa { padding: 14px 16px; font-size: 14.5px; }
    .pd-ayuda { display: none; }
    .pd-grilla { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .pd-pasos { grid-template-columns: 1fr; }
    .pd-grilla { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .pd-cuerpo { padding: 100px 0 30px; }
    .pd-contenedor, .pd-tabs { width: calc(100% - 28px); }
    .pd-card { flex-wrap: wrap; } .pd-info { flex-basis: calc(100% - 112px); } .pd-ctl { margin-left: auto; }
    .pd-cat-cuenta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .pd-aro-borde, .pd-aro-img, .pd-cinta-pista { animation: none; }
    .pd-card, .pd-wa { transition: none; }
}