/* ==========================================================================
   Hubsoft — Sistema de Diseño Corporativo
   Estética clara, editorial y sobria para productos de software y revisión
   ========================================================================== */

:root {
  /* Paleta HSL curada */
  --bg-canvas: hsl(220, 20%, 98%);
  --bg-surface: hsl(0, 0%, 100%);
  --bg-subtle: hsl(216, 24%, 95%);
  --bg-elevated: hsl(0, 0%, 100%);

  --ink-primary: hsl(222, 47%, 11%);
  --ink-secondary: hsl(215, 20%, 35%);
  --ink-muted: hsl(215, 16%, 48%);

  --brand-600: hsl(221, 78%, 42%);
  --brand-700: hsl(221, 80%, 34%);
  --brand-100: hsl(220, 82%, 95%);
  --brand-50: hsl(220, 85%, 97.5%);

  --trust-600: hsl(168, 65%, 30%);
  --trust-50: hsl(168, 52%, 95%);

  --danger-600: hsl(0, 72%, 46%);
  --danger-50: hsl(0, 80%, 96%);

  /* Bordes y elevaciones con profundidad sutil */
  --border-subtle: hsla(222, 47%, 11%, 0.08);
  --border-default: hsla(222, 47%, 11%, 0.13);
  --border-strong: hsla(222, 47%, 11%, 0.22);

  --shadow-xs: 0 1px 2px hsla(222, 47%, 11%, 0.04);
  --shadow-sm: 0 1px 3px hsla(222, 47%, 11%, 0.05), 0 4px 12px hsla(222, 47%, 11%, 0.03);
  --shadow-md: 0 2px 6px hsla(222, 47%, 11%, 0.05), 0 12px 32px hsla(222, 47%, 11%, 0.06);

  /* Tipografía */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radios y espaciado */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --container-max: 1140px;
  --header-height: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 160ms var(--ease-out);
  --transition-base: 240ms var(--ease-out);
}

/* Reset y base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-canvas);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-primary);
  background-color: var(--bg-canvas);
  background-image: radial-gradient(
    ellipse 90% 50% at 50% -10%,
    hsla(220, 75%, 92%, 0.45),
    transparent 65%
  );
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-700);
}

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Accesibilidad: skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink-primary);
  color: var(--bg-surface);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 16px;
  color: var(--bg-surface);
}

/* Tipografía */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-primary);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  letter-spacing: -0.032em;
  line-height: 1.09;
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  line-height: 1.32;
}

p {
  margin: 0;
  color: var(--ink-secondary);
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 14px;
}

.lead {
  font-size: clamp(1.03rem, 1.35vw, 1.15rem);
  line-height: 1.68;
  color: var(--ink-secondary);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.section {
  padding-block: clamp(56px, 8vw, 96px);
}

.section-bordered {
  border-top: 1px solid var(--border-subtle);
}

.section-tinted {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 660px;
  margin-bottom: clamp(32px, 4.5vw, 48px);
}

.section-header p {
  margin-top: 14px;
  font-size: 1.04rem;
}

/* ==========================================================================
   Header y Navegación
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: hsla(220, 20%, 98%, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.site-header.is-scrolled {
  background-color: hsla(0, 0%, 100%, 0.94);
  box-shadow: var(--shadow-xs);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink-primary);
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-secondary);
  padding-block: 6px;
  position: relative;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink-primary);
}

.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: var(--brand-600);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--ink-primary);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.nav-toggle:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

/* ==========================================================================
   Botones
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  font-size: 0.86rem;
  padding: 9px 15px;
}

.btn-primary {
  background-color: var(--ink-primary);
  color: var(--bg-surface);
  box-shadow: var(--shadow-xs);
}

.btn-primary:hover {
  background-color: hsl(222, 42%, 18%);
  color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.btn-accent {
  background-color: var(--brand-600);
  color: var(--bg-surface);
  box-shadow: var(--shadow-xs);
}

.btn-accent:hover {
  background-color: var(--brand-700);
  color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--ink-primary);
  border-color: var(--border-default);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--border-strong);
  color: var(--ink-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-secondary);
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 500;
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--ink-primary);
  border-color: var(--border-default);
}

/* ==========================================================================
   Hero Principal
   ========================================================================== */

.hero {
  padding-block: clamp(48px, 7.5vw, 88px) clamp(56px, 8vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero-content h1 {
  margin-bottom: 20px;
}

.hero-content .lead {
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-meta-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.hero-meta-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.hero-visual {
  position: relative;
}

.editorial-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.editorial-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.editorial-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.editorial-caption strong {
  color: var(--ink-primary);
  font-weight: 600;
}

.editorial-caption code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Pilares / Enfoque (3 columnas editoriales)
   ========================================================================== */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.5vw, 40px);
}

.pillar {
  padding-top: 22px;
  border-top: 1px solid var(--border-default);
}

.pillar-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brand-600);
  margin-bottom: 12px;
  display: block;
}

.pillar h3 {
  margin-bottom: 10px;
}

