/* Fixi Tótem — landing/totem/totem.css
   Paleta y tipografía tomadas de docs/totem/diseno/Totem Web.dc.html.
   Las fuentes son las mismas que el resto de la landing (self-hosted,
   ver landing/seo.css): Inter y Space Grotesk. Sitio solo oscuro. */

:root {
  --t-bg: #0E0E0E;
  --t-bg-soft: #141414;
  --t-card: #202020;
  --t-card-soft: #1A1A1A;
  --t-input: #2C2C2C;
  --t-border: rgba(72, 72, 71, 0.6);
  --t-border-soft: rgba(72, 72, 71, 0.35);
  --t-text: #FFFFFF;
  --t-muted: #ADAAAA;
  --t-dim: #767575;
  --t-accent: #84ADFF;
  --t-on-accent: #0E0E0E;
  --t-red: #FF716C;
  --t-green-soft: #82D9A4;
  --t-yellow: #FFCC00;
  --t-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.totem-root { background: var(--t-bg); color: var(--t-text); min-height: 100vh; }
.totem-root, .totem-root * { box-sizing: border-box; }
.totem-root h1, .totem-root h2, .totem-root h3, .totem-root p { margin: 0; }
.totem-root a { color: var(--t-accent); }
.totem-root a:hover { color: var(--t-text); }
.totem-root summary::-webkit-details-marker { display: none; }
.totem-root input, .totem-root select, .totem-root button { font: inherit; color: inherit; }
.totem-root :focus-visible { outline: 2px solid var(--t-accent); outline-offset: 2px; }
.totem-shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.totem-eyebrow { font: 700 12px/1.4 "Space Grotesk", sans-serif; letter-spacing: .15em; color: var(--t-accent); text-transform: uppercase; }
.totem-h2 { font: 700 clamp(32px, 4vw, 50px)/1.1 "Space Grotesk", sans-serif; text-wrap: balance; }
.totem-lead { font-size: 16px; color: var(--t-muted); max-width: 640px; }
img { max-width: 100%; }

@keyframes totem-spin { to { transform: rotate(360deg); } }

/* Header */
.totem-header { position: sticky; top: 0; z-index: 30; background: var(--t-bg); border-bottom: 1px solid var(--t-border-soft); }
.totem-nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
a.totem-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--t-text); font: 700 22px "Space Grotesk", sans-serif; white-space: nowrap; }
.totem-brand img { width: 32px; height: 32px; display: block; }
.totem-brand-accent { font: 500 16px Inter, sans-serif; color: var(--t-accent); }
.totem-nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.totem-nav-links a { color: var(--t-text); text-decoration: none; }
.totem-nav-links a.is-current { color: var(--t-accent); font-weight: 600; }
.totem-lang-pill { height: 40px; padding: 0 12px; display: flex; align-items: center; border: 1px solid var(--t-border); border-radius: 8px; background: var(--t-card-soft); font-size: 12px; font-weight: 500; }
.totem-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
/* Selector compuesto a propósito: un solo ".totem-btn-primary" empataba en
   especificidad con ".totem-root a" / ".totem-nav-links a" y perdía por
   orden, dejando el texto del botón del mismo color que su fondo. */
.totem-btn.totem-btn-primary { background: var(--t-accent); color: var(--t-on-accent); }
.totem-btn.totem-btn-secondary { background: transparent; border-color: var(--t-accent); color: var(--t-accent); }
.totem-nav .totem-btn { height: 40px; padding: 0 16px; font-size: 14px; }
.totem-menu-toggle { display: none; height: 40px; padding: 0 16px; border: 1px solid var(--t-border); border-radius: 12px; background: var(--t-card-soft); font-weight: 700; font-size: 14px; cursor: pointer; }
.totem-mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 0 0 16px; font-size: 16px; }
.totem-mobile-nav a { min-height: 48px; display: flex; align-items: center; color: var(--t-text); text-decoration: none; }
.totem-mobile-nav a.is-current { color: var(--t-accent); font-weight: 600; }
.totem-mobile-nav .totem-btn { height: 48px; margin-top: 8px; justify-content: center; }
@media (max-width: 899px) {
  .totem-nav-links { display: none; }
  .totem-menu-toggle { display: inline-flex; align-items: center; }
  .totem-mobile-nav.is-open { display: flex; }
}

