/* Páginas de producto: soporte de animaciones (product-motion.js) y ajustes responsive.
   Los !important son para ganar a estilos inline de las plantillas. */

.pm-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 2000; height: 3px; background: linear-gradient(90deg, var(--ya-orange), #F6AF9D); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.pm-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.pm-w > span { display: inline-block; will-change: transform; }

.timeline-editorial > .container { position: relative; }
.pm-timeline { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--orange-ya); transform-origin: top; pointer-events: none; }

.product-page .hero-title { font-size: clamp(2.25rem, 4.2vw, 3.25rem); line-height: 1.08; margin-bottom: 1.25rem; max-width: 21ch; }
.product-page .hero-copy > p { font-size: 1.1rem !important; line-height: 1.65; margin-bottom: 1.75rem !important; }
.product-page .hero-section { padding: 9rem 2rem 5rem; }
.product-page .hero-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
.product-page .section-title { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.15; }
.product-page .section-dark { padding: 5rem 2rem; }
.product-page .problem-grid { gap: 3rem; align-items: start; }
.product-page .problem-grid > div:first-child .section-title { max-width: 18ch; }
.product-page .problem-grid > div:first-child > p { max-width: 44ch; }
.product-page .problem-grid > div > p { color: #c2cdd6; font-size: 1rem; line-height: 1.65; }
.product-page .problem-card { padding: 1.75rem; border-radius: 22px; }
.product-page .problem-card h3 { font-size: 1.5rem; line-height: 1.25; margin-bottom: 0.85rem; }
.product-page .problem-list { gap: 0.75rem; margin-top: 1.25rem; }
.product-page .problem-list li { font-size: 0.95rem; line-height: 1.5; gap: 0.6rem; }
.product-page .problem-list i { font-size: 1.1rem; flex: none; margin-top: 3px; }
.product-page .section-copy { margin-bottom: 2rem; }
.product-page .bento-grid { gap: 1.25rem; }
.product-page .bento-card { padding: 1.75rem; border-radius: 22px; transition: border-color 0.25s, background 0.25s, box-shadow 0.25s; }
.product-page .bento-card > .ph { display: inline-flex !important; width: max-content; font-size: 2rem !important; margin: 0 0 1rem !important; }

/* Vistas ilustrativas: cada producto muestra su propia operativa. */
.product-page .product-preview { background: #fff; color: #0B2C3F; border-color: #dce4e9; padding: 1.5rem; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22); border-radius: 24px; }
.preview-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid #dce4e9; }
.preview-head strong { font: 700 1.4rem/1.1 'Outfit', sans-serif; }
.preview-head em { font-style: normal; color: var(--ya-orange); }
.preview-head > small { font-size: 0.65rem; color: #657889; }
.preview-row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.9rem 0; border-top: 1px solid #edf0f3; font-size: 0.85rem; }
.preview-row b { display: block; }
.preview-row small, .preview-next small { display: block; color: #657889; font-size: 0.75rem; margin-top: 3px; }
.preview-status { padding: 5px 8px; background: #e7f3ec; color: #237443; font-size: 0.65rem; font-style: normal; border-radius: 7px; }
.preview-status.is-muted { background: #edf1f4; color: #566b7a; }
.product-preview .preview-note { margin: 0.75rem 0 0; font-size: 0.75rem; color: #657889; }
.preview-floor { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 16px; background: #f2f5f7; border-radius: 14px; margin-bottom: 1rem; }
.preview-floor i { height: 38px; border: 2px solid #d9e1e7; border-radius: 8px; background: #fff; }
.preview-floor .is-booked { border-color: var(--ya-orange); background: #fff0e9; }
.preview-menu-heading { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 0.8rem; }
.preview-menu-heading > span { color: #657889; font-size: 0.7rem; }
.preview-dish { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; }
.preview-dish img { display: block; width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.preview-dish > strong { font-size: 0.8rem; white-space: nowrap; }
.product-page .preview-orders { background: #0B2C3F; border-color: #355368; color: #fff; }
.preview-orders .preview-row, .preview-orders .preview-head { border-color: #355368; }
.preview-orders .preview-head > small { color: #c2cdd6; }
.preview-locations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.preview-locations span { padding: 10px 6px; border-radius: 10px; text-align: center; background: #244457; font-size: 0.8rem; }
.preview-hub { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 1rem; margin: 1rem 0; border: 1px solid #557184; border-radius: 14px; }
.preview-hub small { color: #c2cdd6; font-size: 0.75rem; }
.preview-schedule { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 0.75rem; font-size: 0.8rem; }
.preview-schedule b { color: #657889; font-weight: 400; }
.preview-pipeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.preview-pipeline > div { background: #f1f4f7; border-radius: 12px; padding: 10px; }
.preview-pipeline small { font-size: 0.7rem; color: #657889; }
.preview-pipeline article { padding: 12px 8px; margin-top: 0.75rem; border: 1px solid #dce4e9; border-top: 2px solid var(--ya-orange); border-radius: 8px; background: #fff; font-size: 0.8rem; }
.preview-pipeline article span { display: block; color: #657889; font-size: 0.7rem; margin-top: 6px; }
.preview-next { display: flex; align-items: center; gap: 12px; padding: 14px; margin-top: 1rem; border-radius: 12px; background: #fff1ea; font-size: 0.85rem; }
.product-page .preview-signing { background: #eef1f4; }
.preview-document { padding: 1.25rem; border: 1px solid #dce4e9; background: #fff; border-radius: 8px; }
.preview-document > small, .preview-signature > small { color: #657889; font-size: 0.65rem; }
.preview-document h3 { color: #0B2C3F; font-size: 1.25rem; margin: 0.75rem 0 1.5rem; }
.preview-lines { display: grid; gap: 10px; margin-bottom: 1.5rem; }
.preview-lines i { height: 6px; border-radius: 3px; background: #e9edf0; }
.preview-lines i:last-child { width: 65%; }
.preview-document .preview-signature { padding: 12px; border: 1px dashed #a7bac7; border-radius: 8px; background: #fff; }
.preview-signature svg { display: block; width: 100%; height: 64px; }
.preview-signature path { fill: none; stroke: #0B2C3F; stroke-width: 3; stroke-linecap: round; }
.preview-document .preview-row { padding-bottom: 0; color: #237443; }
.preview-cover { padding: 1.5rem; background: #0B2C3F; color: #fff; border-radius: 12px; margin-bottom: 0.75rem; }
.preview-cover small { font-size: 0.65rem; color: #c2cdd6; }
.preview-cover h3 { font-size: 1.8rem; line-height: 1.1; margin: 1.25rem 0 0.75rem; }
.preview-cover p { color: #c2cdd6; font-size: 0.85rem; }
.preview-total { font: 700 1.5rem 'Outfit', sans-serif; }
.preview-analytics .preview-head { border-color: rgba(255, 255, 255, 0.12); }
.preview-analytics .preview-head > small { color: #c2cdd6; }
.preview-connection { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.2rem; padding-bottom: 0.8rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

.process-row { position: relative; }
.pm-line { position: absolute; top: 50%; left: 4%; right: 4%; height: 2px; background: linear-gradient(90deg, var(--ya-orange), rgba(232, 54, 11, .2)); transform-origin: 0 50%; transform: scaleX(0); z-index: 0; pointer-events: none; }
.process-item { position: relative; z-index: 1; }

.bento-card { position: relative; overflow: hidden; isolation: isolate; }
.bento-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(380px circle at var(--pm-x, 50%) var(--pm-y, 50%), rgba(232, 54, 11, .16), transparent 45%); opacity: 0; transition: opacity .35s; pointer-events: none; }
.bento-card:hover::before { opacity: 1; }
.btn-solid { will-change: transform; }

/* ============ RESPONSIVE ============ */
img, svg, video { max-width: 100%; }
.hero-copy > p { overflow-wrap: anywhere; }

@media (max-width: 1024px) {
  .product-page .hero-layout { grid-template-columns: 1fr; }
  .bento-grid[style*="repeat(3"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .pm-line { display: none; }
}

@media (max-width: 768px) {
  .hero-section { padding-top: 120px !important; }
  .product-page .hero-title { font-size: clamp(2rem, 8vw, 2.35rem) !important; margin-bottom: 1.25rem !important; }
  .product-page .hero-section { padding: 4rem 1.25rem 3rem !important; }
  .product-page .hero-layout { gap: 2rem; }
  .product-page .section-dark { padding: 3.5rem 1.25rem; }
  .product-page .problem-grid { gap: 1.75rem; }
  .product-page .product-preview { padding: 1.1rem; }
  .hero-copy > p { font-size: 17px !important; margin-bottom: 2rem !important; }
  .product-page .section-title { font-size: clamp(1.8rem, 7.5vw, 2.15rem) !important; }
  .contact-shell > h2 { font-size: clamp(1.9rem, 8vw, 2.4rem) !important; line-height: 1.15; }
  .contact-shell > p { font-size: 16px !important; margin-bottom: 2.25rem !important; }
  .bento-grid[style*="repeat(3"] { grid-template-columns: 1fr !important; }
  .bento-card h3 { font-size: 20px !important; }
  .bento-card .ph[style*="3rem"] { font-size: 2.25rem !important; }
  .panel-row { flex-direction: column; align-items: flex-start !important; gap: .5rem; }
  .product-panel { padding: 1.25rem !important; }
  .problem-card h3 { font-size: 1.5rem !important; }
  footer { padding: 4.5rem 0 3rem !important; }
  footer div[style*="gap: 3rem"] { gap: 1.25rem 2rem !important; }
}

@media (max-width: 600px) {
  .preview-pipeline { grid-template-columns: 1fr; }
  .preview-pipeline > div { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 8px; }
  .preview-pipeline article { margin-top: 0; }
  .preview-dish { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; }
  .preview-dish img { width: 44px; height: 44px; }
  .preview-dish small { font-size: 0.7rem; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .contact-form { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  .pm-progress, .pm-line, .pm-timeline { display: none; }
  .bento-card::before { display: none; }
}