.pillar p {
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========================================================================
   Áreas de Producto
   ========================================================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.surface-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.surface-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.surface-card p {
  font-size: 0.94rem;
  line-height: 1.62;
}

.card-footer-note {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.umbrella-note {
  margin-top: 24px;
  padding: 18px 22px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.umbrella-note p {
  font-size: 0.93rem;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Centro Legal / Directorio de Documentación
   ========================================================================== */

.legal-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.legal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 28px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base);
}

.legal-card:hover {
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.legal-card-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-route {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand-600);
  background: var(--brand-50);
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
}

.legal-card h3 {
  font-size: 1.15rem;
}

.legal-card p {
  font-size: 0.93rem;
}

.legal-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.text-link:hover {
  color: var(--brand-600);
}

.text-link svg {
  transition: transform var(--transition-fast);
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Banda de Contacto Corporativo
   ========================================================================== */

.contact-band {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4.5vw, 48px);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.contact-band p {
  margin-top: 12px;
  max-width: 520px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.channel-row span {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.channel-row a {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-primary);
}

.channel-row a:hover {
  color: var(--brand-600);
}

/* ==========================================================================
   Páginas Interiores y Documentación Legal
   ========================================================================== */

.page-hero {
  padding-block: clamp(40px, 6vw, 68px) clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--ink-muted);
}

.breadcrumb a:hover {
  color: var(--ink-primary);
}

.page-hero h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.65rem);
  margin-bottom: 14px;
}

.page-hero .lead {
  max-width: 680px;
}

.doc-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.doc-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.doc-meta-list strong {
  color: var(--ink-primary);
  font-weight: 600;
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(36px, 5vw, 64px);
  align-items: start;
}

.doc-toc {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.doc-toc-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.doc-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border-subtle);
}

.doc-toc li a {
  display: block;
  padding: 6px 0 6px 14px;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--ink-muted);
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.doc-toc li a:hover {
  color: var(--ink-primary);
}

.doc-toc li a.is-active {
  color: var(--brand-600);
  border-left-color: var(--brand-600);
  font-weight: 500;
}

/* Prosa legal optimizada para lectura */
.prose {
  max-width: 70ch;
}

.prose section {
  scroll-margin-top: calc(var(--header-height) + 28px);
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.prose section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.prose h2 {
  font-size: 1.38rem;
  margin-bottom: 14px;
}

.prose h3 {
  font-size: 1.05rem;
  margin-top: 20px;
  margin-bottom: 8px;
}

.prose p {
  margin-bottom: 14px;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  margin: 0 0 16px 0;
  padding-left: 22px;
  color: var(--ink-secondary);
}

.prose li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.prose li strong {
  color: var(--ink-primary);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink-primary);
}

.callout {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--brand-600);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-xs);
}

.callout-trust {
  border-left-color: var(--trust-600);
}

.callout-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 6px;
}

.callout p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

/* Tablas legales y de transparencia */
.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.data-table th {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  background: var(--bg-canvas);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table td {
  color: var(--ink-secondary);
  line-height: 1.6;
}

.data-table td strong {
  color: var(--ink-primary);
}

/* ==========================================================================
   Formularios (Soporte y Eliminación de Datos)
   ========================================================================== */

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: var(--shadow-sm);
}

.form-card h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.form-card > p {
  font-size: 0.93rem;
  margin-bottom: 24px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.field label .optional {
  font-weight: 400;
  color: var(--ink-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink-primary);
  background-color: var(--bg-canvas);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background-color: var(--bg-surface);
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px hsla(221, 78%, 42%, 0.14);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}

.form-status {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.6;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  background: var(--trust-50);
  border: 1px solid hsla(168, 65%, 30%, 0.25);
  color: var(--ink-primary);
}

.form-status.is-error {
  background: var(--danger-50);
  border: 1px solid hsla(0, 72%, 46%, 0.25);
  color: var(--danger-600);
}

.form-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* Canales laterales */
.info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-xs);
}

.info-box h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.info-box p {
  font-size: 0.92rem;
}

.email-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.email-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.email-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.email-item-label {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.email-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.email-item a {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-primary);
}

.email-item a:hover {
  color: var(--brand-600);
}

/* Pasos numerados (Eliminación de datos) */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 18px 0 24px;
  list-style: none;
  padding: 0;
}

.step-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-100);
  color: var(--brand-600);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-body h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.step-body p {
  font-size: 0.92rem;
  margin: 0;
}

/* ==========================================================================
   Preguntas Frecuentes (FAQ)
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 780px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--border-default);
  box-shadow: var(--shadow-xs);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink-muted);
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--brand-600);
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Footer Corporativo
   ========================================================================== */

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding-block: clamp(44px, 6vw, 68px) 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.9rem;
  max-width: 300px;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-primary);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

.footer-col a:hover {
  color: var(--ink-primary);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Página 404
   ========================================================================== */

.not-found {
  padding-block: clamp(72px, 12vw, 132px);
  text-align: center;
}

.not-found-code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-600);
  margin-bottom: 12px;
}

.not-found h1 {
  margin-bottom: 14px;
}

.not-found p {
  max-width: 480px;
  margin: 0 auto 28px;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ==========================================================================
   Toast sutil de feedback (ej. "Enlace copiado")
   ========================================================================== */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  background: var(--ink-primary);
  color: var(--bg-surface);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero-grid,
  .contact-band,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .pillars-grid,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-toc {
    position: static;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px 20px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-default);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 24px;
    gap: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links a {
    font-size: 1rem;
    width: 100%;
  }

  .pillars-grid,
  .products-grid,
  .legal-directory,
  .form-row-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .channel-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Estilos de impresión para documentos legales (Guardar como PDF) */
@media print {
  .site-header,
  .site-footer,
  .doc-toc,
  .no-print,
  .toast {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .page-hero {
    border-bottom: 1px solid #ccc;
    padding-block: 16px;
  }

  .doc-layout {
    display: block;
    padding-block: 20px;
  }

  .prose {
    max-width: 100%;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