/* Sections */
.totem-section { padding: 64px 0; }
.totem-section-lg { padding: 88px 0; }
.totem-section-soft { background: var(--t-bg-soft); border-block: 1px solid var(--t-border-soft); }
.totem-section-top { border-top: 1px solid var(--t-border-soft); }
.totem-stack { display: flex; flex-direction: column; gap: 32px; }
.totem-head { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }

/* Hero */
.totem-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px; align-items: center; }
.totem-hero-copy { display: flex; flex-direction: column; gap: 24px; }
.totem-hero-copy h1 { font: 700 clamp(40px, 5.2vw, 68px)/1.06 "Space Grotesk", sans-serif; text-wrap: balance; }
.totem-hero-copy h1 .totem-accent-text { color: var(--t-accent); }
.totem-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.totem-launch-note { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--t-text); }
.totem-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--t-accent); flex: none; }
.totem-hero-media { position: relative; border-radius: 24px; overflow: hidden; background: var(--t-card); border: 1px solid var(--t-border-soft); box-shadow: var(--t-shadow); aspect-ratio: 941 / 1180; max-height: 720px; justify-self: center; width: 100%; max-width: 560px; }
.totem-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }

/* Qué hace */
.totem-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.totem-head-row img { width: 140px; height: 170px; object-fit: contain; display: block; }
.totem-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 24px; }
.totem-card { padding: 24px; border-radius: 16px; background: var(--t-card); border: 1px solid var(--t-border-soft); box-shadow: var(--t-shadow); display: flex; flex-direction: column; gap: 12px; }
.totem-card-num { font: 700 12px "Space Grotesk", sans-serif; letter-spacing: .1em; color: var(--t-dim); }
.totem-card h3 { font: 700 22px/1.2 "Space Grotesk", sans-serif; }
.totem-card p { font-size: 15px; color: var(--t-muted); }
.totem-callout { display: flex; gap: 12px; align-items: flex-start; padding-top: 24px; border-top: 1px solid var(--t-border-soft); }
.totem-callout .totem-dot { margin-top: 8px; background: var(--t-green-soft); }
.totem-callout p { font-size: 15px; color: var(--t-text); max-width: 720px; }

/* Cómo funciona */
.totem-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.totem-steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 2px solid var(--t-border); }
.totem-steps li:first-child { border-top-color: var(--t-accent); }
.totem-steps li span.totem-step-num { font: 700 40px/1 "Space Grotesk", sans-serif; color: var(--t-accent); }
.totem-steps h3 { font: 700 22px/1.2 "Space Grotesk", sans-serif; }
.totem-steps p { font-size: 15px; color: var(--t-muted); }

