/* The product pages on the taste design: /sistema-operativo, /inerxiapay, /agentes and
   /precios (area "producto"). Every rule is scoped to main.pg-producto, so nothing here
   reaches another page. The kit and public/taste/taste.css carry the system. */

/* ---------------------------------------------------------------- the hero's picture
   PageHero's .hero__media is the split's right column; its lit frame fills it. */
.pg-producto .hero__media > .frame { height: 100%; --ratio: 0px; border-radius: inherit; }
@media (max-width: 1023px) { .pg-producto .hero__media > .frame { min-height: 240px; } }

/* the price sheet in /precios' hero: a small product panel of the three entry prices */
.pg-producto .sheet { width: 100%; }
.pg-producto .sheet__rows { display: grid; }
.pg-producto .sheet__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 16px; border-bottom: 1px solid var(--u-line); }
.pg-producto .sheet__name { font-weight: 500; }
.pg-producto .sheet__price { grid-column: 2; grid-row: 1; font: 500 15px/20px var(--font-mono); letter-spacing: -0.01em; text-align: right; }
.pg-producto .sheet__body { color: var(--u-muted); }
.pg-producto .sheet__unit { grid-column: 2; grid-row: 2; color: var(--u-muted); font-family: var(--font-mono); text-align: right; white-space: nowrap; }
.pg-producto .sheet__foot { padding: 12px 16px; color: var(--u-muted); }
@media (max-width: 639px) { .pg-producto .sheet__body { display: none; } }

/* ---------------------------------------------------------------- prices */
.pg-producto .price-sec .card--plan h3 .badge { margin-left: var(--s-2); }
.pg-producto .price .t-stat { font-family: var(--font-mono); letter-spacing: -0.02em; }
.pg-producto .rates { margin: var(--s-2) 0 0; padding: 0; list-style: none; }
.pg-producto .rates > li { padding-block: var(--s-3); }
.pg-producto .rates > li:first-child { padding-top: 0; }
.pg-producto .rates .rows__value { font-family: var(--font-mono); font-weight: 500; }
.pg-producto .rates .rows__name { font-weight: 400; }
.pg-producto .rates__head .rows__name, .pg-producto .rates__head .rows__value { font-weight: 500; font-family: var(--font-text); }
.pg-producto .price-sec .checks { margin: 0; padding: 0; list-style: none; }

/* ---------------------------------------------------------------- diagrams in a split
   the frame's height is set here, one per width (the diagram fills it) */
.pg-producto .dg-frame { height: 560px; padding: 0; }
.pg-producto .dg-frame > .dg { width: 100%; height: 100%; }
@media (min-width: 1024px) and (max-width: 1279px) { .pg-producto .dg-frame { height: 500px; } }
@media (min-width: 640px) and (max-width: 1023px) { .pg-producto .dg-frame { height: 480px; margin-top: var(--s-6); } }
@media (max-width: 639px) { .pg-producto .dg-frame { height: 360px; margin-top: var(--s-5); } }

