/* Cúrcuma v5 — /probalo/: ejemplos que se pueden tocar por rubro y problema.
   Tokens de v5 / v5-azul. La pantalla del teléfono usa colores propios de la ilustración (variables --ph-*). */

[hidden] { display: none !important; }
.pb { max-width: var(--container, 1200px); margin: 0 auto; padding: clamp(20px, 4vw, 48px) 16px clamp(40px, 6vw, 72px); display: grid; gap: clamp(20px, 3vw, 32px); }

/* Cabecera y rubros */
.pb-head { display: grid; gap: 10px; text-align: center; justify-items: center; }
.pb-head h1 { font-size: clamp(34px, 5.4vw, 64px); line-height: .95; color: var(--tinta); }
.pb-head p { font-size: clamp(16px, 1.6vw, 19px); color: var(--a-muted-strong, #4A4F66); }
.pb-rubros { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
@media (min-width: 900px) { .pb-rubros { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pb-rubros button {
  appearance: none; padding: 0; overflow: hidden; display: grid; cursor: pointer; text-align: center;
  border-radius: var(--radius, 14px); border: 2px solid var(--a-border, #E1E4EE); background: #FFFFFF; color: var(--tinta);
  font-family: var(--font-body); transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.pb-rubros button:hover { transform: translateY(-2px); border-color: var(--azul); }
.pb-rubros button[aria-pressed="true"] { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(20, 51, 255, .18); }
.pb-rubros img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pb-rubros span { padding: 8px 6px; font-size: 13.5px; font-weight: 800; line-height: 1.2; }

/* Escenario */
.pb-stage { position: relative; display: grid; gap: 16px; scroll-margin-top: 80px; }
.pb-biz { display: grid; gap: 2px; padding: 14px 18px; border-radius: var(--radius, 14px); background: var(--tinta); color: #FFFFFF; }
.pb-biz small { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--lima); }
.pb-biz b { font-size: clamp(20px, 2.4vw, 28px); }
.pb-biz span { font-size: 14px; color: #DDE3FF; }
.pb-biz strong { color: var(--lima); }
.pb-tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.pb-tab {
  appearance: none; flex: 0 0 auto; width: clamp(150px, 40vw, 220px); scroll-snap-align: start; padding: 0; overflow: hidden; cursor: pointer;
  display: grid; text-align: left; border-radius: 12px; border: 2px solid var(--a-border, #E1E4EE); background: #FFFFFF; color: var(--tinta); font-family: var(--font-body);
}
.pb-tab img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pb-tab span { padding: 8px 10px; font-size: 13.5px; font-weight: 800; line-height: 1.25; }
.pb-tab[aria-pressed="true"] { border-color: var(--azul); background: #EEF1FF; }

.pb-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .pb-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; } }
.pb-side { display: grid; gap: 10px; }
.pb-photo { margin: 0; overflow: hidden; border-radius: var(--radius, 14px); aspect-ratio: 16 / 7; max-height: 240px; }
.pb-photo img { width: 100%; height: 100%; object-fit: cover; }
.pb-side h2 { font-size: clamp(24px, 3vw, 38px); line-height: 1; color: var(--tinta); }
.pb-fix { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 7px 14px; border-radius: 999px; background: var(--lima); color: var(--tinta); font-weight: 900; font-size: 15px; }
.pb-fix .ico { width: 18px; height: 18px; stroke-width: 2.6; }
.pb-try { font-size: 16px; color: var(--a-muted-strong, #4A4F66); }
.pb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }
.pb-full { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--azul); }
.pb-full .ico { width: 18px; height: 18px; }
@media (max-width: 899px) {
  .pb-photo { display: none; }
  .pb-grid { gap: 12px; }
  .pb-side { display: contents; }
  .pb-side h2 { order: 1; }
  .pb-fix { order: 2; }
  .pb-try { order: 3; }
  .pb-phone { order: 4; }
  .pb-actions { order: 5; justify-content: center; }
}

/* Teléfono */
.pb-phone { display: grid; justify-items: center; gap: 8px; }
.pb-phone small { font-size: 12.5px; color: var(--a-muted-strong, #4A4F66); }
.pb-phone__frame { width: min(100%, 380px); height: min(680px, 78vh); min-height: 520px; padding: 10px; border-radius: 34px; background: var(--tinta); box-shadow: 0 30px 60px -30px rgba(11, 16, 51, .6); }
.pb-screen {
  --ph-bg: #FFFFFF; --ph-soft: #F3F4F8; --ph-text: #111B21; --ph-muted: #667781; --ph-line: #E6E8EF;
  --ph-wa-head: #075E54; --ph-wa-bg: #ECE5DD; --ph-wa-out: #D9FDD3; --ph-wa-green: #25D366; --ph-ok: #0B6B3A; --ph-bad: #B3261E;
  height: 100%; overflow-y: auto; border-radius: 26px; background: var(--ph-bg); color: var(--ph-text);
  font-family: var(--font-body); font-size: 15px; display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px;
}
.pb-screen .ico { width: 18px; height: 18px; flex: none; }

/* Piezas comunes de la pantalla */
.ph-pad { display: grid; gap: 10px; padding: 14px; }
.ph-top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--ph-bg); border-bottom: 1px solid var(--ph-line); }
.ph-top span { padding: 4px 10px; border-radius: 999px; background: var(--ph-soft); font-size: 13px; font-weight: 800; }
.ph-scroll { display: grid; gap: 10px; padding: 0 12px; }
.ph-title { font-size: 17px; }
.ph-price { font-size: 26px; font-weight: 900; }
.ph-big { margin: 0; padding: 0 14px; font-size: 15px; font-weight: 700; line-height: 1.4; }
.ph-nota { margin: 0; padding: 0 14px; font-size: 13px; color: var(--ph-muted); text-align: center; }
.ph-box { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--ph-soft); }
.ph-box small { color: var(--ph-muted); }
.ph-btn {
  appearance: none; margin: 0 12px; min-height: 46px; padding: 10px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--tinta); color: #FFFFFF; font-family: var(--font-body); font-size: 15px; font-weight: 800;
}
.ph-pad .ph-btn { margin: 0; }
.ph-btn:disabled { opacity: .4; cursor: not-allowed; }
.ph-btn--wa { background: var(--ph-wa-green); color: #0B2E1A; }
.ph-btn--ghost { background: transparent; color: var(--tinta); border: 1.5px solid var(--ph-line); }
.ph-btn--sm { margin: 0; min-height: 36px; padding: 6px 14px; font-size: 13.5px; }
.ph-radio { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.ph-radio em { font-style: normal; font-weight: 800; }
.ph-ok { color: var(--ph-ok); font-weight: 700; }
.ph-warn { color: var(--ph-bad); font-weight: 700; }

/* Catálogo */
.ph-prod { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ph-line); }
.ph-prod img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; }
.ph-prod b { display: block; font-size: 14.5px; line-height: 1.2; }
.ph-prod small { display: block; font-size: 12.5px; color: var(--ph-muted); }
.ph-prod strong { display: block; font-size: 17px; }
.ph-prod em { font-style: normal; font-size: 12px; color: var(--ph-ok); font-weight: 700; }
.ph-qty { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.ph-qty button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ph-line); background: #FFFFFF; font-size: 17px; cursor: pointer; }
.ph-total { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 2px; }
.ph-total b { font-size: 24px; }

/* WhatsApp ilustrado */
.ph-wa { display: grid; background: var(--ph-wa-bg); border-radius: 14px; overflow: hidden; margin: 0 12px; }
.pb-screen > .ph-wa:first-child { margin-top: 12px; }
.ph-wa-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--ph-wa-head); color: #FFFFFF; }
.ph-wa-head i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #DCC9A9; color: #6B5532; font-style: normal; font-weight: 800; }
.ph-wa-head b { display: block; font-size: 15px; }
.ph-wa-head small { font-size: 12px; opacity: .85; }
.ph-wa-body { display: flex; flex-direction: column; gap: 6px; padding: 10px; min-height: 120px; }
.ph-msg { position: relative; max-width: 88%; padding: 8px 11px 18px; border-radius: 10px; font-size: 14.5px; line-height: 1.38; white-space: pre-line; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); }
.ph-msg time { position: absolute; right: 9px; bottom: 3px; font-size: 11px; color: var(--ph-muted); }
.ph-msg--in { align-self: flex-start; background: #FFFFFF; border-top-left-radius: 0; }
.ph-msg--out, .ph-msg--auto { align-self: flex-end; background: var(--ph-wa-out); border-top-right-radius: 0; }
.ph-msg--auto { border: 1.5px solid var(--ph-wa-green); }
.ph-msg--draft { align-self: flex-end; background: #FFFFFF; border: 1.5px dashed var(--ph-wa-green); }
.ph-auto { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 800; color: var(--ph-ok); }
.ph-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 12px; border-radius: 999px; border: 0; background: var(--ph-wa-head); color: #FFFFFF; font-weight: 800; font-size: 13.5px; cursor: pointer; }
.ph-quick { display: grid; gap: 6px; padding: 10px; background: #F0F2F5; }
.ph-quick button { padding: 10px 12px; border-radius: 999px; border: 1.5px solid var(--ph-wa-green); background: #FFFFFF; color: var(--ph-text); font-weight: 700; font-size: 14px; cursor: pointer; text-align: left; }
.ph-clock { margin: 12px 12px 0; padding: 8px 12px; border-radius: 10px; background: #FFF3C4; color: #5C4B1A; font-size: 13.5px; font-weight: 800; text-align: center; }
.ph-llega { display: grid; gap: 8px; padding-top: 12px; }
.ph-llega__tag { justify-self: center; padding: 5px 12px; border-radius: 999px; background: var(--lima); color: var(--tinta); font-size: 12.5px; font-weight: 900; }
.ph-adjunto { margin: 0 12px; width: calc(100% - 24px); max-width: 220px; justify-self: start; border-radius: 10px; border: 3px solid #FFFFFF; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }

/* Google ilustrado */
.ph-g-search { display: flex; align-items: center; gap: 8px; margin: 12px 12px 0; padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--ph-line); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); font-weight: 600; }
.ph-g-search input { flex: 1; border: 0; font: inherit; color: inherit; background: transparent; outline: none; min-width: 0; }
.ph-g-map { position: relative; height: 130px; margin: 0 12px; border-radius: 12px; background: linear-gradient(135deg, #E8EEF3 25%, #DDE6EC 25% 50%, #E8EEF3 50% 75%, #DDE6EC 75%) 0 0 / 40px 40px; }
.ph-g-map i { position: absolute; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #9AA3B2; }
.ph-g-map i.is-me { width: 22px; height: 22px; background: var(--ph-bad); }
.ph-g-card { display: grid; gap: 4px; margin: 0 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--ph-line); }
.ph-g-card.is-me { border: 2px solid var(--azul); }
.ph-g-card small { display: flex; align-items: center; gap: 4px; color: var(--ph-muted); }
.ph-g-card .ico--star { width: 14px; height: 14px; fill: #FBBC04; stroke: #FBBC04; }
.ph-g-open { color: var(--ph-ok) !important; font-weight: 700; }
.ph-g-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ph-g-actions button { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--ph-line); background: #FFFFFF; font-weight: 700; font-size: 13px; cursor: pointer; }
.ph-g-actions button:first-child { background: var(--ph-wa-green); border-color: var(--ph-wa-green); color: #0B2E1A; }

/* Producto con variantes */
.ph-hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; flex: none; }
.ph-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ph-opts > span { min-width: 48px; font-size: 13px; font-weight: 800; color: var(--ph-muted); }
.ph-opts em { font-style: normal; font-size: 13px; font-weight: 700; }
.ph-opts button { min-width: 40px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--ph-line); background: #FFFFFF; font-weight: 800; cursor: pointer; }
.ph-opts button.is-sel { background: var(--tinta); border-color: var(--tinta); color: #FFFFFF; }
.ph-swatch { width: 34px; min-width: 34px !important; height: 34px !important; padding: 0 !important; border-radius: 50% !important; background: var(--sw) !important; }
.ph-swatch.is-sel { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--tinta); }

/* Perfil tipo red social */
.ph-ig { display: grid; gap: 10px; padding: 14px; }
.ph-ig-head { display: flex; align-items: center; gap: 12px; }
.ph-ig-head i { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 22px; background: var(--ph-soft); border: 3px solid #E1306C; }
.ph-ig-head b { display: block; }
.ph-ig-head small { color: var(--ph-muted); }
.ph-ig-link { justify-self: start; padding: 0; border: 0; background: none; color: #00376B; font-weight: 800; font-size: 14.5px; text-decoration: underline; cursor: pointer; }
.ph-ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.ph-ig-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* Comparador de comisión */
.ph-field { display: grid; gap: 6px; font-weight: 700; }
.ph-field input { width: 100%; accent-color: var(--azul); }
.ph-field b { font-size: 22px; }
.ph-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-compare__col { display: grid; gap: 4px; padding: 12px; border-radius: 12px; }
.ph-compare__col small { font-weight: 800; }
.ph-compare__col span { font-size: 12.5px; color: var(--ph-muted); }
.ph-compare__col strong { font-size: 20px; }
.ph-compare__col.is-bad { background: #FDE8E7; }
.ph-compare__col.is-bad b { color: var(--ph-bad); }
.ph-compare__col.is-good { background: #E6F6EC; }
.ph-compare__col.is-good b { color: var(--ph-ok); }

/* Agenda, días y horarios */
.ph-slot { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--ph-line); font-size: 14px; }
.ph-slot em { font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #FFF3C4; color: #5C4B1A; }
.ph-slot--ok em { background: #E6F6EC; color: var(--ph-ok); }
.ph-slot--nuevo em { background: #E6F0FF; color: var(--azul); }
.ph-days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.ph-days button, .ph-times button { flex: none; padding: 9px 12px; border-radius: 10px; border: 1.5px solid var(--ph-line); background: #FFFFFF; font-weight: 800; font-size: 13.5px; cursor: pointer; }
.ph-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ph-days button.is-sel, .ph-times button.is-sel { background: var(--tinta); border-color: var(--tinta); color: #FFFFFF; }
.ph-ok-card { display: grid; justify-items: center; gap: 4px; padding: 16px; border-radius: 14px; background: #E6F6EC; text-align: center; }
.ph-ok-card .ico { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--ph-wa-green); color: #FFFFFF; stroke-width: 2.6; }
.ph-ok-card b { font-size: 18px; }
.ph-ok-card small { color: var(--ph-muted); }

/* Formulario por pasos */
.ph-steps { display: grid; grid-auto-flow: column; gap: 4px; }
.ph-steps i { height: 4px; border-radius: 999px; background: var(--ph-line); }
.ph-steps i.is-on { background: var(--azul); }
.ph-choices { display: grid; gap: 8px; }
.ph-choices button { padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--ph-line); background: #FFFFFF; text-align: left; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.ph-choices button:hover { border-color: var(--azul); }
.ph-upload { display: grid; justify-items: center; gap: 6px; padding: 26px 14px; border-radius: 14px; border: 2px dashed var(--ph-line); background: var(--ph-soft); font-weight: 800; cursor: pointer; }
.ph-upload .ico { width: 30px; height: 30px; }

/* Pago con link */
.ph-pay { display: grid; gap: 8px; padding: 16px; border-radius: 14px; border: 1.5px solid var(--ph-line); }
.ph-pay small { color: var(--ph-muted); font-weight: 700; }
.ph-pay b { font-size: 28px; }

/* Aviso flotante */
.pb-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--tinta); color: #FFFFFF; font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px rgba(11, 16, 51, .3); }

@media (prefers-reduced-motion: reduce) {
  .pb-rubros button, .pb-tab { transition: none; }
}