/* Qué incluye */
.totem-incluye { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: start; }
.totem-incluye img { width: 150px; height: 180px; object-fit: contain; display: block; margin-top: 16px; }
.totem-included { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.totem-included li { min-height: 48px; padding: 12px 16px; display: flex; gap: 12px; align-items: center; border-radius: 12px; background: var(--t-card-soft); border: 1px solid var(--t-border-soft); font-size: 15px; }
.totem-check { width: 20px; height: 20px; flex: none; border-radius: 999px; display: grid; place-items: center; background: rgba(130, 217, 164, .14); border: 1px solid rgba(130, 217, 164, .35); color: var(--t-green-soft); font-size: 12px; font-weight: 700; }

/* Planes */
.totem-launch-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(132, 173, 255, .14); border: 1px solid rgba(132, 173, 255, .35); color: var(--t-accent); font-size: 14px; font-weight: 700; }
.totem-plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px; }
.totem-plan-card { text-align: left; padding: 24px; border-radius: 16px; background: var(--t-card); border: 1px solid var(--t-border-soft); box-shadow: var(--t-shadow); display: flex; flex-direction: column; gap: 16px; }
.totem-plan-card.is-selected { border: 2px solid var(--t-accent); }
.totem-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.totem-plan-kicker { font: 700 12px "Space Grotesk", sans-serif; letter-spacing: .1em; color: var(--t-dim); }
.totem-plan-badge { padding: 2px 8px; border-radius: 999px; background: rgba(132, 173, 255, .14); border: 1px solid rgba(132, 173, 255, .35); color: var(--t-accent); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.totem-plan-card h3 { font: 700 22px/1.2 "Space Grotesk", sans-serif; }
.totem-plan-scope { font-size: 14px; color: var(--t-muted); }
.totem-plan-price-label { font-size: 12px; font-weight: 500; color: var(--t-dim); }
.totem-plan-price { display: flex; align-items: baseline; gap: 8px; color: var(--t-text); }
.totem-plan-price .totem-currency { font-size: 14px; font-weight: 600; }
.totem-plan-price strong { font: 700 48px/1 "Space Grotesk", sans-serif; }
.totem-plan-price .totem-per { font-size: 14px; color: var(--t-muted); }
.totem-plan-base { font-size: 14px; color: var(--t-text); padding-top: 12px; border-top: 1px solid var(--t-border-soft); }
.totem-plan-list { font-size: 12px; color: var(--t-dim); }

/* Tabla de precios 4x4 */
.totem-price-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--t-border-soft); background: var(--t-card); box-shadow: var(--t-shadow); }
.totem-price-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.totem-price-table caption { text-align: left; padding: 16px 16px 0; font-size: 13px; color: var(--t-muted); caption-side: top; }
.totem-price-table th, .totem-price-table td { padding: 14px 16px; text-align: left; border-top: 1px solid var(--t-border-soft); white-space: nowrap; }
.totem-price-table thead th { color: var(--t-dim); font: 700 11px "Space Grotesk", sans-serif; letter-spacing: .08em; text-transform: uppercase; border-top: 0; }
.totem-price-table tbody th { color: var(--t-text); font-weight: 700; }
.totem-price-table tbody td { color: var(--t-muted); }

/* Configurador */
.totem-configurator { border-radius: 24px; background: var(--t-card); border: 1px solid var(--t-border-soft); box-shadow: var(--t-shadow); padding: clamp(16px, 3vw, 32px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; }
.totem-config-preview { display: flex; justify-content: center; align-items: center; background: var(--t-card-soft); border-radius: 16px; padding: 24px; }
.totem-config-preview-frame { width: min(100%, 300px); aspect-ratio: 600 / 1066; border-radius: 12px; background: #FFFFFF; overflow: hidden; }
.totem-config-preview-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.totem-config-cols { display: flex; flex-direction: column; gap: 24px; }
.totem-config-block { display: flex; flex-direction: column; gap: 8px; }
.totem-config-kicker { font: 700 10px Inter, sans-serif; letter-spacing: .1em; color: var(--t-dim); }
.totem-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.totem-chip { height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 700; background: transparent; color: var(--t-text); border: 1px solid var(--t-border); }
.totem-chip.is-selected { background: var(--t-accent); color: var(--t-on-accent); border-color: var(--t-accent); }
.totem-device-row { min-height: 48px; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 12px; background: var(--t-card-soft); border: 1px solid var(--t-border-soft); }
.totem-device-toggle { min-height: 48px; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 12px; background: var(--t-card-soft); border: 1px solid var(--t-border); cursor: pointer; text-align: left; width: 100%; }
.totem-device-toggle.is-on { border-color: var(--t-accent); }
.totem-device-copy { display: flex; flex-direction: column; }
.totem-device-copy strong { font-size: 15px; }
.totem-device-copy span { font-size: 12px; color: var(--t-muted); }
.totem-device-price-row { display: flex; align-items: center; gap: 12px; }
.totem-device-price { font-size: 14px; color: var(--t-muted); white-space: nowrap; }
.totem-switch { width: 44px; height: 24px; border-radius: 999px; background: var(--t-input); display: flex; align-items: center; padding: 2px; justify-content: flex-start; }
.totem-device-toggle.is-on .totem-switch { background: var(--t-accent); justify-content: flex-end; }
.totem-switch-knob { width: 20px; height: 20px; border-radius: 999px; background: var(--t-dim); }
.totem-device-toggle.is-on .totem-switch-knob { background: var(--t-on-accent); }
.totem-total-block { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--t-border-soft); }
.totem-total-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.totem-total-price .totem-currency { font-size: 16px; font-weight: 600; }
.totem-total-price strong { font: 700 56px/1 "Space Grotesk", sans-serif; }
.totem-total-price .totem-per { font-size: 14px; color: var(--t-muted); }
.totem-total-iva { font-size: 14px; color: var(--t-text); }
.totem-total-detail { font-size: 12px; color: var(--t-dim); }
.totem-config-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.totem-link-btn { height: 48px; padding: 0 8px; display: flex; align-items: center; font-weight: 700; font-size: 14px; text-decoration: none; }
.totem-fineprint { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px 32px; font-size: 14px; color: var(--t-muted); }

/* Qué no incluye */
.totem-noincluye-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.totem-noincluye-grid > div { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--t-border); }
.totem-noincluye-grid h3 { font: 700 22px/1.2 "Space Grotesk", sans-serif; }
.totem-noincluye-grid p { font-size: 15px; color: var(--t-muted); }

