/* ==========================================================
   MATDISCOL · Estilos de cada página
   Lenguaje: lienzo blanco, tipografía monumental, bordes finos,
   marcos de navegador como recurso visual (docs/DESIGN-referencia.md)
   ========================================================== */

/* ---------- Encabezado de páginas internas ---------- */
.page-hero { background: #fff; padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.page-hero h1 { font-size: clamp(40px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -.02em; max-width: 18ch; animation: up .8s var(--ease-out) both; }
.page-hero p { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.45; max-width: 60ch; margin-top: 16px; animation: up .8s var(--ease-out) .08s both; }
.page-hero .hl { color: var(--red); }

/* ---------- Marco de navegador (recurso principal) ---------- */
.browser { border-radius: var(--r); background: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); overflow: hidden; }
.browser-bar { height: 34px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.browser-dots i:nth-child(2) { background: #febc2e; }
.browser-dots i:nth-child(3) { background: #28c840; }
.browser-url { flex: 1; max-width: 360px; margin: 0 auto; height: 22px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 6px; font: 12px/1 ui-monospace, "JetBrains Mono", Menlo, monospace; color: var(--muted); }
.browser-url svg { width: 11px; height: 11px; }
.browser-body { position: relative; }

/* ==========================================================
   INICIO
   ========================================================== */
.hero { background: #fff; padding: 88px 0 40px; text-align: center; }
.hero .eyebrow { justify-content: center; }
.hero h1 { font-size: clamp(44px, 7.4vw, 88px); line-height: 1; letter-spacing: -.03em; margin: 0 auto; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .w > span { display: inline-block; transform: translateY(105%); animation: wordUp 1s var(--ease-out) forwards; animation-delay: calc(.1s + var(--i) * .06s); }
.hero h1 em { font-style: normal; color: var(--red); }
@keyframes wordUp { to { transform: none; } }
.hero-sub { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.45; color: var(--muted); max-width: 560px; margin: 24px auto 0; animation: up .8s var(--ease-out) .45s both; }
.hero-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 32px; animation: up .8s var(--ease-out) .55s both; }
.hero-q { margin: 64px 0 16px; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); animation: up .8s var(--ease-out) .65s both; }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.choice-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 6px; padding: 24px; min-height: 176px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: box-shadow .45s var(--ease-out), border-color .3s; animation: up .8s var(--ease-out) both; animation-delay: calc(.7s + var(--i) * .08s); }
.choice-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.choice-card.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice-card b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.choice-card p { font-size: 14px; color: var(--muted); max-width: 30ch; }
.choice-card .cc-foot { align-self: stretch; margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 500; }
.choice-card .cc-foot > span { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.choice-card .cc-foot svg { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.choice-card:hover .cc-foot svg { transform: translateX(4px); }
.cc-thumb { position: absolute; top: 20px; right: 20px; width: 64px; height: 44px; border-radius: var(--r-sm); background: var(--paper-2); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 5px; }
.cc-thumb i { border-radius: 2px; background: #fff; border: 1px solid var(--line); }
.choice-card.on .cc-thumb i:first-child { background: var(--red); border-color: var(--red); }
.cc-tag { position: absolute; top: 24px; right: 96px; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: var(--red); color: #fff; padding: 2px 6px; border-radius: var(--r-sm); }

/* Vitrina: el catálogo dentro de un navegador */
.showcase { padding: 24px 0 80px; }
.showcase .browser { transform-origin: 50% 0; }
.showcase .browser[data-reveal] { transform: translateY(48px) scale(.97); }
.showcase .browser[data-reveal].in { transform: none; }
.mini-shop { display: grid; grid-template-columns: 200px 1fr; min-height: 420px; }
.ms-side { border-right: 1px solid var(--line); padding: 18px 12px; display: grid; align-content: start; gap: 2px; background: #fff; }
.ms-side b { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 8px 8px; }
.ms-side span { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 7px 8px; border-radius: var(--r-sm); }
.ms-side span.on { background: var(--ink); color: #fff; }
.ms-side svg { width: 15px; height: 15px; }
.ms-main { padding: 20px; background: #fff; text-align: left; }
.ms-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.ms-head h3 { font-size: 22px; }
.ms-head small { color: var(--muted); font-size: 13px; }
.ms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ms-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ms-card div { height: 92px; background: var(--paper-2); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.ms-card svg { width: 30px; height: 30px; stroke-width: 1.3; }
.ms-card p { padding: 10px 12px 2px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.ms-card small { display: block; padding: 0 12px 10px; font-size: 11px; color: var(--muted); }
.ms-card em { display: block; margin: 0 12px 12px; height: 26px; border-radius: var(--r-sm); background: var(--red); font-style: normal; font-size: 11px; color: #fff; display: grid; place-items: center; font-weight: 500; }

/* Hero de tienda: productos al frente */
.shop-hero { background: #fff; padding: 56px 0 64px; border-bottom: 1px solid var(--line); }
.sh-pop a:first-child { margin-left: 0; }
.sh-in { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.shop-hero h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1; letter-spacing: -.03em; }
.shop-hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.shop-hero h1 .w > span { display: inline-block; transform: translateY(105%); animation: wordUp 1s var(--ease-out) forwards; animation-delay: calc(.1s + var(--i) * .06s); }
.shop-hero h1 em { font-style: normal; color: var(--red); }
.shop-hero h1 [data-sede-name] { display: inline-block; animation: up .9s var(--ease-out) .45s both; }
.sh-sub { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; max-width: 52ch; margin-top: 20px; animation: up .8s var(--ease-out) .4s both; }
.sh-search { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding: 6px 6px 6px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow); transition: border-color .25s, box-shadow .35s; animation: up .8s var(--ease-out) .5s both; }
.sh-search:focus-within { border-color: var(--ink); box-shadow: var(--shadow-lg); }
.sh-search > svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.sh-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; padding: 12px 0; }
.sh-search input::-webkit-search-cancel-button { display: none; }
.sh-search .btn { padding: 13px 22px; font-size: 15px; }
.sh-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--muted); animation: up .8s var(--ease-out) .58s both; }
.sh-pop a { padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); transition: border-color .2s, background .2s; }
.sh-pop a:hover { border-color: var(--ink); background: var(--paper-2); }
.sh-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); animation: up .8s var(--ease-out) .66s both; }
.sh-meta b { color: var(--ink); font-weight: 600; }
.sh-meta span { display: inline-flex; align-items: center; gap: 6px; }
.sh-meta svg { width: 16px; height: 16px; color: var(--red); stroke-width: 2.4; }
.sh-pop a { border-radius: 999px; padding: 5px 12px; background: #fff; }
#popSearch { display: contents; }
.sh-products { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: var(--paper-2); animation: mapIn 1s var(--ease-out) .25s both; }
@keyframes mapIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.sh-ph { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 14px; font-size: 15px; }
.sh-ph b { font-weight: 600; }
.sh-ph .link { font-size: 14px; }
.sh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: box-shadow .45s var(--ease-out), border-color .3s; animation: up .7s var(--ease-out) both; animation-delay: calc(.5s + var(--i) * .08s); }
.hp:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.hp-media { position: relative; height: 136px; display: grid; place-items: center; background: radial-gradient(ellipse 70% 60% at 50% 42%, #fff 0%, #f3f3f1 70%, #ececea 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.hp-media .ilu { width: auto; height: 120px; max-width: 94%; transition: transform .8s var(--ease-out); transform-origin: 50% 85%; }
.hp:hover .hp-media .ilu { transform: translateY(-4px) scale(1.05); }
.hp-body { padding: 12px 14px 4px; display: grid; gap: 2px; flex: 1; }
.hp-body b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.hp-body a:hover b { text-decoration: underline; }
.hp-body small { color: var(--muted); font-size: 13px; }
.hp-price { padding: 6px 14px 0; }
.hp-price .pprice b { font-size: 17px; }
.hp-price .pprice small { display: none; }
.hp-act { padding: 10px 14px 14px; }

/* Guía de compra en 4 pasos */
.how { border-bottom: 1px solid var(--line); background: #fff; }
.how-in { display: flex; align-items: center; gap: 32px; padding-block: 22px; }
.how-t { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.how-steps { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; gap: 12px; }
.how-steps li { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; position: relative; animation: up .6s var(--ease-out) both; }
.how-steps li:nth-child(2) { animation-delay: .06s; }
.how-steps li:nth-child(3) { animation-delay: .12s; }
.how-steps li:nth-child(4) { animation-delay: .18s; }
.how-steps li:not(:last-child)::after { content: ""; flex: 1; height: 1px; background: var(--line); margin-left: 4px; }
.how-steps i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 600; background: var(--ink); color: #fff; flex: none; }
.how-steps li:first-child i { background: var(--red); }

/* Pestañas de destacados */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; padding: 12px 14px; font-size: 14px; color: var(--muted); transition: color .2s; }
.tab::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .35s var(--ease-out); }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); font-weight: 500; }
.tab.on::after { transform: scaleX(1); }

.demo-section .new-tag { vertical-align: middle; }
.demo-section .eyebrow::before { display: none; }
.demo-try { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

/* Hero centrado en el asistente */
.hero-eyebrow { gap: 10px; }
.hero-eyebrow::before { display: none; }
.new-tag { font-size: 10px; font-weight: 600; letter-spacing: .1em; background: var(--red); color: #fff; padding: 2px 6px; border-radius: var(--r-sm); }
.ask { position: relative; display: flex; align-items: center; gap: 10px; max-width: 720px; margin: 36px auto 0; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow); transition: border-color .25s, box-shadow .35s; animation: up .9s var(--ease-out) .55s both; }
.ask:focus-within { border-color: var(--ink); box-shadow: var(--shadow-lg); }
.ask-ico { width: 26px; height: 33px; flex: none; }
.ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 17px; padding: 12px 4px; }
.ask .btn { padding: 14px 20px; font-size: 15px; }
.ask-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px; margin: 18px auto 0; }
.ask-chip { padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 14px; transition: border-color .2s, background .2s; animation: up .6s var(--ease-out) both; animation-delay: calc(.7s + var(--i) * .05s); }
.ask-chip:hover { border-color: var(--ink); background: var(--paper-2); }

/* Demostración en vivo del asistente */
.demo { padding: 24px 0 80px; }
.demo-frame[data-reveal] { transform: translateY(48px) scale(.97); }
.demo-frame[data-reveal].in { transform: none; }
.demo-who { display: flex; align-items: center; gap: 10px; }
.demo-who b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.demo-who small { display: block; font-size: 11px; color: var(--muted); }
.demo-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.demo-frame .browser-bar { height: 52px; justify-content: space-between; padding: 0 16px; background: #fff; }
.calc-res { border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; }
.demo-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.demo-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 2s infinite; }
.demo-body { display: grid; grid-template-columns: 1.25fr .75fr; min-height: 500px; }
.demo-chat { height: 500px; overflow: hidden; padding: 24px; background: var(--paper-2); display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--line); text-align: left; }
.dm { max-width: 78%; padding: 11px 14px; border-radius: var(--r); font-size: 14px; line-height: 1.45; animation: msgIn .4s var(--ease-out) both; flex: none; }
.dm.b { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 2px; }
.dm.u { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 2px; }
.dm small { display: block; font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.dm.typing { display: flex; gap: 4px; padding: 14px 16px; }
.dm.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: dot 1.2s infinite ease-in-out; }
.dm.typing i:nth-child(2) { animation-delay: .15s; }
.dm.typing i:nth-child(3) { animation-delay: .3s; }
.dchips { display: flex; gap: 6px; margin-top: 8px; }
.dchips i { font-style: normal; font-size: 12px; padding: 5px 9px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.dchips i.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.dlist { display: grid; margin-top: 8px; }
.dl { display: grid; grid-template-columns: 48px 1fr 18px; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.dl b { text-align: right; font-variant-numeric: tabular-nums; }
.dl i { font-style: normal; color: var(--ok); font-weight: 600; }
.dbtn { display: inline-block; margin-top: 10px; padding: 7px 12px; border-radius: var(--r-sm); background: var(--red); color: #fff; font-size: 13px; font-weight: 500; }
.demo-side { padding: 32px; display: flex; flex-direction: column; text-align: left; background: #fff; }
.demo-steps { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: ds; display: grid; gap: 4px; }
.demo-steps li { counter-increment: ds; position: relative; padding: 16px 0 16px 44px; border-top: 1px solid var(--line); transition: opacity .4s; opacity: .45; }
.demo-steps li.on, .demo-steps:not(:has(.on)) li { opacity: 1; }
.demo-steps li::before { content: counter(ds); position: absolute; left: 0; top: 16px; width: 28px; height: 28px; border-radius: var(--r-sm); background: var(--paper-2); display: grid; place-items: center; font-size: 13px; font-weight: 600; transition: background .3s, color .3s; }
.demo-steps li.on::before { background: var(--red); color: #fff; }
.demo-steps b { display: block; font-size: 16px; font-weight: 600; }
.demo-steps span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.demo-side .btn { margin-top: auto; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(226, 0, 26, .5); } 80%, 100% { box-shadow: 0 0 0 7px rgba(226, 0, 26, 0); } }

/* Beneficios: columnas separadas por líneas finas */
.perks { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.perks-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 32px 24px; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk-ico { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--paper-2); color: var(--ink); display: grid; place-items: center; flex: none; }
.perk-ico svg { width: 20px; height: 20px; }
.perk b { display: block; font-size: 16px; font-weight: 600; }
.perk small { color: var(--muted); font-size: 14px; line-height: 1.45; display: block; margin-top: 2px; }

/* Categorías: tarjetas con borde */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile { display: flex; flex-direction: column; gap: 6px; padding: 24px; min-height: 168px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: box-shadow .45s var(--ease-out), border-color .3s; }
.cat-tile:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.cat-ico { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--paper-2); color: var(--ink); display: grid; place-items: center; margin-bottom: auto; transition: background .3s, color .3s; }
.cat-tile:hover .cat-ico { background: var(--red); color: #fff; }
.cat-ico svg { width: 22px; height: 22px; }
.cat-tile h3 { font-size: 16px; margin-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.cat-tile h3 svg { width: 16px; height: 16px; color: var(--muted); transition: transform .35s var(--ease-out); }
.cat-tile:hover h3 svg { transform: translateX(4px); }
.cat-tile small { color: var(--muted); font-size: 14px; }
.cat-tile.off { opacity: .5; }

/* Secciones divididas (texto + marco de navegador) */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split h2 { font-size: clamp(32px, 3.4vw, 40px); line-height: 1.04; letter-spacing: -.01em; }
.split > div > p { color: var(--muted); font-size: 18px; line-height: 1.5; margin: 16px 0 24px; max-width: 46ch; }
.flist { border-top: 1px solid var(--line); margin-bottom: 28px; }
.flist a, .flist button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; text-align: left; }
.flist svg { width: 18px; height: 18px; color: var(--muted); transition: transform .35s var(--ease-out), color .2s; }
.flist a:hover svg, .flist button:hover svg { transform: translateX(4px); color: var(--red); }
.flist small { color: var(--muted); font-size: 14px; margin-left: 8px; }
.split .browser[data-reveal] { transform: translateY(40px); }
.split .browser[data-reveal].in { transform: none; }

.calc-mini { padding: 24px; display: grid; gap: 14px; }
.calc-mini h3 { font-size: 18px; }
.calc-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.calc-types label { cursor: pointer; }
.calc-types input { position: absolute; opacity: 0; }
.calc-types span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: var(--r-sm); border: 1px solid var(--line); font-size: 13px; font-weight: 500; text-align: center; transition: border-color .2s, box-shadow .2s; }
.calc-types svg { width: 20px; height: 20px; }
.calc-types input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.calc-types input:checked + span svg { color: var(--red); }
.calc-types input:focus-visible + span { outline: 2px solid var(--red); }
.calc-try { font-size: 13px; color: var(--muted); }
.calc-try button { color: var(--ink); font-weight: 500; text-decoration: underline; }

/* Maqueta de chat del asistente */
.chat-mock { background: var(--paper-2); padding: 20px; display: grid; gap: 10px; min-height: 380px; align-content: start; }
.cm-msg { max-width: 82%; padding: 10px 14px; border-radius: var(--r); font-size: 14px; line-height: 1.45; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 2px; }
.cm-msg.u { justify-self: end; background: var(--ink); color: #fff; border-color: var(--ink); border-bottom-left-radius: var(--r); border-bottom-right-radius: 2px; }
.cm-rows { margin-top: 8px; display: grid; }
.cm-rows span { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.cm-rows b { text-align: right; }
.cm-rows i { font-style: normal; color: var(--ok); font-weight: 600; }
.chat-mock [data-reveal] { transform: translateY(12px); }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.step-n { font: 500 12px/1 ui-monospace, "JetBrains Mono", Menlo, monospace; color: var(--muted); position: absolute; right: 24px; top: 28px; }
.step-ico { width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--paper-2); color: var(--ink); display: grid; place-items: center; margin-bottom: 40px; transition: background .3s, color .3s; }
.step:hover .step-ico { background: var(--red); color: #fff; }
.step-ico svg { width: 20px; height: 20px; }
.step-ico .i-wa { fill: currentColor; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* Sedes */
.sede-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sede-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: box-shadow .45s var(--ease-out); }
.sede-card:hover { box-shadow: var(--shadow); }
.sede-card.current { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sc-tag { display: inline-flex; align-self: flex-start; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: var(--r-sm); background: var(--paper-2); color: var(--ink); }
.sc-tag.on { background: var(--red); color: #fff; }
.sede-card h3 { font-size: 32px; letter-spacing: -.02em; }
.sede-card p { color: var(--muted); font-size: 14px; }
.sc-meta { display: grid; gap: 8px; font-size: 14px; padding: 16px 0; border-top: 1px solid var(--line); margin-top: auto; }
.sc-meta span { display: flex; gap: 8px; }
.sc-meta svg { width: 16px; height: 16px; color: var(--muted); flex: none; margin-top: 3px; }
.sc-btns { display: flex; gap: 8px; }
.sc-btns .btn { flex: 1; }

/* Quiénes somos */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about h2 { font-size: clamp(32px, 3.4vw, 40px); line-height: 1.04; letter-spacing: -.01em; margin-bottom: 18px; }
.about p { color: var(--muted); font-size: 17px; margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.stat { padding: 32px 28px; }
.stat:nth-child(even) { border-left: 1px solid var(--line); }
.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(44px, 5vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.stat:first-child b { color: var(--red); }
.stat span { font-size: 14px; color: var(--muted); display: block; margin-top: 10px; }

/* ==========================================================
   PRODUCTOS
   ========================================================== */
.shop { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 32px; align-items: start; padding-block: 40px 20px; }
.shop-side { position: sticky; top: 140px; }
.shop-side h3 { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px 10px; }
.side-cats { display: grid; gap: 2px; }
.side-cat { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r-sm); font-size: 14px; text-align: left; transition: background .2s, color .2s; }
.side-cat:hover { background: var(--paper-2); }
.side-cat.on { background: var(--ink); color: #fff; font-weight: 500; }
.side-cat svg { width: 17px; height: 17px; flex: none; }
.side-cat.on svg { color: var(--red-2); }
.side-cat small { margin-left: auto; font-size: 12px; color: var(--muted); }
.side-cat.on small { color: rgba(255, 255, 255, .6); }
.side-box { margin-top: 20px; padding: 20px; border-radius: var(--r); border: 1px solid var(--line); font-size: 14px; }
.side-box b { display: block; margin-bottom: 4px; font-weight: 600; }
.side-box p { color: var(--muted); margin-bottom: 14px; }
.shop-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.shop-bar h2 { font-size: 24px; margin-right: auto; }
.shop-bar small { color: var(--muted); font-size: 14px; }
.shop-bar select { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 10px; background: #fff; font-size: 14px; }
.shop-chips { display: none; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; padding-bottom: 2px; }
.shop-chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.q-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: var(--r-sm); background: var(--paper-2); font-weight: 500; font-size: 13px; }
.q-tag button { width: 20px; height: 20px; border-radius: 3px; display: grid; place-items: center; }
.q-tag button:hover { background: var(--line); }
.q-tag svg { width: 13px; height: 13px; }
.empty-state { text-align: center; padding: 64px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty-state h3 { font-size: 24px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin: 0 auto 20px; max-width: 52ch; }
.empty-state .btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.also { margin-top: 32px; }
.also h3 { font-size: 18px; margin-bottom: 14px; }

/* ==========================================================
   DETALLE DE PRODUCTO
   ========================================================== */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding-block: 40px 20px; align-items: start; }
.pd-media { position: sticky; top: 140px; }
.pd-stage { position: relative; aspect-ratio: 4 / 3.4; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); background: radial-gradient(ellipse 65% 55% at 50% 42%, #fff 0%, #f3f3f1 70%, #eaeae7 100%); overflow: hidden; }
.pd-stage .ilu { width: 84%; height: auto; animation: pdIn 1s var(--ease-out) both; }
.pd-stage .pico { width: 140px; height: 140px; }
.pd-stage .pico svg { width: 60px; height: 60px; }
@keyframes pdIn { from { transform: translateY(24px) scale(.94); opacity: 0; } }
.pd-propio { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .1em; background: var(--red); color: #fff; padding: 2px 6px; border-radius: var(--r-sm); margin-left: 6px; vertical-align: middle; }
.pd-var { max-width: 320px; margin: 4px 0 18px; }
.pd-media .pimg { padding: 32px; }
.hp-media .pimg { padding: 10px; }
.pd-cat { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pd h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.02em; margin: 12px 0 14px; }
.pd-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.pd-meta b { color: var(--ink); font-weight: 500; }
.pd-price { margin: 24px 0; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.pd-price b { color: var(--ink); font-weight: 600; }
.pd-price svg { width: 20px; height: 20px; color: var(--ink); flex: none; margin-top: 1px; }
.pd-buy { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 32px; }
.pd-avail h3, .pd-desc h3 { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.pd-avail ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pd-avail li { display: flex; align-items: center; gap: 12px; padding: 14px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.pd-avail .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.pd-avail .yes .dot { background: var(--ok); }
.pd-avail li span:nth-child(2) { flex: 1; }
.pd-avail li small { color: var(--muted); font-size: 13px; }
.pd-avail .cur { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: var(--r-sm); background: var(--red); color: #fff; }
.pd-avail button { font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.pd-desc { margin-top: 32px; }
.pd-desc p { color: var(--muted); }
.spec { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px; }
.spec td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec td:first-child { color: var(--muted); width: 40%; }

/* ==========================================================
   CALCULADORA
   ========================================================== */
.calc { display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: start; padding-block: 40px 20px; }
.calc-form { position: sticky; top: 140px; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 16px; background: #fff; }
.calc-form h2 { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.calc-res .cr-wrap { overflow-x: auto; }
.cr-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 24px; border-bottom: 1px solid var(--line); }
.cr-head small { color: var(--muted); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.cr-head h2 { font-size: 32px; letter-spacing: -.02em; margin-top: 6px; }
.cr-score { text-align: right; }
.cr-score b { font-size: 40px; font-weight: 600; letter-spacing: -.03em; display: block; line-height: 1; }
.cr-score span { font-size: 13px; color: var(--muted); }
.cr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cr-table th { text-align: left; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 24px 10px; }
.cr-table td { padding: 12px 24px; border-top: 1px solid var(--line); vertical-align: top; }
.cr-table tr.g td { background: var(--paper-2); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); padding: 8px 24px; }
.cr-table tr.row { animation: up .5s var(--ease-out) both; animation-delay: calc(var(--i) * 25ms); }
.cr-q { font-weight: 600; white-space: nowrap; text-align: right; width: 1%; font-variant-numeric: tabular-nums; }
.cr-n b { display: block; font-weight: 500; }
.cr-n a:hover b { text-decoration: underline; }
.cr-n small { color: var(--muted); }
.cr-a { white-space: nowrap; width: 1%; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.badge.ok { border-color: #bfe5cd; color: var(--ok); background: #f1faf4; }
.badge.away, .badge.ask { color: var(--muted); }
.cr-foot { padding: 20px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cr-notes { padding: 0 24px 22px; font-size: 13px; color: var(--muted); }
.cr-notes p + p { margin-top: 4px; }

/* ==========================================================
   SEDES
   ========================================================== */
.sede-block { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; align-items: center; }
.sede-block:first-child { padding-top: 16px; }
.sb-info { display: flex; flex-direction: column; gap: 14px; }
.sb-info h2 { font-size: clamp(40px, 4.4vw, 56px); line-height: 1; letter-spacing: -.02em; }
.sb-info > p { color: var(--muted); font-size: 17px; }
.sb-list { display: grid; margin: 6px 0; border-top: 1px solid var(--line); }
.sb-list div { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sb-list svg { width: 17px; height: 17px; color: var(--muted); flex: none; margin-top: 3px; }
.sb-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.sb-tags span { font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: var(--r-sm); background: var(--paper-2); }
.sb-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.sb-map-in { height: 400px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sb-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(1) contrast(1.05); transition: filter .5s; }
.sb-map:hover iframe { filter: none; }

/* ==========================================================
   PEDIDO
   ========================================================== */
.progress { display: flex; margin: 40px 0 32px; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.progress li { flex: 1; list-style: none; display: flex; align-items: center; gap: 10px; padding: 16px 0; font-size: 14px; color: var(--muted); position: relative; }
.progress li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.progress li i { width: 24px; height: 24px; border-radius: var(--r-sm); display: grid; place-items: center; font-style: normal; font-weight: 600; font-size: 12px; border: 1px solid var(--line); color: var(--ink); flex: none; transition: background .3s, color .3s, border-color .3s; }
.progress li.done { color: var(--ink); }
.progress li.done::after { transform: scaleX(1); }
.progress li.done i { background: var(--ink); border-color: var(--ink); color: #fff; }
.ped { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.ped-box { border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-bottom: 16px; background: #fff; }
.ped-box h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.ped-box h2 i { width: 24px; height: 24px; border-radius: var(--r-sm); background: var(--paper-2); font-style: normal; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.ped-items { list-style: none; margin: 0; padding: 0; }
.ped-item { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.ped-item:first-child { border-top: 0; }
.ped-item .ci-ico { width: 48px; height: 48px; border: 1px solid var(--line); }
.qty-in { width: 84px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.qty-in input { width: 100%; border: 0; text-align: center; font-weight: 600; padding: 8px 4px; outline: 0; -moz-appearance: textfield; }
.qty-in input::-webkit-inner-spin-button { -webkit-appearance: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg > label > span { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, box-shadow .2s; }
.seg span svg { width: 22px; height: 22px; flex: none; }
.seg span b { display: block; font-size: 15px; font-weight: 600; }
.seg span small { color: var(--muted); font-size: 13px; }
.seg input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.seg input:checked + span svg { color: var(--red); }
.seg input:focus-visible + span { outline: 2px solid var(--red); }
.dir-field[hidden] { display: none; }
.ped-sum { position: sticky; top: 140px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.ps-head { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.ps-head small { color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.ps-head b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.01em; margin-top: 4px; }
.ps-body { padding: 18px 22px 22px; display: grid; gap: 12px; }
.ps-row { display: flex; justify-content: space-between; font-size: 14px; gap: 10px; }
.ps-row span { color: var(--muted); }
.ps-row b { text-align: right; font-weight: 500; }
.ps-body hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.ps-note { font-size: 12px; color: var(--muted); text-align: center; }
.ped-empty { text-align: center; padding: 40px 10px; }
.ped-empty b { font-size: 18px; font-weight: 600; }
.ped-empty p { color: var(--muted); margin: 8px 0 16px; }

/* ==========================================================
   NOSOTROS / CONTACTO
   ========================================================== */
.story { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.story h2 { font-size: clamp(32px, 3.4vw, 40px); line-height: 1.04; letter-spacing: -.01em; margin-bottom: 18px; }
.story p { color: var(--muted); font-size: 17px; margin-bottom: 14px; }
.story-art { position: relative; aspect-ratio: 1; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); display: grid; place-items: center; overflow: hidden; }
.story-art::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed var(--line-2); animation: spin 60s linear infinite; }
.story-art .big { width: 36%; aspect-ratio: 391 / 491; position: relative; z-index: 1; }
.story-art .yrs { position: absolute; left: 24px; bottom: 24px; }
.story-art .yrs b { font-size: 56px; font-weight: 600; letter-spacing: -.03em; line-height: 1; display: block; color: var(--red); }
.story-art .yrs span { color: var(--muted); font-size: 14px; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mv-card { padding: 32px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.mv-card:first-child { background: var(--ink); color: #fff; border-color: var(--ink); }
.mv-card:first-child p { color: rgba(255, 255, 255, .7); }
.mv-card h3 { font-size: 24px; margin-bottom: 12px; }
.mv-card p { color: var(--muted); font-size: 16px; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { padding: 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.value .perk-ico { margin-bottom: 32px; }
.value h3 { font-size: 18px; margin-bottom: 6px; }
.value p { color: var(--muted); font-size: 14px; }

.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.channel { padding: 24px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); display: grid; gap: 6px; }
.channel.current { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.channel h3 { font-size: 28px; letter-spacing: -.02em; margin: 6px 0 8px; }
.channel a:not(.btn) { display: flex; gap: 10px; align-items: center; font-size: 15px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.channel a:not(.btn):hover { color: var(--red); }
.channel svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.channel .btn { margin-top: 12px; }
.channel .btn svg { color: currentColor; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-form { border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: grid; gap: 14px; background: #fff; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 500; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform .35s var(--ease-out); flex: none; }
.faq details[open] summary svg { transform: rotate(180deg); color: var(--red); }
.faq details p { padding: 0 0 18px; color: var(--muted); animation: up .4s var(--ease-out); }

/* ==========================================================
   CUENTAS
   ========================================================== */
.auth { display: grid; grid-template-columns: 1.1fr .9fr; min-height: calc(100vh - 160px); }
.auth-main { display: grid; place-items: center; padding: 56px var(--gutter); }
.auth-box { width: min(480px, 100%); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.auth-tabs button { position: relative; padding: 14px 0; font-size: 15px; color: var(--muted); }
.auth-tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .4s var(--ease-out); }
.auth-tabs button.on { color: var(--ink); font-weight: 500; }
.auth-tabs button.on::after { transform: scaleX(1); }
.auth-form { display: grid; gap: 16px; animation: up .5s var(--ease-out); }
.auth-form h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -.03em; line-height: 1; }
.auth-sub { color: var(--muted); margin-top: -6px; }
.pw { position: relative; display: block; }
.pw input { padding-right: 70px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: var(--r-sm); color: var(--muted); }
.pw-eye:hover { background: var(--paper-2); color: var(--ink); }
.auth-seg span > span { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--red); width: 16px; height: 16px; flex: none; }
.auth-err { padding: 10px 12px; border-radius: var(--r-sm); background: var(--red-soft); color: var(--red-deep); font-size: 14px; }
.auth-mini { font-size: 13px; color: var(--muted); text-align: center; }
.auth-free { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--muted); }
.auth-side { background: var(--ink-3); color: #fff; padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.auth-side .eyebrow { color: rgba(255, 255, 255, .5); }
.auth-side h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.04; letter-spacing: -.02em; max-width: 14ch; }
.auth-roles { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.auth-roles li { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 4px; animation: up .6s var(--ease-out) both; }
.auth-roles li:nth-child(2) { animation-delay: .06s; }
.auth-roles li:nth-child(3) { animation-delay: .12s; }
.auth-roles li:nth-child(4) { animation-delay: .18s; }
.auth-roles b { font-size: 17px; font-weight: 600; }
.auth-roles span { color: rgba(255, 255, 255, .6); font-size: 14px; }
.auth-demo { margin-top: 28px; font-size: 12px; color: rgba(255, 255, 255, .45); }

.acc { display: grid; gap: 24px; max-width: 900px; }
.acc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.acc-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 30px; font-weight: 600; flex: none; }
.acc-avatar.sm { width: 36px; height: 36px; font-size: 15px; }
.acc-head h1 { font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -.03em; line-height: 1; }
.acc-role { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; font-size: 13px; }
.acc-ok { color: var(--ok); font-weight: 500; }
.acc-wait { color: #8a6200; font-weight: 500; }
.acc-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.acc-form { display: grid; gap: 16px; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.acc-form h2 { font-size: 22px; }
.acc-hint { color: var(--muted); font-size: 14px; margin-top: -10px; }
.acc-form .btn { justify-self: start; }
.acc-form + .acc-form { margin-top: 20px; }
.acc-alert { border-color: var(--red); box-shadow: 0 0 0 4px rgba(226, 0, 26, .08); }

.panel { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 160px); }
.pn-side { border-right: 1px solid var(--line); padding: 24px 16px; display: flex; flex-direction: column; gap: 20px; background: #fafafa; }
.pn-me { display: flex; gap: 10px; align-items: center; padding: 0 6px 18px; border-bottom: 1px solid var(--line); }
.pn-me b { display: block; font-size: 14px; }
.pn-me small { color: var(--muted); font-size: 12px; }
.pn-nav { display: grid; gap: 2px; }
.pn-nav button { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r-sm); font-size: 14px; text-align: left; }
.pn-nav button:hover { background: var(--paper-2); }
.pn-nav button.on { background: var(--ink); color: #fff; }
.pn-nav svg { width: 17px; height: 17px; }
.pn-store { margin-top: auto; font-size: 13px; color: var(--muted); padding: 0 6px; }
.pn-store:hover { color: var(--ink); }
.pn-main { padding: 28px clamp(20px, 3vw, 40px) 60px; min-width: 0; }
.pn-demo { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid #f0d58a; background: #fffaeb; border-radius: var(--r-sm); font-size: 13px; color: #6b5200; margin-bottom: 24px; }
.pn-demo svg { width: 18px; height: 18px; flex: none; }
.pn-head { margin-bottom: 20px; }
.pn-head h1 { font-size: 32px; letter-spacing: -.02em; }
.pn-head p { color: var(--muted); margin-top: 6px; }
.txt-red { color: var(--red); }
.pn-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.pn-search { flex: 1 1 240px; max-width: 360px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.pn-search svg { width: 16px; height: 16px; color: var(--muted); }
.pn-search input { border: 0; outline: 0; flex: 1; min-width: 0; font-size: 14px; }
.pn-tools select, .pn-table select { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; background: #fff; font-size: 14px; }
.pn-count { margin-left: auto; font-size: 13px; color: var(--muted); }
.pn-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.pn-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
.pn-table th { text-align: left; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; background: #fafafa; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pn-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pn-table tr:last-child td { border-bottom: 0; }
.pn-table tr.saved td { animation: savedFlash 1.2s ease; }
@keyframes savedFlash { 0% { background: #eaf7ef; } 100% { background: transparent; } }
.pn-table tr.pend td { background: #fffaeb; }
.pn-prod { display: flex; gap: 10px; align-items: center; min-width: 240px; }
.pn-prod .ci-ico { width: 36px; height: 36px; border: 1px solid var(--line); flex: none; }
.pn-prod .ci-ico svg { width: 18px; height: 18px; }
.pn-prod b { display: block; font-weight: 500; line-height: 1.3; }
.pn-prod small { color: var(--muted); font-size: 12px; }
.money { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 8px; width: 130px; background: #fff; transition: border-color .2s; }
.money:focus-within { border-color: var(--ink); }
.money span { color: var(--muted); font-size: 13px; }
.money input { border: 0; outline: 0; width: 100%; padding: 8px 4px; font-size: 14px; -moz-appearance: textfield; }
.money input::-webkit-inner-spin-button { -webkit-appearance: none; }
.money.pct { width: 76px; }
.pn-sedes { white-space: nowrap; }
.tgl { display: inline-flex; align-items: center; gap: 6px; margin-right: 10px; font-size: 13px; cursor: pointer; }
.tgl input { accent-color: var(--red); width: 15px; height: 15px; }
.tgl.lock { opacity: .5; cursor: not-allowed; }
.pn-final { white-space: nowrap; }
.pn-final b { display: block; }
.pn-final small { display: block; font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); }
.pn-act { white-space: nowrap; text-align: right; }
.pn-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.pn-card { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 12px; align-content: start; }
.pn-card h2 { font-size: 22px; }
.pn-card h2 small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.pn-card .btn { justify-self: start; }
.pn-new { margin-top: 24px; }
.pn-new-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pd-price.has { display: block; }

/* ==========================================================
   RESPONSIVE (páginas)
   ========================================================== */
@media (max-width: 1080px) {
  .perks-in { grid-template-columns: 1fr 1fr; }
  .perk:nth-child(3) { border-left: 0; }
  .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cats, .values { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .ms-grid { grid-template-columns: repeat(3, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc-form { position: static; }
  .ped { grid-template-columns: 1fr; }
  .ped-sum { position: static; }
}
@media (max-width: 900px) {
  .hero { padding-top: 56px; }
  .how-in { flex-direction: column; align-items: flex-start; gap: 12px; }
  .how-steps { flex-wrap: wrap; width: 100%; }
  .how-steps li { flex: 1 1 45%; font-size: 14px; }
  .how-steps li::after { display: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { order: 2; }
  .panel { grid-template-columns: 1fr; }
  .pn-side { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px 16px; gap: 12px; }
  .pn-me { border: 0; padding: 0; }
  .pn-nav { display: flex; flex-wrap: wrap; }
  .pn-store { margin: 0 0 0 auto; }
  .sh-in { grid-template-columns: 1fr; gap: 32px; }
  .shop-hero { padding: 36px 0 44px; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-chat { height: 420px; border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-side { padding: 24px; }
  .choice { grid-template-columns: 1fr; }
  .choice-card { min-height: 0; }
  .mini-shop { grid-template-columns: 1fr; }
  .ms-side { display: none; }
  .shop { grid-template-columns: minmax(0, 1fr); padding-block: 20px; }
  .shop-side { display: none; }
  .shop-chips { display: flex; }
  .pd { grid-template-columns: 1fr; gap: 28px; }
  .pd-media { position: static; }
  .split, .split.rev, .about, .story, .contact { grid-template-columns: 1fr; gap: 36px; }
  .split.rev > :first-child { order: 0; }
  .sede-cards, .channels { grid-template-columns: 1fr; }
  .sede-block { grid-template-columns: 1fr; gap: 24px; }
  .sb-map-in { height: 280px; }
  .progress li span { display: none; }
  .progress li { justify-content: center; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 40px; }
  .shop-hero h1 { font-size: 42px; }
  .sh-search { flex-wrap: wrap; padding: 8px 8px 8px 14px; }
  .sh-search input { font-size: 16px; flex-basis: calc(100% - 40px); }
  .sh-search .btn { flex: 1; }
  .sh-grid { gap: 8px; }
  .hp-media { height: 96px; }
  .sh-meta { gap: 14px; }
  .ask { flex-wrap: wrap; padding: 10px; }
  .ask input { flex-basis: calc(100% - 40px); font-size: 16px; }
  .ask .btn { flex: 1; }
  .demo-chat { padding: 16px; }
  .dm { max-width: 88%; }
  .hero-ctas .btn { flex: 1; }
  .hero-q { margin-top: 44px; }
  .ms-grid { grid-template-columns: 1fr 1fr; }
  .perks-in { grid-template-columns: 1fr; }
  .perk + .perk { border-left: 0; border-top: 1px solid var(--line); }
  .perk { padding: 20px 0; }
  .cats { gap: 10px; }
  .cat-tile { padding: 16px; min-height: 140px; }
  .steps, .mv, .values { grid-template-columns: 1fr; }
  .grid2, .seg { grid-template-columns: 1fr; }
  .ped-item { grid-template-columns: 44px 1fr auto; }
  .ped-item .ci-rm { grid-column: 3; grid-row: 1; }
  .ped-item .qty-in { grid-column: 2; }
  .cr-table th, .cr-table td { padding-left: 14px; padding-right: 14px; }
  .cr-head { padding: 20px 16px; }
  .pd-buy { grid-template-columns: 1fr; }
  .stat { padding: 24px 18px; }
}

/* Panel: cerrar sesión y pedidos */
.pn-logout { display: inline-flex; align-items: center; gap: 8px; margin: 6px 6px 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13px; color: var(--ink); background: #fff; transition: background .2s, color .2s, border-color .2s; }
.pn-logout svg { width: 15px; height: 15px; }
.pn-logout:hover { background: var(--red); border-color: var(--red); color: #fff; }
.pn-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.pn-orders { display: grid; gap: 14px; }
.pn-order { border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: var(--r); background: #fff; padding: 16px 18px; display: grid; gap: 14px; }
.pn-order.est-nuevo { border-left-color: var(--red); }
.pn-order.est-confirmado { border-left-color: #2c6db5; }
.pn-order.est-preparando { border-left-color: #d08a00; }
.pn-order.est-entregado { border-left-color: #1faa53; opacity: .85; }
.pn-order.est-cancelado { opacity: .6; }
.pn-order header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pn-order header b { font-size: 16px; display: block; }
.pn-order header small { color: var(--muted); font-size: 12.5px; }
.pn-order header select { height: 36px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 10px; font: inherit; font-size: 13px; background: #fff; }
.pn-order-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pn-order-grid > div { display: grid; gap: 2px; align-content: start; font-size: 14px; }
.pn-order-grid span:first-child { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pn-order-grid small { color: var(--muted); }
.pn-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pn-items li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pn-items li b { text-align: right; }
.pn-items li small { display: block; color: var(--muted); font-size: 12px; }
.pn-items li em { font-style: normal; font-size: 13px; color: var(--muted); }
.pn-order footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.pn-order footer small { color: var(--muted); }
@media (max-width: 700px) { .pn-order-grid { grid-template-columns: 1fr; } }
#pedForm .seg { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { #pedForm .seg { grid-template-columns: 1fr; } }

/* Cotizaciones y ferreteros */
.lead-pendiente { border-left-color: var(--red); }
.lead-contactado { border-left-color: #2c6db5; }
.lead-vendido { border-left-color: #1faa53; }
.lead-descartado { opacity: .6; }
.lead-body { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.lead-k { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.lead-list { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--muted); columns: 2; column-gap: 24px; }
.lead-act { display: flex; flex-direction: column; gap: 8px; }
.txt-warn { color: #b07400; }
.txt-ok { color: #1a8f46; }
@media (max-width: 700px) { .lead-body { grid-template-columns: 1fr; } .lead-act { flex-direction: row; flex-wrap: wrap; } .lead-list { columns: 1; } }
.auth-err.ok { background: #e8f6ee; color: #146c3a; }
.pn-demo .btn { margin-left: auto; flex: none; }
/* Verificación en dos pasos */
.code-in { font-size: 22px !important; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.dp-pasos { margin: 8px 0 12px; padding-left: 20px; color: #444; line-height: 1.6; }
.dp-qr { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin: 6px 0 16px; }
.dp-qr img { background: #fff; padding: 8px; border: 1px solid rgba(0,0,0,.1); border-radius: 12px; }
.dp-key { display: inline-block; margin-top: 6px; padding: 6px 10px; background: #f3f1ef; border-radius: 6px; font-size: 14px; letter-spacing: .08em; word-break: break-all; }
.dp-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.dp-row .field { flex: 1 1 220px; margin: 0; }
.dp-off { margin-top: 10px; }
.dp-off summary { cursor: pointer; color: #666; font-size: 14px; }
/* CAPTCHA: solo aparece si Cloudflare necesita que la persona marque la casilla */
.ts-box { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; }
.ts-box:empty { display: none; }
.ts-box.ts-ver { background: #fff; padding: 12px 12px 10px; border-radius: 14px; box-shadow: 0 18px 50px -12px rgba(0,0,0,.35); }
.ts-box.ts-ver::before { content: "Confirma que eres una persona para continuar"; display: block; font-size: 13px; font-weight: 600; color: #222; margin: 0 2px 8px; }
.pn-negocio { display: block; margin-top: 6px; width: 100%; max-width: 240px; height: 30px; padding: 0 8px; border: 1px solid rgba(0,0,0,.12); border-radius: 6px; font: inherit; font-size: 13px; }
.check-wa span { font-size: 13.5px; line-height: 1.45; }
.check-wa span::before { content: ""; }
/* Panel · WhatsApp */
.pn-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.wa-lista { list-style: none; margin: 8px 0 0; padding: 0; max-height: 420px; overflow: auto; }
.wa-lista li { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.07); font-size: 14px; }
.wa-lista li span { color: #555; }
.wa-lista li small { color: #888; font-size: 12px; }
.wa-lista li.entra b { color: #128c7e; }
.wa-enviar .btn-wa svg { width: 18px; height: 18px; }