/* ---------------------------------------------------------------- guides */
.pg-producto .guides__list { margin: 0; padding: 0; list-style: none; }
.pg-producto .guides__list > li { display: block; }
.pg-producto .guide { display: grid; gap: var(--s-2); color: inherit; text-decoration: none; }
.pg-producto .guide__title { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.pg-producto .guide__body { color: var(--ink); max-width: 56ch; }
.pg-producto .guide .link { justify-self: start; margin-top: var(--s-1); }

/* ---------------------------------------------------------------- FAQ groups */
.pg-producto .faq-group__cols { margin-top: var(--s-7); row-gap: 0; }
@media (max-width: 1023px) { .pg-producto .faq-group__cols > .faq + .faq > .faq__item:first-child { padding-top: var(--s-5); } }
@media (max-width: 639px) { .pg-producto .faq-group__cols { margin-top: var(--s-6); } .pg-producto .faq-group { --hm: 2; } }

/* lists under a line keep the stack's gap (the checks follow a muted line) */
.pg-producto .stack-4 > .checks, .pg-producto .stack-5 > .checks { margin-top: var(--s-5); }
/* a phone stacks the words over the cards: two screens there */
@media (max-width: 639px) { .pg-producto :is(.price-sec, #incluido) { --hm: 2; } }

/* ---------------------------------------------------------------- /sistema-operativo */
/* the module tabs: the panel's title, line and points under the tabs */
.pg-producto .mod-panel { display: grid; gap: var(--s-3); }
.pg-producto .mod-panel h3 { margin: 0; font: 500 var(--t-card)/1.3 var(--font-text); }
.pg-producto .mod-panel p { margin: 0; }
.pg-producto .mod-panel .checks { margin: var(--s-2) 0 0; padding: 0; list-style: none; }
.pg-producto #modulos .tabs { margin-block: var(--s-6) var(--s-5); }
.pg-producto #modulos .ficha { padding: 16px 20px; }
@media (max-width: 639px) { .pg-producto #modulos { --hm: 2; } }
/* the definition: the answer beside the heading, what a system must include under them */
.pg-producto .def-answer { margin: 0; }
.pg-producto .def-label { margin: var(--s-7) 0 var(--s-4); }
.pg-producto .def-grid { row-gap: var(--s-6); }
.pg-producto .def-item h3 { margin: 0 0 var(--s-2); font: 500 var(--t-card)/1.3 var(--font-text); }
.pg-producto .def-item p { margin: 0; }
@media (min-width: 640px) and (max-width: 1023px) { .pg-producto .def-item { grid-column: auto / span 6; } }
@media (max-width: 639px) { .pg-producto #que-es { --hm: 2; } .pg-producto .def-label { margin-top: var(--s-6); } }
/* the integration groups beside the hub */
.pg-producto .integ-rows { margin-bottom: 0; padding: 0; list-style: none; }
.pg-producto .stack-4 > .integ-rows, .pg-producto .stack-4 > .svc-steps { margin-top: var(--s-5); }
.pg-producto .integ-rows > li { padding-block: var(--s-3); }
.pg-producto .integ-rows > li:first-child { padding-top: 0; }
.pg-producto .integ-rows .rows__name { color: var(--ink); font-weight: 500; }
.pg-producto .integ-rows p { margin: 0; color: var(--muted); }
@media (max-width: 639px) { .pg-producto #integraciones { --hm: 2; } }
/* the accompanied implementation: three numbered steps and the line under them */
.pg-producto .svc-steps { margin-bottom: 0; padding: 0; list-style: none; display: grid; gap: var(--s-5); }
.pg-producto .svc-steps li { display: grid; grid-template-columns: 32px 1fr; gap: var(--s-4); align-items: start; }
.pg-producto .svc-steps b { display: block; font-weight: 500; }
.pg-producto .svc-steps__body { display: block; }
.pg-producto .svc-foot { font-weight: 500; }
@media (max-width: 639px) { .pg-producto #servicio { --hm: 2; } }

.pg-producto #implementacion .step-when { margin-bottom: var(--s-2); }

/* ---------------------------------------------------------------- small screens on lit panels
   (the home's promise cards: a .pc piece set in container units, cut by nothing) */
.pg-producto .pc-panel { --p-h: 260px; container-type: inline-size; }
.pg-producto .pc-panel > .pc { position: absolute; left: 8%; right: 8%; top: 28px; border-radius: var(--r-md);
  box-shadow: 0 1px 2px rgb(10 18 40 / .08), 0 18px 40px -18px rgb(10 18 40 / .3); font-size: max(13px, 4.2cqw); gap: 3cqw; padding: 6cqw; }
.pg-producto .pc-panel > .pc .lbl { font-size: max(13px, 3.6cqw); }
.pg-producto .pc-panel > .pc .num { font-size: 10cqw; }
.pg-producto .pc-panel > .pc .chip { font-size: max(13px, 3.4cqw); padding: 1.4cqw 2.6cqw; }
.pg-producto .pc-panel > .pc-wa { padding: 0; gap: 0; }
.pg-producto .pc-panel .pc-wa .head { padding: 4cqw 5cqw; }
.pg-producto .pc-panel .pc-wa .msgs { gap: 3cqw; padding: 5cqw; }
.pg-producto .pc-panel .pc-wa .b { padding: 3cqw 4cqw; border-radius: 3cqw; }
@media (max-width: 639px) { .pg-producto .pc-panel { --p-h: 220px; } .pg-producto .pc-panel .pc .row { display: flex; } }

/* ---------------------------------------------------------------- /inerxiapay */
.pg-producto .pay-cards { margin-top: var(--s-7); }
.pg-producto #funciones .pay-cards + .pay-cards, .pg-producto #funciones > .wrap > .pay-cards { margin-top: 0; }
@media (min-width: 1024px) { .pg-producto #funciones .pc-panel { --p-h: 300px; } }
@media (min-width: 640px) and (max-width: 1023px) { .pg-producto .pay-cards > .card { grid-column: auto / span 12; } }
@media (max-width: 639px) { .pg-producto #funciones { --hm: 2; } .pg-producto #funciones .pc-panel { --p-h: 180px; } }
.pg-producto .flow-frame { height: 300px; margin-top: var(--s-7); padding: 0; }
.pg-producto .flow-frame > .dg { width: 100%; height: 100%; }
@media (min-width: 640px) and (max-width: 1023px) { .pg-producto .flow-frame { height: 360px; } }
@media (max-width: 639px) { .pg-producto .flow-frame { height: 440px; margin-top: var(--s-6); } .pg-producto #conciliacion { --hm: 2; } }
.pg-producto #conciliacion .methods { margin-top: var(--s-6); }
.pg-producto .pay-wa { width: 20px; height: 20px; }
.pg-producto .chan-cards { margin-top: var(--s-7); }
.pg-producto .voice-panel { --p-h: 340px; }
@media (min-width: 640px) and (max-width: 1023px) { .pg-producto .chan-cards > .card { grid-column: auto / span 12; } }
@media (max-width: 639px) { .pg-producto #canales { --hm: 2; } .pg-producto .chan-cards .pc-panel { --p-h: 220px; } }
/* below 1280 the six benefits read as text cards: with their screens they would need three screens */
@media (max-width: 1279px) { .pg-producto #funciones .pc-panel { display: none; } .pg-producto #funciones .pay-cards > .card { grid-column: auto / span 6; } }
@media (max-width: 639px) { .pg-producto #funciones .pay-cards > .card { grid-column: 1 / -1; } .pg-producto .flow-frame { height: 560px; } }
/* the channels' WhatsApp piece sits in a span-6 panel: the same size as the voice card beside it */
.pg-producto .chan-cards .pc-panel { --p-h: 340px; }
.pg-producto .chan-cards .pc-panel > .pc { left: max(24px, 50% - 190px); right: max(24px, 50% - 190px); font-size: 14px; }
.pg-producto .chan-cards .pc-panel .pc-wa .head { padding: 12px 16px; }
.pg-producto .chan-cards .pc-panel .pc-wa .msgs { gap: 10px; padding: 16px; }
.pg-producto .chan-cards .pc-panel .pc-wa .b { padding: 8px 12px; border-radius: 10px; }
@media (max-width: 639px) { .pg-producto .chan-cards .pc-panel, .pg-producto .voice-panel { --p-h: 300px; } }

/* ---------------------------------------------------------------- /agentes */
.pg-producto .tabs-frame { aspect-ratio: 1 / 1; --ratio: 0px; }
.pg-producto #agentes-ia .tabs { margin-block: var(--s-6) var(--s-5); }
.pg-producto #agentes-ia .section-head .t-label { margin: 0; }
@media (max-width: 1279px) { .pg-producto .tabs-frame { aspect-ratio: 5 / 4; } }
@media (min-width: 640px) and (max-width: 1023px) { .pg-producto .tabs-frame { aspect-ratio: 16 / 10; margin-top: var(--s-6); } }
@media (max-width: 639px) { .pg-producto .tabs-frame { aspect-ratio: auto; height: 420px; margin-top: var(--s-5); } .pg-producto #agentes-ia, .pg-producto #no-es-chatbot { --hm: 2; } }
.pg-producto .uc-grid { margin-top: var(--s-7); }
.pg-producto #casos > .wrap > .uc-grid { margin-top: 0; }
.pg-producto .uc-card { color: inherit; text-decoration: none; }
.pg-producto .uc-card > p { margin: 0; }
.pg-producto .uc-card > p + p { margin-top: var(--s-3); }
.pg-producto .uc-card .uc-metric { margin-top: auto; padding-top: var(--s-4); }
.pg-producto .uc-card .uc-metric .t-stat { font-family: var(--font-mono); letter-spacing: -0.02em; }
.pg-producto .uc-card .link { margin-top: var(--s-4); justify-self: start; align-self: start; }
@media (min-width: 640px) and (max-width: 1279px) {
  .pg-producto #casos > .wrap { display: flex; flex-direction: column; row-gap: 0; }
  .pg-producto #casos > .wrap > .uc-grid { margin-top: var(--card-gap, 24px); }
}
@media (min-width: 640px) and (max-width: 1023px) { .pg-producto .uc-grid > .uc-card { grid-column: auto / span 12; } }
/* a phone keeps each use case's name, capabilities and figure; its description is on its own page, one tap away */
@media (max-width: 639px) { .pg-producto .uc-card > .uc-desc { display: none; } .pg-producto #casos > .wrap > .uc-grid { margin-top: var(--s-3); } }
@media (max-width: 639px) { .pg-producto .uc-grid > .uc-card { grid-column: 1 / -1; } }
.pg-producto .section-head > p.t-label { font-size: var(--t-label); line-height: 1.4; color: var(--muted); margin: 0; }
.pg-producto .uc-card > p.uc-tags { font-size: var(--t-small); color: var(--muted); }
/* /precios' six questions: one screen at 1440, two where the columns narrow or stack */
@media (min-width: 640px) and (max-width: 1279px) { .pg-producto #preguntas.faq-group { --h: 2; } }