/* FAQ + Documentos */
.totem-faq-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; align-items: start; }
.totem-docs-block { display: flex; flex-direction: column; gap: 8px; }
.totem-docs-kicker { font: 700 10px Inter, sans-serif; letter-spacing: .1em; color: var(--t-dim); }
a.totem-doc-link { min-height: 48px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-radius: 12px; background: var(--t-card-soft); border: 1px solid var(--t-border-soft); color: var(--t-text); text-decoration: none; font-size: 15px; }
.totem-doc-link span { color: var(--t-accent); }
.totem-faq-list { display: flex; flex-direction: column; }
.totem-faq-list details { border-bottom: 1px solid var(--t-border); }
.totem-faq-list summary { list-style: none; min-height: 48px; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font: 700 18px/1.3 "Space Grotesk", sans-serif; }
.totem-faq-list summary .totem-faq-plus { color: var(--t-accent); font-size: 22px; font-weight: 400; flex: none; }
.totem-faq-list details[open] summary .totem-faq-plus { transform: rotate(45deg); }
.totem-faq-list p { padding: 0 0 24px; font-size: 15px; color: var(--t-muted); max-width: 620px; }

/* Formulario */
.totem-form-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; align-items: start; }
.totem-form-intro { display: flex; flex-direction: column; gap: 16px; }
.totem-form-intro img { width: 150px; height: 180px; object-fit: contain; display: block; margin-top: 16px; }
.totem-form { display: flex; flex-direction: column; gap: 16px; }
.totem-form-kicker { font: 700 10px Inter, sans-serif; letter-spacing: .1em; color: var(--t-dim); }
.totem-form-panel { padding: 24px; border-radius: 16px; background: var(--t-card); border: 1px solid var(--t-border-soft); box-shadow: var(--t-shadow); }
.totem-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.totem-field { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 500; color: var(--t-muted); }
.totem-field input, .totem-field select { height: 48px; padding: 0 16px; border-radius: 12px; background: var(--t-input); border: 1px solid var(--t-border); font-size: 15px; color: var(--t-text); width: 100%; }
.totem-field input:invalid { box-shadow: none; }
.totem-field-error { color: var(--t-red); font-size: 12px; font-weight: 600; min-height: 14px; }
.totem-devices-panel { display: flex; flex-direction: column; gap: 16px; }
.totem-consent-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--t-text); cursor: pointer; min-height: 48px; padding-top: 8px; border-top: 1px solid var(--t-border-soft); }
.totem-consent-row input { width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--t-accent); flex: none; }
.totem-honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.totem-form-alert { padding: 16px; border-radius: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.totem-form-alert.is-error { background: rgba(255, 113, 108, .14); border: 1px solid rgba(255, 113, 108, .35); }
.totem-form-alert strong { font-size: 15px; }
.totem-form-alert.is-error strong { color: var(--t-red); }
.totem-submit { height: 48px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--t-accent); color: var(--t-on-accent); font-weight: 700; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px; }
.totem-submit:disabled { opacity: .7; cursor: default; }
.totem-spinner { width: 16px; height: 16px; border-radius: 999px; border: 2px solid var(--t-on-accent); border-right-color: transparent; animation: totem-spin .8s linear infinite; }
.totem-sent { padding: 32px; border-radius: 16px; background: var(--t-card); border: 1px solid var(--t-border-soft); box-shadow: var(--t-shadow); display: flex; flex-direction: column; gap: 16px; min-height: 420px; justify-content: center; }
.totem-sent-check { width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; background: rgba(130, 217, 164, .14); border: 1px solid rgba(130, 217, 164, .35); color: var(--t-green-soft); font-size: 22px; font-weight: 700; }
.totem-sent h3 { font: 700 28px/1.2 "Space Grotesk", sans-serif; }
.totem-sent p { font-size: 16px; color: var(--t-muted); }
.totem-reset-btn { align-self: flex-start; height: 40px; padding: 0; border: 0; background: none; color: var(--t-accent); font-weight: 700; font-size: 14px; cursor: pointer; }
.totem-hidden { display: none !important; }

