/* SmartGrow, sitio de varias páginas. Brand Book: café y blanco de base, verde principal, neón y naranja de acento,
   Quicksand, íconos rellenos y redondeados dentro de formas de la paleta, fotos reales sobre círculos de marca.
   Todo visual: cada sección se entiende por su imagen; el texto acompaña. */
:root {
  --verde: #00843F; --verde-osc: #006B33; --verde-claro: #E2F2E8;
  --neon: #C6FF33; --naranja: #FFAE37;
  --cafe: #403A39; --cafe-osc: #2F2A29; --cafe-medio: #6B5F58; --cafe-claro: #A38F80;
  --arena: #F4F0EB; --arena-2: #E9E2DA; --blanco: #FFFFFF; --linea: #DDD5CC;
  --tinta: #403A39; --suave: #6B5F58;
  --f: "Quicksand", "Avenir Next", "Nunito", system-ui, sans-serif;
  --h1: clamp(38px, 4.8vw, 62px);
  --h2: clamp(30px, 3.4vw, 46px);
  --lead: clamp(17px, 1.4vw, 20px);
  --max: 1200px; --gut: 24px; --sec: 112px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--blanco); color: var(--tinta); font: 500 17px/1.6 var(--f); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: var(--h1); line-height: 1.06; }
h2 { font-size: var(--h2); line-height: 1.1; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin-inline: auto;
  padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.sec { padding-block: var(--sec); }
.etiqueta { font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cafe-medio); }
.lead { font-size: var(--lead); color: var(--suave); line-height: 1.6; }
.centro { text-align: center; display: grid; justify-items: center; gap: 16px; }
.centro .lead { max-width: 640px; }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--neon); color: var(--cafe); }
.ms { width: 1em; height: 1em; flex: none; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 1.5em; border-radius: 999px;
  font: 700 16px/1 var(--f); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: transform .18s var(--ease), background-color .18s ease, color .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn .ms { width: 20px; height: 20px; }
.btn-cafe { background: var(--cafe); color: #fff; } .btn-cafe:hover { background: var(--cafe-osc); }
.btn-verde { background: var(--verde); color: #fff; } .btn-verde:hover { background: var(--verde-osc); }
.btn-claro { background: #fff; color: var(--cafe); } .btn-claro:hover { background: var(--arena); }
.btn-neon { background: var(--neon); color: var(--cafe); } .btn-neon:hover { background: #fff; }
.btn-borde { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); } .btn-borde:hover { background: rgba(255,255,255,.12); }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; }

/* Íconos de marca dentro de formas de la paleta */
.ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.ico .ms { width: 30px; height: 30px; }
.i-verde { background: var(--verde); color: #fff; }
.i-naranja { background: var(--naranja); color: var(--cafe); }
.i-neon { background: var(--neon); color: var(--cafe); }
.i-cafe { background: var(--cafe); color: var(--neon); }
.i-arena { background: var(--arena-2); color: var(--cafe); }
.i-blanco { background: #fff; color: var(--verde); }

/* Elementos gráficos */
.circulo { position: absolute; border-radius: 50%; aspect-ratio: 1; }
.puntos { position: absolute; aspect-ratio: 1; background-image: radial-gradient(circle, currentColor 2.2px, transparent 2.8px); background-size: 18px 18px; }
.mapa rect { transition: opacity .3s ease; }

/* Entrada: el logo se dibuja trazo por trazo */
.intro { display: none; position: fixed; inset: 0; z-index: 100; place-items: center; background: var(--cafe-osc); --fondo-logo: var(--cafe-osc); cursor: pointer; transition: opacity .7s ease, visibility .7s; }
.con-intro .intro { display: grid; }
.intro.sale { opacity: 0; visibility: hidden; }
.intro .logo-svg { width: min(460px, 70vw); height: auto; overflow: visible; }
.intro path { fill-opacity: 0; stroke: #fff; stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: trazo 1.05s cubic-bezier(.45, 0, .2, 1) forwards, relleno .55s ease forwards;
  animation-delay: calc(var(--i) * 65ms), calc(1.05s + var(--i) * 45ms); }
.intro path.esp { stroke: var(--neon); }
.intro path.hue { stroke: rgba(255,255,255,.7); }
.intro .saltar { position: absolute; bottom: max(28px, env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); color: #CFC6BE; font-size: 14px; font-weight: 600; letter-spacing: .08em; opacity: 0; animation: aparece .4s 1.2s forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@keyframes relleno { to { fill-opacity: 1; stroke-opacity: 0; } }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
.con-intro body { overflow: hidden; }

/* Un toque adelanta la entrada: el logo se completa de golpe y se desvanece */
.intro.saltado path { animation: none; fill-opacity: 1; stroke-opacity: 0; stroke-dashoffset: 0; }

/* Navegación en pastillas: enlaces a páginas */
.nav { position: fixed; z-index: 60; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 16px); pointer-events: none; }
.nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pastilla { pointer-events: auto; background: #fff; border-radius: 999px; box-shadow: 0 6px 24px -8px rgba(47,42,41,.35); }
.logo-pastilla { display: flex; align-items: center; padding: 10px 22px; text-decoration: none; }
.logo-pastilla .logo-svg { height: 40px; width: auto; }
.menu { display: flex; align-items: center; gap: 4px; padding: 6px; }
.menu a { text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 16px; border-radius: 999px; color: var(--cafe); transition: background-color .15s ease; }
.menu a:hover { background: var(--arena); }
.menu a[aria-current="page"] { background: var(--verde-claro); color: var(--verde-osc); }
.menu a.btn { min-height: 46px; padding: 0 1.3em; margin-left: 6px; color: #fff; background: var(--cafe); }
.menu a.btn:hover { background: var(--cafe-osc); }
.menu-btn { display: none; pointer-events: auto; width: 52px; height: 52px; border: 0; border-radius: 50%; background: #fff; color: var(--cafe); cursor: pointer; align-items: center; justify-content: center; box-shadow: 0 6px 24px -8px rgba(47,42,41,.35); }
.menu-btn .ms { width: 26px; height: 26px; }

/* Héroe de Inicio */
.heroe { position: relative; min-height: min(100svh, 920px); display: grid; align-items: center; color: #fff; overflow: hidden; background: var(--cafe-osc); }
.heroe > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.heroe::after { content: ""; position: absolute; inset: 0; background: rgba(47, 42, 41, .76); }
.heroe .wrap { position: relative; z-index: 1; padding-block: 130px 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.heroe-txt { display: grid; gap: 22px; justify-items: start; }
.heroe .etiqueta { color: var(--neon); }
.heroe .lead { color: #F1ECE6; max-width: 540px; }

/* La escena: el agricultor y el mensaje que sale de su celular */
.escena { position: relative; width: 100%; max-width: 580px; aspect-ratio: 1 / 1.12; justify-self: end; }
.escena .c1 { width: 54%; left: 3%; top: 12%; background: var(--verde); }
.escena .c2 { width: 12%; left: 48%; top: 62%; background: var(--neon); }
.escena .puntos { right: 4%; bottom: 6%; width: 28%; color: rgba(198,255,51,.55); }
.escena .persona { position: absolute; top: 0; left: 10%; height: 100%; width: auto; max-width: none; }
.onda { position: absolute; left: 40.9%; top: 23.7%; width: 16%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--neon); transform: translate(-50%, -50%) scale(.3); opacity: 0; pointer-events: none; }
.hilo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hilo path { fill: none; stroke: var(--neon); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 9; vector-effect: non-scaling-stroke; }
.hilo circle { fill: var(--neon); }
.mensaje { position: absolute; left: 53%; top: 2%; width: 47%; min-width: 0; background: #fff; color: var(--cafe); border-radius: 22px 22px 22px 6px; padding: 12px; display: grid; gap: 10px; box-shadow: 0 26px 50px -24px rgba(0,0,0,.65); transform-origin: 0% 100%; font-size: 14px; line-height: 1.35; }
.msg-de { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.msg-de .ms { width: 20px; height: 20px; color: var(--verde); }
.msg-de span { margin-left: auto; color: var(--suave); font-weight: 600; font-size: 12px; }
.msg-mapa { position: relative; background: var(--arena); border-radius: 14px; padding: 10px 12px; }
.msg-mapa .mapa { width: 100%; height: auto; }
.msg-pin { position: absolute; left: 20%; top: 38%; background: var(--naranja); color: var(--cafe); font-weight: 700; font-size: 12px; padding: 4px 9px; border-radius: 999px; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.msg-pin .ms { width: 14px; height: 14px; }
.msg-txt b { display: block; font-size: 17px; letter-spacing: -.01em; }
.msg-txt span { color: var(--suave); }
.msg-hora { justify-self: end; font-size: 11px; color: var(--suave); margin-top: -6px; }
.escribiendo { position: absolute; left: 53%; top: 22%; background: #fff; border-radius: 18px 18px 18px 6px; padding: 12px 16px; display: flex; gap: 6px; opacity: 0; }
.escribiendo i { width: 8px; height: 8px; border-radius: 50%; background: var(--cafe-claro); animation: punto 1s ease-in-out infinite; }
.escribiendo i:nth-child(2) { animation-delay: .15s; } .escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes punto { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }
/* Secuencia: solo corre cuando el navegador confirmó que anima (clase .listo); si no, el mensaje se ve quieto */
.espera:not(.listo) .mensaje, .espera:not(.listo) .hilo, .espera:not(.listo) .escribiendo { opacity: 0; }
.listo .onda { animation: onda 1.6s ease-out .1s 2; }
.listo .onda.o2 { animation-delay: .7s; }
.listo .escribiendo { animation: escribe 1.3s ease .5s both; }
.listo .hilo path { animation: hilo 1s ease .4s both; }
.listo .mensaje { animation: sale-cel .8s var(--ease) 1.7s both; }
@keyframes onda { 0% { opacity: .95; transform: translate(-50%, -50%) scale(.3); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.7); } }
@keyframes escribe { 0% { opacity: 0; transform: scale(.6); } 20%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(.9); } }
@keyframes hilo { from { opacity: 0; } to { opacity: 1; } }
@keyframes sale-cel { from { opacity: 0; transform: translate(-40px, 60px) scale(.35); } to { opacity: 1; transform: none; } }

/* Cabecera de las demás páginas */
.cab-pag { position: relative; overflow: hidden; background: var(--cafe-osc); color: #fff; }
.cab-pag .wrap { position: relative; z-index: 1; padding-block: 150px 80px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.cab-pag .etiqueta { color: var(--neon); }
.cab-pag .lead { color: #E9DFD6; max-width: 560px; }
.cab-txt { display: grid; gap: 20px; justify-items: start; }

/* Inicio: cómo funciona en tres imágenes */
.como { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 56px; }
.flecha-paso { color: var(--cafe-claro); }
.flecha-paso .ms { width: 40px; height: 40px; }
.tarjeta-vis { display: grid; gap: 14px; }
.vis { position: relative; aspect-ratio: 1; border-radius: 28px; background: var(--arena); overflow: hidden; display: grid; place-items: center; }
.vis .chip-ico { position: absolute; }
.vis .chip-ico .ico { width: 52px; height: 52px; border-radius: 16px; box-shadow: 0 12px 24px -12px rgba(47,42,41,.45); }
.vis .chip-ico .ms { width: 28px; height: 28px; }
.vis-sensor img { height: 84%; width: auto; }
.vis-mapa .mapa { width: 70%; height: auto; }
.vis-mapa .msg-pin { left: 22%; top: 36%; font-size: 14px; padding: 6px 12px; }
.vis-cel .mini-cel { width: 58%; background: var(--cafe); border-radius: 30px; padding: 8px; transform: rotate(-4deg); box-shadow: 0 20px 40px -20px rgba(47,42,41,.6); }
.mini-pant { background: #fff; color: var(--cafe); border-radius: 23px; padding: 14px 10px 18px; display: grid; gap: 8px; }
.mini-pant .barra-cel { height: 6px; width: 40%; border-radius: 999px; background: var(--arena-2); justify-self: center; margin-bottom: 4px; }
.mini-burbuja { background: var(--verde-claro); border-radius: 14px 14px 14px 4px; padding: 10px; display: grid; gap: 6px; font-size: 13px; line-height: 1.3; }
.mini-burbuja b { font-size: 15px; }
.mini-burbuja .mini-mapa { background: #fff; border-radius: 10px; padding: 6px; }
.paso-pie { display: flex; align-items: baseline; gap: 12px; }
.paso-pie b { font-size: 26px; letter-spacing: -.02em; }
.paso-pie span { color: var(--suave); }

/* Así se siente */
.sentires { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.sentires li { display: grid; gap: 10px; align-content: start; }
.sentires figure { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--arena); margin-bottom: 6px; }
.sentires figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.sentires li:hover figure img { transform: scale(1.04); }
.sentires .ico { margin-top: -40px; margin-left: 16px; position: relative; box-shadow: 0 0 0 5px #fff; }
.sentires h3 { font-size: 24px; }
.sentires p { color: var(--suave); }

/* Resultado con los mapas reales */
.resultado { background: var(--cafe); color: #fff; }
.res-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.res-txt { display: grid; gap: 18px; justify-items: start; }
.res-txt .etiqueta { color: var(--neon); }
.res-txt p { color: #E9DFD6; font-size: var(--lead); }
.cifras-res { display: flex; align-items: center; gap: 18px; font-weight: 700; }
.cifras-res b { font-size: clamp(56px, 7vw, 92px); letter-spacing: -.05em; line-height: 1; }
.cifras-res .antes { color: var(--naranja); }
.cifras-res .despues { color: var(--neon); }
.cifras-res .ms { width: 44px; height: 44px; color: var(--cafe-claro); }
.mapas-res { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mapas-res figure { background: rgba(255,255,255,.08); border-radius: 24px; padding: 20px; display: grid; gap: 12px; }
.mapas-res figcaption { display: flex; justify-content: space-between; font-weight: 700; }
.mapas-res figcaption span { color: #CFC6BE; font-weight: 600; }

/* Llamado */
.cta { padding-block: var(--sec); }
.cta-caja { position: relative; overflow: hidden; background: var(--verde); color: #fff; border-radius: 36px; padding: 72px 56px; display: grid; grid-template-columns: 1.3fr auto; gap: 32px; align-items: center; }
.cta-caja .c1 { width: 240px; right: -110px; top: -150px; background: var(--neon); opacity: .9; }
.cta-caja .puntos { width: 150px; right: 24px; bottom: -60px; color: rgba(255,255,255,.3); }
.cta-caja > div { position: relative; z-index: 1; }
.cta-caja h2 { max-width: 18ch; }
.cta-caja p { color: #fff; margin-top: 12px; font-size: var(--lead); }

/* Alianzas */
.alianzas { padding-block: 72px; border-top: 1px solid var(--linea); }
.alianzas .etiqueta { text-align: center; margin-bottom: 40px; }
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: center; justify-items: center; }
.logos li { display: grid; justify-items: center; gap: 6px; text-align: center; color: #6F6662; }
.logos img { height: 44px; width: auto; }
.logos b { font-size: 24px; line-height: 1.1; letter-spacing: -.02em; }
.logos small { font-size: 14px; }

/* El agente: fórmula */
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.paso { background: var(--arena); border-radius: 28px; padding: 28px; display: grid; gap: 14px; align-content: start; }
.paso .tope { display: flex; justify-content: space-between; align-items: center; }
.paso .num { font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.paso h3 { font-size: 18px; letter-spacing: .14em; text-transform: uppercase; }
.paso p { color: var(--suave); }
.avance { height: 10px; border-radius: 999px; background: var(--arena-2); overflow: hidden; }
.avance i { display: block; height: 100%; border-radius: 999px; background: var(--verde); }
.cita { background: #fff; border-radius: 18px; padding: 14px 16px; font-weight: 700; line-height: 1.4; display: flex; gap: 10px; align-items: flex-start; }
.cita .ms { width: 22px; height: 22px; color: var(--verde); margin-top: 1px; }

/* El agente: conexiones */
.hub { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; justify-self: center; }
.hub-lineas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-lineas line { stroke: var(--cafe-claro); stroke-width: 2; stroke-dasharray: 4 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hub-centro { position: absolute; left: 50%; top: 50%; width: 32%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: var(--cafe); display: grid; place-items: center; align-content: center; gap: 6px; color: #fff; text-align: center; box-shadow: 0 0 0 10px rgba(255,255,255,.06); }
.hub-centro .iso-svg { width: 42%; height: auto; }
.hub-centro span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nodo { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; width: 120px; text-align: center; }
.nodo .ico { width: 64px; height: 64px; border-radius: 20px; transition: transform .25s var(--ease); }
.nodo .ico .ms { width: 34px; height: 34px; }
.nodo:hover .ico { transform: translateY(-4px) scale(1.05); }
.nodo b { font-size: 15px; line-height: 1.25; }
.cab-pag .nodo b { color: #fff; }
.cab-pag .hub-lineas line { stroke: rgba(255,255,255,.35); }

/* El agente: sin y con */
.comparacion { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.panel { border-radius: 28px; padding: 36px; display: grid; gap: 22px; align-content: start; }
.panel h3 { font-size: 24px; }
.panel ul { display: grid; gap: 16px; }
.panel li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; font-weight: 600; font-size: 18px; line-height: 1.35; }
.panel-sin { background: var(--arena); }
.panel-con { background: var(--verde); color: #fff; }

/* El agente: un día */
.dia { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.dia-txt { display: grid; gap: 20px; justify-items: start; }
.linea-tiempo { display: grid; gap: 12px; width: 100%; }
.linea-tiempo li { display: grid; grid-template-columns: 56px 48px 1fr; gap: 14px; align-items: center; background: var(--arena); border-radius: 18px; padding: 10px 18px 10px 16px; }
.linea-tiempo time { font-weight: 700; font-variant-numeric: tabular-nums; }
.linea-tiempo .ico { width: 48px; height: 48px; border-radius: 14px; }
.linea-tiempo .ico .ms { width: 26px; height: 26px; }
.linea-tiempo p { font-weight: 600; line-height: 1.4; }
.cero { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cero b { font-size: 56px; line-height: 1; letter-spacing: -.04em; color: var(--verde); }
.cero span { color: var(--suave); font-weight: 600; }
.comp-cel { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1 / 1.08; justify-self: center; display: grid; place-items: center; }
.comp-cel .c1 { width: 86%; left: 7%; top: 7%; background: var(--neon); }
.comp-cel .puntos { right: 0; bottom: 4%; width: 28%; color: var(--verde); }
.comp-cel .mini-cel { position: relative; width: 56%; background: var(--cafe); border-radius: 36px; padding: 10px; box-shadow: 0 30px 60px -28px rgba(47,42,41,.6); }
.comp-cel .mini-pant { border-radius: 28px; gap: 10px; padding: 16px 12px 20px; }
.comp-cel .sensor { position: absolute; left: -2%; bottom: -2%; width: 30%; }

/* Tableta real con la app del agente en pantalla */
.comp-tab .tableta { container-type: inline-size; position: relative; width: 66%; aspect-ratio: 864 / 1181; transform: rotate(-3deg); filter: drop-shadow(0 34px 40px rgba(47,42,41,.35)); }
.tableta > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.comp-tab:has(.sensor) .tableta { transform: translateX(9%) rotate(-3deg); }
.comp-tab .sensor { width: 24%; left: -3%; bottom: -3%; z-index: 2; }
.pantalla { position: absolute; left: 4.63%; top: 3.98%; right: 4.28%; bottom: 3.9%; border-radius: 2.6% / 1.9%; overflow: hidden; background: var(--arena);
  color: var(--cafe); display: flex; flex-direction: column; gap: 1.2cqw; padding: 2cqw 3.6cqw 2.2cqw; font-size: 12px; font-size: 3.3cqw; line-height: 1.28; }
.tab-estado { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 2.9cqw; padding: 0 1cqw; }
.tab-bat { width: 6cqw; height: 3cqw; border-radius: .8cqw; border: .45cqw solid var(--cafe); padding: .35cqw; display: block; }
.tab-bat i { display: block; width: 70%; height: 100%; background: var(--cafe); border-radius: .3cqw; }
.tab-cab { display: flex; align-items: center; gap: 3cqw; background: var(--cafe); color: #fff; border-radius: 4cqw; padding: 2.4cqw 3.6cqw; }
.tab-logo { width: 9cqw; height: 9cqw; border-radius: 2.6cqw; background: rgba(255,255,255,.1); display: grid; place-items: center; flex: none; }
.tab-logo .iso-svg { width: 62%; height: auto; }
.tab-cab b { display: block; font-size: 5cqw; letter-spacing: -.02em; }
.tab-cab small { font-size: 3cqw; color: #E9DFD6; }
.tab-aviso { background: #fff; border-radius: 4cqw; padding: 2.8cqw 3.6cqw; display: grid; gap: 1.6cqw; }
.tab-urgente { box-shadow: inset 0 0 0 .6cqw var(--naranja); }
.tab-tit { display: flex; align-items: center; gap: 2.4cqw; font-weight: 700; font-size: 4.1cqw; }
.tab-chip { border-radius: 999px; padding: .8cqw 2.6cqw; font-size: 3cqw; font-weight: 700; white-space: nowrap; }
.ch-naranja { background: var(--naranja); } .ch-neon { background: var(--neon); } .ch-verde { background: var(--verde); color: #fff; }
.tab-mapa { position: relative; background: var(--arena); border-radius: 3cqw; padding: 2cqw; }
.tab-mapa .mapa { width: 45%; height: auto; margin: 0 auto; }
.tab-mapa .msg-pin { left: 30%; top: 36%; font-size: 3cqw; padding: .8cqw 2.2cqw; }
.tab-mapa .msg-pin .ms { width: 3.4cqw; height: 3.4cqw; }
.tab-txt { color: var(--suave); }
/* iPad chico dentro de las tarjetas cuadradas: un solo aviso, letra más grande */
.vis-tab .tableta { container-type: inline-size; position: relative; height: 88%; width: auto; aspect-ratio: 864 / 1181; transform: rotate(-3deg); filter: drop-shadow(0 22px 26px rgba(47,42,41,.32)); }
.tm { gap: 2.4cqw; padding: 3.4cqw 4.2cqw; font-size: 4.6cqw; justify-content: center; }
.tm .tab-cab { padding: 3cqw 4cqw; border-radius: 5cqw; }
.tm .tab-logo { width: 12cqw; height: 12cqw; border-radius: 3.4cqw; }
.tm .tab-cab b { font-size: 6.4cqw; }
.tm .tab-cab small { font-size: 4cqw; }
.tm .tab-aviso { border-radius: 5cqw; padding: 3.4cqw 4cqw; gap: 2.2cqw; }
.tm .tab-chip { font-size: 4.2cqw; padding: 1cqw 3.4cqw; }
.tm-tit { font-size: 6.6cqw; line-height: 1.15; letter-spacing: -.02em; }
.tm .tab-mapa .mapa { width: 52%; }
.tm .tab-pie { font-size: 4.2cqw; gap: 2cqw; }
.tm .tab-pie .ms { width: 5cqw; height: 5cqw; }
.tm-ok { display: flex; align-items: center; gap: 3cqw; background: #fff; border-radius: 5cqw; padding: 3cqw 4cqw; font-weight: 700; font-size: 4.4cqw; }
.tab-nuevo { box-shadow: inset 0 0 0 .8cqw var(--neon); }
.tm-dato { display: flex; align-items: baseline; gap: 2.4cqw; background: var(--verde-claro); border-radius: 4cqw; padding: 4cqw; color: var(--verde-osc); }
.tm-dato .ms { width: 8cqw; height: 8cqw; align-self: center; }
.tm-dato b { font-size: 13cqw; line-height: 1; letter-spacing: -.04em; }
.tm-dato small { font-size: 4.6cqw; font-weight: 700; }
.tab-pie { display: flex; align-items: center; gap: 1.6cqw; color: var(--verde); font-weight: 700; font-size: 3cqw; }
.tab-pie .ms { width: 3.6cqw; height: 3.6cqw; }

/* Sensores */
.comp-sensor { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; justify-self: center; }
.comp-sensor .c1 { inset: 6%; background: var(--verde); }
.comp-sensor .puntos { left: 0; bottom: 0; width: 32%; color: var(--naranja); }
.comp-sensor .sensor { position: absolute; left: 50%; bottom: 2%; width: 58%; transform: translateX(-50%); }
.dona { position: absolute; right: 0; top: 4%; width: 32%; aspect-ratio: 1; background: #fff; color: var(--cafe); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 20px 40px -22px rgba(0,0,0,.5); }
.dona svg { position: absolute; inset: 9%; width: 82%; height: 82%; transform: rotate(-90deg); }
.dona div { text-align: center; line-height: 1.1; }
.dona b { display: block; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.03em; }
.dona small { font-size: 12px; font-weight: 700; color: var(--suave); }
.rasgos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.rasgo { background: var(--arena); border-radius: 24px; padding: 26px; display: grid; gap: 12px; align-content: start; }
.rasgo h3 { font-size: 20px; }
.rasgo p { color: var(--suave); font-size: 15px; }
.punto-parcela { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.pp { background: var(--arena); border-radius: 28px; padding: 28px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.pp .marco-mapa { position: relative; width: 70%; }
.pp .marco-mapa .mapa { width: 100%; }
.pp .pin-sensor { position: absolute; left: 53%; top: 49%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: var(--neon); border: 5px solid var(--cafe); }
.pp h3 { font-size: 22px; }
.pp p { color: var(--suave); }

/* Precios */
.precios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.precio { background: var(--arena); border-radius: 28px; padding: 32px 28px; display: grid; gap: 14px; align-content: start; }
.precio.dest { background: var(--verde); color: #fff; }
.precio .monto { font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.precio .monto small { font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--suave); }
.precio.dest .monto small, .precio.dest p { color: #fff; }
.precio h3 { font-size: 18px; letter-spacing: .14em; text-transform: uppercase; }
.precio p { color: var(--suave); }
.precio .avance { background: rgba(64,58,57,.12); }
.precio.dest .avance { background: rgba(255,255,255,.25); }
.precio.dest .avance i { background: var(--neon); }
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.extra { border-radius: 24px; padding: 24px 28px; display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; border: 2px solid var(--arena-2); }
.extra p { color: var(--suave); font-size: 15px; }
.extra b.monto-ext { font-size: 20px; white-space: nowrap; }
.faq { display: grid; gap: 10px; max-width: 820px; margin: 56px auto 0; }
.faq details { background: var(--arena); border-radius: 20px; }
.faq details[open] { background: var(--verde-claro); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ms { width: 26px; height: 26px; transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary .ms { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; max-width: 62ch; }

/* Contacto */
.contacto-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.datos-contacto { display: grid; gap: 18px; }
.dato { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; }
.dato small { display: block; color: var(--suave); font-size: 14px; }
.dato b { font-size: 20px; }
.dato a { text-decoration: none; }
.dato a:hover { color: var(--verde); }
.formulario { background: var(--arena); border-radius: 28px; padding: 32px; display: grid; gap: 16px; }
.formulario label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.formulario input, .formulario textarea, .formulario select { font: 500 16px/1.4 var(--f); color: var(--tinta); background: #fff; border: 2px solid transparent; border-radius: 14px; padding: 13px 14px; width: 100%; }
.formulario input:focus, .formulario textarea:focus, .formulario select:focus { outline: none; border-color: var(--verde); }
.formulario [aria-invalid="true"] { border-color: #C0392B; }
.formulario .error { color: #A93226; font-size: 14px; font-weight: 600; min-height: 0; }
.formulario .nota { color: var(--suave); font-size: 14px; }
.formulario .fila { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Pie */
.pie { background: var(--cafe-osc); color: #E7E1DB; padding-block: 64px 28px; --fondo-logo: var(--cafe-osc); }
.pie-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.pie-marca { display: grid; gap: 16px; align-content: start; }
.pie-marca .logo-svg { height: 60px; width: auto; }
.pie-marca p { max-width: 32ch; color: #CFC6BE; }
.pie h4 { font-size: 15px; color: #fff; margin-bottom: 12px; }
.pie ul { display: grid; gap: 8px; font-size: 15px; }
.pie li { display: flex; align-items: center; gap: 8px; color: #CFC6BE; }
.pie li .ms { width: 18px; height: 18px; color: var(--cafe-claro); }
.pie a { color: #CFC6BE; text-decoration: none; }
.pie a:hover { color: #fff; text-decoration: underline; }
.pie-abajo { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #B3A89F; }

/* ---------- Tienda de sensores ---------- */
.carrito-btn { position: relative; width: 52px; height: 52px; display: inline-grid; place-items: center; color: var(--cafe); text-decoration: none; flex: none; transition: transform .18s var(--ease); }
.carrito-btn:hover { transform: translateY(-2px); }
.carrito-btn .ms { width: 26px; height: 26px; }
.carrito-cuenta { position: absolute; top: -4px; right: -4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--neon); color: var(--cafe); font-size: 13px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff; }
.carrito-cuenta[hidden] { display: none; }
.nav .menu { margin-left: auto; }
.btn-chico { min-height: 42px; padding: 0 1.1em; font-size: 15px; }
.btn-ancho { width: 100%; }

.confianza { background: var(--arena); padding-block: 28px; }
.confianza ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.confianza li { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--suave); line-height: 1.35; }
.confianza b { display: block; color: var(--cafe); font-size: 16px; }
.confianza .ico { width: 48px; height: 48px; border-radius: 14px; }
.confianza .ico .ms { width: 26px; height: 26px; }

.cat-cab { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.cat-cab > div:first-child { display: grid; gap: 12px; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.filtro { font: 700 15px/1 var(--f); color: var(--cafe); background: var(--arena); border: 0; border-radius: 999px; padding: 12px 18px; cursor: pointer; transition: background-color .15s ease; }
.filtro:hover { background: var(--arena-2); }
.filtro[aria-pressed="true"] { background: var(--cafe); color: #fff; }
.catalogo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.catalogo .prod[hidden] { display: none; }
.prod { display: grid; grid-template-rows: auto 1fr; gap: 14px; }
.prod-foto { position: relative; display: block; border-radius: 28px; text-decoration: none; }
.prod-foto:hover .foto-prod img { transform: translateY(-6px); }
.catalogo:not(.cat-rel) .prod[data-cat="kit"] { grid-column: span 2; }
.catalogo:not(.cat-rel) .prod[data-cat="kit"] .foto-prod { aspect-ratio: 2.06 / 1; }
.chip-prod { position: absolute; z-index: 2; left: 16px; top: 16px; background: var(--neon); color: var(--cafe); font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.prod-info { display: grid; gap: 6px; align-content: start; justify-items: start; }
.prod-cat { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cafe-medio); }
.prod h3 { font-size: 21px; letter-spacing: -.02em; }
.prod h3 a { text-decoration: none; }
.prod h3 a:hover { color: var(--verde); }
.prod-corto { color: var(--suave); font-size: 15px; line-height: 1.45; }
.prod-precio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 4px 0 8px; }
.prod-precio b { font-size: 24px; letter-spacing: -.02em; }
.prod-precio s { color: var(--cafe-claro); font-weight: 600; }
.prod-precio small { width: 100%; color: var(--suave); font-size: 13px; }
.cat-vacio { margin-top: 24px; color: var(--suave); }

/* Producto sin fondo (de Codex) sobre un círculo de la paleta */
.foto-prod { position: relative; display: block; aspect-ratio: 1; border-radius: 28px; background: var(--arena); overflow: hidden; }
.foto-prod .circulo { left: 50%; top: 50%; width: 74%; transform: translate(-50%, -50%); }
.fp-verde .circulo { background: var(--verde); }
.fp-neon .circulo { background: var(--neon); }
.fp-naranja .circulo { background: var(--naranja); }
.foto-prod img { position: absolute; left: 50%; top: 50%; max-width: 70%; max-height: 80%; width: auto; height: auto; translate: -50% -50%; filter: drop-shadow(0 18px 18px rgba(47,42,41,.28)); transition: transform .35s var(--ease); }
.fp-kit .circulo { width: auto; height: 84%; }
.fp-kit img { max-height: 74%; max-width: 34%; }
.fp-kit .fp-0 { left: 26%; }
.fp-kit .fp-1 { left: 50%; top: 56%; max-height: 52%; z-index: 1; }
.fp-kit .fp-2 { left: 74%; }
.foto-prod.mini { width: 64px; flex: none; border-radius: 16px; }
.foto-prod.mini img { filter: none; }

/* Ficha */
.ficha-sup { padding-block: 132px 72px; background: linear-gradient(var(--arena) 0 62%, #fff 62%); }
.migas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--suave); margin-bottom: 28px; }
.migas a { text-decoration: none; } .migas a:hover { color: var(--verde); text-decoration: underline; }
.migas .ms { width: 18px; height: 18px; color: var(--cafe-claro); }
.migas [aria-current] { color: var(--cafe); }
.ficha-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.ficha-foto { position: sticky; top: 110px; }
.foto-grande { background: #fff; box-shadow: 0 30px 60px -40px rgba(47,42,41,.45); }
.ficha-info { display: grid; gap: 18px; }
.ficha-info h1 { font-size: clamp(34px, 3.8vw, 52px); }
.mide { display: flex; flex-wrap: wrap; gap: 10px; }
.mide li { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 6px 16px 6px 6px; font-weight: 700; font-size: 15px; box-shadow: inset 0 0 0 2px var(--arena-2); }
.mide .ico { width: 38px; height: 38px; border-radius: 50%; }
.mide .ico .ms { width: 22px; height: 22px; }
.compra { background: #fff; border-radius: 28px; padding: 26px; display: grid; gap: 16px; box-shadow: 0 30px 60px -40px rgba(47,42,41,.45), inset 0 0 0 2px var(--arena-2); }
.ficha-precio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ficha-precio b { font-size: 44px; letter-spacing: -.04em; line-height: 1; }
.ficha-precio s { font-size: 20px; color: var(--cafe-claro); font-weight: 600; }
.ficha-precio small { width: 100%; color: var(--suave); font-size: 14px; }
.tramos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; list-style: none; }
.tramos li { border-radius: 16px; background: var(--arena); padding: 10px 12px; display: grid; gap: 2px; line-height: 1.2; transition: background-color .15s ease; }
.tramos b { font-size: 14px; }
.tramos span { font-size: 18px; font-weight: 700; }
.tramos small { font-size: 12px; font-weight: 700; color: var(--suave); }
.tramos li.activo { background: var(--verde); color: #fff; }
.tramos li.activo small { color: var(--neon); }
.cantidad { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.cantidad label { font-weight: 700; }
.stepper { display: inline-flex; align-items: center; background: var(--arena); border-radius: 999px; padding: 4px; }
.stepper button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--cafe); display: grid; place-items: center; cursor: pointer; }
.stepper button:hover { background: var(--verde-claro); }
.stepper .ms { width: 20px; height: 20px; }
.stepper input { width: 56px; border: 0; background: transparent; text-align: center; font: 700 18px/1 var(--f); color: var(--cafe); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.prod-carrito { min-height: 42px; display: flex; align-items: center; }
.stepper-prod { background: var(--verde-claro); padding: 4px; }
.stepper-prod button { width: 34px; height: 34px; }
.stepper-prod button:hover { background: var(--neon); }
.stepper-prod .ms { width: 18px; height: 18px; }
.stepper-prod input { width: 46px; font-size: 16px; }
.linea-pista[hidden] { display: none; }
.subtotal { margin-left: auto; color: var(--suave); font-weight: 600; }
.subtotal b { color: var(--cafe); font-size: 20px; margin-left: 6px; }
.nota-cant { font-size: 14px; font-weight: 600; color: var(--verde-osc); }
.compra .acciones .btn { flex: 1 1 200px; }
.garantias { display: grid; gap: 8px; padding-top: 6px; border-top: 1px solid var(--linea); }
.garantias li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--suave); padding-top: 6px; }
.garantias .ms { width: 22px; height: 22px; color: var(--verde); }
.det-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; }
.det-caja { background: var(--arena); border-radius: 28px; padding: 30px; display: grid; gap: 18px; align-content: start; }
.det-caja h2 { font-size: 26px; }
.incluye { display: grid; gap: 12px; }
.incluye li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.incluye .ms { width: 24px; height: 24px; color: var(--verde); }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--linea); vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 34%; padding-right: 16px; color: var(--cafe-medio); font-weight: 700; }
.banda-agente { background: var(--cafe-osc); color: #fff; }
.banda-agente .etiqueta { color: var(--neon); }
.banda-agente .lead { color: #E9DFD6; }
.ag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ag-txt { display: grid; gap: 18px; justify-items: start; }
.grafica-hum { background: #fff; color: var(--cafe); border-radius: 28px; padding: 24px; display: grid; gap: 14px; }
.grafica-hum figcaption { display: flex; justify-content: space-between; font-size: 15px; }
.grafica-hum figcaption span { color: var(--suave); font-weight: 600; }
.grafica-hum svg { width: 100%; height: auto; overflow: visible; }
.g-limite { stroke: var(--naranja); stroke-width: 2; stroke-dasharray: 6 6; }
.g-txt { fill: #9A6B1F; font: 700 11px var(--f); }
.g-area { fill: var(--verde-claro); }
.g-linea { fill: none; stroke: var(--verde); stroke-width: 4; stroke-linecap: round; }
.g-punto { fill: var(--naranja); stroke: #fff; stroke-width: 4; }
.g-aviso { display: flex; align-items: center; gap: 8px; background: var(--verde-claro); color: var(--verde-osc); border-radius: 14px; padding: 10px 14px; font-weight: 700; font-size: 15px; }
.g-aviso .ms { width: 20px; height: 20px; }
.rel-t { margin-bottom: 8px; }
.cat-rel { grid-template-columns: repeat(3, 1fr); margin-top: 32px; }

/* Después de comprar */
.vis-caja img { position: absolute; left: 50%; top: 50%; translate: -50% -50%; max-width: none; width: auto; height: 76%; filter: drop-shadow(0 18px 18px rgba(47,42,41,.28)); }
.vis-mapa .mapa { width: 78%; }
.vis .pin-sensor { position: absolute; left: 53%; top: 49%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: var(--neon); border: 5px solid var(--cafe); }
.mini-dato { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--verde-osc); }
.mini-dato .ms { width: 18px; height: 18px; }

/* Carrito, pago y pedido */
.pag-tienda { padding-block: 132px 96px; min-height: 70vh; }
.pag-tienda h1 { font-size: clamp(34px, 3.6vw, 48px); margin-bottom: 32px; }
.pasos-compra { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pasos-compra li { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--arena); font-weight: 700; font-size: 15px; color: var(--suave); }
.pasos-compra li a { display: contents; color: inherit; text-decoration: none; }
.pasos-compra span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 14px; }
.pasos-compra .ms { width: 18px; height: 18px; }
.pasos-compra li[aria-current] { background: var(--cafe); color: #fff; }
.pasos-compra li[aria-current] span { background: var(--neon); color: var(--cafe); }
.pasos-compra li.hecho { background: var(--verde-claro); color: var(--verde-osc); }
.pasos-compra li.hecho span { background: var(--verde); color: #fff; }
.carrito-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.carrito-grid[hidden], .vacio[hidden] { display: none; }
.lineas { display: grid; gap: 12px; }
.linea { display: grid; grid-template-columns: 104px 1fr auto auto 44px; gap: 18px; align-items: center; background: #fff; border-radius: 24px; padding: 12px 16px 12px 12px; box-shadow: inset 0 0 0 2px var(--arena-2); }
.linea-foto .foto-prod { width: 104px; border-radius: 18px; }
.linea-foto .foto-prod img { filter: none; }
.linea-info { display: grid; gap: 4px; }
.linea-info h3 { font-size: 19px; }
.linea-info h3 a { text-decoration: none; } .linea-info h3 a:hover { color: var(--verde); }
.linea-info p { color: var(--suave); font-size: 15px; }
.linea-pista { color: var(--verde-osc) !important; font-weight: 600; }
.chip-desc { background: var(--neon); color: var(--cafe); font-weight: 700; font-size: 13px; border-radius: 999px; padding: 2px 8px; }
.linea-total { font-size: 20px; min-width: 96px; text-align: right; }
.quitar { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--cafe-medio); display: grid; place-items: center; cursor: pointer; }
.quitar:hover { background: #F6E3E0; color: #A93226; }
.quitar .ms { width: 22px; height: 22px; }
.resumen { position: sticky; top: 110px; background: var(--arena); border-radius: 28px; padding: 26px; display: grid; gap: 18px; }
.resumen h2 { font-size: 24px; }
.cuentas { display: grid; gap: 10px; margin: 0; }
.cuentas div { display: flex; justify-content: space-between; gap: 12px; }
.cuentas dt { color: var(--suave); }
.cuentas dd { margin: 0; font-weight: 700; }
.cuentas .ahorro dd { color: var(--verde); }
.cuentas .total { border-top: 2px solid var(--arena-2); padding-top: 12px; margin-top: 4px; align-items: baseline; }
.cuentas .total dt { color: var(--cafe); font-weight: 700; font-size: 18px; }
.cuentas .total dd { font-size: 28px; letter-spacing: -.03em; }
.cuentas .total small { font-size: 13px; color: var(--suave); letter-spacing: 0; }
.falta-envio { display: flex; gap: 8px; align-items: center; background: #fff; border-radius: 14px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.falta-envio .ms { width: 20px; height: 20px; color: var(--naranja); }
.resumen .nota { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--suave); text-decoration: none; }
.resumen .nota .ms { width: 18px; height: 18px; }
a.nota:hover { color: var(--verde); }
.mini-lineas { display: grid; gap: 12px; }
.mini-lineas li { display: flex; align-items: center; gap: 12px; }
.mini-lineas li > span:not(.foto-prod) { display: grid; flex: 1; line-height: 1.3; }
.mini-lineas small { color: var(--suave); font-size: 14px; }
.mini-lineas em { font-style: normal; font-weight: 700; }
.vacio { display: grid; justify-items: center; text-align: center; gap: 16px; max-width: 520px; margin: 24px auto 0; }
.vacio-foto { width: 220px; }
.form-pago { display: grid; gap: 20px; }
.form-pago fieldset { border: 0; margin: 0; background: var(--arena); border-radius: 28px; padding: 26px; display: grid; gap: 16px; min-width: 0; }
.form-pago legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; padding: 0; margin-bottom: 4px; }
.form-pago legend + * { clear: both; }
.form-pago legend .ico { width: 44px; height: 44px; border-radius: 14px; }
.form-pago legend .ico .ms { width: 24px; height: 24px; }
.form-pago label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.form-pago input, .form-pago select { font: 500 16px/1.4 var(--f); color: var(--tinta); background: #fff; border: 2px solid transparent; border-radius: 14px; padding: 13px 14px; width: 100%; }
.form-pago input:focus, .form-pago select:focus { outline: none; border-color: var(--verde); }
.form-pago [aria-invalid="true"] { border-color: #C0392B; }
.form-pago .error { color: #A93226; font-size: 14px; font-weight: 600; }
.form-pago .error:empty { display: none; }
.form-pago .fila { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-pago .fila[hidden] { display: none; }
.form-pago .nota { color: var(--suave); font-size: 14px; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opcion { position: relative; display: flex !important; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 16px; cursor: pointer; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .15s ease; }
.opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcion span { display: grid; flex: 1; line-height: 1.3; }
.opcion small { color: var(--suave); font-weight: 600; font-size: 14px; }
.opcion em { font-style: normal; font-weight: 700; }
.opcion > .ms { width: 28px; height: 28px; color: var(--cafe-medio); }
.opcion:has(input:checked) { box-shadow: inset 0 0 0 3px var(--verde); }
.opcion:has(input:checked) > .ms { color: var(--verde); }
.opcion:has(input:focus-visible) { outline: 3px solid var(--verde); outline-offset: 3px; }
.check { display: flex !important; align-items: center; gap: 10px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--verde); }
#p-enviar:disabled { opacity: .7; cursor: progress; transform: none; }
.pedido-cab { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.pedido-cab h1 { margin: 0 0 6px; }
.ico-grande { width: 84px; height: 84px; border-radius: 26px; }
.ico-grande .ms { width: 46px; height: 46px; }
.pedido-cuerpo { display: grid; gap: 16px; }
.seguimiento { display: grid; gap: 4px; }
.seguimiento li { display: flex; gap: 14px; align-items: center; position: relative; padding: 8px 0; }
.seguimiento li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 62px; height: 14px; width: 2px; background: var(--arena-2); }
.seguimiento li > span:last-child { display: grid; line-height: 1.3; }
.seguimiento small { color: var(--suave); font-size: 14px; }
.seguimiento li:not(.hecho) b { color: var(--cafe-medio); }
.det-sigue { background: #FFF4E2; }
.det-app { background: var(--verde); color: #fff; grid-template-columns: 1fr auto; align-items: center; }
.det-app p { color: #E2F2E8; }
.form-pago .error-pago { background: #FCE9E6; border-radius: 14px; padding: 12px 14px; }
.sr-solo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.aviso-pedido { background: var(--verde-claro); color: var(--cafe); border-radius: 18px; padding: 14px 18px; font-weight: 600; margin: -12px 0 24px; }
.aviso-pedido[hidden] { display: none; }
.det-caja[hidden] { display: none; }
.det-pago p { margin: 0; }
.link-pago { display: grid; grid-template-columns: 1fr auto; gap: 8px; background: #fff; border-radius: 18px; padding: 8px; }
.link-pago label { display: grid; min-width: 0; }
.link-pago input { font: 600 15px/1.4 var(--f); color: var(--tinta); border: 0; background: none; padding: 8px 10px; min-width: 0; text-overflow: ellipsis; }
.link-pago input:focus-visible { outline: 3px solid var(--verde); border-radius: 10px; }
.acciones-link { display: flex; flex-wrap: wrap; gap: 10px; }
.det-pago .vence { color: var(--suave); font-size: 15px; font-weight: 600; }
.det-pago .vence b { color: var(--cafe); }
.boton-texto { justify-self: start; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 0; font: 700 15px/1.3 var(--f); color: var(--cafe-medio); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.boton-texto .ms { width: 20px; height: 20px; }
.boton-texto:hover { color: var(--cafe); }
.det-pagado { background: var(--verde-claro); }
.aviso-tienda { position: fixed; z-index: 80; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); translate: -50% 140%; display: flex; align-items: center; gap: 12px; background: var(--cafe); color: #fff; border-radius: 999px; padding: 8px 8px 8px 8px; font-weight: 700; box-shadow: 0 20px 40px -16px rgba(0,0,0,.5); transition: translate .3s var(--ease); max-width: calc(100vw - 32px); }
.aviso-tienda.visible { translate: -50% 0; }
.aviso-tienda .ico { width: 40px; height: 40px; border-radius: 50%; }
.aviso-tienda .ico .ms { width: 22px; height: 22px; }
.aviso-tienda > span:nth-child(2) { flex: 1; min-width: 0; padding-right: 4px; }

/* Sellos de norma: roseta plana de la marca con el código de la norma (build.py, sello()) */
.sello { width: 72px; height: 72px; flex: none; overflow: visible; }
.sello .s-fondo { fill: var(--s-fondo); }
.sello .s-aro { fill: none; stroke: var(--s-tinta); stroke-opacity: .6; stroke-width: 2; stroke-dasharray: .1 4.3; stroke-linecap: round; }
.sello text { fill: var(--s-tinta); font-family: var(--f); font-weight: 700; text-anchor: middle; letter-spacing: -.02em; }
.sello .s-arriba { font-size: 12px; letter-spacing: .16em; }
.sl-verde { --s-fondo: var(--verde); --s-tinta: #fff; }
.sl-cafe { --s-fondo: var(--cafe); --s-tinta: var(--neon); }
.sl-naranja { --s-fondo: var(--naranja); --s-tinta: var(--cafe); }
.sl-neon { --s-fondo: var(--neon); --s-tinta: var(--cafe); }
.sl-blanco { --s-fondo: #fff; --s-tinta: var(--verde); }
.sello-prod, .sello-ficha, .sello-heroe, .normas-foto .sello { position: absolute; z-index: 2; filter: drop-shadow(0 10px 14px rgba(47,42,41,.28)); transition: rotate .35s var(--ease); }
.sello-prod { right: 14px; bottom: 14px; width: 62px; height: 62px; rotate: -10deg; }
.prod-foto:hover .sello-prod { rotate: 0deg; }
.sello-ficha { right: 22px; top: 22px; width: 104px; height: 104px; rotate: 10deg; }
.sello-heroe { right: 3%; bottom: 9%; width: 25%; height: auto; rotate: -10deg; }
.confianza-normas { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.confianza-normas:hover b { color: var(--verde); }
.garantias a { text-decoration: underline; text-decoration-color: var(--linea); text-underline-offset: 4px; }
.garantias a:hover { color: var(--verde); text-decoration-color: currentColor; }

/* Tienda: banda verde con las normas */
.banda-normas { position: relative; overflow: hidden; background: var(--verde); color: #fff; }
.banda-normas .puntos { width: 190px; right: 28px; top: -40px; color: rgba(255,255,255,.28); }
.banda-normas .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.banda-normas .etiqueta { color: var(--neon); }
.banda-normas .lead { color: #E3F3E9; }
.banda-normas .sl-verde { --s-fondo: #fff; --s-tinta: var(--verde); }
.normas-txt { display: grid; gap: 18px; align-content: start; }
.normas-foto { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin-top: 12px; }
.normas-foto .circulo { inset: 10%; background: var(--neon); }
.normas-foto img { position: absolute; left: 50%; bottom: 3%; height: 94%; width: auto; translate: -50% 0; filter: drop-shadow(0 22px 22px rgba(0,0,0,.3)); }
.normas-foto .sello { width: 36%; height: auto; }
.normas-foto .sl-blanco { right: 0; top: 8%; rotate: 12deg; }
.normas-foto .sl-cafe { left: 0; bottom: 12%; rotate: -10deg; }
.normas { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 36px; }
.norma { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start; align-content: start; }
.norma .sello { width: 76px; height: 76px; }
.norma h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.25; }
.norma-cod { font-size: 14px; font-weight: 700; color: var(--neon); margin-top: 3px; }
.norma p:last-child { font-size: 15px; line-height: 1.5; color: #E3F3E9; margin-top: 6px; }

/* Ficha: caja de normas a todo lo ancho */
.det-normas { grid-column: 1 / -1; gap: 26px; }
.det-normas-cab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.det-normas-cab p { color: var(--suave); font-size: 15px; font-weight: 600; }
.det-normas .normas { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 26px 24px; }
.det-normas .norma { grid-template-columns: 1fr; gap: 12px; justify-items: start; }
.det-normas .norma .sello { width: 68px; height: 68px; }
.det-normas .norma h3 { font-size: 18px; }
.det-normas .norma-cod { color: var(--verde); }
.det-normas .norma p:last-child { color: var(--suave); }

@media (max-width: 1000px) {
  .banda-normas .wrap { grid-template-columns: 1fr; gap: 48px; }
  .normas-foto { width: min(100%, 320px); justify-self: center; }
}
@media (max-width: 640px) {
  .normas { grid-template-columns: 1fr; gap: 26px; }
  .norma { grid-template-columns: 64px 1fr; gap: 16px; }
  .norma .sello { width: 64px; height: 64px; }
  .det-normas .normas { grid-template-columns: 1fr; gap: 24px; }
  .det-normas .norma { grid-template-columns: 60px 1fr; gap: 16px; }
  .det-normas .norma .sello { width: 60px; height: 60px; }
  .sello-ficha { width: 84px; height: 84px; right: 14px; top: 14px; }
  .sello-prod { width: 56px; height: 56px; }
}

@media (max-width: 1000px) {
  .confianza ul { grid-template-columns: 1fr 1fr; }
  .catalogo { grid-template-columns: repeat(2, 1fr); }
  .catalogo:not(.cat-rel) .prod[data-cat="kit"] { grid-column: 1 / -1; }
  .ficha-grid, .ag-grid, .det-grid, .carrito-grid { grid-template-columns: 1fr; gap: 32px; }
  .ficha-foto { position: relative; top: auto; } .resumen { position: static; }
  .ficha-foto { max-width: 560px; }
  .cat-rel { grid-template-columns: repeat(2, 1fr); }
  .carrito-btn { margin-left: auto; }
  .nav .menu.abierto { margin-left: 0; }
}
@media (max-width: 640px) {
  .carrito-btn { width: 52px; height: 52px; }
  .confianza ul { grid-template-columns: 1fr; gap: 14px; }
  .catalogo, .cat-rel { grid-template-columns: 1fr; }
  .catalogo:not(.cat-rel) .prod[data-cat="kit"] .foto-prod { aspect-ratio: 1.4 / 1; }
  .ficha-sup { padding-top: 112px; }
  .ficha-precio b { font-size: 38px; }
  .tramos { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .tramos li { padding: 8px; }
  .tramos span { font-size: 15px; }
  .subtotal { margin-left: 0; width: 100%; }
  .compra { padding: 20px; }
  .linea { grid-template-columns: 72px 1fr auto 40px; grid-template-areas: "f i i q" "f s t t"; gap: 10px 12px; }
  .pasos-compra { gap: 6px; }
  .pasos-compra li { padding: 6px 12px 6px 6px; font-size: 14px; gap: 8px; }
  .pasos-compra span { width: 26px; height: 26px; font-size: 13px; }
  .linea-foto { grid-area: f; align-self: start; } .linea-foto .foto-prod { width: 72px; }
  .linea-info { grid-area: i; } .linea .stepper { grid-area: s; justify-self: start; } .linea-total { grid-area: t; text-align: right; min-width: 0; align-self: center; } .quitar { grid-area: q; align-self: start; }
  .form-pago fieldset { padding: 20px; }
  .form-pago .fila, .opciones { grid-template-columns: 1fr; }
  .det-app { grid-template-columns: 1fr; }
  .pedido-cab { flex-direction: column; align-items: start; }
  .aviso-tienda { border-radius: 24px; flex-wrap: wrap; }
  .link-pago { grid-template-columns: 1fr; }
  .acciones-link .btn { flex: 1 1 100%; }
}

/* Tableta */
@media (max-width: 1000px) {
  :root { --sec: 88px; }
  .menu { display: none; }
  .menu-btn { display: inline-flex; }
  .menu.abierto { display: grid; position: absolute; top: 72px; right: max(var(--gut), env(safe-area-inset-right, 0px)); left: max(var(--gut), env(safe-area-inset-left, 0px)); border-radius: 24px; padding: 10px; gap: 2px; }
  .menu.abierto a { font-size: 18px; padding: 14px 16px; }
  .menu.abierto a.btn { margin: 8px 0 0; }
  .heroe .wrap, .cab-pag .wrap { grid-template-columns: 1fr; padding-top: 120px; }
  .escena { justify-self: center; }
  .como { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .flecha-paso { justify-self: center; transform: rotate(90deg); }
  .sentires, .rasgos { grid-template-columns: repeat(2, 1fr); }
  .res-grid, .dia, .contacto-grid, .comparacion, .punto-parcela { grid-template-columns: 1fr; gap: 40px; }
  .pasos, .precios { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .extras { grid-template-columns: 1fr; }
  .cta-caja { grid-template-columns: 1fr; padding: 56px 36px; }
  .pie-grid { grid-template-columns: 1fr 1fr; }
}

/* Teléfono */
@media (max-width: 640px) {
  :root { --sec: 68px; --gut: 18px; }
  body { font-size: 16px; }
  .logo-pastilla { padding: 9px 18px; }
  .logo-pastilla .logo-svg { height: 32px; }
  .heroe .acciones, .cab-pag .acciones { width: 100%; }
  .heroe .acciones .btn, .cab-pag .acciones .btn { flex: 1 1 100%; }
  .mensaje { padding: 9px; gap: 7px; font-size: 12px; border-radius: 16px 16px 16px 5px; }
  .msg-de { font-size: 11px; } .msg-de span { display: none; }
  .msg-txt b { font-size: 14px; }
  .msg-txt span, .msg-hora { display: none; }
  .msg-mapa { padding: 6px; }
  .msg-pin { font-size: 10px; padding: 3px 7px; }
  .sentires, .rasgos { grid-template-columns: 1fr; }
  .mapas-res { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mapas-res figure { padding: 12px; }
  .panel { padding: 24px 20px; }
  .panel li { grid-template-columns: 48px 1fr; font-size: 16px; }
  .panel .ico { width: 48px; height: 48px; }
  .hub { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .hub-lineas { display: none; }
  .hub-centro { position: static; transform: none; grid-column: 1 / -1; justify-self: center; width: 140px; }
  .nodo { position: static; transform: none; width: auto; }
  .linea-tiempo li { grid-template-columns: 46px 42px 1fr; gap: 10px; padding: 8px 12px; }
  .linea-tiempo .ico { width: 42px; height: 42px; }
  .formulario { padding: 22px; }
  .formulario .fila { grid-template-columns: 1fr; }
  .extra { grid-template-columns: 48px 1fr; }
  .extra b.monto-ext { grid-column: 2; }
  .logos { grid-template-columns: 1fr; }
  .pie-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
}
