/* ==========================================================================
   NFC Project · hoja de estilos
   Sistema visual basado en la tarjeta física: negro mate, azul NFC y cielo.
   1 Tokens · 2 Base · 3 Componentes · 4 Inicio · 5 Producto · 6 Páginas · 7 Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: dark;
  --bg: #030406;
  --bg-alt: #07090d;
  --surface: #0b0e14;
  --surface-2: #11151d;
  --surface-solid: #0d1118;
  --field: #080b10;
  --text: #f5f7fa;
  --text-2: #c5ccd8;
  --muted: #8b95a7;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #4d86ff;
  --accent-2: #38bdf8;
  --accent-soft: rgba(77, 134, 255, 0.12);
  --accent-line: rgba(77, 134, 255, 0.45);
  --on-accent: #ffffff;
  /* Fondos con texto blanco encima: mínimo 4,5:1 en todo el recorrido */
  --accent-strong: #2f5cff;
  --grad-action: linear-gradient(120deg, #2f66ff 0%, #2f5cff 50%, #2448e0 100%);
  --grad-primary: linear-gradient(120deg, #38bdf8 0%, #3d7bff 55%, #2f5cff 100%);
  --shadow-action: 0 8px 22px rgba(0, 0, 0, 0.45);
  --shadow-action-hover: 0 14px 30px rgba(0, 0, 0, 0.5);
  /* Colores de impresión de la tarjeta física: iguales en los dos temas */
  --card-black: #050608;
  --card-white: #fbfbfc;
  --card-ink: #0a0f1c;
  --card-blue: #3d7bff;
  --success: #4ade80;
  --success-soft: rgba(74, 222, 128, 0.12);
  --danger: #ff8a8a;
  --star: #fbbf24;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.3);
  --header-bg: rgba(3, 4, 6, 0.72);
  --spot: rgba(77, 134, 255, 0.16);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r-xs: 8px;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --header-h: 74px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7f9;
  --bg-alt: #edf0f4;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --surface-solid: #ffffff;
  --field: #ffffff;
  --text: #0a0f1c;
  --text-2: #2d3748;
  --muted: #5a6578;
  --line: rgba(10, 15, 28, 0.09);
  --line-strong: rgba(10, 15, 28, 0.17);
  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-line: rgba(37, 99, 235, 0.38);
  --accent-strong: #2563eb;
  --grad-action: linear-gradient(120deg, #2563eb 0%, #1d4ed8 100%);
  --grad-primary: linear-gradient(120deg, #0ea5e9 0%, #2563eb 60%, #1d4ed8 100%);
  --shadow-action: 0 8px 20px rgba(10, 15, 28, 0.14);
  --shadow-action-hover: 0 14px 28px rgba(10, 15, 28, 0.18);
  --success: #15803d;
  --success-soft: rgba(22, 163, 74, 0.1);
  --danger: #dc2626;
  --star: #f59e0b;
  --shadow: 0 30px 70px rgba(10, 15, 28, 0.12);
  --shadow-soft: 0 12px 30px rgba(10, 15, 28, 0.07);
  --header-bg: rgba(246, 247, 249, 0.82);
  --spot: rgba(37, 99, 235, 0.08);
}

/* 2. Base ------------------------------------------------------------------ */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
::view-transition-group(card-hero) { animation-duration: 0.55s; animation-timing-function: var(--ease); }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
main { overflow-x: clip; }
img { display: block; max-width: 100%; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--accent-strong); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.shell { width: min(1200px, 100% - 64px); margin-inline: auto; }
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.muted { color: var(--muted); }
.optional { margin-left: 4px; color: var(--muted); font-size: 13px; font-weight: 500; }
.inline-link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.skip-link, .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { z-index: 3000; top: 12px; left: 12px; width: auto; height: auto; margin: 0; padding: 12px 18px; clip: auto; border-radius: 10px; background: var(--accent-strong); color: var(--on-accent); font-weight: 700; }

.eyebrow { margin-bottom: 14px; color: var(--accent); font-size: 15px; font-weight: 600; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.section-heading h2 { max-width: 660px; font-size: clamp(34px, 4.4vw, 56px); }
.section-title { margin-bottom: 28px; font-size: clamp(28px, 3vw, 38px); }
.section-intro { max-width: 440px; color: var(--muted); font-size: 17px; line-height: 1.7; }

/* 3. Componentes ------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 700; line-height: 1.2; text-align: center; white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s, border-color 0.3s, color 0.3s;
}
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button:active { transform: scale(0.98); }
.button-primary { background: var(--grad-action); color: var(--on-accent); box-shadow: var(--shadow-action), inset 0 1px rgba(255, 255, 255, 0.2); }
.button-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-action-hover), inset 0 1px rgba(255, 255, 255, 0.2); }
.button-outline { border-color: var(--line-strong); background: var(--surface); color: var(--text); }
.button-outline:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.button-ghost { border-color: var(--line); background: transparent; color: var(--text); }
.button-ghost:hover { border-color: var(--accent-line); background: var(--surface-2); }
.button-small { min-height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.button-large { min-height: 56px; padding: 0 28px; font-size: 16px; }
.button-full { width: 100%; }
.button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.button.is-loading { cursor: progress; }
.play-icon { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.play-icon svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }

.link-button { padding: 0; border: 0; background: none; color: var(--accent); font-size: 14px; font-weight: 600; text-align: left; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 0.2s; }
.link-button:hover { text-decoration-color: currentColor; }
.link-danger { color: var(--muted); }
.link-danger:hover { color: var(--danger); }

.icon-button { position: relative; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid transparent; border-radius: var(--r-sm); background: transparent; color: var(--text-2); transition: 0.25s var(--ease); }
.icon-button:hover { border-color: var(--line); background: var(--surface-2); color: var(--accent); }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-button[aria-current="page"], .icon-button[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); }
.cart-count { position: absolute; top: -3px; right: -3px; display: grid; min-width: 19px; height: 19px; place-items: center; padding-inline: 5px; border: 2px solid var(--bg); border-radius: 20px; background: var(--accent-strong); color: var(--on-accent); font-size: 11px; font-weight: 800; line-height: 1; }
.cart-count.is-bumping { animation: bump 0.55s var(--ease); }
@keyframes bump { 35% { transform: scale(1.5); } }

.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-soft); }

/* Brillo que sigue al puntero */
[data-spotlight] { position: relative; isolation: isolate; }
[data-spotlight]::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
[data-spotlight]:hover::before { opacity: 1; }

.swatch { display: inline-block; flex: 0 0 auto; width: 14px; height: 14px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; }
.swatch-black { background: var(--card-black); }
.swatch-white { border-color: rgba(10, 15, 28, 0.25); background: var(--card-white); }

.avatar { display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--grad-action); color: var(--on-accent); font-family: var(--font-display); font-weight: 700; object-fit: cover; }
.avatar-xs { position: absolute; inset: 7px; width: 28px; height: 28px; font-size: 12px; }
.avatar-sm { width: 32px; height: 32px; font-size: 14px; }
.avatar-md { width: 44px; height: 44px; font-size: 18px; }
.avatar-lg { width: 72px; height: 72px; font-size: 28px; }
.account-button.has-avatar > svg { opacity: 0; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid transparent; background: var(--header-bg); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); transition: border-color 0.3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; min-height: var(--header-h); align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.brand-word { font: 700 16px/1 var(--font-display); letter-spacing: 0.08em; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--grad-primary); color: var(--on-accent); box-shadow: var(--shadow-soft); }
.brand-mark svg { width: 22px; height: 22px; }
.brand-accent { color: var(--accent); }
.primary-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); }
.nav-link { position: relative; padding-block: 10px; color: var(--text-2); font-size: 15px; font-weight: 500; white-space: nowrap; transition: color 0.25s; }
.nav-link::after { content: ""; position: absolute; right: 0; bottom: 3px; left: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav-link:hover, .nav-link.is-current { color: var(--text); }
.nav-link:hover::after, .nav-link.is-current::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-cta { min-height: 42px; margin-left: 10px; padding-inline: 18px; font-size: 14px; }
.mobile-menu-button, .mobile-nav, .mobile-nav-theme, .mobile-nav .mobile-nav-account { display: none; }

/* Menú de cuenta */
.account-wrap { position: relative; }
.account-menu { position: absolute; z-index: 1100; top: calc(100% + 12px); right: -8px; width: min(340px, calc(100vw - 24px)); padding: 22px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface-solid); box-shadow: var(--shadow); animation: pop-in 0.3s var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.account-menu-title { margin-bottom: 6px; font: 600 20px var(--font-display); }
.account-menu-text { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
.google-slot { display: grid; min-height: 44px; place-items: center; margin-bottom: 14px; }
.google-fallback { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 15px; font-weight: 600; }
.google-fallback:disabled { cursor: not-allowed; opacity: 0.75; }
.google-fallback svg { width: 18px; height: 18px; }
.google-note { margin-top: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.legal-microcopy { color: var(--muted); font-size: 12px; line-height: 1.55; }
.legal-microcopy a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.account-menu-more { display: block; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--accent); font-size: 14px; font-weight: 600; }
.account-menu-profile { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.account-menu-name { font-weight: 700; }
.account-menu-email { color: var(--muted); font-size: 13px; word-break: break-all; }
.account-menu-links { display: grid; border-top: 1px solid var(--line); }
.account-menu-links a, .account-menu-signout { padding: 12px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text-2); font-size: 15px; text-align: left; }
.account-menu-links a:hover { color: var(--accent); }
.account-menu-signout { border-bottom: 0; color: var(--muted); }
.account-menu-signout:hover { color: var(--danger); }

/* Cesta lateral */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(440px, 100%); max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; overflow: hidden; border: 0; border-left: 1px solid var(--line-strong); background: var(--surface-solid); color: var(--text); }
.drawer[open] { display: flex; flex-direction: column; animation: drawer-in 0.45s var(--ease); }
.drawer::backdrop { background: rgba(2, 4, 8, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@keyframes drawer-in { from { transform: translateX(100%); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 24px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer-empty { display: grid; justify-items: center; gap: 16px; padding: 48px 0; color: var(--muted); text-align: center; }
.drawer-foot { display: grid; gap: 12px; padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.drawer-foot .summary-total { margin: 0 0 4px; padding: 0; border: 0; }
.drawer-secondary { color: var(--muted); font-size: 14px; font-weight: 600; text-align: center; }
.drawer-secondary:hover { color: var(--accent); }
.drawer .cart-line { grid-template-columns: 60px 1fr auto; grid-template-areas: "thumb info remove" "thumb stepper price"; gap: 8px 12px; }
.drawer .cart-thumb { grid-area: thumb; }
.drawer .cart-line-info { grid-area: info; }
.drawer .stepper { grid-area: stepper; justify-self: start; }
.drawer .cart-line-price { grid-area: price; }
.drawer .cart-remove { grid-area: remove; justify-self: end; }

.fly-ghost { position: fixed; z-index: 3000; margin: 0; object-fit: contain; pointer-events: none; }

/* Líneas de cesta */
.cart-items { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto auto auto; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.cart-thumb { display: grid; width: 60px; height: 92px; place-items: center; }
.cart-thumb img { width: auto; max-height: 92px; border-radius: 6px; }
.cart-thumb .card-art { width: 56px; padding: 6px 4px; border-radius: 6px; }
.cart-thumb .card-art::before, .cart-thumb .card-art::after { width: 30px; height: 30px; border-width: 1px; }
.cart-thumb .card-art-logo, .cart-thumb .card-art-cta, .cart-thumb .card-art-lines { display: none; }
.cart-thumb .card-art-title { font-size: 8px; }
.cart-line-info { min-width: 0; }
.cart-line-name { display: block; font: 600 17px var(--font-display); }
.cart-line-name:hover { color: var(--accent); }
.cart-line-detail { margin: 2px 0 6px; color: var(--muted); font-size: 13px; }
.cart-line-price { min-width: 76px; font: 600 17px var(--font-display); text-align: right; white-space: nowrap; }
.cart-remove { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); transition: 0.2s; }
.cart-remove svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-remove:hover { border-color: var(--danger); color: var(--danger); }

/* Aviso */
.toast { position: fixed; z-index: 1500; bottom: 24px; left: 50%; display: flex; align-items: center; gap: 16px; max-width: min(480px, calc(100% - 32px)); padding: 14px 18px; border: 1px solid var(--accent-line); border-radius: 14px; background: var(--surface-solid); color: var(--text); font-size: 15px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: 0.35s var(--ease); }
.toast.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast a { flex: 0 0 auto; color: var(--accent); font-weight: 700; }

/* Diálogos */
.site-dialog { width: min(500px, calc(100% - 28px)); max-height: min(90vh, 780px); padding: 32px; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow); }
.site-dialog::backdrop { background: rgba(2, 4, 8, 0.65); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.site-dialog[open] { animation: pop-in 0.35s var(--ease); }
.dialog-dismiss { position: absolute; top: 14px; right: 14px; margin: 0; }
.dialog-close { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text-2); font-size: 22px; line-height: 1; }
.dialog-close:hover { border-color: var(--accent-line); color: var(--accent); }
.site-dialog h2 { margin: 0 44px 14px 0; font-size: 28px; }
.dialog-input { width: 100%; min-height: 52px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); outline: none; background: var(--field); font-size: 16px; }
.dialog-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.search-suggestions button { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 13px; }
.search-suggestions button:hover { border-color: var(--accent-line); color: var(--accent); }
.dialog-hint { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
#searchStatus { margin-top: 14px; }

/* Demostración animada */
.demo-dialog { width: min(540px, calc(100% - 28px)); }
.demo-scene { position: relative; height: 270px; margin: 6px 0 22px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: radial-gradient(circle at 40% 50%, var(--accent-soft), transparent 60%), var(--bg-alt); }
.demo-card { position: absolute; top: 50%; left: 26%; width: 120px; height: auto; border-radius: 10px; transform: translate(-50%, -50%) rotate(-6deg); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35); }
.demo-phone { position: absolute; top: 50%; left: 72%; width: 124px; height: 226px; padding: 8px; border: 2px solid var(--line-strong); border-radius: 26px; background: #05080b; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); transform: translate(-50%, -50%) rotate(8deg); }
.demo-screen { position: relative; height: 100%; overflow: hidden; border-radius: 19px; background: #0f1520; color: #e8eef6; font-size: 11px; text-align: center; }
.demo-screen-idle, .demo-screen-open { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px; }
.demo-screen-open { background: #fff; color: #1f2937; opacity: 0; }
.demo-screen-open b { color: #4285f4; font-size: 15px; }
.demo-stars { color: #fbbc04; font-size: 17px; letter-spacing: 1px; }
.demo-btn { margin-top: 6px; padding: 5px 12px; border-radius: 999px; background: #1a73e8; color: #fff; font-size: 10px; font-weight: 700; }
.demo-waves { position: absolute; top: 50%; left: 48%; opacity: 0; }
.demo-waves i { position: absolute; width: 40px; height: 40px; border: 2px solid var(--accent); border-radius: 50%; transform: translate(-50%, -50%) scale(0.3); }
.demo-scene.is-playing .demo-phone { animation: demo-phone 4.2s var(--ease) infinite; }
.demo-scene.is-playing .demo-screen-open { animation: demo-open 4.2s ease infinite; }
.demo-scene.is-playing .demo-screen-idle { animation: demo-idle 4.2s ease infinite; }
.demo-scene.is-playing .demo-waves { animation: demo-show 4.2s ease infinite; }
.demo-scene.is-playing .demo-waves i { animation: wave 1.2s ease-out infinite; }
.demo-scene.is-playing .demo-waves i:nth-child(2) { animation-delay: 0.4s; }
.demo-scene.is-playing .demo-waves i:nth-child(3) { animation-delay: 0.8s; }
@keyframes demo-phone { 0%, 8% { left: 72%; transform: translate(-50%, -50%) rotate(8deg); } 30%, 62% { left: 40%; transform: translate(-50%, -50%) rotate(-2deg); } 82%, 100% { left: 72%; transform: translate(-50%, -50%) rotate(8deg); } }
@keyframes demo-open { 0%, 36% { opacity: 0; } 42%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes demo-idle { 0%, 36% { opacity: 1; } 42%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes demo-show { 0%, 24% { opacity: 0; } 30%, 44% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes wave { from { opacity: 0.9; transform: translate(-50%, -50%) scale(0.3); } to { opacity: 0; transform: translate(-50%, -50%) scale(2.4); } }
.demo-steps { display: grid; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; counter-reset: demo; }
.demo-steps li { display: flex; align-items: center; gap: 12px; color: var(--text-2); counter-increment: demo; }
.demo-steps li::before { content: counter(demo); display: grid; flex: 0 0 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 800; }

/* Formularios */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field-item { min-width: 0; margin-bottom: 16px; }
.field-wide { grid-column: 1 / -1; }
.field-item label { display: block; margin-bottom: 7px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.field-item input, .field-item select, .field-item textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); outline: none; background: var(--field); color: var(--text); font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s; }
.field-item textarea { min-height: 100px; resize: vertical; }
.field-item input::placeholder, .field-item textarea::placeholder { color: var(--muted); opacity: 0.7; }
.field-item input:focus, .field-item select:focus, .field-item textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field-item.has-error input, .field-item.has-error textarea, .field-item.has-error select { border-color: var(--danger); }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
.check-field { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 18px; color: var(--text-2); font-size: 14px; cursor: pointer; }
.check-field input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.check-field a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.check-field.has-error { color: var(--danger); }
.form-note { margin-top: 12px; color: var(--muted); font-size: 13px; text-align: center; }
.form-fallback { display: grid; justify-items: start; gap: 12px; margin-top: 16px; padding: 16px; border: 1px solid var(--accent-line); border-radius: var(--r-sm); background: var(--accent-soft); color: var(--text-2); font-size: 14px; }
.form-fallback a { color: var(--accent); font-weight: 600; }
.error-message { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--danger); border-radius: var(--r-sm); color: var(--danger); font-size: 14px; }
.notice { margin-bottom: 20px; padding: 14px 18px; border: 1px solid var(--accent-line); border-radius: var(--r-sm); background: var(--accent-soft); color: var(--text-2); }
.form-panel { padding: 32px; }

/* Valoración con estrellas */
.rating-input { margin: 0 0 18px; padding: 0; border: 0; }
.rating-input legend { margin-bottom: 6px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.rating-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating-stars input { position: absolute; opacity: 0; pointer-events: none; }
.rating-stars label { color: var(--line-strong); font-size: 34px; line-height: 1; cursor: pointer; transition: color 0.15s, transform 0.2s var(--ease); }
.rating-stars label:hover, .rating-stars label:hover ~ label, .rating-stars input:checked ~ label { color: var(--star); }
.rating-stars label:hover { transform: scale(1.15); }
.rating-stars input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.rating-input.has-error legend { color: var(--danger); }

/* Selector de cantidad */
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--field); }
.stepper-btn { display: grid; width: 44px; height: 46px; place-items: center; border: 0; background: none; color: var(--text); font-size: 20px; transition: color 0.2s, background-color 0.2s; }
.stepper-btn:first-child { border-radius: 11px 0 0 11px; }
.stepper-btn:last-child { border-radius: 0 11px 11px 0; }
.stepper-btn:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.stepper-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.stepper output { min-width: 44px; font: 600 20px var(--font-display); text-align: center; }
.stepper-small .stepper-btn { width: 34px; height: 36px; font-size: 17px; }
.stepper-small output { min-width: 30px; font-size: 16px; }

.range { --fill: 10%; width: 100%; height: 6px; margin: 6px 0 0; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--fill), var(--line-strong) var(--fill)); outline-offset: 6px; cursor: pointer; appearance: none; -webkit-appearance: none; }
.range::-webkit-slider-thumb { width: 22px; height: 22px; border: 3px solid var(--surface-solid); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 4px 10px rgba(0, 0, 0, 0.3); -webkit-appearance: none; }
.range::-moz-range-thumb { width: 18px; height: 18px; border: 3px solid var(--surface-solid); border-radius: 50%; background: var(--accent); }

/* Tarjeta 3D */
.card3d { position: relative; width: 100%; aspect-ratio: 54 / 85.6; perspective: 1300px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.card3d.is-dragging { cursor: grabbing; }
.card3d::after { content: ""; position: absolute; z-index: -1; right: 8%; bottom: -10%; left: 8%; height: 12%; border-radius: 50%; background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55), transparent 70%); filter: blur(10px); }
:root[data-theme="light"] .card3d::after { background: radial-gradient(ellipse, rgba(10, 15, 28, 0.25), transparent 70%); }
.card3d-body { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; will-change: transform; }
.card3d.is-animating .card3d-body { transition: transform 0.8s var(--ease); }
.card3d-face { position: absolute; inset: 0; overflow: hidden; border-radius: 6.5% / 4.1%; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.card3d-front > img, .card3d-front > .card-art { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; pointer-events: none; }
.card3d-front > .card-art { box-shadow: none; }
.card3d-back { transform: rotateY(180deg); }
.card3d-glare { position: absolute; inset: 0; border-radius: 6.5% / 4.1%; background: radial-gradient(circle at var(--glare-x, 30%) var(--glare-y, 20%), rgba(255, 255, 255, 0.28), transparent 45%); mix-blend-mode: soft-light; pointer-events: none; transform: translateZ(1px); transition: opacity 0.3s; }
.card3d.is-back .card3d-glare { opacity: 0; }
.card3d:focus-visible { outline-offset: 10px; border-radius: 16px; }
.card3d.is-swapping .card3d-front { animation: swap-in 0.5s var(--ease); }
@keyframes swap-in { from { opacity: 0.2; filter: blur(6px); } }

/* Reverso de marca */
.card-back { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; background: var(--card-black); color: #fff; }
.card-back[data-finish="blanca"] { background: var(--card-white); color: var(--card-ink); }
.card-back-arc { position: absolute; width: 58%; aspect-ratio: 1; border: 2px solid var(--card-blue); border-radius: 50%; }
.card-back-arc-a { top: 0; left: 0; translate: -50% -50%; }
.card-back-arc-b { right: 0; bottom: 0; translate: 50% 50%; }
.card-back-logo { width: 26%; fill: none; stroke: var(--card-blue); stroke-width: 2.4; stroke-linecap: round; }
.card-back-brand { font: 700 clamp(10px, 2.2vw, 17px) var(--font-display); letter-spacing: 0.14em; }
.card-back-brand b { color: var(--card-blue); font-weight: 700; }
.card-back-chip { width: 16%; aspect-ratio: 1.3; margin-top: 8%; border: 1px solid currentColor; border-radius: 4px; opacity: 0.25; }
.card-back-note { font-size: clamp(7px, 1.2vw, 11px); letter-spacing: 0.1em; opacity: 0.6; }

/* Tarjeta ilustrada */
.card-art { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: 160px; aspect-ratio: 54 / 85.6; padding: 12% 9%; overflow: hidden; border-radius: 12px; background: var(--card-black); color: #fff; text-align: center; box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35); }
.card-art::before, .card-art::after { content: ""; position: absolute; width: 56%; aspect-ratio: 1; border: 2px solid var(--card-blue); border-radius: 50%; }
.card-art::before { top: 0; left: 0; translate: -60% -60%; }
.card-art::after { right: 0; bottom: 0; translate: 60% 60%; }
.card-art[data-finish="blanca"] { background: var(--card-white); color: var(--card-ink); }
.card-art-logo { font: 700 9px var(--font-display); letter-spacing: 0.2em; }
.card-art-title { font: 700 20px/1.1 var(--font-display); letter-spacing: 0.05em; }
.card-art-lines { display: grid; gap: 5px; width: 70%; }
.card-art-lines i { display: block; height: 3px; border-radius: 3px; background: currentColor; opacity: 0.25; }
.card-art-lines i:nth-child(2) { width: 70%; justify-self: center; }
.card-art-cta { color: var(--card-blue); font-size: 8px; font-weight: 800; letter-spacing: 0.08em; }

/* Opiniones */
.stars { display: inline-flex; gap: 2px; }
.stars i { width: 16px; height: 16px; background: var(--line-strong); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stars i.is-full { background: var(--star); }
.stars i.is-half { background: linear-gradient(90deg, var(--star) 50%, var(--line-strong) 50%); }
.reviews-summary { display: flex; align-items: center; gap: 16px; }
.reviews-average { font: 600 56px/1 var(--font-display); }
.reviews-summary .stars i { width: 20px; height: 20px; }
.reviews-summary p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.reviews-track { display: grid; grid-auto-columns: minmax(300px, 1fr); grid-auto-flow: column; gap: 18px; padding-bottom: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.review-card { display: flex; flex-direction: column; gap: 16px; padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); scroll-snap-align: start; }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-badge { padding: 3px 10px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 12px; font-weight: 700; }
.review-badge-example { background: rgba(251, 191, 36, 0.15); color: var(--star); }
.review-text { flex: 1; margin: 0; color: var(--text-2); font-size: 16px; line-height: 1.65; }
.review-text p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 6; -webkit-box-orient: vertical; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-name { font-weight: 700; }
.review-meta { color: var(--muted); font-size: 13px; }
.review-product { align-self: flex-start; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 600; }
.review-product:hover { border-color: var(--accent-line); color: var(--accent); }
.reviews-empty { display: grid; justify-items: center; gap: 12px; max-width: 640px; margin: 0 auto; padding: 48px 32px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); text-align: center; }
.reviews-empty-stars { color: var(--star); font-size: 26px; letter-spacing: 6px; }
.reviews-empty h3 { font-size: 24px; }
.reviews-empty p { max-width: 460px; color: var(--muted); }
.reviews-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.reviews-cta { margin-top: 24px; color: var(--muted); text-align: center; }
.reviews-cta .link-button { font-size: 16px; }

/* 4. Inicio ------------------------------------------------------------------- */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; min-height: min(780px, calc(100svh - var(--header-h))); padding-block: 48px 64px; }
.hero::before { content: ""; position: absolute; z-index: -1; top: -20%; right: -25%; width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(61, 123, 255, 0.18), rgba(56, 189, 248, 0.05) 40%, transparent 65%); pointer-events: none; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 500; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.hero h1 { max-width: 640px; margin-bottom: 24px; font-size: clamp(44px, 6vw, 80px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.tap-word { position: relative; display: inline-block; padding-right: 0.5em; }
.tap-waves { position: absolute; top: 50%; right: 0.04em; width: 0.42em; height: 0.7em; transform: translateY(-46%); }
.tap-waves i { position: absolute; top: 50%; left: 0; border: 0.07em solid transparent; border-right-color: var(--accent); border-radius: 50%; transform: translateY(-50%); animation: tap-wave 2.8s ease-in-out infinite; }
.tap-waves i:nth-child(1) { width: 0.2em; height: 0.2em; }
.tap-waves i:nth-child(2) { left: -0.1em; width: 0.42em; height: 0.42em; animation-delay: 0.15s; }
.tap-waves i:nth-child(3) { left: -0.2em; width: 0.64em; height: 0.64em; animation-delay: 0.3s; }
@keyframes tap-wave { 0%, 55%, 100% { opacity: 1; } 70% { opacity: 0.15; } }
.hero-lede { max-width: 540px; margin-bottom: 34px; color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-points { display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 36px 0 0; padding: 0; color: var(--text-2); font-size: 14px; font-weight: 500; list-style: none; }
.trust-points li { display: flex; align-items: center; gap: 8px; }
.trust-points svg { width: 19px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; display: grid; min-height: 560px; place-items: center; isolation: isolate; }
.hero-rings { position: absolute; z-index: -1; inset: 0; display: grid; place-items: center; }
.hero-rings span { position: absolute; width: 300px; height: 300px; border: 1px solid var(--accent-line); border-radius: 50%; opacity: 0; animation: ring 5s ease-out infinite; }
.hero-rings span:nth-child(2) { animation-delay: 1.66s; }
.hero-rings span:nth-child(3) { animation-delay: 3.33s; }
@keyframes ring { 0% { opacity: 0.55; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.75); } }
.hero-side { position: absolute; z-index: -1; width: min(200px, 30vw); height: auto; border-radius: 14px; opacity: 0.55; filter: saturate(0.8) blur(0.5px); }
.hero-side-left { transform: translate(-62%, 6%) rotate(-14deg); }
.hero-side-right { transform: translate(62%, -4%) rotate(12deg); }
.hero-card { width: min(290px, 44vw); }
.hero-card > img { width: 100%; height: auto; border-radius: 18px; }
.hero-hint { position: absolute; bottom: 4%; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.hero-hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* Secuencia de entrada del hero, una sola vez */
.js .hero-copy > * { animation: rise 0.9s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.js .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.js .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.js .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
.js .hero-card { animation: card-in 1.2s 0.15s var(--ease) both; }
.js .hero-side { animation: fade-in 1.2s 0.5s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes card-in { from { opacity: 0; transform: translateY(30px) rotateX(18deg) scale(0.94); } }
@keyframes fade-in { from { opacity: 0; } }

.sectors { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; padding-block: 26px; border-top: 1px solid var(--line); }
.sectors p { color: var(--muted); font-size: 14px; }
.sectors ul { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.sectors li { color: var(--text-2); font: 500 17px var(--font-display); }

/* Colección */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.45s var(--ease); }
.product-card:hover { transform: translateY(-6px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.product-media { position: relative; display: grid; height: 310px; place-items: center; padding: 28px; background: radial-gradient(ellipse at 50% 60%, var(--accent-soft), transparent 65%), var(--surface-2); }
.product-media img { width: auto; height: 100%; max-height: 254px; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.3)); transition: transform 0.7s var(--ease); }
.product-card:hover .product-media img, .product-card:hover .product-media .card-art { transform: translateY(-6px) rotate(-3deg) scale(1.04); }
.product-media .card-art { transition: transform 0.7s var(--ease); }
.product-chip { position: absolute; z-index: 2; top: 16px; left: 16px; padding: 5px 11px; border-radius: 999px; background: var(--grad-action); color: var(--on-accent); font-size: 12px; font-weight: 700; }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }
.product-category { color: var(--accent); font-size: 13px; font-weight: 600; }
.product-body h3 { margin: 6px 0 8px; font-size: 24px; }
.product-body h3 a:hover { color: var(--accent); }
.product-text { margin-bottom: 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.variant-picker { display: flex; gap: 8px; margin-bottom: 18px; }
.variant-swatch { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; transition: 0.25s var(--ease); }
.variant-swatch:hover { border-color: var(--line-strong); color: var(--text); }
.variant-swatch.is-selected { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.product-price { color: var(--muted); font-size: 14px; }
.product-price strong { color: var(--text); font: 600 22px var(--font-display); }
.quick-add { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--accent-line); border-radius: 50%; background: var(--accent-soft); color: var(--accent); transition: 0.3s var(--ease); }
.quick-add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.quick-add:hover { background: var(--accent-strong); color: var(--on-accent); transform: rotate(90deg); }
.no-search-results { margin-top: 20px; padding: 28px; border: 1px dashed var(--line-strong); border-radius: var(--r); color: var(--muted); text-align: center; }
.no-search-results a { color: var(--accent); font-weight: 600; }
.custom-banner { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 24px; padding: 30px 34px; border: 1px dashed var(--accent-line); border-radius: var(--r-lg); background: linear-gradient(115deg, var(--accent-soft), transparent 70%); }
.custom-banner h3 { margin-bottom: 8px; font-size: 24px; }
.custom-banner p { max-width: 640px; color: var(--muted); font-size: 15px; }

/* Cómo funciona */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; top: 22px; right: 16%; left: 22px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2) 60%, transparent); opacity: 0.5; }
.timeline li { position: relative; }
.timeline-dot { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 22px; border-radius: 50%; background: var(--grad-action); color: var(--on-accent); font: 700 18px var(--font-display); box-shadow: 0 0 0 8px var(--bg-alt); }
.timeline h3 { margin-bottom: 10px; font-size: 24px; }
.timeline p { max-width: 320px; color: var(--muted); }
.compat-note { display: flex; align-items: center; gap: 10px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.compat-note svg { flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; }

/* Por qué NFC */
.advantages { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 64px; }
.advantages-copy h2 { margin-bottom: 20px; font-size: clamp(32px, 3.8vw, 48px); }
.advantages-copy .section-intro { max-width: 520px; margin-bottom: 26px; }
.benefit-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.benefit-list li { display: flex; align-items: center; gap: 12px; color: var(--text-2); }
.benefit-list li::before { content: "✓"; display: grid; flex: 0 0 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 800; }
.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare-table th, .compare-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th { color: var(--muted); font-size: 14px; font-weight: 600; }
.compare-table tbody th { color: var(--text-2); font-weight: 500; text-align: left; }
.compare-table .compare-highlight { background: var(--accent-soft); }
.compare-table thead .compare-highlight { color: var(--accent); font-weight: 700; }
.yes { color: var(--success); font-size: 18px; font-weight: 800; }
.no { color: var(--muted); font-size: 16px; opacity: 0.6; }
.partial { color: var(--muted); font-size: 13px; }

/* Precios */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 20px; }
.pricing-card { display: flex; flex-direction: column; padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.pricing-featured { border: 2px solid var(--accent); box-shadow: 0 0 0 6px var(--accent-soft), var(--shadow-soft); }
.popular-label { position: absolute; top: -14px; left: 50%; padding: 5px 14px; border-radius: 999px; background: var(--grad-action); color: var(--on-accent); font-size: 13px; font-weight: 700; white-space: nowrap; transform: translateX(-50%); }
.plan-label { color: var(--accent); font-size: 14px; font-weight: 600; }
.pricing-card h3 { margin: 6px 0 18px; font-size: 28px; }
.price { display: flex; align-items: baseline; gap: 6px; color: var(--text-2); font-size: 22px; }
.price span { color: var(--text); font: 600 60px/1 var(--font-display); letter-spacing: -0.04em; }
.price-note { margin-top: 8px; color: var(--muted); font-size: 14px; }
.saving-badge { align-self: flex-start; margin-top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--success-soft); color: var(--success); font-size: 13px; font-weight: 700; }
.pricing-card ul { display: grid; gap: 11px; margin: 22px 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15px; list-style: none; }
.pricing-card li::before { content: "✓"; margin-right: 10px; color: var(--accent); font-weight: 800; }
.pricing-card .button { width: 100%; margin-top: auto; }

/* Configurador */
.configurator { display: grid; grid-template-columns: 0.85fr 1.15fr; margin-top: 48px; overflow: hidden; border: 1px solid var(--accent-line); border-radius: 32px; background: var(--surface); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 16px); }
.configurator.is-highlighted { animation: highlight 1.6s var(--ease); }
@keyframes highlight { 30% { box-shadow: 0 0 0 10px var(--accent-soft), var(--shadow); } }
.configurator-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 44px 28px; border-right: 1px solid var(--line); background: radial-gradient(circle at 50% 42%, var(--accent-soft), transparent 62%), var(--surface-2); }
.preview-stage { position: relative; display: grid; width: min(250px, 72%); place-items: center; }
.preview-stage.is-custom::after { content: "Tu logotipo aquí"; position: absolute; z-index: 2; bottom: -6%; padding: 6px 12px; border: 1px dashed var(--accent); border-radius: 8px; background: var(--surface-solid); color: var(--accent); font-size: 12px; font-weight: 700; }
.preview-caption { color: var(--text); font-weight: 600; text-align: center; }
.preview-hint { color: var(--muted); font-size: 13px; }
.configurator-form { padding: 40px 44px; }
.configurator-form h3 { margin-bottom: 26px; font-size: 32px; }
.config-group { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.config-group legend, .config-label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 0; font-size: 15px; font-weight: 700; }
.config-step { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; }
.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.choice { position: relative; }
.choice input, .segmented input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 11px 6px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--text-2); font-size: 13px; font-weight: 600; text-align: center; cursor: pointer; transition: 0.2s var(--ease); }
.choice span b { color: var(--muted); font-size: 17px; line-height: 1; }
.choice span:hover { border-color: var(--accent-line); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:checked + span b { color: var(--accent); }
.choice input:focus-visible + span, .segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented span { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--text-2); font-size: 15px; font-weight: 600; cursor: pointer; transition: 0.2s var(--ease); }
.segmented input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.qty-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.qty-presets { display: flex; gap: 6px; }
.qty-presets button { min-width: 46px; height: 46px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: transparent; color: var(--text-2); font-weight: 700; transition: 0.2s; }
.qty-presets button:hover { border-color: var(--accent-line); color: var(--accent); }
.qty-presets button.is-active { border-color: var(--accent-strong); background: var(--accent-strong); color: var(--on-accent); }
.range-help { margin-top: 10px; color: var(--muted); font-size: 13px; }
.range-help a { color: var(--accent); font-weight: 600; }
.toggle-option { position: relative; display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.config-group .toggle-option { margin-bottom: 0; }
.toggle-option:hover { border-color: var(--accent-line); }
.toggle-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.toggle-option input { position: absolute; opacity: 0; }
.toggle { position: relative; flex: 0 0 46px; height: 26px; border-radius: 26px; background: var(--line-strong); transition: background-color 0.25s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); transition: transform 0.3s var(--ease); }
.toggle-option input:checked + .toggle { background: var(--accent); }
.toggle-option input:checked + .toggle::after { transform: translateX(20px); }
.toggle-option input:focus-visible + .toggle { outline: 2px solid var(--accent); outline-offset: 3px; }
.toggle-option strong, .toggle-option small { display: block; }
.toggle-option small { color: var(--muted); font-size: 13px; }
.order-summary { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 15px; }
.summary-row + .summary-row { margin-top: 8px; }
.summary-row span:last-child { color: var(--text-2); font-weight: 600; text-align: right; }
.summary-saving span:last-child { color: var(--success); }
.summary-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; }
.summary-total small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.summary-total output, .summary-total strong { font: 600 32px var(--font-display); letter-spacing: -0.03em; white-space: nowrap; }
.calculator-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; margin-top: 18px; }
.summary-note { margin-top: 12px; color: var(--muted); font-size: 13px; text-align: center; }

/* Preguntas */
.faq-layout { display: grid; grid-template-columns: 0.75fr 1.25fr; align-items: start; gap: 64px; }
.faq-layout h2 { margin-bottom: 18px; font-size: clamp(32px, 3.8vw, 48px); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font: 500 19px var(--font-display); list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; display: grid; flex: 0 0 32px; height: 32px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent); font-size: 20px; transition: transform 0.3s var(--ease), background-color 0.3s; }
.faq-item summary:hover::after { background: var(--accent-soft); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { max-width: 680px; padding: 0 48px 24px 0; color: var(--muted); line-height: 1.75; }

/* Contacto */
.contact-section { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: 64px; }
.contact-copy h2 { margin-bottom: 16px; font-size: clamp(32px, 3.8vw, 46px); }
.contact-copy > p { max-width: 420px; color: var(--muted); font-size: 17px; }
.contact-points { display: grid; gap: 14px; margin: 28px 0 0; padding: 0; color: var(--text-2); font-size: 15px; list-style: none; }
.contact-points li { display: flex; align-items: center; gap: 12px; }
.contact-points svg { flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-points a { color: var(--accent); font-weight: 600; }

/* Pie */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 56px; border-bottom: 1px solid var(--line); }
.footer-cta h2 { max-width: 620px; font-size: clamp(28px, 3.2vw, 40px); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-block: 48px; }
.footer-brand p { max-width: 280px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 14px; }
.footer-column h2 { margin-bottom: 4px; color: var(--text); font: 600 15px var(--font-body); letter-spacing: 0; }
.footer-column a:hover { color: var(--accent); }
.social-links { display: flex; gap: 8px; margin-top: 6px; }
.social-links a { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--text-2); transition: 0.25s var(--ease); }
.social-links a:hover { border-color: var(--accent-line); color: var(--accent); transform: translateY(-2px); }
.social-links svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 20px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer > .footer-bottom:first-child { border-top: 0; }
.footer-bottom a:hover { color: var(--accent); }
.legal-links { display: flex; gap: 20px; }
.payment-note { display: inline-flex; align-items: center; gap: 6px; }
.payment-note svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* Botones flotantes */
.whatsapp-float { position: fixed; z-index: 890; right: 20px; bottom: 20px; display: grid; width: 56px; height: 56px; place-items: center; border-radius: 50%; background: #25d366; color: #fff; box-shadow: var(--shadow-action); transition: transform 0.3s var(--ease); }
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; }
.mobile-cta { display: none; }

/* 5. Página de producto ---------------------------------------------------------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 28px; color: var(--muted); font-size: 14px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--text-2); }
.product-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: start; gap: 56px; padding-block: 28px 80px; }
.viewer { position: sticky; top: calc(var(--header-h) + 20px); display: grid; justify-items: center; gap: 20px; padding: 40px 24px 24px; border: 1px solid var(--line); border-radius: 32px; background: radial-gradient(circle at 50% 40%, var(--accent-soft), transparent 60%), var(--surface-2); }
.viewer-stage { --zoom: 1; display: grid; width: min(330px, 74%); place-items: center; padding-block: 12px 28px; transform: scale(var(--zoom)); transition: transform 0.3s var(--ease); }
.viewer-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.viewer-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 600; transition: 0.2s; }
.viewer-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.viewer-btn:hover { border-color: var(--accent-line); color: var(--accent); }
.viewer-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.viewer-zoom { display: inline-flex; align-items: center; gap: 10px; padding: 0 6px 0 12px; color: var(--muted); font-size: 14px; }
.viewer-zoom .range { width: 110px; margin: 0; }
.viewer-thumbs { display: flex; justify-content: center; gap: 10px; }
.viewer-thumb { display: grid; width: 62px; height: 86px; place-items: center; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); transition: border-color 0.2s; }
.viewer-thumb:hover, .viewer-thumb.is-active { border-color: var(--accent); }
.viewer-thumb img { width: auto; max-height: 72px; border-radius: 4px; }
.viewer-thumb .card-back, .viewer-thumb .card-art { width: 46px; height: 72px; border-radius: 4px; }
.viewer-thumb .card-back { gap: 3px; }
.viewer-thumb .card-back-brand, .viewer-thumb .card-back-note, .viewer-thumb .card-back-chip, .viewer-thumb .card-art-logo, .viewer-thumb .card-art-lines, .viewer-thumb .card-art-cta { display: none; }
.viewer-thumb .card-back-arc { border-width: 1px; }
.viewer-thumb .card-art { padding: 4px; }
.viewer-thumb .card-art-title { font-size: 7px; }
.product-info { padding-top: 12px; }
.product-info h1 { margin: 8px 0 14px; font-size: clamp(36px, 4.4vw, 54px); }
.product-badge { display: inline-block; margin-bottom: 16px; padding: 4px 12px; border-radius: 999px; background: var(--grad-action); color: var(--on-accent); font-size: 13px; font-weight: 700; }
.product-tagline { margin-bottom: 14px; color: var(--text); font-size: 20px; font-weight: 500; line-height: 1.5; }
.product-description { margin-bottom: 28px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.buy-box { padding: 26px; }
.buy-box .config-group { margin-bottom: 20px; }
.assurance { display: grid; gap: 10px; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: 14px; list-style: none; }
.assurance li { display: flex; align-items: center; gap: 10px; }
.assurance svg { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.feature { padding-top: 22px; border-top: 2px solid var(--accent); }
.feature-index { display: block; margin-bottom: 14px; color: var(--accent); font: 600 15px var(--font-display); }
.feature h3 { margin-bottom: 8px; font-size: 21px; }
.feature p { color: var(--muted); font-size: 15px; }
.specs-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.use-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; padding: 0; list-style: none; }
.use-list li { padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text-2); font-weight: 500; }
.mini-steps h3 { margin-bottom: 14px; font-size: 20px; }
.mini-steps ol { display: grid; gap: 10px; margin: 0; padding-left: 20px; color: var(--muted); }
.spec-list { margin: 0; border-top: 1px solid var(--line-strong); }
.spec-list div { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--muted); font-size: 15px; }
.spec-list dd { margin: 0; color: var(--text); font-weight: 500; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); transition: transform 0.4s var(--ease), border-color 0.3s; }
.related-card:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.related-media { display: grid; height: 140px; place-items: center; }
.related-media img { width: auto; max-height: 140px; border-radius: 8px; }
.related-media .card-art { width: 88px; padding: 8px 6px; border-radius: 8px; }
.related-media .card-art-title { font-size: 11px; }
.related-media .card-art-logo, .related-media .card-art-cta { display: none; }
.related-card h3 { margin: 4px 0 6px; font-size: 21px; }
.related-tagline { color: var(--muted); font-size: 14px; }
.not-found { display: grid; justify-items: start; gap: 16px; padding-block: 96px; }
.not-found h1 { font-size: clamp(36px, 5vw, 56px); }
.not-found p { color: var(--muted); }

/* 6. Otras páginas ------------------------------------------------------------- */
.page-main { min-height: 70vh; padding-block: 40px 96px; }
.page-heading { margin-bottom: 32px; }
.page-heading h1 { margin: 0 0 18px; font-size: clamp(40px, 5vw, 60px); }
.page-heading .back-link { display: flex; width: fit-content; margin-bottom: 18px; }
.page-intro { max-width: 620px; color: var(--muted); font-size: 18px; }
.back-link { color: var(--muted); font-size: 15px; font-weight: 600; transition: color 0.2s; }
.back-link:hover { color: var(--accent); }

.checkout-steps { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 0; color: var(--muted); font-size: 14px; font-weight: 600; list-style: none; }
.checkout-steps li { display: flex; align-items: center; gap: 9px; }
.checkout-steps span { display: grid; width: 26px; height: 26px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 12px; }
.checkout-steps[data-step="1"] li:nth-child(-n+1), .checkout-steps[data-step="2"] li:nth-child(-n+2), .checkout-steps[data-step="3"] li { color: var(--text); }
.checkout-steps[data-step="1"] li:nth-child(-n+1) span, .checkout-steps[data-step="2"] li:nth-child(-n+2) span, .checkout-steps[data-step="3"] li span { border-color: transparent; background: var(--grad-action); color: var(--on-accent); }

.cart-layout { display: grid; grid-template-columns: 1.25fr 1fr; align-items: start; gap: 24px; }
.cart-panel, .checkout-panel { padding: 28px; }
.checkout-panel { position: sticky; top: calc(var(--header-h) + 16px); }
.checkout-panel h2, .cart-panel h2 { font-size: 26px; }
.checkout-panel > .muted { margin: 8px 0 22px; font-size: 15px; }
.cart-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.cart-panel-head .muted { margin-left: 6px; font: 500 15px var(--font-body); letter-spacing: 0; }
.cart-panel .cart-items { margin-bottom: 18px; }
.cart-tip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--success-soft); color: var(--success); font-size: 14px; font-weight: 600; }
.cart-tip .link-button { color: var(--success); text-decoration: underline; }
.pay-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.pay-methods span { padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.cart-empty-state { display: grid; justify-items: center; gap: 14px; max-width: 560px; margin: 20px auto; padding: 56px 32px; text-align: center; }
.cart-empty-state h2 { font-size: 28px; }
.cart-empty-state p { max-width: 380px; color: var(--muted); }
.empty-icon { display: grid; width: 72px; height: 72px; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.empty-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Cuenta */
.account-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; margin-bottom: 56px; padding: clamp(28px, 5vw, 56px); }
.account-hero h1 { margin-bottom: 14px; font-size: clamp(36px, 4.5vw, 54px); }
.account-hero .page-intro { margin-bottom: 26px; }
.signin-box { display: grid; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.google-slot-large { min-height: 48px; margin: 0; }
.account-profile { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-bottom: 56px; padding: 28px 32px; }
.account-profile-info { flex: 1; min-width: 200px; }
.account-profile h1 { margin: 4px 0; font-size: clamp(28px, 3.4vw, 40px); }
.account-section { margin-bottom: 56px; }
.orders-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.order-card { display: grid; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.order-date { font-weight: 600; }
.order-status { padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.order-status.is-paid { background: var(--success-soft); color: var(--success); }
.order-items { display: grid; gap: 4px; margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.order-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); }
.order-foot strong { font: 600 20px var(--font-display); }
.orders-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; color: var(--muted); }
.help-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.help-card { padding: 24px; transition: transform 0.35s var(--ease), border-color 0.3s; }
.help-card:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.help-card h3 { margin-bottom: 6px; font-size: 19px; }
.help-card p { color: var(--muted); font-size: 14px; }
.lookup-panel { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; padding: 34px; scroll-margin-top: calc(var(--header-h) + 16px); }
.lookup-panel h3 { margin-bottom: 10px; font-size: 26px; }

/* Gracias y 404 */
.thanks-page { display: grid; place-items: center; }
.thanks-card { width: min(680px, 100%); padding: clamp(28px, 5vw, 52px); text-align: center; }
.thanks-icon { display: grid; width: 76px; height: 76px; place-items: center; margin: 0 auto 22px; border-radius: 50%; background: var(--grad-action); color: var(--on-accent); box-shadow: 0 0 0 10px var(--accent-soft); animation: pop-in 0.6s var(--ease); }
.thanks-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.thanks-card h1 { margin-bottom: 12px; font-size: clamp(36px, 5vw, 52px); }
.thanks-card .page-intro { margin: 0 auto 28px; }
.thanks-summary { margin-bottom: 28px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); text-align: left; }
.thanks-summary ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.thanks-summary li { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); }
.thanks-next-title { margin-bottom: 16px; font-size: 22px; text-align: left; }
.thanks-steps { display: grid; gap: 12px; margin: 0 0 32px; padding-left: 22px; color: var(--muted); text-align: left; }
.thanks-steps strong { color: var(--text); }
.thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.not-found-page { display: grid; min-height: 100vh; place-content: center; justify-items: center; gap: 18px; text-align: center; }
.not-found-mark { display: grid; width: 96px; height: 96px; place-items: center; border-radius: 28px; background: var(--grad-primary); }
.not-found-mark svg { width: 52px; height: 52px; fill: none; stroke: var(--on-accent); stroke-width: 2.4; stroke-linecap: round; opacity: 0.5; }
.not-found-page h1 { font-size: clamp(40px, 6vw, 64px); }

/* Legal */
.legal-toc { display: flex; flex-wrap: wrap; gap: 10px; }
.legal-toc a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.legal-toc a:hover { border-color: var(--accent-line); color: var(--accent); }
.legal-content { max-width: 860px; padding: clamp(24px, 5vw, 48px); }
.legal-content section { scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-content section + section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.legal-content h2 { margin-bottom: 16px; font-size: 28px; }
.legal-content p, .legal-content li { color: var(--text-2); }
.legal-content p + p { margin-top: 12px; }
.legal-content ul { display: grid; gap: 6px; margin: 14px 0; padding-left: 20px; }
.legal-content a { color: var(--accent); }
.legal-content mark { padding: 1px 6px; border-radius: 5px; background: rgba(251, 191, 36, 0.22); color: inherit; }

/* 7. Responsive ------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .shell { width: min(100% - 48px, 960px); }
  .header-cta { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .configurator { grid-template-columns: 1fr; }
  .configurator-preview { flex-direction: row; flex-wrap: wrap; padding: 32px; border-right: 0; border-bottom: 1px solid var(--line); }
  .preview-stage { width: 150px; }
  .preview-caption { flex: 1; min-width: 160px; text-align: left; }
  .preview-hint { display: none; }
  .advantages, .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .help-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .shell { width: calc(100% - 40px); }
  .primary-nav { display: none; }
  .mobile-menu-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
  .mobile-menu-button span { width: 17px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.3s var(--ease); }
  .mobile-menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .mobile-menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .header-actions { margin-left: auto; }
  .header-inner { gap: 8px; }
  .icon-button { width: 44px; height: 44px; }
  .mobile-nav:not([hidden]) { display: grid; gap: 2px; padding: 6px 0 18px; animation: pop-in 0.3s var(--ease); }
  .mobile-nav a:not(.button) { padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 17px; font-weight: 500; }
  .mobile-nav .button { margin-top: 14px; }
  .mobile-nav-theme { align-items: center; gap: 10px; width: 100%; padding: 13px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text-2); font-size: 17px; font-weight: 500; text-align: left; }
  .mobile-nav-theme svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

  .hero { grid-template-columns: 1fr; gap: 8px; min-height: 0; padding-block: 36px 48px; text-align: center; }
  .hero-copy { max-width: 640px; margin-inline: auto; }
  .hero h1 { margin-inline: auto; }
  .hero-lede { margin-inline: auto; }
  .hero-actions, .trust-points { justify-content: center; }
  .hero-visual { min-height: 460px; }
  .hero-card { width: 230px; }
  .hero-side { width: 150px; }

  .section-heading { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline::before { top: 22px; right: auto; bottom: 22px; left: 22px; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), var(--accent-2) 60%, transparent); }
  .timeline li { padding-left: 70px; }
  .timeline-dot { position: absolute; top: 0; left: 0; }
  .pricing-grid { grid-template-columns: 1fr; gap: 28px; max-width: 480px; margin-inline: auto; }
  .pricing-featured { order: -1; }
  .contact-section { grid-template-columns: 1fr; gap: 32px; }
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-panel { position: static; }
  .lookup-panel, .account-hero { grid-template-columns: 1fr; gap: 24px; }
  .custom-banner { flex-direction: column; align-items: flex-start; }
  .footer-cta { flex-direction: column; align-items: flex-start; }
  .product-hero { grid-template-columns: 1fr; gap: 32px; }
  .viewer { position: relative; top: 0; }
  .specs-layout { grid-template-columns: 1fr; gap: 40px; }

  .mobile-cta { position: fixed; z-index: 900; right: 12px; bottom: 12px; left: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface-solid); color: var(--text-2); font-size: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(120%); transition: 0.4s var(--ease); }
  .mobile-cta strong { color: var(--text); }
  .mobile-cta .button { min-height: 42px; padding-inline: 18px; font-size: 14px; }
  .mobile-cta.is-visible { opacity: 1; pointer-events: auto; transform: none; }
  .whatsapp-float:has(~ .mobile-cta.is-visible) { bottom: 84px; }
  .toast { bottom: 84px; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  body { font-size: 15px; }
  .brand-word { font-size: 14px; }
  .brand-mark { width: 34px; height: 34px; }
  .icon-button { width: 44px; height: 44px; }
  /* El tema pasa al menú móvil en las páginas que lo tienen */
  .header-inner:has(.mobile-menu-button) .header-actions .theme-toggle { display: none; }
  .mobile-nav .mobile-nav-theme { display: flex; }
  .header-actions { gap: 0; }
  .hero h1 { font-size: clamp(38px, 11vw, 50px); }
  .hero-visual { min-height: 400px; }
  .hero-card { width: 200px; }
  .hero-side { width: 120px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .trust-points { gap: 10px 18px; font-size: 13px; }
  .product-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .product-media { height: 280px; }
  .custom-banner { padding: 24px; }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 12px 6px; }
  .compare-table tbody th { padding-left: 14px; }
  .compare-table .partial { font-size: 11px; }
  .reviews-track { grid-auto-columns: 86%; }
  .reviews-summary { gap: 12px; }
  .reviews-average { font-size: 44px; }
  .configurator { border-radius: 24px; }
  .configurator-preview { padding: 22px; gap: 16px; }
  .preview-stage { width: 110px; }
  .configurator-form { padding: 26px 18px; }
  .configurator-form h3 { font-size: 26px; }
  .choice-grid { grid-template-columns: repeat(3, 1fr); }
  .calculator-actions { grid-template-columns: 1fr; }
  .summary-total output, .summary-total strong { font-size: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-panel, .cart-panel, .checkout-panel, .buy-box { padding: 22px 18px; }
  .faq-item summary { font-size: 17px; }
  .faq-item p { padding-right: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cart-line { grid-template-columns: 56px 1fr auto; grid-template-areas: "thumb info remove" "thumb stepper price"; gap: 10px 12px; }
  .cart-thumb { grid-area: thumb; width: 56px; }
  .cart-line-info { grid-area: info; }
  .cart-line .stepper { grid-area: stepper; justify-self: start; }
  .cart-line-price { grid-area: price; }
  .cart-remove { grid-area: remove; justify-self: end; }
  .help-grid, .feature-list { grid-template-columns: 1fr; }
  .lookup-panel { padding: 22px 18px; }
  .viewer { padding: 28px 12px 18px; border-radius: 24px; }
  .viewer-stage { width: min(250px, 72%); }
  .viewer-zoom { display: none; }
  .related-card { grid-template-columns: 76px 1fr; }
  .demo-scene { height: 230px; }
  .demo-card { width: 96px; }
  .demo-phone { width: 106px; height: 194px; }
  .site-dialog { padding: 26px 20px; }
  .account-menu { position: fixed; top: calc(var(--header-h) + 6px); right: 12px; left: 12px; width: auto; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

@media (max-width: 380px) {
  .brand-word { font-size: 12px; letter-spacing: 0.05em; }
  .brand { gap: 7px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .header-inner { gap: 4px; }
  /* La cuenta pasa al menú para que los iconos mantengan 44 px */
  .header-inner:has(.mobile-menu-button) .account-wrap { display: none; }
  .mobile-nav .mobile-nav-account { display: block; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Sin desplazamientos, giros ni bucles: los cambios de estado quedan como fundidos cortos */
  *, *::before, *::after { animation: none !important; transition-property: opacity, color, background-color, border-color, box-shadow !important; transition-duration: 0.15s !important; }
  .drawer[open], .site-dialog[open], .account-menu, .mobile-nav:not([hidden]), .card3d.is-swapping .card3d-front { animation: fade-in 0.2s ease !important; }
  /* La demo muestra directamente el resultado: el móvil junto a la tarjeta y la página abierta */
  .demo-scene.is-playing .demo-phone { left: 40%; transform: translate(-50%, -50%) rotate(-2deg); }
  .demo-scene.is-playing .demo-screen-open { opacity: 1; }
  .demo-scene.is-playing .demo-screen-idle { opacity: 0; }
}
