/* SoyAi — hoja de estilos principal. Móvil primero (360 px+). */
@font-face { font-family: 'Montserrat'; font-weight: 400; font-display: swap; src: url('/fonts/montserrat-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 500; font-display: swap; src: url('/fonts/montserrat-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-display: swap; src: url('/fonts/montserrat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-display: swap; src: url('/fonts/montserrat-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-display: swap; src: url('/fonts/montserrat-latin-800-normal.woff2') format('woff2'); }

:root {
  --purple: #9B51E0;
  --purple-strong: #8139CC;
  --purple-soft: #F3EAFC;
  --blue: #4A90E2;
  --blue-strong: #2F74C6;
  --blue-soft: #EAF2FC;
  --grad: linear-gradient(135deg, #9B51E0 0%, #4A90E2 100%);
  --ink: #1B2130;
  --ink-2: #3E4658;
  --muted: #646C7E;
  --line: #E4E8EF;
  --line-2: #D2D8E2;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --ok: #1E8A5A; --ok-bg: #E7F6EE;
  --warn: #9A6200; --warn-bg: #FFF5DD;
  --bad: #C0392B; --bad-bg: #FDECEA;
  --info-bg: #EEF4FD;
  --r: 14px; --r-sm: 10px; --r-lg: 22px;
  --shadow: 0 1px 2px rgba(27,33,48,.06), 0 8px 24px rgba(27,33,48,.06);
  --shadow-lg: 0 2px 4px rgba(27,33,48,.05), 0 24px 48px rgba(27,33,48,.10);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --bar-h: 0px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-strong); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4, h5 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); }
h2, .h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); }
h3, .h3 { font-size: 1.22rem; font-weight: 700; }
.h4 { font-size: 1.08rem; font-weight: 700; }
.h5 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.center .lead, .section-head .lead { margin-inline: auto; }
.mt { margin-top: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.narrow-wide { max-width: 900px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--purple-strong); margin-bottom: .6rem; }
.warn-text { color: var(--warn); }
mark.pending { background: var(--warn-bg); color: var(--warn); padding: 0 4px; border-radius: 4px; }

