/* ==========================================================
   SourcingTony — sistema visual "paneles" (rediseño interactivo)
   Base oscura propia + paneles con gradiente, cuadrícula de puntos y cristal.
   Solo transform/opacity en animaciones. Tokens de motion: css/motion.css
   ========================================================== */
:root{
  --panel-r: 26px;
  --glow: 122, 158, 106;      /* rgb del verde de marca, para rgba(var(--glow), a) */
}

/* Cuadrícula de puntos, desvanecida en los bordes */
.dotgrid{ position: relative; }
.dotgrid::before{
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background-image: radial-gradient(rgba(245,243,238,.13) 1px, transparent 1.6px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, #000 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, #000 20%, transparent 78%);
}

/* Panel de cristal oscuro con gradiente verde */
.panel{
  position: relative; border-radius: var(--panel-r); overflow: hidden;
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(var(--glow), .20), transparent 55%),
    radial-gradient(90% 70% at 100% 100%, rgba(var(--glow), .10), transparent 60%),
    linear-gradient(160deg, #15160F 0%, #0F100C 100%);
  border: 1px solid rgba(245,243,238,.09);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.05);
}

/* Fondo ambiental de sección: resplandor verde muy suave que se difumina por sí solo hacia arriba y abajo
   (sin recortes: es un degradado que llega a transparente, no una mancha con borde) */
.ambient{ position: relative; isolation: isolate; }
.ambient::before{
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -260px 0;
  background:
    radial-gradient(ellipse 55% 42% at 22% 46%, rgba(var(--glow), .15), transparent 72%),
    radial-gradient(ellipse 50% 38% at 82% 58%, rgba(var(--glow), .09), transparent 74%);
  animation: ambientDrift 24s ease-in-out infinite alternate;
}
@keyframes ambientDrift{ to{ transform: translate3d(0, 4%, 0); } }

/* ---------- Interruptor (role=switch) ---------- */
.switch{
  display: inline-flex; align-items: center; gap: 14px; cursor: pointer;
  background: rgba(245,243,238,.04); border: 1px solid rgba(245,243,238,.14);
  border-radius: 999px; padding: 8px 20px 8px 10px; color: var(--text);
  font: 500 15px/1 var(--sans); transition: border-color var(--dur-fast, .18s) ease, background var(--dur-fast, .18s) ease;
}
.switch:hover{ border-color: rgba(var(--glow), .6); background: rgba(var(--glow), .08); }
.switch-track{
  position: relative; width: 46px; height: 28px; border-radius: 999px; flex: none;
  background: rgba(245,243,238,.18); transition: background var(--dur-base, .32s) var(--ease, ease);
}
.switch-knob{
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4);
  transition: transform var(--dur-base, .32s) var(--ease, ease);
}
.switch[aria-checked="true"] .switch-track{ background: var(--accent); }
.switch[aria-checked="true"] .switch-knob{ transform: translateX(18px); }


/* ==========================================================
   MÓDULOS PROPIOS DE LA HOME
   1 Ruta (camello que recorre la página) · 2 Inspección (cortina arrastrable)
   3 Guía de servicios + simulador de tarifa · 4 Expedientes de casos · 5 Presencia · 6 Llegada
   ========================================================== */

