/* Landing de restaurantes (raíz de vectio.ai) — venta directa a restaurantes.
   Se apoya en styles.css (tokens, botones, topbar, footer, form, mockups
   de WhatsApp) y agrega las secciones propias de esta página. */

:root {
  --rest-dark: #16130f;
  --rest-dark-2: #221e18;
  --rest-dark-line: rgba(255, 255, 255, 0.12);
  --rest-dark-text: #d9d2c5;
  --rest-dark-muted: #9f978a;
}

/* ---------- Topbar ---------- */

@media (max-width: 1180px) { .rest-nav .nav-partner { display: none; } }

.utility-cta { color: var(--peach); font-weight: 600; }
.rest-nav .nav-partner { color: var(--slate); }
.rest-nav .nav-partner:hover { color: var(--orange-dark); }

.rest-nav .nav-links a[aria-current] {
  color: var(--orange-dark);
}

/* ---------- Hero: tour del producto (copy + teléfono) ---------- */
.m-hero {
  position: relative; overflow: hidden; padding: 72px 0 64px; color: var(--ink);
  background:
    radial-gradient(720px 520px at 82% 42%, rgba(255, 120, 60, 0.34) 0%, rgba(255, 120, 60, 0) 62%),
    radial-gradient(520px 420px at 68% 85%, rgba(255, 196, 120, 0.42) 0%, rgba(255, 196, 120, 0) 60%),
    radial-gradient(600px 400px at 8% 12%, rgba(255, 219, 193, 0.5) 0%, rgba(255, 219, 193, 0) 60%),
    #fbf8f3;
}
.m-hero::before {
  position: absolute; inset: 0; content: ""; pointer-events: none;
  background-image: radial-gradient(rgba(33, 51, 67, 0.09) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(800px 600px at 70% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(800px 600px at 70% 50%, #000 20%, transparent 75%);
}
.m-hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 7px 14px 7px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-card);
  color: var(--navy); font-size: 0.8rem; font-weight: 500;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #1f8a5b; box-shadow: 0 0 0 0 rgba(31,138,91,.5); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(31,138,91,.45);} 100% { box-shadow: 0 0 0 10px rgba(31,138,91,0);} }

.m-hero h1 {
  margin-bottom: 20px; font-family: var(--font-body); font-weight: 700; letter-spacing: -0.035em;
  font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1.02;
}
.m-hero h1 .grad {
  background: linear-gradient(92deg, #ff4800 0%, #ff7a3d 55%, #ffa263 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.m-hero .lead { max-width: 520px; margin-bottom: 26px; color: var(--navy); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }
.m-hero .cta { margin-bottom: 30px; }
.plug { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 26px; }
.plug span { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.75); border: 1px solid var(--line); color: var(--navy); font-size: 0.8rem; font-weight: 500; }
.plug .plug-k { color: #fff; background: var(--ink); border-color: var(--ink); }
.btn-arrow svg { width: 18px; height: 18px; margin-left: 8px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.btn-arrow:hover svg { transform: translateX(3px); }
.btn-ghost { color: var(--ink); background: rgba(255,255,255,0.7); border-color: var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: var(--ink); }

/* Pasos sincronizados con el tour */
.m-steps { display: grid; gap: 8px; max-width: 520px; }
.m-steps button {
  position: relative; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 12px; padding: 11px 14px; overflow: hidden;
  text-align: left; background: rgba(255,255,255,0.6); border: 1px solid rgba(229,223,211,0.9); border-radius: 12px; cursor: pointer;
  color: var(--navy); font: inherit; font-size: 0.9rem; font-weight: 400; transition: all 0.25s ease;
}
@media (min-width: 981px) { .m-steps button > span:not(.n) { white-space: nowrap; } }
.m-steps button .n { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #efe9dd; color: var(--slate); font-size: 0.72rem; font-weight: 600; }
.m-steps button.is-on { color: var(--ink); background: #fff; border-color: rgba(255,72,0,0.35); box-shadow: 0 10px 28px rgba(255,72,0,0.12); font-weight: 500; }
.m-steps button.is-on .n { color: #fff; background: var(--orange); }
.m-steps button.is-done .n { color: #fff; background: #1f8a5b; }
.m-steps button .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, #ff4800, #ffa263); border-radius: 0 3px 3px 0; }
.m-steps button.is-on .bar { animation: fill linear forwards; animation-duration: var(--d, 6s); }
@keyframes fill { from { width: 0; } to { width: 100%; } }

/* Escenario del teléfono */
.m-stage { position: relative; display: flex; align-items: flex-start; justify-content: center; min-height: 680px; }
.m-stage .glow { position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,72,0,0.28) 0%, rgba(255,72,0,0) 65%); filter: blur(10px); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.08); } }
.m-ring { position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; transform: translate(-50%, -50%); border: 1px dashed rgba(255,72,0,0.25); border-radius: 50%; animation: spin 60s linear infinite; }
.m-ring::after { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; content: ""; border-radius: 50%; background: var(--orange); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.m-phone {
  position: relative; z-index: 2; width: 300px; margin-top: 10px; padding: 11px; background: #0f0f10;
  border-radius: 50px; box-shadow: 0 50px 100px rgba(33, 51, 67, 0.28), 0 0 0 1px rgba(255,255,255,0.35) inset, 0 30px 60px rgba(255,72,0,0.18);
  will-change: transform;
}
.m-screen { position: relative; overflow: hidden; border-radius: 40px; aspect-ratio: 590 / 1280; background: #f8f5ee; }
.m-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease, transform 0.6s ease; }
.m-screen > img.is-on { opacity: 1; }
.m-screen > img.is-up { transform: translateY(-18%); }
.m-tap { position: absolute; z-index: 6; width: 30px; height: 30px; margin: -15px 0 0 -15px; border: 3px solid var(--orange); border-radius: 50%; background: rgba(255,72,0,0.28); opacity: 0; transform: scale(0.4); pointer-events: none; }
.m-tap.is-on { animation: tapPulse 0.7s ease forwards; }
@keyframes tapPulse { 0% { opacity: 0; transform: scale(0.4);} 30% { opacity: 1; transform: scale(1);} 100% { opacity: 0; transform: scale(1.5);} }
.m-toast { position: absolute; z-index: 4; left: 10px; right: 10px; top: 52px; padding: 10px 12px; background: #1f1f1f; color: #fff; border-radius: 12px; font-size: 0.76rem; font-weight: 500; box-shadow: 0 8px 20px rgba(0,0,0,0.25); opacity: 0; transform: translateY(-20px); transition: all 0.35s ease; }
.m-toast.is-on { opacity: 1; transform: none; }

/* Notificación iOS de WhatsApp */
.m-notif {
  position: absolute; z-index: 5; left: 8px; right: 8px; top: 48px; display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center;
  padding: 10px 12px; background: rgba(255,255,255,0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.22); color: #111; opacity: 0; transform: translateY(-30px); transition: all 0.45s cubic-bezier(.2,.8,.2,1);
}
.m-notif.is-on { opacity: 1; transform: none; }
.m-notif .ic { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 9px; background: #25d366; }
.m-notif .ic svg { width: 22px; height: 22px; fill: #fff; }
.m-notif .t { display: flex; justify-content: space-between; font-size: 0.64rem; color: #555; }
.m-notif .t b { color: #111; font-weight: 600; }
.m-notif .m { font-size: 0.74rem; line-height: 1.3; }

/* WhatsApp dentro del teléfono */
.m-wa { position: absolute; z-index: 7; inset: 0; display: grid; grid-template-rows: auto 1fr auto; background: #efe9dd; transform: translateY(100%); transition: transform 0.5s cubic-bezier(.2,.8,.2,1); }
.m-wa.is-on { transform: none; }
.m-wa .wa-header { padding: 46px 14px 10px; }
.m-wa .wa-header strong { font-size: 0.88rem; }
.m-wa .wa-header span:not(.wa-avatar) { font-size: 0.68rem; }
.m-wa .wa-body { min-height: 0; padding: 14px 10px; gap: 8px; }
.m-wa .wa-bubble { max-width: 92%; font-size: 0.78rem; padding: 7px 10px 18px; opacity: 0; transform: translateY(8px); transition: all 0.3s ease; }
.m-wa .wa-bubble.is-on { opacity: 1; transform: none; }
.m-wa .wa-meta { font-size: 0.58rem; }
.m-wa .wa-foot { display: flex; align-items: center; gap: 8px; padding: 8px 10px 22px; background: #f0f0f0; }
.m-wa .wa-foot span { flex: 1; min-height: 32px; padding: 8px 12px; background: #fff; border-radius: 999px; color: #8a8a8a; font-size: 0.74rem; }
.m-wa .wa-foot i { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #008069; color: #fff; font-style: normal; font-size: 0.8rem; }

/* Tarjetas de vidrio alrededor del teléfono */
.glass {
  position: absolute; z-index: 3; width: 220px; padding: 12px 14px; color: var(--ink); text-align: left; font-size: 0.86rem; line-height: 1.4;
  background: rgba(255,255,255,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.9); border-radius: 16px; box-shadow: 0 18px 40px rgba(33,51,67,0.14);
  opacity: 0; transform: translateY(16px) scale(0.96); transition: all 0.45s cubic-bezier(.2,.8,.2,1); will-change: transform;
}
.glass.is-on { opacity: 1; transform: none; }
.glass strong { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--orange-dark); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.glass strong i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.glass b { font-weight: 600; }
.glass.wa strong { color: #128c7e; }
.glass.p1 { left: -30px; top: 118px; }
.glass.p2 { right: -30px; top: 150px; }
.glass.p3 { left: -30px; top: 300px; }
.glass.p4 { right: -30px; top: 400px; }
.glass.p5 { left: -30px; top: 470px; }
.glass.p6 { right: -30px; top: 150px; }
.glass.n1 { right: -30px; top: 118px; }
.glass.n2 { left: -30px; top: 300px; }
.glass.n3 { right: -30px; top: 300px; }
.glass.aud em { display: block; margin-top: 8px; color: var(--navy); font-size: 0.8rem; font-style: italic; }
.aud-bubble { display: flex; align-items: center; gap: 3px; padding: 8px 10px; background: #d9fdd3; border-radius: 10px; }
.aud-bubble .play { width: 0; height: 0; margin-right: 6px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #667781; }
.aud-bubble .wave { width: 3px; border-radius: 2px; background: #94b58c; height: 10px; animation: waveMove 1.1s ease-in-out infinite; }
.aud-bubble .wave:nth-child(odd) { height: 16px; animation-delay: 0.15s; }
.aud-bubble .wave:nth-child(3n) { height: 6px; animation-delay: 0.3s; }
@keyframes waveMove { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.45); } }

@media (max-width: 1100px) {
  .glass { width: 190px; font-size: 0.78rem; }
  .glass.p1,
.glass.p3,
.glass.p5,
.glass.n2 { left: -16px; }
  .glass.p2,
.glass.p4,
.glass.p6,
.glass.n1,
.glass.n3 { right: -16px; }
}
@media (max-width: 980px) {
  .m-hero .container { grid-template-columns: 1fr; gap: 24px; }
  .m-stage { min-height: 0; margin-top: 10px; }
  .m-ring { display: none; }
  .glass { display: none; }
  .m-steps { max-width: none; }
}
@media (max-width: 640px) {
  .m-hero { padding: 44px 0 48px; }
  .m-phone { width: 250px; }
  .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .m-screen > img,
.glass,
.m-toast,
.m-notif,
.m-wa,
.m-wa .wa-bubble { transition: none; }
  .m-stage .glow,
.m-ring,
.pill i { animation: none; }
}

/* ---------- Marcos de teléfono (sección La app y Al mando) ---------- */

.phone-frame {
  position: relative;
  width: 100%;
  max-width: 290px;
  margin: 0;
  padding: 10px;
  background: #121212;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 44px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 34px;
}

.app-phone {
  width: 100%;
  margin: 0;
  display: grid;
  justify-items: center;
}

.app-phone figcaption {
  margin-top: 18px;
  color: var(--navy);
  font-size: 0.9rem;
  text-align: center;
}

.app-phone figcaption strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

/* ---------- Badges de stores ---------- */

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.store-row--center {
  justify-content: center;
  margin-top: 36px;
}

.store-row--footer {
  margin-top: 20px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 16px 8px 12px;
  color: var(--white);
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.store-badge:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

.store-badge svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

.store-badge span {
  display: grid;
  line-height: 1.1;
}

.store-badge small {
  font-size: 0.64rem;
  font-weight: 400;
  opacity: 0.85;
}

.store-badge strong {
  font-size: 1.02rem;
  font-weight: 600;
}

.store-badge--dark {
  border-color: #111;
}

.m-hero .store-row {
  margin: -8px 0 26px;
}

.store-note {
  width: 100%;
  margin-top: 6px;
  color: var(--slate);
  font-size: 0.88rem;
  text-align: center;
}

/* ---------- La app ---------- */

.rest-app {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
  border-top: 1px solid var(--line-soft);
}

.rest-app .section-heading {
  margin: 0 auto 48px;
  text-align: center;
}

.app-phones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: end;
  justify-items: center;
}

.app-phones .phone-frame {
  max-width: 270px;
}

.app-phones .app-phone--lead .phone-frame {
  max-width: 300px;
}

.rest-pain-card .time {
  margin-bottom: 8px;
  font-size: 2rem;
}

.rest-pain-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--navy);
}

/* ---------- Strip de confianza ---------- */

.rest-strip {
  padding: 22px 0;
  background: #fff;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.rest-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 36px;
  color: var(--slate);
  font-size: 0.92rem;
  font-weight: 400;
}

.rest-strip strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Hoy vs. con Vectio (la slide) ---------- */

.rest-shift {
  padding: 96px 0;
  background: var(--white);
}

.rest-shift-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

.rest-shift-head h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
}

.rest-shift-head p {
  color: var(--navy);
  font-size: 1.08rem;
}


/* ---------- Dolor ---------- */

.rest-pain {
  padding: 96px 0;
}

.rest-pain .section-heading h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.rest-pain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.rest-pain-card {
  position: relative;
  padding: 30px 30px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.rest-pain-card .time {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--orange-dark);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.rest-pain-card h3 {
  font-size: 1.18rem;
}

.rest-pain-card p {
  color: var(--navy);
  font-size: 0.97rem;
}

.rest-pain-close {
  max-width: 820px;
  margin: 44px auto 0;
  text-align: center;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- Tu equipo (roles como integrantes con mini chat) ---------- */

.rest-team {
  padding: 96px 0;
  background:
    radial-gradient(760px 480px at 10% 0%, rgba(255, 120, 60, 0.2) 0%, rgba(255, 120, 60, 0) 60%),
    radial-gradient(600px 420px at 95% 90%, rgba(255, 196, 120, 0.3) 0%, rgba(255, 196, 120, 0) 60%),
    var(--paper);
}

.rest-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.member {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px 18px 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(33, 51, 67, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.member.is-active {
  border-color: rgba(255, 72, 0, 0.4);
  box-shadow: 0 24px 50px rgba(255, 72, 0, 0.16);
  transform: translateY(-4px);
}

.member-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: center;
}

.member-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
  background: #fff1e8;
  border: 1px solid var(--peach);
  border-radius: 14px;
  transition: transform 0.3s ease;
}

.member.is-active .member-avatar {
  transform: scale(1.08) rotate(-4deg);
}

.member-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.member-head p {
  color: var(--slate);
  font-size: 0.78rem;
  line-height: 1.3;
}

.member-status {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  padding: 3px 9px;
  color: #1f8a5b;
  background: #e9f6f0;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
}

.member-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1f8a5b;
}

.member.is-active .member-status i {
  animation: ping 1.4s infinite;
}

.member-chat {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 12px 10px;
  background: #f4efe6;
  background-image: radial-gradient(rgba(33, 51, 67, 0.05) 1px, transparent 1.2px);
  background-size: 12px 12px;
  border-radius: 14px;
}

.member-msg {
  max-width: 92%;
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.4;
}

.member-msg.owner {
  justify-self: end;
  color: #fff;
  background: var(--orange);
  border-bottom-right-radius: 3px;
}

.member-msg.agent {
  justify-self: start;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-bottom-left-radius: 3px;
  box-shadow: 0 1px 2px rgba(33, 51, 67, 0.06);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.member-msg.agent b {
  font-weight: 600;
}

.member-typing {
  display: none;
  gap: 4px;
  justify-self: start;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  border-bottom-left-radius: 3px;
}

.member-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa8b8;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}

.member-typing i:nth-child(2) { animation-delay: 0.2s; }
.member-typing i:nth-child(3) { animation-delay: 0.4s; }

.member.is-typing .member-typing {
  display: inline-flex;
}

.member.is-typing .member-msg.agent {
  display: none;
}

.member.is-answered .member-msg.agent {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .rest-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rest-team {
    padding: 56px 0;
  }

  .rest-team-grid {
    grid-template-columns: 1fr;
  }

  .member-chat {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .member,
.member-avatar,
.member-msg.agent {
    transition: none;
  }

  .member .member-msg.agent {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Calculadora ---------- */

.rest-calc-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  padding: 48px;
  background: var(--white);
  border: 1px solid var(--peach);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}

.rest-calc-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.rest-calc-box .hint {
  margin-top: 18px;
  color: var(--slate);
  font-size: 0.88rem;
}

.calc-field {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 500;
}

.calc-field .calc-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.calc-field input[type='range'] {
  flex: 1;
  accent-color: var(--orange);
}

.calc-field output {
  min-width: 48px;
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}

.calc-field .input {
  max-width: 180px;
}

.calc-result {
  display: grid;
  gap: 14px;
  padding: 26px;
  color: var(--white);
  background: var(--rest-dark);
  border-radius: var(--radius-md);
}

.calc-result span {
  color: var(--rest-dark-muted);
  font-size: 0.86rem;
}

.calc-result strong {
  display: block;
  color: #ffb38a;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.05;
}

.calc-result small {
  color: var(--rest-dark-text);
  font-size: 0.92rem;
}

/* ---------- FAQ ---------- */

.rest-faq {
  padding: 96px 0;
}

.rest-faq .section-heading {
  margin-bottom: 28px;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.faq-list details {
  padding: 0 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.faq-list summary {
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 500;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  float: right;
  color: var(--orange);
  content: '+';
  font-size: 1.3rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list details p {
  padding: 0 0 20px;
  color: var(--navy);
  font-size: 0.97rem;
}

/* ---------- Contacto ---------- */

.rest-contact {
  padding: 0 0 96px;
}

.rest-contact .contact-box {
  border-color: var(--peach);
}

/* ---------- Aparición ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .rest-shift-head,
  .rest-calc-box {
    grid-template-columns: 1fr;
  }



  .rest-pain-grid {
    grid-template-columns: 1fr;
  }

  .app-phones {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

}

@media (max-width: 640px) {
  .rest-shift,
  .rest-pain,
  .rest-faq {
    padding: 56px 0;
  }

  .rest-contact {
    padding-bottom: 56px;
  }

  .rest-panel {
    padding: 20px 16px 18px;
  }

  .app-phones {
    grid-template-columns: 1fr;
  }

  .app-phones .phone-frame,
.app-phones .app-phone--lead .phone-frame {
    max-width: 260px;
  }

  .rest-app {
    padding: 56px 0;
  }

  .store-badge {
    flex: 1;
    justify-content: center;
  }

  .rest-calc-box {
    padding: 24px;
  }

  .rest-strip .container {
    justify-content: flex-start;
    gap: 8px 20px;
  }

  .utility-partner {
    display: none;
  }
}

/* ---------- Lenguaje visual (hero moderno aplicado al resto) ---------- */

.rest-page h2 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.rest-page h2 .grad {
  background: linear-gradient(92deg, #ff4800 0%, #ff7a3d 55%, #ffa263 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rest-page .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  color: var(--navy);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.rest-page .eyebrow::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--orange);
}


.rest-pain-close {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.rest-pain {
  background:
    radial-gradient(600px 360px at 90% 10%, rgba(255, 196, 120, 0.3) 0%, rgba(255, 196, 120, 0) 60%),
    var(--paper);
}

.rest-pain-card,
.faq-list details {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(33, 51, 67, 0.08);
}

.rest-pain-card .time,
.calc-result strong,
.rest-pain-card .time {
  font-family: var(--font-body);
  letter-spacing: -0.02em;
}

.rest-app {
  background:
    radial-gradient(760px 480px at 50% 60%, rgba(255, 120, 60, 0.18) 0%, rgba(255, 120, 60, 0) 65%),
    linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}

.rest-calc-box,
.contact-box {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.rest-page .btn-primary {
  box-shadow: 0 10px 24px rgba(255, 72, 0, 0.22);
}

.rest-page .steps span,
.rest-page .how-step {
  box-shadow: 0 8px 18px rgba(255, 72, 0, 0.25);
}

/* ---------- Dolor + calculadora (misma sección) ---------- */

.pain-art {
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  color: var(--orange);
}

.rest-pain-grid {
  margin-bottom: 28px;
}

.rest-pain .rest-calc-box {
  border-color: var(--peach);
  scroll-margin-top: 90px;
}

/* ---------- Cómo funciona: recorrido día 1 → mes 1 ---------- */

.rest-journey {
  padding: 96px 0;
  background:
    radial-gradient(700px 420px at 0% 100%, rgba(255, 219, 193, 0.5) 0%, rgba(255, 219, 193, 0) 60%),
    radial-gradient(600px 380px at 100% 0%, rgba(255, 120, 60, 0.16) 0%, rgba(255, 120, 60, 0) 60%),
    #fff;
}

.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding-top: 18px;
  list-style: none;
}

.journey::before {
  position: absolute;
  top: 32px;
  right: 60px;
  left: 60px;
  height: 2px;
  content: "";
  background: repeating-linear-gradient(90deg, var(--peach) 0 8px, transparent 8px 16px);
}

.journey-step {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 0 18px 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(33, 51, 67, 0.07);
}

.journey-when {
  position: relative;
  z-index: 1;
  justify-self: center;
  margin-top: -4px;
  padding: 7px 14px;
  color: #fff;
  background: linear-gradient(135deg, #ff4800 0%, #d93b00 100%);
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(255, 72, 0, 0.25);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.journey-step h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}

.journey-step p {
  color: var(--navy);
  font-size: 0.9rem;
}

.journey-vig {
  position: relative;
  display: grid;
  gap: 6px;
  align-content: center;
  height: 150px;
  padding: 12px;
  overflow: hidden;
  background: #f4efe6;
  background-image: radial-gradient(rgba(33, 51, 67, 0.05) 1px, transparent 1.2px);
  background-size: 12px 12px;
  border-radius: 14px;
}

.journey-vig > * {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
}

.journey-step.is-visible .journey-vig > * {
  animation: vigPop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.journey-step.is-visible .journey-vig > .d1 { animation-delay: 0.15s; }
.journey-step.is-visible .journey-vig > .d2 { animation-delay: 0.5s; }
.journey-step.is-visible .journey-vig > .d3 { animation-delay: 0.85s; }
.journey-step.is-visible .journey-vig > .d4 { animation-delay: 1.2s; }

@keyframes vigPop {
  to { opacity: 1; transform: none; }
}

.vig-connect {
  grid-template-columns: 1fr auto;
  grid-template-rows: repeat(3, auto);
  column-gap: 12px;
  align-items: center;
}

.vig-chip {
  justify-self: start;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 500;
  white-space: nowrap;
}

.vig-vectio {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(135deg, #ff4800 0%, #d93b00 100%);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(255, 72, 0, 0.28);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.vig-vectio small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vig-wa-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 600;
}

.vig-wa-head i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #fff;
  background: #008069;
  border-radius: 50%;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 700;
}

.vig-bubble {
  justify-self: start;
  max-width: 95%;
  padding: 7px 10px;
  background: #fff;
  border-radius: 10px;
  border-top-left-radius: 3px;
  box-shadow: 0 1px 1px rgba(17, 27, 33, 0.12);
  font-size: 0.76rem;
  line-height: 1.35;
}

.vig-bubble b {
  font-weight: 600;
}

.vig-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.74rem;
  line-height: 1.25;
}

.vig-note i {
  font-size: 1rem;
  font-style: normal;
}

.vig-note b {
  display: block;
  color: var(--orange-dark);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vig-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.vig-stat {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  font-size: 0.64rem;
  line-height: 1.2;
  text-align: center;
}

.vig-stat b {
  color: var(--orange-dark);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------- Tu equipo: carrusel horizontal ---------- */

.team-carousel {
  position: relative;
}

.team-carousel .rest-team-grid {
  display: flex;
  gap: 16px;
  padding: 8px 4px 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.team-carousel .rest-team-grid::-webkit-scrollbar {
  display: none;
}

.team-carousel .member {
  flex: 0 0 calc((100% - 48px) / 4);
  scroll-snap-align: start;
}

.team-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  transform: translateY(-50%);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(33, 51, 67, 0.16);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.team-nav:hover {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-50%) scale(1.06);
}

.team-nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.team-nav--prev { left: -22px; }
.team-nav--next { right: -22px; }

.member-from {
  color: var(--slate);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.member-msg.customer {
  justify-self: start;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-bottom-left-radius: 3px;
  box-shadow: 0 1px 2px rgba(33, 51, 67, 0.06);
}

.member-msg.agent.reply {
  justify-self: end;
  background: #d9fdd3;
  border-color: #c7efbf;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 3px;
}

@media (max-width: 980px) {
  .journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey::before {
    display: none;
  }

  .team-carousel .member {
    flex-basis: calc((100% - 16px) / 2);
  }

  .team-nav--prev { left: -8px; }
  .team-nav--next { right: -8px; }
}

@media (max-width: 640px) {
  .rest-journey {
    padding: 56px 0;
  }

  .journey {
    grid-template-columns: 1fr;
  }

  .team-carousel .member {
    flex-basis: 86%;
  }

  .team-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-vig > * {
    opacity: 1;
    transform: none;
  }

  .journey-step.is-visible .journey-vig > * {
    animation: none;
  }
}