/* ---------- Botones ---------- */
.btn { --b: transparent; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .7em 1.25em; border-radius: 12px; border: 1.5px solid var(--b); font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--purple-strong); color: #fff; box-shadow: 0 6px 18px rgba(129,57,204,.25); }
.btn-primary:hover { background: #6E2CB3; color: #fff; }
.btn-ghost { --b: var(--line-2); background: #fff; color: var(--ink); }
.btn-ghost:hover { --b: var(--purple); color: var(--purple-strong); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--purple-soft); color: var(--ink); }
.btn-link { background: none; color: var(--purple-strong); padding-inline: .3em; min-height: 40px; }
.btn-link:hover { color: var(--ink); text-decoration: underline; }
.btn-link.danger, .danger { color: var(--bad); }
.btn-sm { min-height: 38px; padding: .45em .9em; font-size: .875rem; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: .85em 1.6em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn .i { width: 1.15em; height: 1.15em; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Encabezado ---------- */
.test-banner { background: #2B2140; color: #FFE7A3; text-align: center; font-size: .82rem; padding: 6px 12px; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand img { width: 122px; height: auto; }
.main-nav { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.cart-link { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); }
.cart-link:hover { background: var(--bg-soft); }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--purple-strong); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.hide-sm { display: none; }
.mobile-nav > summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.mobile-nav > summary::-webkit-details-marker { display: none; }
.mobile-nav .shut, .mobile-nav[open] .open { display: none; }
.mobile-nav[open] .shut { display: block; }
.mobile-panel { position: fixed; inset: 64px 0 0 0; background: #fff; padding: 1.25rem var(--gutter) 6rem; overflow-y: auto; border-top: 1px solid var(--line); animation: fadeIn .18s ease; }
.mobile-panel ul { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.mobile-panel li a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.mobile-needs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1rem; }
.drop-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: .4rem; }

@media (min-width: 980px) {
  .main-nav { display: flex; align-items: center; gap: .25rem; margin-left: 1.5rem; }
  .main-nav > a, .nav-drop > summary { padding: .55rem .8rem; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; cursor: pointer; }
  .main-nav > a:hover, .nav-drop > summary:hover, .main-nav .is-active { color: var(--purple-strong); background: var(--purple-soft); }
  .nav-drop { position: relative; }
  .nav-drop > summary { list-style: none; display: flex; align-items: center; gap: .35rem; }
  .nav-drop > summary::-webkit-details-marker { display: none; }
  .nav-drop > summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
  .drop-panel { position: absolute; top: calc(100% + 10px); left: -10px; width: 460px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 1.1rem; animation: fadeIn .15s ease; }
  .drop-grid { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .15rem; }
  .drop-grid a { display: block; padding: .55rem .7rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
  .drop-grid a:hover { background: var(--bg-soft); color: var(--purple-strong); }
  .drop-all { display: inline-flex; gap: .4rem; align-items: center; font-weight: 700; font-size: .9rem; text-decoration: none; padding: .3rem .7rem; }
  .drop-all .i { width: 18px; }
  .mobile-nav { display: none; }
  .hide-sm { display: inline-flex; }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-sm { padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }
.section-tint { background: var(--bg-soft); }
.section-dark { background: #1D2232; color: #fff; }
.section-dark .eyebrow { color: #C9A6F2; }
.section-dark p { color: #D3D8E3; }
.section-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.left { text-align: left; margin-bottom: 2rem; }
.section-head.left .lead { margin-inline: 0; }
.crumbs { padding-top: 1rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; font-size: .82rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: .4rem; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--purple-strong); }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr .9fr; } }

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero::before { content: ''; position: absolute; inset: -30% -10% auto auto; width: 70vw; max-width: 900px; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(155,81,224,.16), rgba(74,144,226,.08) 55%, transparent 72%); z-index: -1; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { font-size: clamp(2.15rem, 6.2vw, 3.7rem); letter-spacing: -.03em; }
.hero h1 { background: linear-gradient(120deg, var(--ink) 30%, #4B2D7A 70%, #2F5E9C); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hero-lead { font-size: clamp(1.03rem, 2vw, 1.17rem); color: var(--ink-2); max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 1.4rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.hero-points li { display: flex; align-items: center; gap: .4rem; }
.hero-points .i { color: var(--ok); width: 18px; height: 18px; stroke-width: 2.4; }
.hero-media { position: relative; }
.hero-img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); object-fit: cover; }

/* ---------- Tarjetas de necesidad ---------- */
.need-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.need-card { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1rem; row-gap: .2rem; padding: 1.25rem 2.75rem 1.25rem 1.25rem; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .18s, box-shadow .18s, transform .18s; }
.need-card:hover { border-color: rgba(155,81,224,.45); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.need-ico { grid-row: span 2; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--purple-soft); color: var(--purple-strong); }
.need-card:nth-child(3n+2) .need-ico { background: var(--blue-soft); color: var(--blue-strong); }
.need-name { font-weight: 700; font-size: 1.02rem; }
.need-lead { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.need-go { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--line-2); transition: color .18s, transform .18s; }
.need-card:hover .need-go { color: var(--purple); transform: translate(3px, -50%); }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; counter-reset: s; }
@media (min-width: 760px) { .steps:not(.vertical) { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; }
.section-tint .steps li { border-color: transparent; box-shadow: var(--shadow); }
.steps h3 { font-size: 1.05rem; margin-top: .8rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 800; font-size: .95rem; }
.steps.vertical li { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1rem 1.2rem; }
.steps.vertical .step-n { grid-row: span 2; }
.steps.vertical h3 { margin-top: .2rem; }

/* ---------- Materiales ---------- */
.mat-grid { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .mat-grid { grid-template-columns: 1fr 1fr; } }
.mat-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.mat-media { display: block; background: var(--bg-soft); }
.mat-media img, .mat-media .ph { width: 100%; aspect-ratio: 16/10 !important; object-fit: cover; }
.mat-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.mat-body h2 a, .mat-body h3 a { color: inherit; text-decoration: none; }
.mat-body p { color: var(--ink-2); font-size: .95rem; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: auto; }
.row-actions.center { justify-content: center; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .5rem 0 1.25rem; }
.tiers > div { background: var(--bg-soft); border-radius: 12px; padding: .8rem 1rem; }
.tiers .tier-vol { background: var(--purple-soft); }
.tiers dt { font-size: .78rem; color: var(--muted); font-weight: 600; }
.tiers dd { margin: .15rem 0 0; font-weight: 800; font-size: 1.12rem; white-space: nowrap; }
.tiers dd span { display: block; white-space: normal; }
.tiers dd span { font-size: .78rem; font-weight: 600; color: var(--muted); }
.vol-note { font-weight: 700; color: var(--purple-strong); }
.price-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--shadow); }
.price-box-t { font-weight: 800; margin-bottom: .5rem; }
.plain { list-style: none; padding: 0; }
.plain li { padding: .25rem 0; }

/* ---------- Galería de diseños ---------- */
.tabs { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tabs button { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem 1rem .55rem .7rem; border-radius: 99px; border: 1.5px solid var(--line-2); background: #fff; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--ink-2); }
.tabs button[aria-selected="true"] { border-color: var(--purple); color: var(--ink); box-shadow: 0 0 0 3px var(--purple-soft); }
.swatches { display: inline-flex; }
.swatches i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; margin-left: -5px; box-shadow: 0 0 0 1px var(--line-2); }
.swatches i:first-child { margin-left: 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); gap: 1rem; }
.gallery-grid.two { grid-template-columns: 1fr 1fr; }
.tpl { margin: 0; }
.tpl-img { display: grid; place-items: center; aspect-ratio: 3/4; background: #fff; border-radius: var(--r); padding: .75rem; box-shadow: var(--shadow); overflow: hidden; }
.section:not(.section-tint) .tpl-img { background: var(--bg-soft); box-shadow: none; }
.tpl-img { position: relative; }
.tpl-img img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(27,33,48,.14)); transition: transform .25s ease; }
.tpl:hover .tpl-img img { transform: translateY(-3px) rotate(-1deg); }
.tpl figcaption { padding: .6rem .2rem 0; font-size: .86rem; display: flex; flex-direction: column; }
.tpl figcaption span { color: var(--muted); font-size: .8rem; }
.gallery-note { text-align: center; margin-top: 1.25rem; }

/* ---------- Bloques varios ---------- */
.corp-mini, .corp-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
@media (min-width: 640px) { .corp-mini { grid-template-columns: 1fr 1fr; } }
.corp-mini li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 1.1rem; display: flex; flex-direction: column; gap: .2rem; }
.corp-mini span { color: #C8CEDB; font-size: .9rem; }
.corp-list { margin: 1.5rem 0; }
.corp-list li { border-left: 3px solid var(--purple); padding: .2rem 0 .2rem 1rem; display: flex; flex-direction: column; }
.corp-list span { color: var(--ink-2); font-size: .92rem; }
.cta-final { background: linear-gradient(180deg, #fff, var(--purple-soft)); }
.callout { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-radius: var(--r); background: var(--bg-soft); border: 1px solid var(--line); }
.callout p { margin: .2rem 0 0; color: var(--ink-2); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.1rem, 3vw, 1.6rem); margin-bottom: 1.25rem; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 99px; padding: .35rem .85rem; font-size: .88rem; font-weight: 600; }
.honest { list-style: none; padding: 0; display: grid; gap: .75rem; }
.honest li { display: flex; gap: .7rem; align-items: flex-start; font-size: .94rem; color: var(--ink-2); }
.honest .i { color: var(--blue-strong); margin-top: 2px; }
.benefit { display: flex; gap: .6rem; align-items: center; font-weight: 700; }
.benefit .i { color: var(--ok); stroke-width: 2.4; }
.checks { list-style: none; padding: 0; }
.checks li { display: flex; gap: .55rem; align-items: center; padding: .2rem 0; }
.checks .i { color: var(--ok); width: 18px; stroke-width: 2.4; }
.sol-hero { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .sol-hero { grid-template-columns: 1fr 1fr; } }
.sol-hero img, .sol-hero .ph { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
.how-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .how-grid { grid-template-columns: 1fr 1fr; } }
.how-grid img, .how-grid .ph { border-radius: var(--r); margin-bottom: 1rem; width: 100%; object-fit: cover; }
.shape-list { list-style: none; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.shape-list li { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; }
.shape-list li .shape-ico { grid-row: span 2; }
.shape-list .muted { font-size: .84rem; }
.shape-ico { display: inline-block; width: 30px; height: 30px; border: 2.5px solid currentColor; color: var(--purple-strong); flex: none; }
.shape-circulo { border-radius: 50%; }
.shape-cuadrado { border-radius: 2px; }
.shape-rectangulo { width: 22px; height: 36px; border-radius: 2px; }
.shape-rectangulo-redondeado { width: 22px; height: 36px; border-radius: 6px; }
.product { display: grid; gap: 2rem; }
@media (min-width: 900px) { .product { grid-template-columns: 1fr 1fr; align-items: start; } .product-media { position: sticky; top: 90px; } }
.product-media img, .product-media .ph { border-radius: var(--r-lg); background: var(--bg-soft); width: 100%; }
.specs { display: grid; gap: .4rem; }
.specs div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: .4rem 0; }
.specs dd { margin: 0; font-weight: 600; }
.contact-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.contact-card { display: flex; flex-direction: column; gap: .2rem; text-decoration: none; color: var(--ink); margin: 0; transition: border-color .15s, box-shadow .15s; }
.contact-card:hover { border-color: var(--purple); box-shadow: var(--shadow); color: var(--ink); }
.contact-card .i { color: var(--purple-strong); margin-bottom: .4rem; }
.contact-card span { color: var(--muted); font-size: .88rem; }
.prose h2 { font-size: 1.25rem; margin-top: 1.8rem; }
.prose ul { padding-left: 1.2rem; }

/* Marcador de imagen ausente */
.ph { width: 100%; background: linear-gradient(135deg, var(--purple-soft), var(--blue-soft)); border-radius: var(--r); display: grid; place-items: center; }
.ph-mark { width: 54px; height: 54px; border-radius: 14px; border: 2.5px dashed rgba(129,57,204,.35); }

/* ---------- Preguntas frecuentes ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 500; color: var(--purple-strong); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { padding: 0 0 1.1rem; color: var(--ink-2); }

/* ---------- Formularios ---------- */
.form .field, .field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 600; font-size: .92rem; }
.opt { font-weight: 500; color: var(--muted); font-size: .85em; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=password], input[type=date], input:not([type]), select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 11px; padding: .72rem .85rem; min-height: 48px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px var(--purple-soft); }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.field-error { color: var(--bad); font-size: .85rem; font-weight: 600; }
.field-help, .hint { color: var(--muted); font-size: .85rem; }
input[type=file] { font: inherit; font-size: .9rem; max-width: 100%; }
.check, .radio { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; cursor: pointer; padding: .25rem 0; }
.check input, .radio input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--purple-strong); flex: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: .5rem; }
.success-card .i { color: var(--ok); vertical-align: -4px; }