/* ---------- 1. Barra de progreso de la página ---------- */
.rail{ position: fixed; left: 24px; top: 50%; transform: translateY(-50%); z-index: 90; display: none; height: min(320px, 50vh); width: 4px; pointer-events: none; }
@media (min-width: 1320px){ .rail{ display: block; } }
.rail-track{ position: absolute; inset: 0; border-radius: 4px; background: rgba(245,243,238,.12); overflow: hidden; }
.rail-fill{ position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(to bottom, #C9E6BC, var(--accent)); transform-origin: top; transform: scaleY(0); will-change: transform; }

/* ---------- 2. Comparativa: tabla a la vista ---------- */
.vs2{ padding: 28px 30px 24px; }
.vs2-head, .vs2-row{ display: grid; grid-template-columns: 1fr 170px 1fr; gap: 14px; align-items: stretch; }
.vs2-head{ margin-bottom: 14px; }
.vs2-h{ font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 0 6px; }
.vs2-h--bad{ color: #E39A7E; }
.vs2-h--mid{ text-align: center; color: var(--text-faint); }
.vs2-h--good{ color: var(--accent-strong); }
.vs2-rows{ position: relative; display: grid; gap: 12px; }
.vs2-rows::before{ content: ""; position: absolute; left: 50%; top: 18px; bottom: 18px; width: 1px; background: linear-gradient(to bottom, transparent, rgba(245,243,238,.18) 10%, rgba(245,243,238,.18) 90%, transparent); }
.vs2-cell{ position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1px solid; transition: transform var(--dur-base, .3s) var(--ease, ease), border-color var(--dur-base, .3s) ease, background var(--dur-base, .3s) ease; }
.vs2-cell p{ margin: 0; font-size: 16px; line-height: 1.5; }
.vs2-ico{ flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.vs2-ico svg{ width: 15px; height: 15px; }
.vs2-cell--bad{ background: rgba(192,100,63,.06); border-color: rgba(192,100,63,.22); }
.vs2-cell--bad p{ color: var(--text-muted); }
.vs2-cell--bad .vs2-ico{ background: rgba(192,100,63,.18); color: #E39A7E; }
.vs2-cell--good{ background: linear-gradient(135deg, rgba(var(--glow), .22), rgba(var(--glow), .07)); border-color: rgba(var(--glow), .5); box-shadow: 0 10px 30px -18px rgba(var(--glow), .6); }
.vs2-cell--good p{ color: var(--text); font-weight: 500; }
.vs2-cell--good .vs2-ico{ background: var(--accent); color: #0E0E0C; }
.vs2-row:hover .vs2-cell--good{ transform: translateX(4px); border-color: rgba(var(--glow), .85); }
.vs2-row:hover .vs2-cell--bad{ transform: translateX(-4px); }
.vs2-mid{ position: relative; z-index: 1; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 8px 10px; border-radius: 14px; background: #121310; border: 1px solid rgba(245,243,238,.12); }
.vs2-mid i{ font-style: normal; font-size: 11px; letter-spacing: .14em; color: var(--text-faint); }
.vs2-mid b{ font-size: 14px; font-weight: 600; line-height: 1.2; }
.vs2-foot{ margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(245,243,238,.1); display: grid; grid-template-columns: 1fr 170px 1fr; gap: 14px; }
.vs2-foot p{ margin: 0; font-size: 15px; padding: 0 6px; }
.vs2-foot-bad{ color: var(--text-muted); grid-column: 1; }
.vs2-foot-good{ color: var(--accent-strong); font-weight: 600; grid-column: 3; }
@media (max-width: 860px){
  .vs2{ padding: 18px 14px; }
  .vs2-head{ display: none; }
  .vs2-rows::before{ display: none; }
  .vs2-rows{ gap: 14px; }
  .vs2-row{ grid-template-columns: 1fr; gap: 6px; padding: 12px; border-radius: 20px; background: rgba(255,255,255,.025); border: 1px solid rgba(245,243,238,.08); }
  .vs2-mid{ flex-direction: row; justify-content: flex-start; gap: 10px; background: none; border: 0; padding: 2px 4px 6px; }
  .vs2-mid b{ font-size: 15px; }
  .vs2-cell{ padding: 12px 14px; }
  .vs2-cell p{ font-size: 15px; }
  .vs2-row:hover .vs2-cell--good, .vs2-row:hover .vs2-cell--bad{ transform: none; }
  .vs2-foot{ grid-template-columns: 1fr; gap: 6px; }
  .vs2-foot-bad, .vs2-foot-good{ grid-column: 1; }
}

/* ---------- 3. Guía de servicios ---------- */
.guide{ display: grid; grid-template-columns: minmax(250px, 340px) 1fr; padding: 14px; gap: 14px; }
.guide-tabs{ display: flex; flex-direction: column; gap: 10px; }
.gtab{
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer; padding: 16px 18px; border-radius: 18px;
  background: transparent; border: 1px solid transparent; color: var(--text); font: inherit;
  transition: background var(--dur-base, .3s) ease, border-color var(--dur-base, .3s) ease;
}
.gtab:hover{ background: rgba(255,255,255,.04); }
.gtab--soon, .gtab--soon:hover{ cursor: not-allowed; background: transparent; opacity: .45; filter: grayscale(1); }
.gtab--soon::after{ display: none; }
.gtab[aria-selected="true"]{ background: linear-gradient(135deg, rgba(var(--glow), .18), rgba(var(--glow), .05)); border-color: rgba(var(--glow), .5); }
.gtab-ico{ flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(var(--glow), .14); color: var(--accent-strong); }
.gtab-ico svg{ width: 20px; height: 20px; }
.gtab b{ display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.gtab small{ display: block; font-size: 14px; color: var(--text-muted); margin-top: 2px; line-height: 1.35; }
.gtab::after{ content: "→"; position: absolute; right: 18px; top: 50%; transform: translate3d(-6px,-50%,0); opacity: 0; color: var(--accent-strong); transition: opacity var(--dur-fast, .18s) ease, transform var(--dur-base, .3s) var(--ease, ease); }
.gtab[aria-selected="true"]::after{ opacity: 1; transform: translate3d(0,-50%,0); }
.guide-body{ position: relative; border-radius: 20px; background: rgba(8,9,6,.5); border: 1px solid rgba(245,243,238,.07); padding: 34px 36px; min-height: 420px; overflow: hidden; }
.gpanel{ display: none; }
.gpanel.is-active{ display: block; animation: gIn var(--dur-slow, .6s) var(--ease, ease) both; }
@keyframes gIn{ from{ opacity: 0; transform: translate3d(0, 14px, 0); } }
.gpanel h3{ font-size: 26px; letter-spacing: -.02em; margin: 0 0 10px; }
.gpanel > p{ margin: 0; color: var(--text-muted); max-width: 52ch; }
.gfacts{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 22px; }
.gfact{ border-radius: 16px; padding: 16px 18px; background: linear-gradient(160deg, rgba(var(--glow), .14), rgba(255,255,255,.02)); border: 1px solid rgba(var(--glow), .28); }
.gfact b{ display: block; font-size: 30px; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.gfact span{ display: block; margin-top: 6px; font-size: 14px; color: var(--text-muted); line-height: 1.35; }
.gchecks{ list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.gchecks li{ position: relative; padding-left: 30px; font-size: 15px; color: var(--text); line-height: 1.45; }
.gchecks li::before{ content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(var(--glow), .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393B683' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.gnote{ margin: 14px 0 0; font-size: 14px; color: var(--text-faint); }
/* Simulador de tarifa */
.sim{ margin: 24px 0 18px; padding: 20px 22px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid rgba(245,243,238,.1); }
.sim-top{ display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.sim-label{ font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.sim-val{ font-size: 34px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.sim-out{ text-align: right; }
.sim-out b{ display: block; font-size: 34px; font-weight: 600; letter-spacing: -.03em; color: var(--accent-strong); font-variant-numeric: tabular-nums; line-height: 1.1; }
.sim-out span{ font-size: 14px; color: var(--text-muted); }
.sim input[type="range"]{ -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; margin: 22px 0 6px; outline: none; background: linear-gradient(to right, var(--accent) var(--f, 40%), rgba(245,243,238,.14) var(--f, 40%)); cursor: pointer; }
.sim input[type="range"]::-webkit-slider-thumb{ -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.sim input[type="range"]::-moz-range-thumb{ width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.sim input[type="range"]:focus-visible{ outline: 2px solid var(--accent-strong); outline-offset: 8px; }
.sim-steps{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; align-items: end; }
.sim-step{ border-radius: 12px; padding: 10px 12px 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(245,243,238,.08); transition: background var(--dur-base, .3s) ease, border-color var(--dur-base, .3s) ease, transform var(--dur-base, .3s) var(--ease, ease); }
.sim-step b{ display: block; font-size: 22px; letter-spacing: -.02em; }
.sim-step span{ display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; line-height: 1.3; }
.sim-step i{ display: block; height: 4px; border-radius: 4px; margin-bottom: 10px; background: rgba(245,243,238,.18); transform-origin: left; }
.sim-step.is-on{ background: linear-gradient(160deg, rgba(var(--glow), .22), rgba(var(--glow), .06)); border-color: rgba(var(--glow), .6); transform: translateY(-3px); }
.sim-step.is-on i{ background: var(--accent); }
/* Dos carriles: tú / yo */
.lanes{ display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; margin: 20px 0; }
.lane{ border-radius: 16px; padding: 16px 18px; border: 1px solid rgba(245,243,238,.1); background: rgba(255,255,255,.03); }
.lane--me{ border-color: rgba(var(--glow), .4); background: linear-gradient(160deg, rgba(var(--glow), .14), rgba(255,255,255,.02)); }
.lane h4{ margin: 0 0 10px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.lane--me h4{ color: var(--accent-strong); }
.lane ul{ margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lane li{ font-size: 14.5px; line-height: 1.35; color: var(--text); padding-left: 16px; position: relative; }
.lane li::before{ content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); }
.lane--me li::before{ background: var(--accent); }
.gcta{ display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 900px){
  .guide{ grid-template-columns: 1fr; }
  .guide-tabs{ flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 8px; padding-bottom: 2px; }
  .guide-tabs::-webkit-scrollbar{ display: none; }
  .gtab{ flex: 0 0 78%; scroll-snap-align: start; border-color: rgba(245,243,238,.1); }
  .gtab::after{ display: none; }
  .guide-body{ padding: 24px 20px; min-height: 0; }
  .gfacts{ grid-template-columns: 1fr; }
  .gfact{ display: flex; align-items: baseline; gap: 14px; padding: 12px 16px; }
  .gfact span{ margin: 0; }
  .lanes{ grid-template-columns: 1fr; }
  .sim-steps{ grid-template-columns: repeat(2, 1fr); }
  .sim-out{ text-align: left; }
}

/* ---------- 5. Alcance global: globo pequeño, complemento discreto ---------- */
.presence{ display: flex; align-items: center; justify-content: center; gap: 30px; max-width: 720px; margin: 56px auto 0; padding: 22px 28px; border-radius: 24px; border: 1px solid var(--card-border); background: rgba(255,255,255,.02); }
.dglobe{ position: relative; flex: none; width: 220px; }
.dglobe canvas{ display: block; width: 100%; }
.dg-origin{ position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 10px; display: grid; place-items: center; background: #1A1B14; border: 1px solid rgba(147,182,131,.55); box-shadow: 0 0 0 4px rgba(var(--glow), .14); }
.dg-origin img{ width: 22px; height: auto; display: block; }
.dg-label{ position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; opacity: 0; white-space: nowrap; margin: -26px 0 0 0; padding: 4px 9px; border-radius: 999px; font: 600 12px/1 var(--sans); color: var(--text); background: rgba(14,14,12,.85); border: 1px solid rgba(147,182,131,.4); translate: -50% 0; will-change: transform, opacity; }
.presence-copy h3{ font-size: 21px; line-height: 1.25; letter-spacing: -.015em; margin: 8px 0 0; max-width: 22ch; }
.presence-legend{ list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.presence-legend li{ display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text-muted); }
.presence-legend i{ width: 8px; height: 8px; border-radius: 50%; flex: none; }
.presence-legend .o{ background: #E6F5DC; box-shadow: 0 0 0 3px rgba(var(--glow), .25); }
.presence-legend .c{ background: var(--accent); border-radius: 3px; }
@media (max-width: 640px){ .presence{ flex-direction: column; text-align: center; gap: 12px; padding: 20px 16px; } .dglobe{ width: 190px; } .presence-copy h3{ max-width: none; } .presence-legend li{ justify-content: center; } }

/* ---------- 6. Llegada: el camello llega a tu puerta ---------- */
.arrive{ position: relative; padding: 70px 34px 60px; text-align: center; }
.arrive-path{ position: relative; height: 70px; max-width: 720px; margin: 0 auto 8px; }
.arrive-path svg{ position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arrive-path .trail{ fill: none; stroke: rgba(var(--glow), .6); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.arrive-camel{ position: absolute; left: 0; top: 0; width: 54px; margin: -30px 0 0 -27px; offset-path: path("M0 50 C 160 -10, 300 90, 720 30"); offset-rotate: 0deg; offset-distance: 0%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
.arrive.is-in .arrive-camel{ animation: camelArrive 2.6s var(--ease, ease) forwards; }
@keyframes camelArrive{ to{ offset-distance: 100%; } }
.arrive-door{ position: absolute; right: -6px; top: -4px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: rgba(var(--glow), .16); border: 1px solid rgba(var(--glow), .5); color: var(--accent-strong); }
.arrive-door svg{ width: 22px; height: 22px; position: static; }
.arrive.is-in .arrive-door{ animation: doorPop .6s var(--ease, ease) 2.5s both; }
@keyframes doorPop{ 50%{ transform: scale(1.18); box-shadow: 0 0 0 10px rgba(var(--glow), .18); } }
@media (max-width: 900px){ .arrive{ padding: 52px 20px 44px; } .arrive-path{ display: none; } }

/* Reducir movimiento */
@media (prefers-reduced-motion: reduce){
  .gpanel.is-active, .case-dialog[open]{ animation: none; }
  .pmap .arc, .pmap .arc-glow, .pnode-dot::after{ animation: none; }
  .arrive.is-in .arrive-camel{ animation: none; offset-distance: 100%; }
  .arrive.is-in .arrive-door{ animation: none; }
}

.guide-help{ margin-top: auto; padding: 18px; border-radius: 18px; border: 1px dashed rgba(245,243,238,.18); display: grid; gap: 6px; }
.guide-help b{ font-size: 16px; }
.guide-help > span{ font-size: 14px; color: var(--text-muted); line-height: 1.45; }
.guide-help .link-arrow{ margin-top: 4px; }
@media (max-width: 900px){ .guide-help{ display: none; } }

@media (max-width: 760px){ .ins-tag--good{ top: auto; bottom: 10px; } }

@media (max-width: 860px){ .vs2-mid{ order: -1; } }

/* ==========================================================
   Comparativa (selector Trabajar conmigo / Un agente cualquiera): más vida y más cuidado visual
   ========================================================== */
/* Interruptor con "píldora" que se desliza */
.cmp-toggle{ display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-width: 380px; isolation: isolate; background: rgba(255,255,255,.03); border-color: rgba(245,243,238,.12); }
.cmp-toggle::before{
  content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px;
  background: var(--accent); box-shadow: 0 10px 24px -8px rgba(var(--glow), .75);
  transition: transform .5s cubic-bezier(.3, 1.3, .5, 1), background .3s ease, box-shadow .3s ease;
}
#cmpBad:checked ~ .cmp-toggle::before{ transform: translateX(100%); background: var(--warn); box-shadow: 0 10px 24px -8px rgba(180,105,74,.75); }
#cmpGood:checked ~ .cmp-toggle .cmp-toggle-opt--good, #cmpBad:checked ~ .cmp-toggle .cmp-toggle-opt--bad{ background: transparent; color: #0E0E0C; }
.cmp-toggle-opt{ position: relative; }
.cmp-toggle-opt:hover{ color: var(--text); }
.cmp.in .cmp-toggle::before{ animation: thumbHint 1.1s var(--ease, ease) 1.2s 1 both; }
@keyframes thumbHint{ 40%{ transform: translateX(10px); } 70%{ transform: translateX(-2px); } }
#cmpBad:checked ~ .cmp-toggle::before{ animation: none; }
@media (max-width: 560px){ .cmp-toggle{ min-width: 0; width: 100%; } }

/* Tarjeta: borde con degradado, resplandor del color del estado y foco de luz con el cursor */
.cmp-card{ position: relative; overflow: hidden; border-color: transparent; background: linear-gradient(160deg, #15160F, #0E0F0B); transition: box-shadow var(--dur-base, .3s) ease; }
.cmp-card::before{
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(150deg, rgba(var(--glow), .7), rgba(245,243,238,.06) 40%, rgba(245,243,238,.04) 70%, rgba(var(--glow), .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  transition: background var(--dur-slow, .65s) ease;
}
#cmpBad:checked ~ .cmp-card::before{ background: linear-gradient(150deg, rgba(180,105,74,.75), rgba(245,243,238,.06) 40%, rgba(245,243,238,.04) 70%, rgba(180,105,74,.4)); }
.cmp-card::after{
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0; opacity: 0; transition: opacity var(--dur-base, .3s) ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--glow), .13), transparent 60%);
}
#cmpBad:checked ~ .cmp-card::after{ background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(180,105,74,.14), transparent 60%); }
.cmp-card:hover::after{ opacity: 1; }
.cmp-card > *{ position: relative; z-index: 1; }
.cmp-card{ box-shadow: 0 40px 70px -40px rgba(var(--glow), .45), 0 30px 60px -30px rgba(0,0,0,.7); }
#cmpBad:checked ~ .cmp-card{ box-shadow: 0 40px 70px -40px rgba(180,105,74,.4), 0 30px 60px -30px rgba(0,0,0,.7); }

/* Cabecera con línea que se "carga" */
.cmp-head{ border-bottom-width: 1px; border-bottom-color: rgba(245,243,238,.1) !important; position: relative; }
.cmp-head::after{ content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(to right, var(--accent), #C9E6BC, var(--accent)); transform: scaleX(0); transform-origin: left; }
#cmpBad:checked ~ .cmp-card .cmp-head::after{ background: linear-gradient(to right, var(--warn), #E39A7E, var(--warn)); }
.cmp.in .cmp-head::after{ animation: cmpLine 1s var(--ease, ease) .2s both; }
@keyframes cmpLine{ to{ transform: scaleX(1); } }

/* Filas: entrada escalonada (se repite al cambiar de modo) y marcas que "saltan" */
.cmp-row{ transition: background var(--dur-fast, .18s) ease, transform var(--dur-base, .3s) var(--ease, ease); }
.cmp:not(.in) .cmp-row{ opacity: 0; }
.cmp.in .cmp-row{ animation: cmpRow .6s var(--ease, ease) calc(var(--n, 0) * 80ms + 120ms) both; }
.cmp.in .cmp-mark{ animation: cmpMark .6s cubic-bezier(.3, 1.6, .5, 1) calc(var(--n, 0) * 80ms + 300ms) both; }
.cmp-row:nth-child(1){ --n: 0; } .cmp-row:nth-child(2){ --n: 1; } .cmp-row:nth-child(3){ --n: 2; } .cmp-row:nth-child(4){ --n: 3; } .cmp-row:nth-child(5){ --n: 4; }
@keyframes cmpRow{ from{ opacity: 0; transform: translate3d(-14px, 0, 0); } }
@keyframes cmpMark{ from{ transform: scale(0) rotate(-40deg); } }
.cmp-row:hover{ background: rgba(255,255,255,.03); transform: translateX(4px); }
.cmp-row:hover .cmp-mark{ transform: scale(1.12); }
.cmp-mark{ background: rgba(var(--glow), .2); transition: transform var(--dur-fast, .18s) ease; }

/* Frase final: brillo suave de izquierda a derecha en el modo bueno */
.cmp-summary-good{ background: linear-gradient(100deg, var(--accent-strong) 30%, #E4F4D9 50%, var(--accent-strong) 70%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: cmpShine 5s ease-in-out infinite; }
@keyframes cmpShine{ 0%, 55%{ background-position: 120% 0; } 100%{ background-position: -120% 0; } }

/* Columna izquierda: iconos con degradado y pequeño salto al pasar el ratón */
.cmp-benefit-icon{ background: linear-gradient(145deg, rgba(var(--glow), .3), rgba(var(--glow), .08)) !important; border: 1px solid rgba(var(--glow), .35); transition: transform var(--dur-base, .3s) var(--ease, ease), box-shadow var(--dur-base, .3s) ease; }
.cmp-benefit:hover .cmp-benefit-icon{ transform: translateY(-3px) rotate(-6deg); box-shadow: 0 10px 20px -10px rgba(var(--glow), .8); }
.cmp-benefit{ transition: transform var(--dur-base, .3s) var(--ease, ease); }

@media (prefers-reduced-motion: reduce){
  .cmp.in .cmp-row, .cmp.in .cmp-mark, .cmp.in .cmp-head::after, .cmp.in .cmp-toggle::before, .cmp-summary-good{ animation: none; }
  .cmp-head::after{ transform: scaleX(1); }
  .cmp-summary-good{ -webkit-text-fill-color: var(--accent-strong); background: none; }
}

/* Alcance global integrado bajo el texto de Fishgoo */
.presence--in{ max-width: none; margin: 28px 0 0; padding: 14px 18px; gap: 18px; justify-content: flex-start; border-radius: 18px; }
.presence--in .dglobe{ width: 112px; }
.presence--in .presence-copy h3{ font-size: 17px; margin: 4px 0 0; max-width: none; }
.presence--in .presence-copy .eyebrow{ margin-bottom: 0; }
@media (max-width: 640px){ .presence--in{ flex-direction: row; text-align: left; } .presence--in .dglobe{ width: 96px; } }

/* Llamada final: aurora suave y lenta detrás del contenido (solo transform, sin saltos) */
.cta-band::after{
  content: ""; position: absolute; z-index: 0; pointer-events: none; inset: -40%;
  background:
    radial-gradient(40% 45% at 30% 40%, rgba(var(--glow), .20), transparent 70%),
    radial-gradient(35% 40% at 72% 62%, rgba(var(--glow), .13), transparent 70%);
  animation: auroraDrift 18s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes auroraDrift{ 0%{ transform: translate3d(-4%, -2%, 0) scale(1); } 50%{ transform: translate3d(3%, 3%, 0) scale(1.08); } 100%{ transform: translate3d(5%, -3%, 0) scale(1.02); } }
@media (prefers-reduced-motion: reduce){ .cta-band::after{ animation: none; } }

/* ==========================================================
   COHERENCIA — un solo sistema para toda la página
   Radios: lg 26 (contenedores) · md 20 (tarjetas) · sm 14 (piezas interiores)
   Superficies: tarjeta = un único fondo y borde · contenedor = panel de cristal
   Hover de tarjeta: sube 4px, borde verde y sombra (igual en todas)
   Botones: 48px, sin brillo, mismo hover
   ========================================================== */
:root{
  --r-lg: 26px; --r-md: 20px; --r-sm: 14px;
  --card-bg: linear-gradient(165deg, #14150F, #0F100C);
  --card-line: rgba(245,243,238,.09);
  --card-line-hover: rgba(var(--glow), .5);
  --card-shadow-hover: 0 26px 44px -26px rgba(0,0,0,.75);
}

/* 1. Contenedores grandes: mismo radio y mismo borde fino */
.flow-panel, .cta-band, .cmp-card, .guide, .panel{ border-radius: var(--r-lg); }
.presence--in{ border-radius: var(--r-md); }
.flow-panel, .cta-band{ border: 1px solid var(--card-line); }

/* 2. Tarjetas: un solo fondo, un solo borde, un solo radio */
.mini-stat, .step, .fulfill-card, .dcase, .service-card, .case-card, .cmp-benefit-card{
  border-radius: var(--r-md);
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  box-shadow: none;
  transition: transform var(--dur-base, .3s) var(--ease, ease), border-color var(--dur-base, .3s) ease, box-shadow var(--dur-base, .3s) ease;
}
.fulfill-card--bad{ border-color: rgba(192,100,63,.45); }
.fulfill-card--good{ border-color: rgba(var(--glow), .55); }
.dcase{ background: #0B0B09; }

/* 3. Hover de tarjeta: idéntico en todas */
.mini-stat:hover, .step:hover, .dcase:hover, .dcase:focus-visible, .fulfill-card:hover, .service-card:hover, .case-card:hover{
  transform: translateY(-4px);
  border-color: var(--card-line-hover);
  box-shadow: var(--card-shadow-hover);
}
.fulfill-card--bad:hover{ border-color: rgba(192,100,63,.8); }

/* 4. Piezas interiores: mismo radio */
.gtab, .gfact, .lane, .sim, .sim-step, .vs2-cell{ border-radius: var(--r-sm); }
.gtab{ border-radius: var(--r-sm); }
.guide-body{ border-radius: var(--r-md); }
.fulfill-card-media, .fulfill-list-panel{ border-radius: var(--r-sm); }

/* 5. Iconos en chip: todos circulares y con la misma receta */
.mini-stat-icon, .step-icon, .cmp-benefit-icon, .gtab-ico{ border-radius: 50%; }
.gtab-ico{ background: rgba(var(--glow), .16); border: 1px solid rgba(var(--glow), .3); }

/* 6. Botones: 48px, sin brillo, mismo radio (píldora) y mismo hover */
.btn, .hero-actions .btn-hero{ min-height: 48px; padding: 12px 26px; font-size: 15px; font-weight: 600; letter-spacing: 0; box-shadow: none; }
.btn-primary, .btn-primary:hover, .hero-actions .btn-primary.btn-hero, .btn-glow, .btn-glow:hover{ box-shadow: none; }
.nav-inner a.btn-primary{ min-height: 44px; padding: 10px 22px; font-size: 15px; box-shadow: none; border-color: transparent; }
.nav-inner a.btn-primary:hover{ box-shadow: none; }

/* 7. Separadores entre secciones: ninguno (el ritmo lo marca el espacio y el fondo ambiental) */
.section-border-top{ border-top: 0; }

/* 8. Transiciones de los elementos interactivos pequeños: una sola curva y duración */
.faq-q, .link-arrow, .gtab, .dg-chips button, .cs-arrow, .cmp-toggle-opt{ transition-duration: var(--dur-fast, .18s); transition-timing-function: var(--ease, ease); }
.btn, .hero-actions .btn-hero{ height: 48px; min-height: 0; padding: 0 26px; }
.nav-inner a.btn-primary{ height: 44px; min-height: 0; padding: 0 22px; }
.presence--in{ background: var(--card-bg); border-color: var(--card-line); }
@media (max-width: 420px){ .btn{ height: auto; min-height: 48px; padding: 12px 20px; } }
/* Paneles grandes: misma receta de fondo (oscuro con un toque suave de verde) */
.flow-panel, .cta-band{
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(var(--glow), .12), transparent 55%),
    linear-gradient(160deg, #15160F, #0F100C);
}
.mini-stat-icon, .step-icon, .cmp-benefit-icon, .gtab-ico, .icon-badge{ border: 1px solid rgba(var(--glow), .3); background: rgba(var(--glow), .14); color: var(--accent-strong); }


/* ---------- Beneficios de trabajar conmigo (bento simple) ---------- */
.bn-bento{ display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-areas: "a b c" "a d d"; gap: 16px; }
.bn-a{ grid-area: a; } .bn-b{ grid-area: b; } .bn-c{ grid-area: c; } .bn-d{ grid-area: d; }
.bn-card{ position: relative; padding: 26px 28px; border-radius: var(--r-md); background: var(--card-bg); border: 1px solid var(--card-line); display: flex; flex-direction: column; overflow: hidden; transition: transform var(--dur-base,.3s) var(--ease,ease), border-color var(--dur-base,.3s) ease, box-shadow var(--dur-base,.3s) ease; }
.bn-card::before{ content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(110% 60% at 0% 0%, rgba(var(--glow), .12), transparent 60%); }
.bn-card--tint{ background: linear-gradient(160deg, rgba(var(--glow), .24), rgba(var(--glow), .07)); border-color: rgba(var(--glow), .4); }
.bn-card:hover{ transform: translateY(-4px); border-color: var(--card-line-hover); box-shadow: var(--card-shadow-hover); }
.bn-card > *{ position: relative; }
.bn-card h3{ font-size: 26px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 6px; }
.bn-card p{ margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-muted); }
.bn-tag{ font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); }
.bn-ico{ width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--glow), .16); border: 1px solid rgba(var(--glow), .35); color: var(--accent-strong); margin-bottom: 18px; }
.bn-ico svg{ width: 19px; height: 19px; }
.bn-big{ font-size: 64px; font-weight: 600; letter-spacing: -.045em; line-height: 1; margin: 6px 0 14px; font-variant-numeric: tabular-nums; }

/* A · escudo 3D */
.bn-stage{ position: relative; flex: 1; min-height: 230px; display: grid; place-items: center; perspective: 800px; margin: 8px 0 14px; }
.bn-shield{ position: relative; width: 132px; height: 154px; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }
.bn-shield svg{ position: relative; width: 100%; height: 100%; display: block; filter: drop-shadow(0 16px 24px rgba(0,0,0,.6)) drop-shadow(0 0 26px rgba(var(--glow), .4)); animation: shSway 6s ease-in-out infinite; }
@keyframes shSway{ 0%,100%{ transform: rotateY(-16deg) translateY(0); } 50%{ transform: rotateY(16deg) translateY(-6px); } }
.bn-scan{ animation: shScan 3.2s ease-in-out infinite; }
@keyframes shScan{ 0%{ transform: translateY(-30px); } 60%,100%{ transform: translateY(150px); } }
.bn-ring{ position: absolute; inset: -22px; border-radius: 50%; border: 1.5px solid rgba(var(--glow), .5); animation: shRing 3.2s ease-out infinite; }
.bn-ring--2{ animation-delay: 1.6s; }
@keyframes shRing{ 0%{ transform: scale(.6); opacity: .9; } 100%{ transform: scale(1.3); opacity: 0; } }

/* C · etapas del pedido: iconos que se encienden en orden, con un pulso de luz por la línea */
.bn-track{ position: relative; height: 84px; margin: 0 0 14px; }
.bn-rail{ position: absolute; left: 12.5%; right: 12.5%; top: 21px; height: 3px; border-radius: 3px; background: rgba(245,243,238,.12); overflow: hidden; }
.bn-pulse{ position: absolute; top: 0; bottom: 0; left: 0; width: 28%; border-radius: 3px; background: linear-gradient(to right, transparent, var(--accent-strong), transparent); transform: translateX(-100%); }
.bn-card.in .bn-pulse{ animation: bnPulse 7s linear infinite; }
@keyframes bnPulse{ 0%,2%{ transform: translateX(-100%); opacity: 0; } 4%{ opacity: 1; } 70%{ transform: translateX(360%); opacity: 1; } 76%,100%{ transform: translateX(360%); opacity: 0; } }
.bn-nodes{ list-style: none; margin: 0; padding: 0; position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.bn-nodes i{ display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto; border-radius: 50%; background: #14150F; border: 1.5px solid rgba(245,243,238,.18); color: var(--text-muted); }
.bn-nodes svg{ width: 21px; height: 21px; }
@keyframes nl0{ 0%,2%{ background: #14150F; border-color: rgba(245,243,238,.18); color: var(--text-muted); box-shadow: none; transform: scale(1); } 5%{ transform: scale(1.18); } 8%,90%{ background: var(--accent); border-color: var(--accent); color: #0E0E0C; box-shadow: 0 0 0 6px rgba(var(--glow), .2); transform: scale(1); } 98%,100%{ background: #14150F; border-color: rgba(245,243,238,.18); color: var(--text-muted); box-shadow: none; } }
@keyframes nl1{ 0%,24%{ background: #14150F; border-color: rgba(245,243,238,.18); color: var(--text-muted); box-shadow: none; transform: scale(1); } 27%{ transform: scale(1.18); } 30%,90%{ background: var(--accent); border-color: var(--accent); color: #0E0E0C; box-shadow: 0 0 0 6px rgba(var(--glow), .2); transform: scale(1); } 98%,100%{ background: #14150F; border-color: rgba(245,243,238,.18); color: var(--text-muted); box-shadow: none; } }
@keyframes nl2{ 0%,46%{ background: #14150F; border-color: rgba(245,243,238,.18); color: var(--text-muted); box-shadow: none; transform: scale(1); } 49%{ transform: scale(1.18); } 52%,90%{ background: var(--accent); border-color: var(--accent); color: #0E0E0C; box-shadow: 0 0 0 6px rgba(var(--glow), .2); transform: scale(1); } 98%,100%{ background: #14150F; border-color: rgba(245,243,238,.18); color: var(--text-muted); box-shadow: none; } }
@keyframes nl3{ 0%,68%{ background: #14150F; border-color: rgba(245,243,238,.18); color: var(--text-muted); box-shadow: none; transform: scale(1); } 71%{ transform: scale(1.18); } 74%,90%{ background: var(--accent); border-color: var(--accent); color: #0E0E0C; box-shadow: 0 0 0 6px rgba(var(--glow), .2); transform: scale(1); } 98%,100%{ background: #14150F; border-color: rgba(245,243,238,.18); color: var(--text-muted); box-shadow: none; } }
.bn-card.in .bn-nodes .n0 i{ animation: nl0 7s linear infinite; }
.bn-card.in .bn-nodes .n1 i{ animation: nl1 7s linear infinite; }
.bn-card.in .bn-nodes .n2 i{ animation: nl2 7s linear infinite; }
.bn-card.in .bn-nodes .n3 i{ animation: nl3 7s linear infinite; }

/* D · tú: 3 puntos · yo: ola de actividad */
.bn-d{ flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; }
.bn-split{ display: grid; gap: 14px; flex: 1; max-width: 460px; }
.bn-dots{ display: flex; flex-wrap: wrap; gap: 8px; }
.bn-dots i{ display: block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(var(--glow), .3); }
.bn-dots--you i{ width: 26px; height: 26px; border-color: #F5F3EE; background: #F5F3EE; transform: scale(.7); opacity: .4; }
.bn-card.in .bn-dots--you i{ animation: yDot 6s ease-in-out infinite; animation-delay: calc(var(--i) * 1s); }
@keyframes yDot{ 0%,6%{ transform: scale(.7); opacity: .4; } 12%,30%{ transform: scale(1.12); opacity: 1; box-shadow: 0 0 0 6px rgba(245,243,238,.15); } 40%,100%{ transform: scale(1); opacity: 1; box-shadow: none; } }
.bn-card.in .bn-dots--me i{ animation: meWave 2.4s ease-in-out infinite; animation-delay: calc(var(--i) * 90ms); }
@keyframes meWave{ 0%,100%{ transform: scale(.75); background: transparent; border-color: rgba(var(--glow), .3); } 45%{ transform: scale(1.18); background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(var(--glow), .18); } 70%{ transform: scale(1); background: rgba(var(--glow), .5); border-color: var(--accent); box-shadow: none; } }

.bn-note{ margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--text-faint); }
@media (max-width: 980px){
  .bn-bento{ grid-template-columns: 1fr 1fr; grid-template-areas: "a a" "b c" "d d"; }
  .bn-stage{ min-height: 190px; }
}
@media (max-width: 560px){
  .bn-bento{ grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d"; gap: 12px; }
  .bn-card{ padding: 22px 20px; } .bn-card h3{ font-size: 23px; }
  .bn-big{ font-size: 54px; }
  .bn-d{ flex-direction: column; align-items: flex-start; gap: 18px; }
  .bn-split{ max-width: none; width: 100%; }
}
@media (prefers-reduced-motion: reduce){
  .bn-card.in *, .bn-shield svg, .bn-scan, .bn-ring, .bn-pulse{ animation: none !important; }
  .bn-nodes i{ background: var(--accent); border-color: var(--accent); color: #0E0E0C; }
  .bn-dots i{ opacity: 1; transform: none; background: var(--accent); border-color: var(--accent); } .bn-dots--you i{ background: #F5F3EE; border-color: #F5F3EE; }
}

/* Guía de servicios en móvil: los tres servicios visibles a la vez, como recuadros */
@media (max-width: 900px){
  .guide-tabs{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; overflow: visible; scroll-snap-type: none; }
  .gtab{ flex: none; flex-direction: column; justify-content: flex-start; text-align: center; gap: 10px; padding: 14px 6px 12px; min-height: 112px; border: 1px solid rgba(245,243,238,.1); }
  .gtab-ico{ width: 38px; height: 38px; }
  .gtab b{ font-size: 13.5px; line-height: 1.25; }
  .gtab small{ display: none; }
  .gtab::after{ display: none; }
}
@media (min-width: 560px) and (max-width: 900px){ .gtab small{ display: block; font-size: 13px; } }

/* Globo dentro de la tarjeta de beneficios */
.bn-stage .dglobe{ width: min(100%, 270px); }
.bn-stage{ perspective: none; }
@media (max-width: 560px){ .bn-stage .dglobe{ width: 220px; } .bn-stage{ min-height: 0; } }

/* Ahorro: gráfica en movimiento constante */
.bn-b .bn-big{ margin: 14px 0 6px; }
.bn-save{ height: 62px; margin: 0 0 12px; }
.bn-save svg{ width: 100%; height: 100%; overflow: visible; display: block; }
.sv-g{ fill: none; stroke: rgba(245,243,238,.4); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sv-v{ fill: none; stroke: #C9E6BC; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 5px rgba(var(--glow), .8)); }
.sv-fill{ fill: url(#svG); }
.sv-dot{ fill: #F1FFE6; filter: drop-shadow(0 0 7px rgba(190,240,170,.95)); }
@media (prefers-reduced-motion: reduce){ .bn-save animate, .bn-save animateMotion{ display: none; } }

/* Control: el nombre de cada etapa aparece bajo su icono cuando se enciende */
.bn-c .bn-track{ height: 96px; margin: 18px 0 10px; }
.bn-names{ position: absolute; left: 0; right: 0; top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; pointer-events: none; }
.bn-names span{ grid-row: 1; font-size: 13.5px; font-weight: 600; letter-spacing: .02em; color: var(--accent-strong); opacity: 0; }
.bn-names .m0{ grid-column: 1; } .bn-names .m1{ grid-column: 2; } .bn-names .m2{ grid-column: 3; } .bn-names .m3{ grid-column: 4; }
@keyframes mn0{ 0%,4%{ opacity: 0; transform: translateY(6px); } 7%,25%{ opacity: 1; transform: none; } 27%,100%{ opacity: 0; transform: translateY(-4px); } }
@keyframes mn1{ 0%,26%{ opacity: 0; transform: translateY(6px); } 29%,47%{ opacity: 1; transform: none; } 49%,100%{ opacity: 0; transform: translateY(-4px); } }
@keyframes mn2{ 0%,48%{ opacity: 0; transform: translateY(6px); } 51%,69%{ opacity: 1; transform: none; } 71%,100%{ opacity: 0; transform: translateY(-4px); } }
@keyframes mn3{ 0%,70%{ opacity: 0; transform: translateY(6px); } 73%,90%{ opacity: 1; transform: none; } 92%,100%{ opacity: 0; transform: translateY(-4px); } }
.bn-card.in .bn-names .m0{ animation: mn0 7s linear infinite; }
.bn-card.in .bn-names .m1{ animation: mn1 7s linear infinite; }
.bn-card.in .bn-names .m2{ animation: mn2 7s linear infinite; }
.bn-card.in .bn-names .m3{ animation: mn3 7s linear infinite; }
@media (prefers-reduced-motion: reduce){ .bn-names span{ animation: none !important; opacity: 1; } }
.bn-b .bn-big{ font-size: 44px; margin: 12px 0 4px; }
@media (max-width: 560px){ .bn-b .bn-big{ font-size: 40px; } }

/* D · Tú: 3 pasos · Yo: lo demás, en movimiento */
.bn-flow{ flex: 1; max-width: 640px; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 0; }
.fl-you{ display: grid; justify-items: center; gap: 8px; position: relative; z-index: 1; }
.fl-you b{ width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #F5F3EE; color: #0E0E0C; font-size: 17px; font-weight: 700; box-shadow: 0 0 0 6px rgba(245,243,238,.08); }
.fl-you span{ font-size: 13.5px; font-weight: 600; white-space: nowrap; color: var(--text); }
.fl-me{ position: relative; height: 34px; margin: 0 -2px 26px; border-radius: 999px; background: rgba(var(--glow), .14); border: 1px solid rgba(var(--glow), .4); overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.fl-marq{ display: flex; width: max-content; height: 100%; align-items: center; }
.fl-marq > div{ display: flex; gap: 22px; padding-right: 22px; }
.fl-marq span{ white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--accent-strong); display: inline-flex; align-items: center; gap: 22px; }
.fl-marq span::after{ content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.bn-card.in .fl-marq{ animation: flMarq 14s linear infinite; }
.fl-me:nth-of-type(2n) .fl-marq{ animation-duration: 16s; }
@keyframes flMarq{ to{ transform: translateX(-50%); } }
.fl-you:nth-child(1) b, .fl-you:nth-child(3) b, .fl-you:nth-child(5) b{ animation: none; }
.bn-card.in .fl-you b{ animation: flPing 6s ease-in-out infinite; }
.bn-card.in .fl-you:nth-child(3) b{ animation-delay: 2s; } .bn-card.in .fl-you:nth-child(5) b{ animation-delay: 4s; }
@keyframes flPing{ 0%,60%,100%{ box-shadow: 0 0 0 6px rgba(245,243,238,.08); } 10%{ box-shadow: 0 0 0 12px rgba(245,243,238,.16); } }
@media (max-width: 560px){
  .bn-flow{ max-width: none; width: 100%; grid-template-columns: auto 1fr auto; row-gap: 14px; }
  .bn-flow .fl-you:nth-child(1){ grid-column: 1; } .bn-flow .fl-me:nth-child(2){ grid-column: 2 / 4; margin: 0 0 26px; }
  .bn-flow .fl-you:nth-child(3){ grid-column: 1; } .bn-flow .fl-me:nth-child(4){ grid-column: 2 / 4; margin: 0 0 26px; }
  .bn-flow .fl-you:nth-child(5){ grid-column: 1; }
}
@media (prefers-reduced-motion: reduce){ .bn-card.in .fl-marq, .bn-card.in .fl-you b{ animation: none; } }
.bn-d{ flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 20px; }
.bn-d .bn-flow{ max-width: none; width: 100%; }
.bn-d h3{ margin-bottom: 4px; }
.bn-d h3 br{ display: none; }

/* Guía de servicios en móvil: datos clave alineados en dos columnas */
@media (max-width: 900px){
  .gfacts{ gap: 10px; margin: 20px 0 18px; }
  .gfact{ display: grid; grid-template-columns: 132px 1fr; align-items: center; column-gap: 14px; padding: 12px 16px; }
  .gfact b{ font-size: 23px; white-space: nowrap; letter-spacing: -.02em; }
  .gfact span{ margin: 0; font-size: 14px; line-height: 1.3; }
}
@media (max-width: 380px){ .gfact{ grid-template-columns: 116px 1fr; } .gfact b{ font-size: 21px; } }
@media (max-width: 900px){
  .gfact{ grid-template-columns: max-content 1fr; column-gap: 16px; }
  .guide-body{ padding: 22px 16px; }
}

/* D · Tú → Yo → China: puntitos que viajan por las líneas */
.bn-hub{ display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: start; width: 100%; padding: 18px 20px 6px; border-radius: 16px; background: rgba(var(--glow), .07); border: 1px solid rgba(var(--glow), .14); }
.hb-node{ display: grid; justify-items: center; gap: 10px; }
.hb-node b{ font-size: 14px; font-weight: 500; color: var(--text-muted); }
.hb-node--me b{ color: var(--text); font-weight: 600; }
.hb-box{ width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: #14150F; border: 1px solid rgba(245,243,238,.14); color: var(--accent-strong); }
.hb-box svg{ width: 28px; height: 28px; }
.hb-box--me{ width: 84px; height: 84px; border-radius: 24px; border-color: rgba(var(--glow), .6); background: linear-gradient(145deg, #1D2417, #0C0E09); box-shadow: 0 0 0 8px rgba(var(--glow), .09), 0 0 34px rgba(var(--glow), .3); margin-top: -10px; }
.hb-box--me img{ width: 46px; height: auto; display: block; }
.hb-line{ position: relative; height: 3px; margin: 31px 10px 0; border-radius: 3px; background: rgba(var(--glow), .35); }
.hb-line i{ position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 8px rgba(var(--glow), .8); opacity: 0; }
.bn-card.in .hb-line i{ animation: hbMove 2.6s linear infinite; }
.hb-line i:nth-child(2){ animation-delay: .87s !important; } .hb-line i:nth-child(3){ animation-delay: 1.73s !important; }
.hb-b i{ animation-delay: .4s; } .hb-b i:nth-child(2){ animation-delay: 1.27s !important; } .hb-b i:nth-child(3){ animation-delay: 2.13s !important; }
@keyframes hbMove{ 0%{ left: 0; opacity: 0; } 12%{ opacity: 1; } 88%{ opacity: 1; } 100%{ left: calc(100% - 9px); opacity: 0; } }
.bn-d h3{ margin-bottom: 4px; }
@media (max-width: 560px){ .bn-hub{ padding: 14px 10px 4px; } .hb-box{ width: 54px; height: 54px; } .hb-box--me{ width: 70px; height: 70px; } .hb-box--me img{ width: 38px; } .hb-line{ margin: 26px 6px 0; } }
@media (prefers-reduced-motion: reduce){ .bn-card.in .hb-line i{ animation: none; opacity: 1; left: 45%; } }
/* Diagrama Tú → Yo → China: más compacto y con aire alrededor del logo */
.bn-hub{ padding: 22px 20px 14px; align-items: center; }
.hb-box{ width: 52px; height: 52px; border-radius: 15px; }
.hb-box svg{ width: 23px; height: 23px; }
.hb-box--me{ width: 68px; height: 68px; border-radius: 20px; margin-top: 0; box-shadow: 0 0 0 6px rgba(var(--glow), .09), 0 0 24px rgba(var(--glow), .25); }
.hb-box--me img{ width: 34px; }
.hb-line{ margin: 0 10px 24px; }
.hb-node{ gap: 8px; } .hb-node b{ font-size: 13px; }
@media (max-width: 560px){ .hb-box{ width: 46px; height: 46px; } .hb-box--me{ width: 60px; height: 60px; } .hb-box--me img{ width: 30px; } .hb-line{ margin: 0 6px 24px; } }

.bn-d{ gap: 16px; }
.bn-d h3{ margin: 2px 0 0; }

/* Beneficios en móvil: bento compacto (2 columnas, sin tarjetas enormes) */
@media (max-width: 560px){
  .bn-bento{ grid-template-columns: 1fr 1fr; grid-template-areas: "a b" "c c" "d d"; gap: 10px; }
  .bn-card{ padding: 14px 14px 16px; border-radius: 18px; }
  .bn-card h3{ font-size: 17px; line-height: 1.2; margin: 0; }
  .bn-card p{ font-size: 13.5px; }
  .bn-tag{ font-size: 11px; }
  .bn-a .bn-stage{ min-height: 0; margin: 4px 0 6px; flex: none; }
  .bn-stage .dglobe{ width: 100%; max-width: 150px; margin: 0 auto; }
  .bn-b .bn-big{ font-size: 34px; margin: 8px 0 2px; }
  .bn-save{ height: 44px; margin: 0 0 8px; }
  .bn-c .bn-track{ height: 76px; margin: 10px 0 4px; }
  .bn-c .bn-nodes i{ width: 40px; height: 40px; } .bn-c .bn-nodes svg{ width: 18px; height: 18px; }
  .bn-c .bn-rail{ top: 19px; } .bn-c .bn-names{ top: 48px; }
  .bn-d{ gap: 10px; }
  .bn-hub{ padding: 14px 10px 8px; }
}
@media (max-width: 560px){
  .hb-line{ margin: 0 3px 24px; }
  .hb-line i{ width: 8px; height: 8px; margin-top: -4px; }
  .hb-line i:nth-child(3){ display: none; }
  .bn-card.in .hb-line i:nth-child(1){ animation-delay: 0s !important; }
  .bn-card.in .hb-line i:nth-child(2){ animation-delay: 1.3s !important; }
  .bn-card.in .hb-b i:nth-child(1){ animation-delay: .65s !important; }
  .bn-card.in .hb-b i:nth-child(2){ animation-delay: 1.95s !important; }
  .bn-hub{ padding-left: 6px; padding-right: 6px; }
}

/* Hero: titular en peso 500 */
.hero h1{ font-weight: 500; }

/* "Tú · Yo · China": en China, yo me encargo de varias cosas a la vez (3 tareas apiladas) */
.hb-stack{ display: grid; gap: 7px; }
.hb-box--task{ width: 38px; height: 38px; border-radius: 12px; }
.hb-box--task svg{ width: 18px; height: 18px; }
/* El icono se enciende solo cuando le llega un punto: cada icono recibe uno cada 1,8 s, justo al terminar su rama
   (los puntos tardan 3,6 s y salen con .6 s de diferencia; el primero llega a los 3,6 s, de ahí el retraso). */
.bn-card.in .hb-box--task{ animation: hbHit 1.8s ease-out infinite; animation-delay: 3.6s; }
.bn-card.in .hb-box--task:nth-child(2){ animation-delay: 4.2s; }
.bn-card.in .hb-box--task:nth-child(3){ animation-delay: 4.8s; }
@keyframes hbHit{
  0%{ border-color: rgba(var(--glow), .85); box-shadow: 0 0 16px rgba(var(--glow), .6); color: #DFF0D8; transform: scale(1.08); }
  45%, 100%{ border-color: rgba(245,243,238,.14); box-shadow: none; color: var(--accent-strong); transform: none; }
}
@media (prefers-reduced-motion: reduce){ .bn-card.in .hb-box--task{ animation: none; } }
@media (max-width: 560px){ .hb-box--task{ width: 32px; height: 32px; border-radius: 10px; } .hb-box--task svg{ width: 16px; height: 16px; } .hb-stack{ gap: 6px; } }

/* Yo → China ramificado: una línea sale de mí y se abre en tres, una por tarea */
.bn-hub{ --tk: 38px; --tg: 7px; --fk: 30%; }
.hb-fork{
  position: relative; display: grid; grid-template-rows: repeat(3, var(--tk)); row-gap: var(--tg);
  margin: 0 8px 24px; align-self: center;
}
.hb-fork::before{ content: ""; position: absolute; left: var(--fk); top: calc(var(--tk) / 2); bottom: calc(var(--tk) / 2); width: 3px; margin-left: -1.5px; border-radius: 3px; background: rgba(var(--glow), .35); }
.fk-branch{ position: relative; align-self: center; height: 3px; border-radius: 3px; background: rgba(var(--glow), .35); }
.fk-1, .fk-3{ margin-left: var(--fk); }
.fk-branch i{ position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 8px rgba(var(--glow), .8); opacity: 0; }
.bn-card.in .fk-branch i{ animation: hbMove 2.6s linear infinite; }
.bn-card.in .fk-2 i{ animation-delay: .4s; }
.bn-card.in .fk-1 i{ animation-delay: 1.5s; }
.bn-card.in .fk-3 i{ animation-delay: 1.9s; }
@media (prefers-reduced-motion: reduce){ .bn-card.in .fk-branch i{ animation: none; opacity: 1; left: 45%; } }
@media (max-width: 560px){ .bn-hub{ --tk: 32px; --tg: 6px; } .hb-fork{ margin: 0 4px 24px; } }

/* Más fluido: del cliente a mí van pocos puntos (2); de mí a China salen más (6), cada uno por un camino distinto */
.hb-ghost{ visibility: hidden; }
.bn-card.in .bn-hub .hb-a i{ animation-duration: 3.6s; }
.bn-card.in .bn-hub .hb-a i:nth-child(1){ animation-delay: 0s !important; }
.bn-card.in .bn-hub .hb-a i:nth-child(2){ animation-delay: 1.8s !important; }
.bn-hub .hb-a i:nth-child(3){ display: none; }
.fk-dot{ position: absolute; z-index: 2; left: 0; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 8px rgba(var(--glow), .8); opacity: 0; }
.bn-card.in .fk-dot{ animation-duration: 3.6s; animation-iteration-count: infinite; animation-timing-function: linear; }
.bn-card.in .fk-dot.to1{ animation-name: fkTo1; } .bn-card.in .fk-dot.to2{ animation-name: fkTo2; } .bn-card.in .fk-dot.to3{ animation-name: fkTo3; }
.bn-card.in .fk-dot:nth-of-type(1){ animation-delay: 0s; }   .bn-card.in .fk-dot:nth-of-type(2){ animation-delay: .6s; }
.bn-card.in .fk-dot:nth-of-type(3){ animation-delay: 1.2s; } .bn-card.in .fk-dot:nth-of-type(4){ animation-delay: 1.8s; }
.bn-card.in .fk-dot:nth-of-type(5){ animation-delay: 2.4s; } .bn-card.in .fk-dot:nth-of-type(6){ animation-delay: 3s; }
/* tronco hasta la bifurcación (28 %), tramo vertical (hasta 42 %) y rama hasta el icono */
@keyframes fkTo1{ 0%{ left: 0; top: 50%; opacity: 0; } 6%{ opacity: 1; } 28%{ left: var(--fk); top: 50%; } 42%{ left: var(--fk); top: calc(var(--tk) / 2); } 94%{ opacity: 1; } 100%{ left: 100%; top: calc(var(--tk) / 2); opacity: 0; } }
@keyframes fkTo2{ 0%{ left: 0; top: 50%; opacity: 0; } 6%{ opacity: 1; } 28%{ left: var(--fk); top: 50%; } 94%{ opacity: 1; } 100%{ left: 100%; top: 50%; opacity: 0; } }
@keyframes fkTo3{ 0%{ left: 0; top: 50%; opacity: 0; } 6%{ opacity: 1; } 28%{ left: var(--fk); top: 50%; } 42%{ left: var(--fk); top: calc(100% - var(--tk) / 2); } 94%{ opacity: 1; } 100%{ left: 100%; top: calc(100% - var(--tk) / 2); opacity: 0; } }
@media (prefers-reduced-motion: reduce){ .bn-card.in .fk-dot{ animation: none; opacity: 0; } }

/* ---------- Servicios: grid tipo Pinterest ---------- */
.pins{ display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 72px; gap: 16px; }
.pin{ position: relative; display: block; border-radius: 22px; overflow: hidden; background: #151815; border: 1px solid rgba(245,243,238,.08); color: var(--text); text-decoration: none; isolation: isolate; }
.pin img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); z-index: -2; }
.pin::after{ content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,10,8,0) 38%, rgba(8,10,8,.55) 66%, rgba(8,10,8,.92) 100%); }
.pin:hover img{ transform: scale(1.06); }
.pin-text{ position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 20px 22px; }
.pin-text h4{ margin: 0 0 6px; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; }
.pin-text p{ margin: 0; font-size: 14px; line-height: 1.45; color: rgba(245,243,238,.78); }
.pin-plain{ background: radial-gradient(120% 90% at 20% 0%, rgba(var(--glow), .22), transparent 60%), #121512; }
.pin-plain::after{ display: none; }
.pin-big{ position: absolute; top: 14px; left: 22px; font-size: 120px; line-height: 1; font-family: var(--serif, serif); color: rgba(var(--glow), .5); }
.pin-cta{ background: var(--accent-strong, #8fbf7f); border-color: transparent; color: #0d120d; }
.pin-cta::after{ display: none; }
.pin-cta .pin-text{ top: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.pin-cta h4{ font-size: 26px; }
.pin-cta p{ color: rgba(13,18,13,.75); }
.pin-btn{ margin-top: 16px; align-self: flex-start; padding: 9px 16px; border-radius: 999px; background: #0d120d; color: #f5f3ee; font-weight: 600; font-size: 14px; }
/* De 4 columnas (escritorio) a 2, dejando alturas distintas por tarjeta (como en escritorio)
   en vez de una cuadrícula simétrica: cada tarjeta ocupa su propio número de filas (nth-child,
   en el orden en que aparecen en el HTML) y grid-auto-flow:dense recoloca el hueco siguiente. */
@media (max-width: 1100px){
  .pins{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 90px; grid-auto-flow: dense; }
  .pin{ grid-column: auto !important; }
  .pins > :nth-child(1){ grid-row: span 4 !important; }
  .pins > :nth-child(2){ grid-row: span 3 !important; }
  .pins > :nth-child(3){ grid-row: span 3 !important; }
  .pins > :nth-child(4){ grid-row: span 4 !important; }
  .pins > :nth-child(5){ grid-row: span 3 !important; }
  .pins > :nth-child(6){ grid-row: span 4 !important; }
  .pins > :nth-child(7){ grid-row: span 3 !important; }
  .pins > :nth-child(8){ grid-row: span 3 !important; }
  .pins > :nth-child(9){ grid-row: span 4 !important; }
  .pins > :nth-child(10){ grid-row: span 3 !important; }
  .pins > :nth-child(11){ grid-row: span 3 !important; }
  .pins > :nth-child(12){ grid-row: span 4 !important; }
  .pins > :nth-child(13){ grid-row: span 4 !important; }
}
@media (max-width: 760px){
  .pins{ gap: 12px; grid-auto-rows: 78px; }
  .pin{ border-radius: 18px; }
  .pin-text{ padding: 14px; }
  .pin-text h4{ font-size: 16px; }
  .pin-text p{ font-size: 13px; }
  /* En móvil la descripción está oculta: solo se ve al pulsar la tarjeta. */
  .pin-text p{ margin: 8px 0 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s ease, opacity .25s ease, margin .3s ease; }
  .pin.open .pin-text p, .pin-cta .pin-text p{ max-height: 140px; opacity: 1; }
  .pin:not(.pin-cta){ cursor: pointer; }
  .pin-text h4::after{ content: "+"; float: right; opacity: .6; font-weight: 400; margin-left: 10px; }
  .pin.open .pin-text h4::after{ content: "–"; }
  .pin-cta .pin-text h4::after{ content: none; }
}
@media (max-width: 480px){
  .pins{ grid-auto-rows: 64px; gap: 10px; }
  .pin-text{ padding: 12px; }
  .pin-text h4{ font-size: 14px; }
  .pin-text p{ font-size: 12px; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
}

/* El CTA final (formulario) vive en inline <style id="cta-css"> de inicio.html:
   así su CSS y su HTML siempre van en el mismo documento y nunca se desincronizan por caché. */
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
#ctaForm{ scroll-margin-top: 120px; }
section[id]{ scroll-margin-top: 90px; }
