/* =========================================================
   Cúcuta Come · refinamientos (v2)
   Móvil primero · flujos animados · planes · mascota · video
   ========================================================= */

html { overflow-x: clip; }
body { overflow-x: clip; }
img, video { max-width: 100%; }

/* Portada de marca: fotografía local, menú móvil y flujo real del producto. */
.hero--carousel {
  display: flex;
  min-height: min(760px, calc(100svh - var(--header-h)));
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(54px, 7vw, 92px) 38px;
  background: #1a1512;
  color: #fffaf2;
}
.hero--carousel::before,
.hero--carousel::after { display: none; }
.hero__backdrops { position: absolute; z-index: 0; inset: 0; overflow: hidden; }
.hero__backdrop { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero__backdrop.is-active { opacity: 1; }
.hero__backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__backdrops::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(17, 14, 12, .93) 0%, rgba(17, 14, 12, .79) 42%, rgba(17, 14, 12, .46) 100%);
}
.hero--carousel .hero__grid { z-index: 1; align-items: center; }
.hero--carousel .eyebrow { color: #ff524a; }
.hero--carousel .eyebrow__dot { background: currentColor; }
.hero--carousel h1 { max-width: 12ch; color: #fffaf2; }
.hero--carousel h1 .hl { color: var(--red); }
.hero--carousel .hero__lead { max-width: 34em; color: rgba(255, 250, 242, .84); }
.hero--carousel .hero__note { color: rgba(255, 250, 242, .75); }
.hero--carousel .hero__note .icon { color: #ff524a; }
.hero--carousel .btn--ghost { color: #fffaf2; border-color: rgba(255, 250, 242, .64); background: rgba(20, 17, 15, .2); }
.hero--carousel .btn--ghost:hover { background: rgba(255, 250, 242, .12); }

.hero--carousel .hero__visual { min-height: 565px; align-items: center; padding: 8px 0 22px; }
.hero__phone {
  position: relative; z-index: 2; width: clamp(250px, 26vw, 310px); margin: 0;
  padding: 9px; border: 1px solid rgba(255, 255, 255, .38); border-radius: 40px;
  background: #151515; box-shadow: 0 34px 80px rgba(0, 0, 0, .4); transform: rotate(2.5deg);
}
.hero__phone-screen { min-height: 510px; overflow: hidden; padding: 10px 12px 14px; border-radius: 31px; background: #fffaf2; color: #201b18; }
.phone-status { display: flex; justify-content: space-between; padding: 1px 6px 10px; font: 700 .65rem var(--font-body); }
.phone-brand { display: flex; align-items: center; gap: 8px; padding: 10px 4px; border-bottom: 1px solid #ede6dc; }
.phone-brand__mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: var(--red); color: #fff; font: 800 .64rem var(--font-display); }
.phone-brand strong { font: 800 1rem var(--font-display); letter-spacing: -.04em; }
.phone-brand strong span { color: var(--red); }
.phone-location { margin-left: auto; color: #766d65; font-size: .62rem; }
.phone-eyebrow { margin: 15px 2px 5px; color: #9b4a36; font: 800 .53rem var(--font-display); letter-spacing: .12em; }
.hero__phone h2 { margin: 0 2px 12px; font: 800 1.25rem var(--font-display); letter-spacing: -.04em; }
.phone-search { display: flex; align-items: center; gap: 8px; min-height: 37px; padding: 0 10px; border: 1px solid #e7dfd4; border-radius: 10px; background: #fff; color: #6f6459; font-size: .7rem; }
.phone-search .icon { width: 15px; height: 15px; }
.phone-categories { display: flex; gap: 6px; overflow: hidden; margin: 11px 0; white-space: nowrap; }
.phone-categories span { flex: none; padding: 6px 9px; border: 1px solid #e7dfd4; border-radius: 99px; color: #5b5148; font-size: .58rem; }
.phone-categories span:first-child { border-color: #211b17; background: #211b17; color: white; }
.phone-product { position: relative; display: grid; grid-template-columns: 68px 1fr 24px; gap: 9px; align-items: center; margin-top: 8px; padding: 8px; border: 1px solid #ebe3d7; border-radius: 12px; background: #fff; box-shadow: 0 5px 12px rgba(39, 27, 18, .045); }
.phone-product > img { width: 68px; height: 66px; border-radius: 8px; object-fit: cover; }
.phone-product > div { display: grid; gap: 3px; min-width: 0; }
.phone-product strong { font: 800 .68rem var(--font-display); line-height: 1.15; }
.phone-product small { color: #766d65; font-size: .55rem; line-height: 1.3; }
.phone-product--compact { grid-template-columns: 54px 1fr 24px; }
.phone-product--compact > img { width: 54px; height: 50px; }
.phone-add { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; background: var(--red); color: white; font-size: 1rem; line-height: 1; }
.phone-caption { margin: 10px 2px 0; color: #6f6459; font-size: .55rem; text-align: center; }
.hero__order-card {
  position: absolute; z-index: 3; right: -30px; bottom: 62px; width: 238px; padding: 13px;
  border: 1px solid rgba(255, 255, 255, .64); border-radius: 15px; background: rgba(255, 255, 255, .96);
  color: #201b18; box-shadow: 0 18px 44px rgba(0, 0, 0, .24); transform: rotate(-2deg);
}
.hero__order-heading { display: flex; align-items: center; gap: 7px; font-size: .7rem; }
.hero__order-heading small { margin-left: auto; color: #6f6459; font-size: .58rem; }
.hero__order-dot, .hero__order-status span { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #e95c42; }
.hero__order-body { display: flex; align-items: center; gap: 9px; margin-top: 11px; padding: 8px; border-radius: 10px; background: #f7f2ea; }
.hero__order-body img { width: 44px; height: 44px; border-radius: 7px; object-fit: cover; }
.hero__order-body span { display: grid; gap: 3px; }
.hero__order-body strong { font-size: .65rem; }
.hero__order-body small { color: #766d65; font-size: .57rem; }
.hero__order-status { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: #61584f; font-size: .6rem; }
.hero__order-status span { background: #2e946a; }
.hero--carousel .hero__mascot { position: absolute; z-index: 4; left: -38px; bottom: -50px; width: clamp(100px, 11vw, 142px); animation: mascotFloat 4.5s ease-in-out infinite; }
.hero__mascot-message { position: absolute; z-index: 4; left: -20px; bottom: 116px; max-width: 150px; padding: 9px 12px; border-radius: 14px 14px 14px 3px; background: white; color: #332b25; box-shadow: 0 10px 26px rgba(0, 0, 0, .2); font: 700 .72rem var(--font-display); }
.hero__carousel-controls { position: absolute; z-index: 2; left: 50%; bottom: 24px; display: flex; align-items: center; gap: 14px; width: min(var(--container), 100% - 48px); margin: 0 auto; color: rgba(255, 250, 242, .8); transform: translateX(-50%); }
.hero__carousel-toggle { min-height: 44px; padding: 0 14px; border: 1px solid rgba(255, 250, 242, .45); border-radius: 999px; background: rgba(20, 17, 15, .28); color: inherit; font: 600 .8rem var(--font-body); cursor: pointer; }
.hero__carousel-step { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255, 250, 242, .42); border-radius: 50%; background: rgba(20, 17, 15, .24); color: inherit; font-size: 1.3rem; cursor: pointer; }
.hero__carousel-dots { display: flex; gap: 0; }
.hero__carousel-dots button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.hero__carousel-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 250, 242, .5); transition: transform .2s ease, background-color .2s ease; }
.hero__carousel-dots button.is-active::before { background: #fffaf2; transform: scale(1.35); }
.hero__carousel-caption { font-size: .8rem; letter-spacing: .03em; }

/* Cabecera de cristal: gana contraste al empezar el desplazamiento. */
.site-header {
  transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom-color: rgba(24, 27, 32, .1);
  box-shadow: 0 10px 28px rgba(24, 27, 32, .09);
}

/* La marca responde al cursor y al teclado con un movimiento corto. */
.brand__accent {
  display: inline-block;
  transform-origin: 50% 80%;
  transition: color .2s ease;
}
.brand:hover .brand__accent,
.brand:focus-visible .brand__accent {
  animation: brandNudge .62s ease both;
}
@keyframes brandNudge {
  0%, 100% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(-3px) rotate(-4deg); }
  70% { transform: translateY(1px) rotate(2deg); }
}

/* ── Iconos externos ───────────────────────────────────── */
.icon-delivery { width: 24px; height: 24px; display: inline-block; vertical-align: middle; flex: none; }
.trust__icon .icon-delivery, .nav__dropdown-list .icon-delivery { width: 22px; height: 22px; }

/* ── WhatsApp flotante: logotipo oficial sobre verde WhatsApp, limpio sin anillo ── */
.wa-fab {
  position: fixed; z-index: 60;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #167a50;
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(22, 122, 80, .35), 0 2px 6px rgba(0, 0, 0, .1);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  text-decoration: none;
}
.wa-fab .wa-mark, .wa-fab svg { width: 34px; height: 34px; display: block; fill: #ffffff; }
.wa-fab:hover {
  background: #11633f;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 28px rgba(22, 122, 80, .45), 0 4px 10px rgba(0, 0, 0, .15);
}
.wa-fab.is-hidden { visibility: hidden; opacity: 0; pointer-events: none; }
.wa-fab:focus-visible { outline: 3px solid #128C7E; outline-offset: 3px; }
.wa-fab::after { content: none; }

/* ── Mascota ───────────────────────────────────────────── */
.mascot { display: block; height: auto; pointer-events: none; user-select: none; }
/* Mascota del dolor: la misma imagen, ahora debajo del párrafo izquierdo. */
.problem__intro { overflow: visible; }
.problem__mascot {
  width: clamp(180px, 17vw, 220px); max-width: 100%;
  margin: 22px 0 0 12px; object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, .4));
}
.problem__bridge { position: relative; }

/* Repartidor: al costado exterior de la comanda, lejos de los CTA. */
.hero__visual { position: relative; overflow: visible; }
.hero__mascot {
  position: absolute;
  width: clamp(120px, 11vw, 148px);
  left: calc(50% - 327px); bottom: -30px;
  z-index: 2; pointer-events: none;
  animation: mascotFloat 4.5s ease-in-out infinite;
  filter: drop-shadow(0 10px 14px rgba(25, 20, 16, .22));
}
/* Los enlaces quedan por encima de cualquier capa decorativa. */
.ticket__actions { position: relative; z-index: 5; }
.ticket__actions a { position: relative; z-index: 5; }
@keyframes mascotFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }

/* Mini mascota y encabezado del contacto: misma línea de lectura. */
.contact__mascot { width: clamp(105px, 11vw, 125px); max-width: 100%; margin: 0 0 8px 4px; object-fit: contain; }
.faq__mascot { width: clamp(110px, 16vw, 150px); margin: 18px 0 0; }

/* ── Video visible ─────────────────────────────────────── */
.video-section__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.video-frame { margin: 0; justify-self: center; width: 100%; max-width: 330px; }
.video-frame video {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #17120f;
  border-radius: 22px; border: 6px solid var(--ink); box-shadow: 0 22px 50px rgba(25, 20, 16, .25);
}
.video-frame figcaption { margin-top: 10px; font-size: .82rem; color: var(--muted); text-align: center; }

/* ── Flujo de módulos (Cómo funciona · 01) ─────────────── */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; counter-reset: mod; }
.module { position: relative; counter-increment: mod; border: 1px solid var(--line); background: var(--paper); }
.module--featured { border: 1px solid var(--line); background: var(--paper); box-shadow: inset 0 3px 0 var(--red); }
.module::before {
  content: counter(mod); position: absolute; top: -14px; left: 20px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: #fff; font: 800 .85rem var(--font-display);
  box-shadow: 0 0 0 4px var(--cream);
}
.module:not(:last-child)::after {
  content: ""; position: absolute; z-index: 2; width: 26px; height: 26px; right: -30px; top: 50%; margin-top: -13px;
  background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5302a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M4 12h15M13 6l6 6-6 6'/></svg>");
  opacity: .35; animation: arrowRun 4.5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 1.5s);
}
.module:nth-child(1) { --i: 0; } .module:nth-child(2) { --i: 1; } .module:nth-child(3) { --i: 2; }
@keyframes arrowRun {
  0%, 100% { opacity: .3; transform: translateX(-3px); filter: none; }
  20% { opacity: 1; transform: translateX(4px); filter: drop-shadow(0 0 6px rgba(229, 48, 42, .85)); }
  40% { opacity: .3; transform: translateX(0); filter: none; }
}

/* ── Flujo de 6 pasos de domicilio ─────────────────────── */
.delivery-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 42px 30px; counter-reset: st; }
.delivery-flow .step { --i: 0; padding: 20px 16px 22px; }
.delivery-flow .step:nth-child(1) { --i: 0; }
.delivery-flow .step:nth-child(2) { --i: 1; }
.delivery-flow .step:nth-child(3) { --i: 2; }
.delivery-flow .step:nth-child(4) { --i: 3; grid-column: 3; grid-row: 2; }
.delivery-flow .step:nth-child(5) { --i: 4; grid-column: 2; grid-row: 2; }
.delivery-flow .step:nth-child(6) { --i: 5; grid-column: 1; grid-row: 2; }
.delivery-flow .step:not(:last-child)::after {
  content: ""; position: absolute; z-index: 2; top: 50%; right: -31px; width: 30px; height: 2px;
  background: linear-gradient(90deg, rgba(229, 48, 42, .2), rgba(229, 48, 42, .65), rgba(229, 48, 42, .2));
}
.delivery-flow .step:not(:last-child)::before {
  content: ""; position: absolute; z-index: 3; top: calc(50% - 3px); left: calc(100% + 1px); width: 7px; height: 7px;
  border-radius: 50%; background: #ff625b; box-shadow: 0 0 8px 2px rgba(255, 72, 64, .6);
  pointer-events: none; animation: cable-light-right 2.4s linear infinite; animation-delay: calc(var(--i) * .32s);
}
.delivery-flow .step:nth-child(3)::after {
  top: auto; right: calc(50% - 1px); bottom: -43px; width: 2px; height: 43px;
  background: linear-gradient(180deg, rgba(229, 48, 42, .2), rgba(229, 48, 42, .65), rgba(229, 48, 42, .2));
}
.delivery-flow .step:nth-child(3)::before {
  top: auto; right: calc(50% - 3px); bottom: -4px; left: auto; animation-name: cable-light-down;
}
.delivery-flow .step:nth-child(4)::after, .delivery-flow .step:nth-child(5)::after { right: auto; left: -31px; }
.delivery-flow .step:nth-child(4)::before, .delivery-flow .step:nth-child(5)::before {
  right: auto; left: -4px; animation-name: cable-light-left;
}
.step h3 { font-size: 1rem; }
.step p { font-size: .85rem; }
@keyframes cable-light-right { to { transform: translateX(30px); } }
@keyframes cable-light-left { to { transform: translateX(-30px); } }
@keyframes cable-light-down { to { transform: translateY(43px); } }

/* ── Tarjetas "Próximamente / Sin comisión" ────────────── */
.delivery-highlight { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 34px; }
.dh-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.dh-card__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(229, 48, 42, .1); color: var(--red); }
.dh-card__icon .icon { width: 22px; height: 22px; }
.dh-card h4 { margin: 0 0 6px; font-size: 1.08rem; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dh-card p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.dh-tag { font: 800 .68rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--cream); }

/* ── Planes ────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { --accent: var(--ink); position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; transition: transform .25s ease, box-shadow .25s ease; }
.plan::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); }
.plan--esencial { --accent: var(--ink); }
.plan--pro { --accent: var(--red); }
.plan--premium { --accent: var(--ink); }
.plan:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(25, 20, 16, .16); }
.plan__name { display: flex; align-items: center; gap: 8px; margin: 6px 0 4px; }
.plan__name small { font: 800 .7rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.plan__price small { font-size: .55em; font-weight: 700; opacity: .7; margin-right: 4px; }
.plan--featured {
  background: #161110 radial-gradient(rgba(253, 247, 234, .07) 1px, transparent 1px) 0 0 / 22px 22px;
  color: var(--cream);
  box-shadow: 0 0 0 2px var(--red), 0 18px 46px rgba(229, 48, 42, .24);
}
@keyframes proGlow { 0%, 100% { box-shadow: 0 0 0 2px var(--red), 0 14px 38px rgba(229, 48, 42, .22); } 50% { box-shadow: 0 0 0 2px var(--red-bright), 0 20px 56px rgba(229, 48, 42, .45); } }
.plan--featured .plan__name small { color: var(--red-bright); }
.plan__badge { animation: badgePulse 2.4s ease-in-out infinite; }
@keyframes badgePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.plan__cta {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 13px 20px; border-radius: 12px; border: 2px solid var(--accent);
  background: var(--accent); color: #fff !important; font: 800 1rem var(--font-display); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.plan__cta::after { content: "→"; transition: transform .2s ease; }
.plan__cta::before { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: ctaShine 3.6s ease-in-out infinite; }
@keyframes ctaShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.plan__cta:hover, .plan__cta:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(25, 20, 16, .25); }
.plan__cta:hover::after { transform: translateX(5px); }
.plan--featured .plan__cta { background: var(--red); border-color: var(--red); }
.plan__cta:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 3px; }

.plan-chip { border-color: var(--red); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.first-month table { min-width: 460px; }
.compare { min-width: 560px; }
.compare tbody th { position: sticky; left: 0; background: var(--paper); z-index: 1; }
.compare .group th { background: rgba(229, 48, 42, .06); }

/* ── Instagram ─────────────────────────────────────────── */
.ig-band { background: var(--cream); padding: 0 0 clamp(36px, 6vw, 64px); }
.ig-card { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); flex-wrap: wrap; padding: clamp(20px, 4vw, 32px); border-radius: 22px; background: linear-gradient(135deg, #fff7ec, #ffeaf0); border: 1px solid var(--line); }
/* Instagram: glifo vectorial centrado en gradiente, sin distorsión. */
.ig-badge {
  flex: none; width: 60px; height: 60px; border-radius: 18px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 28% 105%, #feda75 0%, #fa7e1e 27%, #d62976 52%, #962fbf 75%, #4f5bd5 100%);
  box-shadow: 0 9px 18px rgba(150, 47, 191, .18);
}
.ig-badge svg { display: block; width: 33px; height: 33px; fill: none; stroke: #fff; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
.ig-badge svg .dot { fill: #fff; stroke: none; }
.ig-card__text { flex: 1 1 240px; }
.ig-card h2 { margin: 0 0 4px; font-size: clamp(1.25rem, 3.4vw, 1.7rem); }
.ig-card p { margin: 0; color: var(--ink-2); }
.ig-card .btn { white-space: nowrap; }

/* ── Demo: sin emojis ──────────────────────────────────── */
.product-thumb { width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(135deg, #f6e7cf, #efd3b0); display: grid; place-items: center; overflow: hidden; color: #8a5a2b; font: 800 .62rem var(--font-display); letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.empty__icon, .completed-icon { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: rgba(229, 48, 42, .1); color: var(--red); }
.completed-icon { background: #dcfce7; color: #166534; font-size: 0; }
.empty__icon svg, .completed-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Panel oscuro / plataforma ─────────────────────────── */
.panel-dark__soon { display: inline-block; margin-top: 18px; font: 800 .72rem var(--font-display); letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: rgba(253, 247, 234, .12); color: var(--cream); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1180px) {
  .delivery-flow { column-gap: 24px; }
}
@media (max-width: 920px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan--featured { order: -1; }
  .video-section__grid { grid-template-columns: 1fr; text-align: left; }
  /* En tablet/móvil, el repartidor descansa debajo del card, no sobre el botón. */
  .hero__mascot { left: 4px; bottom: -76px; width: 100px; }
  .hero__visual { margin-bottom: 82px; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .container { padding-inline: 18px; }
  h1 { font-size: clamp(1.9rem, 8.4vw, 2.5rem); line-height: 1.08; }
  h2 { font-size: clamp(1.55rem, 6.6vw, 2rem); line-height: 1.12; }
  .section { padding-block: 44px; }
  .hero__actions { display: grid; gap: 10px; }
  .hero__actions .btn, .btn--block { width: 100%; justify-content: center; }
  .trust { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr; gap: 40px; }
  .module:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -34px; margin: 0 0 0 -13px; transform: rotate(90deg); animation-name: arrowRunDown; }
  .delivery-flow { grid-template-columns: 1fr; gap: 38px; }
  .delivery-flow .step { grid-column: 1; grid-row: auto; padding: 18px; }
  .delivery-flow .step:nth-child(n) { grid-column: 1; grid-row: auto; }
  .delivery-flow .step:not(:last-child)::after {
    top: auto; right: calc(50% - 1px); bottom: -39px; left: auto; width: 2px; height: 39px;
    background: linear-gradient(180deg, rgba(229, 48, 42, .2), rgba(229, 48, 42, .65), rgba(229, 48, 42, .2));
  }
  .delivery-flow .step:not(:last-child)::before {
    top: auto; right: calc(50% - 3px); bottom: -4px; left: auto; animation-name: cable-light-down;
  }
  .delivery-highlight { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  input, select, textarea { font-size: 16px; }
  .btn { min-height: 46px; }
  .ig-card { text-align: center; justify-content: center; }
  .ig-card .btn { width: 100%; justify-content: center; }
  .contact__mascot { width: 102px; margin: 0 0 8px 2px; }
  .problem__mascot { width: 145px; margin: 20px auto 0; }
  .contact__grid { gap: 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 6px; text-align: center; }
  /* demo */
  .products article { grid-template-columns: 56px 1fr; }
  .products article button { grid-column: 1 / -1; width: 100%; min-height: 44px; }
  .order-type-options { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .type-pill { min-height: 44px; }
}
@keyframes arrowRunDown {
  0%, 100% { opacity: .3; filter: none; }
  20% { opacity: 1; filter: drop-shadow(0 0 6px rgba(229, 48, 42, .85)); }
  40% { opacity: .3; }
}
@media (max-width: 400px) { .footer__grid { grid-template-columns: 1fr; } .plan__price { font-size: 2rem; } }
@media (prefers-reduced-motion: reduce) {
  .delivery-flow .step::before, .module::after, .plan--featured, .plan__badge, .plan__cta::before, .hero__mascot, .wa-fab::after { animation: none !important; }
  .brand:hover .brand__accent, .brand:focus-visible .brand__accent { animation: none !important; }
  .site-header { transition: none; }
}
.plan__month small { font-size: .6em; font-weight: 700; opacity: .7; margin-right: 6px; }
/* contacto: evitar desborde horizontal en móvil */
.contact__copy, .contact__form-wrap, .contact__grid > * { min-width: 0; }
.contact__wa, .contact__mail { max-width: 100%; }
.contact__wa-text, .contact__mail-text { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 920px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } }
.hero__grid > *, .app__grid > *, .form__row > *, .video-section__grid > *, .problem__grid > *, .faq > * { min-width: 0; }
@media (max-width: 920px) { .hero__grid, .app__grid, .problem__grid, .faq { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .form__row { grid-template-columns: minmax(0, 1fr); } .field input, .field select, .field textarea { width: 100%; min-width: 0; } .ticket__items li { gap: 10px; } }
.form { grid-template-columns: minmax(0, 1fr); }
.form > * { min-width: 0; }
@media (max-width: 720px) { .btn { white-space: normal; max-width: 100%; text-align: center; justify-content: center; } }

@media (max-width: 720px) {
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  .first-month table, .compare { display: block; width: 100%; min-width: 0; }
  .first-month thead, .compare thead {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
  .first-month tbody, .compare tbody, .first-month tbody tr, .compare tbody tr { display: block; width: 100%; }
  .first-month tbody tr, .compare tbody tr:not(.group) {
    margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  }
  .first-month tbody th[scope="row"], .compare tbody th[scope="row"] {
    display: block; position: static; width: 100%; padding: 0 0 10px; border: 0; background: transparent; text-align: left;
  }
  .first-month tbody td, .compare tbody tr:not(.group) td {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; padding: 9px 0; border: 0; border-top: 1px solid var(--line); text-align: right;
  }
  .first-month tbody td::before, .compare tbody tr:not(.group) td::before {
    flex: 1; color: var(--muted); font-size: .78rem; font-weight: 700; text-align: left;
  }
  .first-month tbody td:nth-of-type(1)::before { content: "Instalación"; }
  .first-month tbody td:nth-of-type(2)::before { content: "1.ª mensualidad"; }
  .first-month tbody td:nth-of-type(3)::before { content: "Total primer mes"; }
  .compare tbody tr:not(.group) td:nth-of-type(1)::before { content: "Esencial"; }
  .compare tbody tr:not(.group) td:nth-of-type(2)::before { content: "Pro"; }
  .compare tbody tr:not(.group) td:nth-of-type(3)::before { content: "Premium"; }
  .compare tbody tr:not(.group) td.is-hl { background: transparent; }
  .compare tbody tr.group { margin: 20px 0 8px; }
  .compare tbody tr.group th { display: block; padding: 8px 0; text-align: left; }
}
.ticket__actions { flex-wrap: wrap; } .fake-btn { max-width: 100%; }

/* ── Ajustes finos de contacto y tarjetas · 2026-10-24 ── */
.contact__person { align-items: center; }
.contact__avatar { flex: 0 0 auto; }
.contact__wa {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100%, 440px);
  min-height: 80px;
  padding: 16px 20px;
  background: #0f764e;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(15, 118, 78, .22);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  box-sizing: border-box;
}
.contact__wa:hover {
  background: #0c6241;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 118, 78, .3);
}
.contact__wa:focus-visible {
  outline: 3px solid #25D366;
  outline-offset: 3px;
}
.contact__mail {
  width: min(100%, 440px);
  min-height: 78px;
  border-radius: 16px;
  padding-inline: 16px;
  align-items: center;
  box-sizing: border-box;
}
/* Icono de WhatsApp: un solo contenedor en verde marca oficial con logotipo vector nítido en blanco */
.contact__wa-icon {
  width: 48px; height: 48px; border-radius: 50%;
  flex: 0 0 48px; display: flex; align-items: center; justify-content: center;
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  border: none;
}
.contact__wa-icon .wa-mark, .contact__wa-icon svg { display: block; width: 28px; height: 28px; fill: #ffffff; }
.contact__wa-text strong { font-size: 1.05rem; font-weight: 800; color: #ffffff; }
.contact__wa-text small { font-size: .88rem; color: #d6f7e4; }
.contact__wa-arrow { width: 22px; height: 22px; flex: 0 0 22px; margin-left: auto; stroke: #ffffff; stroke-width: 2.2; }
.contact__mail-icon { flex: 0 0 45px; }
.contact__form-wrap .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact__form-wrap .field { min-width: 0; }
.contact__form-wrap #form-submit {
  display: inline-flex; width: 100%; min-height: 48px;
  align-items: center; justify-content: center;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.contact__form-wrap #form-submit:hover { transform: translateY(-2px); }
.contact__form-wrap #form-submit:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
@media (max-width: 720px) {
  .contact__form-wrap .form__row { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .contact__wa, .contact__mail { width: 100%; padding-inline: 14px; }
  .contact__wa-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .contact__wa-icon .wa-mark { width: 33px; height: 33px; }
  .ig-badge { width: 56px; height: 56px; border-radius: 17px; }
}
@media (max-width: 420px) {
  .hero__mascot { left: 0; bottom: -69px; width: 90px; }
  .hero__visual { margin-bottom: 75px; }
  .ticket__actions a.fake-btn { white-space: normal; }
  .wa-fab { width: 52px; height: 52px; }
  .wa-fab .wa-mark { width: 41px; height: 41px; }
}


/* ── Nota de cargo por pedido (discreta, elegante y clara) ── */
.commission-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 30px;
  padding: 8px 18px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(22, 122, 80, 0.22);
  border-radius: 999px;
  font-size: 0.92rem;
  color: #125438;
  line-height: 1.4;
  text-align: left;
}
.commission-pill__badge {
  display: inline-block;
  background: #167a50;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex: 0 0 auto;
}
.commission-pill__text strong {
  color: #0c3d28;
}
.plan__commission-note {
  font-size: 0.86rem;
  font-weight: 600;
  color: #167a50;
  background: rgba(37, 211, 102, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  margin: 8px 0 14px;
  text-align: center;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .commission-pill {
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 0.86rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ── Precio por consulta (sin valores publicados) ───────── */
.plan__ask { margin: 22px 0 4px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; }
.plan__ask-title { margin: 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--red); }
.plan__ask-note { margin: 4px 0 0; font-size: 0.86rem; line-height: 1.45; color: var(--muted); }
.plan--featured .plan__ask { border-color: rgba(253, 247, 234, 0.28); }
.plan--featured .plan__ask-title { color: var(--red-bright); }
.plan--featured .plan__ask-note { color: rgba(253, 247, 234, 0.7); }
.price-ask { margin-top: clamp(44px, 5vw, 66px); display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.price-ask__copy { flex: 1 1 320px; }
.price-ask h3 { margin: 0 0 8px; font-size: 1.25rem; }
.price-ask p { margin: 0; color: var(--ink-2); line-height: 1.5; }

/* En la portada, la captura real vive dentro del dispositivo. */
.hero__phone { width: clamp(248px, 22vw, 270px); padding: 7px; overflow: hidden; }
.hero__phone-capture { display: block; width: 100%; height: auto; border-radius: 30px; }
.hero__order-body { display: grid; grid-template-columns: 38px 38px minmax(0, 1fr); }
.hero__order-body img { width: 38px; height: 42px; }
.hero__order-body strong, .hero__order-body small { display: block; }
.delivery-flow__direction { margin: 12px 0 10px; color: var(--ink-2); font-size: .88rem; line-height: 1.5; }

@media (max-width: 920px) {
  .site-header:not(.is-open) .nav { display: none; }
  .site-header.is-open .nav { display: flex; }
  .hero--carousel { min-height: 0; }
  .hero--carousel .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hero--carousel .hero__copy { max-width: 680px; }
  .hero--carousel .hero__visual { min-height: 560px; margin: 0; }
  .hero__carousel-controls { margin-top: 0; }
}
@media (max-width: 720px) {
  .hero--carousel { padding-block: 42px 28px; }
  .hero__backdrops img { object-position: 62% center; }
  .hero__backdrops img { object-position: 70% center; }
  .hero__backdrops::after { background: linear-gradient(180deg, rgba(17, 14, 12, .88), rgba(17, 14, 12, .78) 42%, rgba(17, 14, 12, .24) 100%); }
  .hero--carousel .hero__visual { min-height: 540px; margin-bottom: 0; }
  .hero__phone { width: 252px; }
  .hero__order-card { right: -2px; bottom: 36px; width: 198px; padding: 10px; }
  .hero__order-body { grid-template-columns: 32px 32px minmax(0, 1fr); gap: 6px; }
  .hero__order-body img { width: 32px; height: 35px; }
  .hero--carousel .hero__mascot { left: 0; bottom: -34px; width: 96px; }
  .hero__mascot-message { left: 2px; bottom: 96px; max-width: 134px; padding: 8px 10px; font-size: .65rem; }
  .hero__carousel-controls { left: 18px; bottom: 18px; width: calc(100% - 36px); gap: 8px; flex-wrap: wrap; transform: none; }
  .hero__carousel-caption { flex-basis: 100%; padding-left: 4px; }
  .hero--carousel h1 { max-width: none; font-size: clamp(2.1rem, 7.8vw, 2.8rem); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__backdrop { transition: none; }
  .hero--carousel .hero__mascot { animation: none; }
}

/* =========================================================
   Portada con foto de fondo + filas 2x2 + transición (vista previa B)
   ========================================================= */
.hero--carousel { min-height: 620px; padding-block: 64px; }
.hero--carousel .hero__backdrop { transition: opacity .9s ease !important; }
.hero--carousel .hero__carousel-controls { display: none; }
.hero--carousel .eyebrow { color: var(--red); }
.hero--carousel h1 .hl { color: var(--red); }
.hero--carousel .hero__title { max-width: none; font-size: clamp(2.5rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -.03em; }
.hero--carousel .hero__title span { display: block; }
.hero--carousel .hero__lead { max-width: 42ch; }

.hero__checks { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero__checks li { display: flex; align-items: center; gap: 12px; color: #FDF7EA; font-weight: 600; line-height: 1.35; }
.hero__checks li::before {
  content: "✓"; display: grid; flex: none; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--red); color: #fff; font-size: .8rem; font-weight: 800;
}

/* Example cards floating over the photo (desktop). */
.hero__floats { position: relative; min-height: 360px; }
.hero__float {
  position: absolute; width: min(260px, 100%); padding: 14px 16px;
  border: 1px solid rgba(253, 247, 234, .22); border-radius: 16px;
  background: rgba(22, 17, 16, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4); color: #FDF7EA; font-size: .86rem; line-height: 1.5;
}
.hero__float--client { top: 0; right: 0; }
.hero__float--panel { bottom: 0; left: 0; }
.hero__float i { display: block; margin-bottom: 6px; color: rgba(253, 247, 234, .78); font-size: .7rem; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.hero__float-row { display: flex; justify-content: space-between; gap: 10px; }
.hero__float em { color: var(--red); font-style: normal; font-weight: 700; }

/* FILAS 2x2 (01–04) */
.feat {
  padding: 72px 0 8px;
  background: #161110 radial-gradient(rgba(253, 247, 234, .07) 1px, transparent 1px) 0 0 / 22px 22px;
  color: #FDF7EA;
}
.feat__wrap { padding-block: 0; }
.fgrid {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px;
  margin: 0; padding: 0; list-style: none;
  border-top: 1px solid rgba(253, 247, 234, .22);
}
.fcell {
  display: grid; grid-template-columns: 40px 1fr 190px; gap: 14px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid rgba(253, 247, 234, .22);
}
.fcell .n { align-self: start; padding-top: 6px; color: var(--red); font-size: .85rem; font-weight: 700; }
.fcell h3 { margin: 0 0 6px; color: #FDF7EA; font-size: 1.45rem; line-height: 1.15; }
.fcell p { margin: 0; color: rgba(253, 247, 234, .78); font-size: .97rem; line-height: 1.5; }
.fvis { display: grid; gap: 6px; color: #FDF7EA; font-size: .74rem; line-height: 1.35; }
.fvis i { color: rgba(253, 247, 234, .78); font-size: .68rem; font-style: normal; }
.fcard {
  display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px;
  border: 1px solid rgba(253, 247, 234, .22); border-radius: 10px;
  background: rgba(253, 247, 234, .04);
}
.fcard em { color: var(--red); font-style: normal; font-weight: 700; }
.fdot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--red); }

/* TRANSICIÓN (Pedir no tiene que ser un lío) */
.bridge {
  padding: 56px 0;
  background: #161110 radial-gradient(rgba(253, 247, 234, .07) 1px, transparent 1px) 0 0 / 22px 22px;
  color: #FDF7EA;
}
.bridge__wrap { padding-block: 0; }
.bridge h2 {
  margin: 0 0 26px; color: #FDF7EA;
  font-size: clamp(2.2rem, 6.4vw, 4.8rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em;
}
.bridge h2 span { display: block; }
.bridge h2 span:last-child { color: var(--red); }
.bridge s { color: rgba(253, 247, 234, .55); text-decoration-color: var(--red); text-decoration-thickness: .07em; }
.bridge p { display: flex; align-items: center; gap: 10px; margin: 0; color: rgba(253, 247, 234, .78); font-weight: 700; }
.bridge p::before { content: ""; width: 7px; height: 7px; background: var(--red); }

@media (max-width: 1000px) {
  .fgrid { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .hero--carousel { min-height: 0; padding-block: 44px 56px; }
  .hero__floats { display: none; }
  .hero--carousel .hero__grid { gap: 0; }
}

@media (max-width: 720px) {
  .hero--carousel { padding-block: 44px 52px; }
  .hero__backdrops::after { background: linear-gradient(180deg, rgba(22, 17, 16, .58), rgba(22, 17, 16, .9) 55%); }
  .hero--carousel .hero__title { max-width: none; font-size: clamp(2.15rem, 9.4vw, 2.9rem); }
  .hero--carousel .hero__lead { font-size: 1.04rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__checks { margin-top: 24px; font-size: .95rem; }
  .feat { padding: 52px 0 8px; }
  .bridge { padding: 44px 0; }
}

@media (max-width: 560px) {
  .fcell { grid-template-columns: 34px 1fr; }
  .fvis { grid-column: 2; }
}

/* =========================================================
   Header con mayor transparencia y blur + conector 03 -> 04
   ========================================================= */
.site-header {
  background: rgba(253, 247, 234, .58) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
  backdrop-filter: blur(22px) saturate(180%) !important;
  border-bottom-color: rgba(25, 20, 16, .08) !important;
}
.site-header.is-scrolled {
  background: rgba(253, 247, 234, .68) !important;
  -webkit-backdrop-filter: blur(26px) saturate(190%) !important;
  backdrop-filter: blur(26px) saturate(190%) !important;
  border-bottom-color: rgba(25, 20, 16, .1) !important;
  box-shadow: 0 10px 28px rgba(24, 27, 32, .08) !important;
}

/* Flujo 01-06 limpio sin líneas cruzadas */
.flow-pipeline-wrap {
  gap: 1.5rem;
}
.flow-row {
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) 44px minmax(0, 1fr);
}
.flow-connector.horizontal-flow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-inline: auto;
  border-radius: 50%;
  border: 1px solid rgba(229, 48, 42, .32);
  background: rgba(229, 48, 42, .12);
  color: var(--red);
}
.flow-connector.horizontal-flow .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}

/* En móvil, los pasos 04, 05 y 06 ya están en orden natural en el DOM */
@media (max-width: 991px) {
  .flow-pipeline-wrap { gap: 1rem; }
  .flow-connector.horizontal-flow { display: none; }
  .row-bottom .delivery-route-card[data-step="4"],
  .row-bottom .delivery-route-card[data-step="5"],
  .row-bottom .delivery-route-card[data-step="6"] { order: initial; }
}

/* Por si se usa .delivery-flow en algún otro bloque, fila 2 va de izquierda a derecha */
.delivery-flow .step:nth-child(4) { grid-column: 1; grid-row: 2; }
.delivery-flow .step:nth-child(5) { grid-column: 2; grid-row: 2; }
.delivery-flow .step:nth-child(6) { grid-column: 3; grid-row: 2; }

/* Botones de video y bloque de garantías operativas POS en portada */
.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.pos-guarantees {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.pos-guarantee-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.pos-guarantee-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(229, 48, 42, .1);
  color: var(--red);
}
.pos-guarantee-icon .icon {
  width: 22px;
  height: 22px;
}
.pos-guarantee-card h3 {
  font-size: 1.18rem;
  line-height: 1.2;
}
.pos-guarantee-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: .93rem;
  line-height: 1.55;
}
@media (max-width: 920px) {
  .pos-guarantees {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Rediseño editorial de Planes (coherente con Vista previa B)
   ========================================================= */
.plans-guarantees {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 36px;
  padding: 16px 20px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.plans-guarantees li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.plans-guarantees .icon {
  flex: none;
  width: 18px;
  height: 18px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(229, 48, 42, .12);
  color: var(--red);
  stroke-width: 2.6;
}
.plans-guarantees strong {
  color: var(--ink);
}

.plan__tier {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.plan__num {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: .06em;
}
.plan__tag {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan--featured .plan__tag {
  color: rgba(253, 247, 234, .68);
}

/* Micro-UI preview dentro de cada tarjeta de plan (estilo fcard de inicio) */
.plan__preview {
  display: grid;
  gap: 6px;
  margin: 18px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  font-size: .78rem;
  line-height: 1.35;
}
.plan__preview i {
  display: block;
  margin-bottom: 2px;
  font-size: .68rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan__preview .fcard {
  border-color: rgba(25, 20, 16, .12);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}
.plan--featured .plan__preview {
  border-color: rgba(253, 247, 234, .18);
  background: rgba(22, 17, 16, .68);
}
.plan--featured .plan__preview i {
  color: rgba(253, 247, 234, .68);
}
.plan--featured .plan__preview .fcard {
  border-color: rgba(253, 247, 234, .2);
  background: rgba(253, 247, 234, .05);
  color: var(--cream);
}

.plan__features li strong {
  color: var(--ink);
}
.plan--featured .plan__features li strong {
  color: var(--cream);
}

/* Guía rápida de elección en bloque oscuro editorial (estilo index.html) */
.plans-guide {
  padding: 64px 0 56px;
}
.plans-guide__head {
  margin-bottom: 28px;
}
.plans-guide__head h2 {
  margin: 10px 0 0;
  color: var(--cream);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
}
.fcard--link {
  text-decoration: none;
  color: var(--cream);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.fcard--link:hover,
.fcard--link:focus-visible {
  border-color: var(--red);
  background: rgba(229, 48, 42, .14);
  transform: translateY(-1px);
}
.fcard--pro {
  border-color: rgba(229, 48, 42, .55);
  background: rgba(229, 48, 42, .16);
}

@media (max-width: 920px) {
  .plans-guarantees {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ── 12. Rediseño interactivo de Cómo funciona (como-funciona.html) ── */
.role-explorer {
  display: grid;
  gap: 20px;
}

.role-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.role-tab {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  padding: 16px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .18s ease, box-shadow .2s ease;
}

.role-tab:hover {
  border-color: rgba(229, 48, 42, .45);
  transform: translateY(-1px);
}

.role-tab.is-active {
  background: #161110;
  border-color: #161110;
  color: var(--cream);
  box-shadow: 0 12px 26px rgba(22, 17, 16, .16);
}

.role-tab__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--red);
  background: rgba(229, 48, 42, .12);
  padding: 5px 8px;
  border-radius: 8px;
  line-height: 1;
}

.role-tab.is-active .role-tab__num {
  background: var(--red);
  color: #fff;
}

.role-tab strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 3px;
}

.role-tab small {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

.role-tab.is-active small {
  color: rgba(253, 247, 234, .72);
}

.role-panel {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 28px;
  align-items: center;
  padding: 32px;
  border-radius: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(25, 20, 16, .05);
}

.role-panel[hidden] {
  display: none !important;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(229, 48, 42, .1);
  color: var(--red);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.role-panel__copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--ink);
}

.role-panel__copy > p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.role-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.role-points li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.role-points .icon {
  color: var(--red);
  margin-top: 3px;
}

.role-panel__screen,
.report-preview-card {
  background-color: #161110;
  background-image: radial-gradient(rgba(255, 248, 238, .07) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  padding: 22px;
  display: grid;
  gap: 10px;
  color: var(--cream);
}

.screen-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.screen-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(253, 247, 234, .68);
}

.screen-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.screen-chip--green {
  background: rgba(34, 197, 94, .18);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, .35);
}

.screen-chip--red {
  background: rgba(229, 48, 42, .22);
  color: #fca5a5;
  border: 1px solid rgba(229, 48, 42, .45);
}

/* Chips en los pasos 01-06 de Domicilios */
.flow-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.flow-card-top .flow-card-num {
  margin-bottom: 0 !important;
}

.flow-step-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 248, 238, .82);
}

/* Simulador interactivo de Inventario y Merma */
.product-card--interactive {
  padding-top: 20px;
}

.inv-sim-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  border-radius: 12px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.inv-sim-tab {
  border: 0;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.inv-sim-tab.is-active {
  background: #161110;
  color: var(--cream);
  box-shadow: 0 6px 14px rgba(22, 17, 16, .14);
}

.inv-sim-panel[hidden] {
  display: none !important;
}

.inv-recipe-items {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 6px;
}

.inv-recipe-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--cream);
  font-size: 13px;
  color: var(--ink-soft);
}

.inv-recipe-items strong {
  color: var(--ink);
  font-weight: 800;
}

.inv-merma-lead {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.inv-merma-log {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.merma-entry {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.merma-entry__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.merma-entry__top strong {
  font-size: 13.5px;
  color: var(--ink);
}

.merma-entry p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.merma-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}

.merma-badge--loss {
  background: rgba(229, 48, 42, .12);
  color: var(--red);
}

.merma-badge--return {
  background: rgba(22, 163, 74, .14);
  color: #15803d;
}

/* Cierre de turno en 2 columnas */
.report-showcase {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 920px) {
  .role-tabs {
    grid-template-columns: 1fr 1fr;
  }
  .role-panel,
  .report-showcase {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .role-tabs,
  .inv-sim-tabs {
    grid-template-columns: 1fr;
  }
}
