/* ===== HOME V3 (ajustes del PDF "LANDING PAGE v2") =====
   Se carga después de styles.css y pages.css; solo afecta a home-v3.html. */

/* ── Botones lima (nav "Hablar con ventas" y CTA final) ── */
.btn-liquid--lime .btn-liquid__label,
.btn-liquid--lime .btn-liquid__blob,
.btn-liquid--nav.btn-liquid--lime .btn-liquid__label,
.btn-liquid--nav.btn-liquid--lime .btn-liquid__blob,
.cta-band .btn-liquid--lime .btn-liquid__label,
.cta-band .btn-liquid--lime .btn-liquid__blob { background: var(--lime); color: var(--dark); }
.btn-liquid--lime:hover .btn-liquid__label,
.btn-liquid--lime:hover .btn-liquid__blob,
.btn-liquid--nav.btn-liquid--lime:hover .btn-liquid__label,
.btn-liquid--nav.btn-liquid--lime:hover .btn-liquid__blob,
.cta-band .btn-liquid--lime:hover .btn-liquid__label,
.cta-band .btn-liquid--lime:hover .btn-liquid__blob { background: var(--amber); }

/* ── HERO: recortes de la UI de qwik que van rotando ── */
.hero-pay.hero-ui {
  padding: 0; background: none; border: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  width: 28rem; right: -3.2rem; bottom: 7%;
  display: grid;
}
.ui-card {
  grid-area: 1 / 1;
  align-self: end;
  padding: 1.8rem; border-radius: 1.8rem;
  background: var(--white); color: #252c35;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  font-size: 1.3rem;
  opacity: 0; visibility: hidden;
}
.ui-card.is-on { opacity: 1; visibility: visible; }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ui-title { font-weight: 700; font-size: 1.5rem; }
.ui-sub { color: #9ca3af; font-size: 1.2rem; }
.ui-check { width: 3.6rem; height: 3.6rem; border-radius: 50%; display: grid; place-items: center; background: #def084; flex-shrink: 0; }
.ui-check svg { width: 1.8rem; height: 1.8rem; }
.ui-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.4rem; }
.ui-steps span { height: .5rem; border-radius: 1rem; background: #e5e7eb; }
.ui-steps span.on { background: #2a4539; }
.ui-steps-lbl { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: .6rem; font-size: 1.05rem; color: #9ca3af; }
.ui-steps-lbl b { color: #2a4539; font-weight: 600; }
.ui-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1.2rem 0; }
.ui-tip { position: relative; padding: 1rem .4rem; border-radius: 1.2rem; border: 1.5px solid #e5e7eb; text-align: center; }
.ui-tip b { display: block; font-family: var(--fh); font-size: 1.8rem; }
.ui-tip small { color: #9ca3af; font-size: 1.05rem; }
.ui-tip.on { border-color: #2a4539; background: #f4f9e1; }
.ui-tip .ui-pop { position: absolute; top: -.9rem; left: 50%; translate: -50% 0; padding: .2rem .7rem; border-radius: 1rem; background: #def084; font-size: .95rem; font-weight: 700; white-space: nowrap; }
.ui-btn { display: block; padding: 1.1rem; border-radius: 1.2rem; background: #2a4539; color: #def084; text-align: center; font-weight: 700; font-size: 1.35rem; }
.ui-prod { display: flex; gap: 1.2rem; align-items: center; }
.ui-prod img { width: 7.2rem; height: 7.2rem; border-radius: 1.2rem; object-fit: cover; flex-shrink: 0; }
.ui-tag { display: inline-block; padding: .3rem .8rem; border-radius: 1rem; background: #252c35; color: #def084; font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.ui-tag--rec { background: #def084; color: #2a4539; }
.ui-plus { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: #def084; display: grid; place-items: center; font-weight: 700; font-size: 1.8rem; flex-shrink: 0; }
.ui-people { display: flex; margin: 1.2rem 0; }
.ui-people span { width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; margin-right: -.8rem; border: 2px solid #fff; font-size: 1.1rem; font-weight: 700; }
@media (max-width: 760px) { .hero-pay.hero-ui { right: 1.2rem; width: 24rem; } }

/* ── IMPACTO: tamaños nuevos + UI real en ticket y propinas ── */
.bx-card--time { grid-column: span 6; }
.bx-card--amber { grid-column: span 6; flex-direction: row; align-items: center; justify-content: space-between; gap: 2.4rem; }
.bx-card--dark { grid-column: span 4; }
.bx-card--wide { grid-column: span 8; }
.bx-card--cta { grid-column: span 12; flex-direction: row; align-items: center; min-height: 0; }
.bx .bx-card--cta { grid-auto-rows: auto; }
.bx-card--ticket { align-items: center; }
.v3-upsell { display: flex; flex-direction: column; gap: .8rem; width: 30rem; flex-shrink: 0; }
.v3-upsell .ui-prod { padding: 1rem; border-radius: 1.4rem; background: var(--white); }
.v3-upsell .ui-prod img { width: 6.4rem; height: 6.4rem; }
.v3-upsell .ui-title { font-size: 1.4rem; }
.v3-tip { width: 30rem; flex-shrink: 0; padding: 1.8rem; border-radius: 1.8rem; background: var(--white); color: #252c35; box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.v3-tip .ui-title { text-align: center; }
@media (max-width: 1080px) {
  .bx-card--time, .bx-card--amber, .bx-card--dark, .bx-card--wide, .bx-card--cta { grid-column: span 12; }
}
@media (max-width: 760px) {
  .bx-card--amber, .bx-card--ticket, .bx-card--cta { flex-direction: column; align-items: stretch; }
  .v3-upsell, .v3-tip { width: auto; }
}

/* ── CÓMO FUNCIONA: celular fijo que muestra cada pantalla (idea Sunday) ── */
.v3-flow { margin: 0 1.6rem; padding: clamp(7.2rem, 9vw, 11.2rem) 0 6.4rem; border-radius: 1.4rem; background: var(--dark); color: var(--white); }
.v3-flow__hd { text-align: center; margin-bottom: 4rem; }
.v3-flow__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.v3-flow__steps { list-style: none; }
.v3-flow__step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; max-width: 46rem; opacity: .3; transition: opacity .5s var(--ease1); }
.v3-flow__step.is-active { opacity: 1; }
.v3-flow__num { font-family: var(--fh); font-size: 1.3rem; font-weight: 700; letter-spacing: .18em; color: var(--amber); }
.v3-flow__step h3 { font-family: var(--fh); font-size: clamp(4rem, 5vw, 6.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.v3-flow__step p { font-size: 1.9rem; line-height: 1.55; color: rgba(255,255,255,.7); }
.v3-flow__sticky { position: sticky; top: 12vh; height: 76vh; display: flex; align-items: center; justify-content: center; }
.v3-phone { position: relative; width: 31rem; aspect-ratio: 9 / 19; padding: 1.1rem; border-radius: 4.6rem; background: #111; box-shadow: 0 40px 90px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.08); }
.v3-phone__screen { position: relative; height: 100%; border-radius: 3.6rem; overflow: hidden; background: #f8f9fa; color: #252c35; }
.v3-phone__island { position: absolute; z-index: 5; top: 1rem; left: 50%; translate: -50% 0; width: 9rem; height: 2.6rem; border-radius: 2rem; background: #111; }
.v3-scr { position: absolute; inset: 0; opacity: 0; transform: translateY(2rem) scale(.98); transition: opacity .5s var(--ease1), transform .6s var(--ease1); }
.v3-scr.is-on { opacity: 1; transform: none; }
/* 1 · escanear */
.v3-scr--scan { background: #000; }
.v3-scr--scan img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.v3-scan-frame { position: absolute; left: 50%; top: 46%; width: 17rem; height: 17rem; translate: -50% -50%; border-radius: 2.4rem; box-shadow: 0 0 0 999rem rgba(0,0,0,.45); border: 3px solid var(--lime); }
.v3-scan-chip { position: absolute; left: 50%; bottom: 12%; translate: -50% 0; padding: 1rem 1.6rem; border-radius: 2rem; background: var(--white); font-size: 1.3rem; font-weight: 600; white-space: nowrap; }
/* 2 · menú */
.v3-app-head { padding: 4.6rem 1.6rem 1.4rem; background: #2a4539; color: #fff; }
.v3-app-head b { display: block; font-family: var(--fh); font-size: 2rem; }
.v3-app-head small { font-size: 1.2rem; opacity: .7; }
.v3-chips { display: flex; gap: .6rem; padding: 1.2rem 1.6rem; }
.v3-chips span { padding: .6rem 1.2rem; border-radius: 2rem; background: #fff; border: 1px solid #e5e7eb; font-size: 1.15rem; font-weight: 600; }
.v3-chips span.on { background: #def084; border-color: #def084; }
.v3-list { display: flex; flex-direction: column; gap: .8rem; padding: 0 1.2rem; }
.v3-list .ui-prod { padding: .9rem; border-radius: 1.4rem; background: #fff; }
.v3-list .ui-prod img { width: 6rem; height: 6rem; }
.v3-list .ui-title { font-size: 1.35rem; }
.v3-cartbar { position: absolute; left: 1.2rem; right: 1.2rem; bottom: 2rem; display: flex; justify-content: space-between; padding: 1.4rem 1.6rem; border-radius: 1.4rem; background: #def084; font-weight: 700; font-size: 1.35rem; }
/* 3 · pagar */
.v3-bill { padding: 0 1.4rem; display: flex; flex-direction: column; gap: 1rem; margin-top: 1.4rem; }
.v3-bill .box { padding: 1.4rem; border-radius: 1.4rem; background: #fff; font-size: 1.25rem; }
.v3-bill .box .ui-row + .ui-row { margin-top: .6rem; }
.v3-total { font-family: var(--fh); font-size: 2.2rem; font-weight: 700; color: #2a4539; }
.v3-flow .how-local { margin-top: 4rem; }
@media (max-width: 900px) {
  .v3-flow__grid { grid-template-columns: 1fr; }
  .v3-flow__sticky { position: relative; top: 0; height: auto; order: -1; }
  .v3-flow__step { min-height: 0; padding: 3.2rem 0; opacity: 1; }
  .v3-phone { width: 26rem; }
}

/* ── HISTORIA en la home ── */
.v3-story { margin: 0 1.6rem; padding: clamp(7.2rem, 9vw, 11.2rem) 0; border-radius: 1.4rem; background: var(--dark); color: var(--white); }
.v3-story .page-hd__title { max-width: 18ch; }

/* ── FAQ compacta: 3 visibles + "Ver todas" ── */
.faq-item.faq-more { display: none; }
.faq.is-all .faq-item.faq-more { display: block; }
.faq-toggle {
  align-self: flex-start; margin-top: .8rem;
  display: inline-flex; align-items: center; gap: .8rem;
  padding: 1.3rem 2.2rem; border-radius: 1.4rem;
  border: 1.5px solid rgba(12,30,24,.18);
  font-family: var(--fh); font-size: 1.5rem; font-weight: 600; color: var(--dark);
  transition: background .25s var(--ease1), color .25s var(--ease1), border-color .25s var(--ease1);
}
.faq-toggle:hover { background: var(--dark); color: var(--white); border-color: var(--dark); }
.faq-toggle i { font-style: normal; transition: transform .3s var(--ease1); }
.faq.is-all .faq-toggle i { transform: rotate(180deg); }

/* ── Bento con movimiento (PDF v3) ── */
.bx { perspective: 1200px; }
.bx-card { transform-style: preserve-3d; will-change: transform; }
.bx-card::before { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(40rem circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.18), transparent 60%); }
.bx-card:hover::before { opacity: 1; }
.bx-bar i { transition: none; }
.bx-section:not(.is-in) .bx-bar i { transform: scaleY(0); }
.bx-section.is-in .bx-bar i { animation: bxGrow 1.1s var(--ease1) both; }
.bx-bar:nth-child(2) i { animation-delay: .06s; } .bx-bar:nth-child(3) i { animation-delay: .12s; } .bx-bar:nth-child(4) i { animation-delay: .18s; }
.bx-bar:nth-child(5) i { animation-delay: .24s; } .bx-bar:nth-child(6) i { animation-delay: .3s; } .bx-bar:nth-child(7) i { animation-delay: .36s; }
@keyframes bxGrow { from { transform: scaleY(0); } }
.bx-bar.is-peak i { box-shadow: 0 0 0 0 rgba(250,193,26,.5); animation: bxGrow 1.1s var(--ease1) .3s both, bxPeak 2.4s ease-out 1.6s infinite; }
@keyframes bxPeak { 0% { box-shadow: 0 0 0 0 rgba(250,193,26,.45); } 70%, 100% { box-shadow: 0 0 0 1.4rem rgba(250,193,26,0); } }
.bx-glass span { display: inline-block; }
.bx-glass i { animation: bxPing 1.8s ease-out infinite; }
@keyframes bxPing { 0% { box-shadow: 0 0 0 0 rgba(0,133,88,.45); } 80%, 100% { box-shadow: 0 0 0 .9rem rgba(0,133,88,0); } }
.ui-plus { transition: background .25s; }
.ui-plus.is-added { background: #2a4539; color: #def084; }
.ui-tip { transition: border-color .3s, background .3s; }
.bx-stars span { display: inline-block; }
.bx-card--cta::after { animation: bxSpin 14s linear infinite; }
@keyframes bxSpin { to { rotate: 378deg; } }
@media (prefers-reduced-motion: reduce) {
  .bx-section .bx-bar i, .bx-glass i, .bx-card--cta::after { animation: none !important; }
}