/* ---------- Alertas ---------- */
.alert { border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: 1.25rem; background: var(--info-bg); border: 1px solid #D6E4F7; color: var(--ink); }
.alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.alert p:last-child { margin-bottom: 0; }
.alert-error { background: var(--bad-bg); border-color: #F5C9C3; }
.alert-ok { background: var(--ok-bg); border-color: #BFE5D1; }
.alert-warn { background: var(--warn-bg); border-color: #F2DDA5; }

/* ---------- Configurador ---------- */
.cfg-wrap { max-width: 980px; }
.cfg .step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.1rem, 3vw, 1.75rem); margin-bottom: 1rem; scroll-margin-top: 90px; }
.cfg .step > legend { display: flex; align-items: center; gap: .7rem; font-size: 1.12rem; float: left; width: 100%; margin-bottom: 1rem; }
.cfg .step > legend + * { clear: both; }
.cfg .step.is-done { border-color: rgba(30,138,90,.35); }
.cfg .step.is-locked { opacity: .55; }
.opt-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin-bottom: .6rem; }
.opt-grid.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.opt-grid.four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .opt-grid.four { grid-template-columns: repeat(4, 1fr); } }
.opt-card { position: relative; display: block; cursor: pointer; }
.opt-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt-body { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: .9rem 1rem; border: 1.5px solid var(--line-2); border-radius: 13px; transition: border-color .15s, box-shadow .15s, background .15s; }
.opt-body small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.opt-body .shape-ico { margin-bottom: .4rem; }
.opt-card:hover .opt-body { border-color: var(--purple); }
.opt-card input:checked + .opt-body { border-color: var(--purple-strong); background: var(--purple-soft); box-shadow: 0 0 0 1px var(--purple-strong); }
.opt-card input:focus-visible + .opt-body { outline: 3px solid var(--blue); outline-offset: 2px; }
.opt-card.is-unavailable { opacity: .42; }
.opt-card.is-unavailable .opt-body::after { content: 'No disponible en esta forma'; font-size: .72rem; color: var(--muted); font-weight: 600; }
.sublabel { font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--muted); margin: .4rem 0 .5rem; }
.design-pick { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .design-pick { grid-template-columns: 1.4fr 1fr; } }
.preview-box { background: var(--bg-soft); border-radius: var(--r); padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.preview { min-height: 240px; display: grid; place-items: center; }
.preview img { max-height: 320px; max-width: 100%; width: auto; height: auto; filter: drop-shadow(0 10px 18px rgba(27,33,48,.16)); animation: fadeIn .25s ease; }
.qty-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: 13px; overflow: hidden; }
.stepper input { width: 92px; border: 0; border-radius: 0; text-align: center; font-weight: 800; font-size: 1.15rem; -moz-appearance: textfield; min-height: 52px; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper input:focus { box-shadow: none; }
.step-btn { width: 52px; border: 0; background: var(--bg-soft); font-size: 1.4rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.step-btn:hover { background: var(--purple-soft); }
.qty-info p { margin: 0; }
.vol-badge { display: inline-flex; gap: .4rem; align-items: center; padding: .3rem .75rem; border-radius: 99px; font-size: .82rem; font-weight: 700; background: var(--ok-bg); color: var(--ok); }
.vol-badge.off { background: var(--bg-soft); color: var(--ink-2); }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--bg-soft); border-radius: 13px; padding: 4px; gap: 4px; margin-bottom: 1rem; }
.seg label { display: flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-radius: 10px; cursor: pointer; font-size: .9rem; }
.seg label:has(input:checked) { background: #fff; box-shadow: var(--shadow); }
.seg input { accent-color: var(--purple-strong); }
.group-row { display: grid; grid-template-columns: 82px 1fr 40px; gap: .5rem; align-items: end; padding: .75rem; border: 1px solid var(--line); border-radius: 12px; margin-bottom: .6rem; background: var(--bg-soft); }
.group-row .field { margin: 0; }
.group-row .g-label { grid-column: 1 / 3; }
.group-row label { font-size: .8rem; }
.g-del { grid-row: 1; grid-column: 3; align-self: end; height: 48px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 10px; }
.g-del:hover { color: var(--bad); background: var(--bad-bg); }
@media (min-width: 760px) { .group-row { grid-template-columns: 90px 1.6fr 1fr 40px; } .group-row .g-label { grid-column: auto; } .g-del { grid-column: 4; } }
.groups-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; }
.groups-sum { font-weight: 700; font-size: .9rem; }
.groups-sum.ok { color: var(--ok); } .groups-sum.bad { color: var(--bad); }
.check-card { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border: 1.5px solid var(--line-2); border-radius: 13px; cursor: pointer; font-weight: 500; }
.check-card:has(input:checked) { border-color: var(--purple-strong); background: var(--purple-soft); }
.check-card input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--purple-strong); flex: none; }
.custom-fields { margin-top: 1rem; }
.custom-preview { display: grid; place-items: center; padding: 1rem; background: var(--bg-soft); border-radius: var(--r); margin-bottom: 1rem; }
.mock { position: relative; background: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; padding: 8% 8% 6%; gap: 5%; overflow: hidden; }
.mock.is-circle { border-radius: 50%; padding: 14%; }
.mock-logo { flex: 1; width: 100%; display: grid; place-items: center; min-height: 0; }
.mock-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.mock-qr { width: 52%; aspect-ratio: 1; border: 2px dashed #B9C0CC; border-radius: 6px; display: grid; place-items: center; font-size: .62rem; color: var(--muted); text-align: center; font-weight: 700; }
.mock-code { width: 36%; height: 7%; min-height: 14px; border: 2px dashed #B9C0CC; border-radius: 4px; font-size: .55rem; display: grid; place-items: center; color: var(--muted); }
.mock-nfc { font-size: .6rem; font-weight: 800; color: var(--muted); letter-spacing: .08em; }
.cfg-bar { position: sticky; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem calc(.85rem + env(safe-area-inset-bottom)); margin: 1.5rem calc(var(--gutter) * -1) 0; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(27,33,48,.07); }
@media (min-width: 760px) { .cfg-bar { margin-inline: 0; border: 1px solid var(--line); border-radius: var(--r-lg); bottom: 12px; padding: 1rem 1.25rem; } }
.cfg-sum { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.cfg-sum strong { font-size: 1.2rem; }
.cfg-bar .btn { white-space: nowrap; flex: none; }
@media (max-width: 480px) { .cfg-bar .btn { padding-inline: 1rem; font-size: .95rem; } .cfg-sum .small { font-size: .78rem; } }
.cfg-sum .small { color: var(--muted); }
body.has-bar { --bar-h: 84px; }

/* ---------- Carrito y checkout ---------- */
.cart-grid, .checkout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 940px) { .cart-grid, .checkout { grid-template-columns: 1fr 360px; } .cart-side, .co-side { position: sticky; top: 88px; } }
.cart-line { display: grid; grid-template-columns: 72px 1fr; gap: 1rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 1rem; background: #fff; }
.cart-line.has-error { border-color: #F0B5AE; }
.cl-thumb img, .thumb-ph { width: 72px; height: 96px; object-fit: contain; border-radius: 8px; background: var(--bg-soft); }
.thumb-ph { display: grid; place-items: center; color: var(--purple-strong); }
.thumb-ph.is-circle { height: 72px; border-radius: 50%; }
.cl-main h2 { margin-bottom: .2rem; }
.cl-price { grid-column: 2; display: flex; gap: .75rem; align-items: baseline; }
.cl-price strong { font-size: 1.1rem; white-space: nowrap; }
.cl-price span { white-space: nowrap; }
@media (min-width: 640px) { .cart-line { grid-template-columns: 80px 1fr auto; } .cl-price { grid-column: 3; flex-direction: column; align-items: flex-end; } }
.cl-dest ul { list-style: none; padding: 0; margin: 0 0 .6rem; font-size: .88rem; }
.cl-dest li { padding: .15rem 0; overflow-wrap: anywhere; }
.badge { display: inline-block; background: var(--purple-soft); color: var(--purple-strong); border-radius: 6px; padding: 0 .4rem; font-weight: 700; font-size: .78rem; }
.url { overflow-wrap: anywhere; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }
.cl-actions { display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: center; }
.qty-form { display: flex; gap: .4rem; align-items: center; }
.qty-form input { width: 86px; min-height: 40px; padding: .4rem .6rem; }
.cd-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.cd-upload { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.cd-row .i { width: 16px; color: var(--ok); vertical-align: -3px; }
.coupon-form { margin: 1rem 0; }
.inline { display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.coupon-form .inline input { width: 200px; min-height: 40px; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.sum-lines { margin: 0 0 1rem; }
.sum-lines > div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .94rem; }
.sum-lines dt small { display: block; color: var(--muted); font-weight: 500; }
.sum-lines dd { margin: 0; font-weight: 700; text-align: right; white-space: nowrap; }
.sum-info { color: var(--ok); }
.sum-info dd { font-weight: 600; }
.sum-total { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .9rem !important; font-size: 1.1rem !important; font-weight: 800; }
.sum-total dd { font-weight: 800; }
.checkout fieldset.card legend { float: left; width: 100%; margin-bottom: 1rem; }
.checkout fieldset.card legend + * { clear: both; }
[data-hidden-until-toggle] { display: none; }

/* ---------- Seguimiento ---------- */
.status-grid { display: grid; gap: .75rem; margin: 1.5rem 0; }
@media (min-width: 700px) { .status-grid { grid-template-columns: repeat(3, 1fr); } }
.status-card { border-radius: var(--r); padding: 1rem 1.1rem; background: var(--bg-soft); border-left: 4px solid var(--line-2); display: flex; flex-direction: column; gap: .2rem; }
.st-l { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.tone-ok { border-color: var(--ok); background: var(--ok-bg); }
.tone-wait { border-color: #E2A300; background: var(--warn-bg); }
.tone-action { border-color: var(--purple); background: var(--purple-soft); }
.tone-bad { border-color: var(--bad); background: var(--bad-bg); }
.ol-line { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.ol-line ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.ol-line > span { white-space: nowrap; font-weight: 700; }
.design-block { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.design-block:first-of-type { border-top: 0; margin-top: 0; }
.proof-img { max-height: 420px; width: auto; border: 1px solid var(--line); border-radius: 10px; margin: .5rem 0 1rem; background: var(--bg-soft); }
.approve-form { background: var(--bg-soft); padding: 1rem; border-radius: 12px; }
.copy-row { display: flex; gap: .5rem; margin-top: .6rem; }
.copy-row input { min-height: 40px; font-size: .85rem; font-family: ui-monospace, monospace; }
.result-ico { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; border-left: 0; }
.result-ico .i { width: 36px; height: 36px; stroke-width: 2.4; }
.result-ico.tone-ok { color: var(--ok); } .result-ico.tone-bad { color: var(--bad); } .result-ico.tone-wait { color: var(--warn); }
.inline-upload { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.retry { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.retry p { margin: 0; }
.sandbox { border: 2px dashed #E2A300; }

/* ---------- Pie ---------- */
.site-footer { background: #151A26; color: #C8CEDB; padding: 3.5rem 0 calc(5.5rem + var(--bar-h)); margin-top: 0; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.footer-grid > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .footer-grid > div:first-child { grid-column: auto; } }
.footer-grid img { margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: .25rem 0; font-size: .9rem; }
.site-footer a, .site-footer .linklike { color: #E4E8F0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-title { color: #fff; font-weight: 700; margin-bottom: .6rem; }
.site-footer .muted { color: #9AA3B5; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 2rem; padding-top: 1.25rem; }

/* ---------- Chat flotante ---------- */
.chat-fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom) + var(--bar-h)); z-index: 35; }
.chat-btn { display: inline-flex; align-items: center; gap: .5rem; height: 54px; padding: 0 1.1rem 0 1rem; border-radius: 99px; border: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 700; font-size: .9rem; text-decoration: none; box-shadow: 0 10px 28px rgba(27,33,48,.28); cursor: pointer; transition: transform .15s, background .15s; }
.chat-btn:hover { background: #2C3446; color: #fff; transform: translateY(-2px); }
.chat-btn span { display: none; }
@media (min-width: 640px) { .chat-btn span { display: inline; } }
.chat-panel { position: absolute; right: 0; bottom: 66px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 140px)); background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.chat-x { border: 0; background: none; cursor: pointer; width: 40px; height: 40px; border-radius: 10px; }
.chat-body { flex: 1; display: grid; place-items: center; }
.chat-body iframe { width: 100%; height: 100%; border: 0; }
.chat-alt { padding: .6rem 1rem; margin: 0; border-top: 1px solid var(--line); }

/* ---------- Consentimiento ---------- */
.consent { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--bar-h)); z-index: 45; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 1.1rem 1.2rem; font-size: .9rem; }
.consent p { margin: 0 0 .8rem; }
.consent-actions { display: flex; gap: .5rem; justify-content: flex-end; }
body:has(.consent) .chat-fab { bottom: calc(150px + var(--bar-h)); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