/* Footer */
.totem-footer { border-top: 1px solid var(--t-border-soft); }
.totem-footer .totem-shell { padding: 32px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; font-size: 12px; }
a.totem-footer-brand { font: 700 18px "Space Grotesk", sans-serif; color: var(--t-text); text-decoration: none; }
.totem-footer p { color: var(--t-muted); }
.totem-footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.totem-footer-links a { font-weight: 600; text-decoration: none; }

/* Páginas de documentos */
.totem-doc-main { width: min(1160px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 88px; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.totem-doc-aside { flex: 1 1 240px; max-width: 100%; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 24px; }
.totem-doc-aside-title { font: 700 10px Inter, sans-serif; letter-spacing: .1em; color: var(--t-dim); margin-bottom: 4px; }
.totem-doc-nav { display: flex; flex-direction: column; gap: 4px; }
.totem-doc-nav a { min-height: 40px; padding: 8px 12px; border-radius: 8px; text-align: left; font-size: 14px; font-weight: 400; color: var(--t-muted); text-decoration: none; }
.totem-doc-nav a.is-current { font-weight: 700; background: var(--t-card-soft); color: var(--t-text); }
.totem-doc-toc { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid var(--t-border-soft); }
.totem-doc-toc a { min-height: 32px; display: flex; align-items: center; padding: 0 12px; font-size: 14px; color: var(--t-muted); text-decoration: none; }
.totem-doc-article { flex: 999 1 560px; max-width: 720px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.totem-doc-article h1 { font: 700 clamp(34px, 4vw, 48px)/1.1 "Space Grotesk", sans-serif; text-wrap: balance; }
.totem-doc-updated { font-size: 14px; color: var(--t-dim); }
.totem-doc-notice { padding: 16px; border-radius: 12px; background: rgba(255, 204, 0, .14); border: 1px solid rgba(255, 204, 0, .35); font-size: 14px; color: var(--t-text); }
.totem-doc-section { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--t-border-soft); }
.totem-doc-section h2 { font: 700 22px/1.3 "Space Grotesk", sans-serif; }
.totem-doc-section p { font-size: 16px; color: var(--t-muted); text-wrap: pretty; }

@media (max-width: 640px) {
  .totem-section { padding: 48px 0; }
  .totem-section-lg { padding: 56px 0; }
  .totem-doc-aside { position: static; }
}
