/*
Theme Name: IPScloudtech Theme
Theme URI: https://ipscloudtech.com
Author: IPScloudtech
Author URI: https://ipscloudtech.com
Description: Tema para IPScloudtech — nube privada Nextcloud, configuración de VPS, software a la medida e IA local. Sin degradados, contraste WCAG AA verificado.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ipscloudtech
*/

/* ==========================================================================
   IPScloudtech — Design System & Stylesheet
   Versión 3.0 — Hero estático, contrastes WCAG AA, foco visible
   REGLA: sin degradados (cero linear-gradient / radial-gradient)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Superficies */
  --bg-page:      #F8FAFC;
  --bg-white:     #FFFFFF;
  --bg-soft:      #EFF4F9;
  --bg-muted:     #E2EAF3;
  --bg-dark-sec:  #0F172A;
  --bg-mid-sec:   #1E293B;

  /* Marca */
  --accent-blue:    #1D4ED8;
  --accent-blue-dk: #1E3A8A;
  --accent-sky:     #0EA5E9;
  --accent-teal:    #0F766E;   /* oscurecido: 4.79:1 sobre blanco */
  --accent-teal-lt: #0D9488;   /* solo para fondos e iconos, no para texto */
  --accent-emerald: #047857;   /* oscurecido: 4.83:1 sobre bg-soft */
  --accent-amber:   #B45309;   /* oscurecido: 4.97:1 sobre blanco */
  --accent-amber-lt:#D97706;   /* solo para fondos e iconos */
  --accent-indigo:  #4F46E5;

  /* Texto sobre claro */
  --text-dark:      #0F172A;
  --text-body:      #334155;
  --text-muted:     #556376;   /* 5.9:1 sobre blanco, 5.3:1 sobre bg-soft */
  --text-light:     #64748B;

  /* Texto sobre oscuro — todos ≥ 4.5:1 */
  --text-on-dark:   #F1F5F9;
  --text-on-dark-2: #CBD5E1;   /* 11.4:1 sobre #0F172A */
  --text-on-dark-3: #94A3B8;   /* 6.9:1 sobre #0F172A — mínimo permitido */

  /* Bordes */
  --border-xs:    rgba(15, 23, 42, 0.06);
  --border-sm:    rgba(15, 23, 42, 0.12);
  --border-md:    rgba(29, 78, 216, 0.25);
  --border-inv:   rgba(255, 255, 255, 0.12);

  /* Sombras */
  --shadow-xs:  0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm:  0 4px 12px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
  --shadow-md:  0 8px 24px rgba(15,23,42,0.10), 0 4px 10px rgba(15,23,42,0.06);
  --shadow-lg:  0 16px 40px rgba(15,23,42,0.12);
  --shadow-blue: 0 8px 24px rgba(29, 78, 216, 0.20);

  /* Tipografía */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'Fira Code', ui-monospace, monospace;

  /* Geometría */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  --transition-fast:   0.18s ease;
  --transition-normal: 0.3s ease;
  --container-max:     1240px;
  --header-h:          76px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-blue); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-blue-dk); text-decoration: underline; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* Anclas: compensan el header fijo */
section[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* Foco visible en todo lo interactivo */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.parallax-section a:focus-visible,
.parallax-section button:focus-visible,
.cta-section a:focus-visible,
.footer a:focus-visible,
.contact-info-card a:focus-visible {
  outline-color: #93C5FD;
}

/* Respeta la preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background-color: var(--accent-blue); color: #fff;
  padding: 0.75rem 1.25rem; font-weight: 700;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; color: #fff; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Honeypot antispam */
.ips-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---- Etiquetas y títulos de sección ---- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background-color: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.2);
  border-radius: var(--radius-full);
  color: var(--accent-blue);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
}
.section-tag .dot {
  width: 7px; height: 7px;
  background-color: currentColor;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.section-tag.teal { background-color: rgba(15,118,110,0.08); border-color: rgba(15,118,110,0.25); color: var(--accent-teal); }
.section-tag.inv  { background-color: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.25); color: var(--text-on-dark-2); }
.section-tag.inv .dot { animation: none; }

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section-title.inv { color: var(--text-on-dark); }

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  text-wrap: pretty;
}
.section-subtitle.inv { color: var(--text-on-dark-2); }

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---- Botones ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.55rem; padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem;
  cursor: pointer; border: 1.5px solid transparent;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-primary { background-color: var(--accent-blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background-color: var(--accent-blue-dk); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(29,78,216,0.3); }

.btn-teal { background-color: var(--accent-teal); color: #fff; box-shadow: 0 6px 20px rgba(15,118,110,0.25); }
.btn-teal:hover { background-color: #115E59; color: #fff; transform: translateY(-2px); }

.btn-amber { background-color: var(--accent-amber); color: #fff; box-shadow: 0 6px 20px rgba(180,83,9,0.25); }
.btn-amber:hover { background-color: #92400E; color: #fff; transform: translateY(-2px); }

.btn-outline { background-color: transparent; color: var(--text-dark); border-color: var(--border-sm); }
.btn-outline:hover { background-color: var(--bg-soft); border-color: var(--accent-blue); color: var(--accent-blue); transform: translateY(-2px); }

.btn-outline-inv { background-color: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn-outline-inv:hover { background-color: rgba(255,255,255,0.12); border-color: #fff; color: #fff; transform: translateY(-2px); }

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   3. HEADER
   -------------------------------------------------------------------------- */
.header {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-xs);
  box-shadow: var(--shadow-xs);
}

.header-container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}

.brand-logo {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-heading); font-weight: 800;
  font-size: 1.45rem; color: var(--text-dark); letter-spacing: -0.03em;
}
.brand-logo:hover { text-decoration: none; color: var(--text-dark); }
.brand-logo .logo-icon {
  width: 38px; height: 38px;
  background-color: var(--accent-blue);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.05rem;
  box-shadow: var(--shadow-blue);
  flex-shrink: 0;
}
.brand-logo .logo-tech { color: var(--accent-blue); }

.nav-menu { display: flex; align-items: center; gap: 2rem; }

.nav-link {
  color: var(--text-muted); font-weight: 600; font-size: 0.925rem;
  transition: color var(--transition-fast); padding: 0.4rem 0;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--accent-blue); text-decoration: none; }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 100%; height: 2px; background-color: var(--accent-blue);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 1rem; }
.menu-toggle {
  display: none; background: none; border: none;
  color: var(--text-dark); font-size: 1.5rem; cursor: pointer;
  padding: 0.25rem 0.5rem;
}

/* --------------------------------------------------------------------------
   4. HERO — estático, una sola propuesta
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  background-color: var(--bg-white);
  overflow: hidden;
  border-bottom: 1px solid var(--border-xs);
}

/* Patrón de puntos, sin degradado de color */
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(29,78,216,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: rgba(29,78,216,0.08);
  border: 1px solid rgba(29,78,216,0.2);
  border-radius: var(--radius-full);
  color: var(--accent-blue); font-size: 0.85rem; font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.1rem; font-weight: 800; line-height: 1.15;
  color: var(--text-dark); margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-title .hl-blue  { color: var(--accent-blue); }
.hero-title .hl-teal  { color: var(--accent-teal); }
.hero-title .hl-amber { color: var(--accent-amber); }

.hero-description {
  font-size: 1.15rem; color: var(--text-muted);
  margin-bottom: 2rem; max-width: 600px; line-height: 1.7;
  text-wrap: pretty;
}
.hero-buttons { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.hero-proof {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border-xs);
  display: flex; flex-direction: column; gap: 0.6rem;
}
.hero-proof li {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--text-body); font-size: 0.9rem;
}
.hero-proof li i { color: var(--accent-emerald); font-size: 0.8rem; }

/* Tarjeta visual */
.hero-visual { position: relative; display: flex; justify-content: center; }

.visual-card {
  width: 100%;
  background-color: var(--bg-white);
  border: 1px solid var(--border-sm);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}
.visual-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 1rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-xs);
}
.window-dots { display: flex; gap: 6px; }
.dot-red    { width: 10px; height: 10px; border-radius: 50%; background-color: #FF5F57; }
.dot-yellow { width: 10px; height: 10px; border-radius: 50%; background-color: #FEBC2E; }
.dot-green  { width: 10px; height: 10px; border-radius: 50%; background-color: #28C840; }
.visual-title { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }

.vis-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  background-color: var(--bg-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
  border: 1px solid var(--border-xs);
}
.vis-label { color: var(--text-muted); font-size: 0.85rem; }
.vis-value { font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.vis-value.blue    { color: var(--accent-blue); }
.vis-value.teal    { color: var(--accent-teal); }
.vis-value.amber   { color: var(--accent-amber); }
.vis-value.emerald { color: var(--accent-emerald); }

.vis-terminal {
  margin-top: 1rem;
  background-color: var(--bg-soft);
  border: 1px solid var(--border-sm);
  border-radius: 8px;
  padding: 0.9rem;
}
.vis-cmd { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-blue); font-weight: 700; }
.vis-out { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* --------------------------------------------------------------------------
   5. SERVICIOS — filas alternadas
   -------------------------------------------------------------------------- */
.services-section {
  padding: 7rem 0;
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border-xs);
}

.services-alternating { display: flex; flex-direction: column; gap: 2rem; margin-top: 4rem; }

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "content visual";
  align-items: stretch;
  min-height: 340px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.service-row:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* Alterna el lado sin recurrir a direction:rtl */
.service-row.swap { grid-template-areas: "visual content"; }
.service-row-content { grid-area: content; }
.service-row-visual  { grid-area: visual; }

.service-row-content {
  padding: 3rem 3.5rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-xs);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-row-visual { display: flex; }

.srv-icon-wrap {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 1.5rem;
}
.srv-icon-wrap.blue  { background-color: rgba(29,78,216,0.10); color: var(--accent-blue); }
.srv-icon-wrap.teal  { background-color: rgba(15,118,110,0.10); color: var(--accent-teal); }
.srv-icon-wrap.amber { background-color: rgba(180,83,9,0.10); color: var(--accent-amber); }

.srv-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.75rem; }
.srv-desc  { color: var(--text-muted); font-size: 0.975rem; line-height: 1.7; margin-bottom: 1.5rem; }

.srv-features { margin-bottom: 1.75rem; }
.srv-features li {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--text-body); font-size: 0.9rem; margin-bottom: 0.5rem;
}
.srv-features li i { font-size: 0.75rem; color: var(--accent-emerald); flex-shrink: 0; }

.srv-features + .btn { align-self: flex-start; }

.visual-panel {
  width: 100%;
  padding: 2.5rem;
  display: flex; flex-direction: column; justify-content: center; gap: 1rem;
}
.vp-blue  { background-color: #EFF6FF; border-left: 4px solid var(--accent-blue); }
.vp-teal  { background-color: #F0FDFA; border-left: 4px solid var(--accent-teal); }
.vp-amber { background-color: #FFFBEB; border-left: 4px solid var(--accent-amber); }

.stat-chip {
  display: flex; align-items: center; gap: 0.75rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-sm);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  box-shadow: var(--shadow-xs);
}
.stat-chip-icon { font-size: 1.5rem; flex-shrink: 0; }
.stat-chip-label { display: block; color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }
.stat-chip-value { display: block; font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; color: var(--text-dark); }

/* --------------------------------------------------------------------------
   6. SOLUCIONES IA — bento grid
   -------------------------------------------------------------------------- */
.ai-section {
  padding: 7rem 0;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-xs);
}

.ai-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.bento-item-demo { grid-column: 1 / -1; }

.bento-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-sm);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column;
}
.bento-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--border-md); }

.bento-card.blue-top  { border-top: 3px solid var(--accent-blue); }
.bento-card.teal-top  { border-top: 3px solid var(--accent-teal); }
.bento-card.amber-top { border-top: 3px solid var(--accent-amber); }

.bento-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.25rem;
}
.bento-icon.blue  { background-color: rgba(29,78,216,0.10); color: var(--accent-blue); }
.bento-icon.teal  { background-color: rgba(15,118,110,0.10); color: var(--accent-teal); }
.bento-icon.amber { background-color: rgba(180,83,9,0.10); color: var(--accent-amber); }

.bento-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.6rem; }
.bento-desc  { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; flex-grow: 1; margin-bottom: 1.25rem; }

.bento-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 600;
}
.chip.blue-c  { background-color: rgba(29,78,216,0.08); color: var(--accent-blue); border: 1px solid rgba(29,78,216,0.18); }
.chip.teal-c  { background-color: rgba(15,118,110,0.08); color: var(--accent-teal); border: 1px solid rgba(15,118,110,0.18); }
.chip.amber-c { background-color: rgba(180,83,9,0.08); color: var(--accent-amber); border: 1px solid rgba(180,83,9,0.18); }

/* Tarjeta de demo */
.bento-demo-card {
  background-color: var(--bg-soft);
  border: 1px solid var(--border-sm);
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  box-shadow: var(--shadow-xs);
}
.bento-demo-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}
.demo-info-col h3 {
  font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800;
  color: var(--text-dark); margin-bottom: 0.75rem;
}
.demo-info-col p { color: var(--text-muted); font-size: 0.975rem; line-height: 1.7; margin-bottom: 1.5rem; }

.demo-widget {
  background-color: var(--bg-white);
  border: 1px solid var(--border-sm);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.demo-widget-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-xs);
}
.demo-widget-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.demo-widget-badge {
  padding: 0.25rem 0.75rem; border-radius: var(--radius-full);
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  background-color: rgba(15,118,110,0.1); color: var(--accent-teal);
  border: 1px solid rgba(15,118,110,0.2);
  white-space: nowrap;
}
.demo-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.demo-tab-btn {
  padding: 0.45rem 1rem;
  background-color: var(--bg-soft);
  border: 1px solid var(--border-sm);
  border-radius: var(--radius-full);
  color: var(--text-muted); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: background-color var(--transition-fast), color var(--transition-fast);
}
.demo-tab-btn:hover { background-color: var(--bg-muted); color: var(--text-dark); }
.demo-tab-btn.active { background-color: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }

.demo-panel[hidden] { display: none; }
.demo-panel:focus { outline: none; }

.demo-controls { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.25rem; }
.ctrl-label {
  display: flex; justify-content: space-between; gap: 1rem;
  color: var(--text-muted); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem;
}
.ctrl-label span { color: var(--text-dark); font-family: var(--font-mono); }
input[type="range"] { width: 100%; accent-color: var(--accent-blue); }

.demo-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.result-cell {
  text-align: center; padding: 1rem;
  background-color: var(--bg-soft);
  border: 1px solid var(--border-xs);
  border-radius: var(--radius-md);
}
.result-cell .r-label { display: block; color: var(--text-muted); font-size: 0.78rem; font-weight: 600; margin-bottom: 0.35rem; }
.result-cell .r-value { display: block; font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; }
.r-value.blue  { color: var(--accent-blue); }
.r-value.teal  { color: var(--accent-teal); }
.r-value.amber { color: var(--accent-amber); }

/* Recomendador */
.rec-select { width: 100%; margin-bottom: 1.25rem; }
.rec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.rec-card {
  background-color: var(--bg-soft);
  border: 1px solid var(--border-sm);
  border-radius: var(--radius-md);
  padding: 0.95rem;
}
.rec-card .rc-product { font-weight: 700; color: var(--text-dark); font-size: 0.875rem; margin-bottom: 0.25rem; }
.rec-card .rc-reason  { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.5rem; }
.rec-card .rc-score   {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.78rem;
  color: var(--accent-teal);
}

/* Visor JSON */
.json-viewer {
  font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.6;
  background-color: var(--bg-dark-sec);
  color: var(--text-on-dark-2);
  padding: 1.25rem; border-radius: var(--radius-md);
  overflow-x: auto; max-height: 260px; overflow-y: auto;
  margin: 0;
}
.j-key  { color: #7DD3FC; }
.j-str  { color: #6EE7B7; }
.j-num  { color: #FCD34D; }
.j-bool { color: #F9A8D4; }

/* --------------------------------------------------------------------------
   7. IA LOCAL — sección oscura
   -------------------------------------------------------------------------- */
.parallax-section {
  position: relative;
  padding: 8rem 0;
  background-color: var(--bg-dark-sec);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  background-size: 60px 60px;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.local-ai-top { text-align: center; margin-bottom: 4rem; }
.local-ai-top .section-subtitle { margin-left: auto; margin-right: auto; }

.local-ai-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.ai-feat-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: background-color var(--transition-normal), transform var(--transition-normal), border-color var(--transition-normal);
}
.ai-feat-card:hover {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
}

.ai-feat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.25rem;
}
.ai-feat-icon.blue-i  { background-color: rgba(29,78,216,0.25); color: #93C5FD; }
.ai-feat-icon.teal-i  { background-color: rgba(15,118,110,0.25); color: #5EEAD4; }
.ai-feat-icon.amber-i { background-color: rgba(180,83,9,0.25); color: #FCD34D; }

.ai-feat-title { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--text-on-dark); margin-bottom: 0.6rem; }
.ai-feat-desc  { color: var(--text-on-dark-2); font-size: 0.9rem; line-height: 1.65; }

.local-ai-terminal {
  background-color: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.term-header {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  background-color: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.term-title { color: var(--text-on-dark-3); font-family: var(--font-mono); font-size: 0.8rem; margin-left: auto; }
.term-body { padding: 1.5rem 2rem; font-family: var(--font-mono); font-size: 0.875rem; line-height: 2; overflow-x: auto; }
.tl { display: flex; gap: 0.75rem; }
.tp { color: #7DD3FC; font-weight: bold; flex-shrink: 0; }
.tc { color: var(--text-on-dark); }
.to { color: var(--text-on-dark-3); }
.ts { color: #6EE7B7; }
.t-gap { margin-top: 0.5rem; }

.local-ai-cta { text-align: center; margin-top: 3rem; }

/* --------------------------------------------------------------------------
   8. CTA
   -------------------------------------------------------------------------- */
.cta-section {
  padding: 7rem 0;
  background-color: var(--accent-blue-dk);
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  background-size: 20px 20px;
  text-align: center;
}

.cta-inner { max-width: 760px; margin: 0 auto; }
.cta-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  color: #DBEAFE; font-size: 0.85rem; font-weight: 700;
  margin-bottom: 1.5rem;
}
.cta-title { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 800; color: #fff; margin-bottom: 1rem; letter-spacing: -0.025em; text-wrap: balance; }
.cta-desc  { color: #DBEAFE; font-size: 1.1rem; line-height: 1.7; margin-bottom: 2.5rem; text-wrap: pretty; }
.cta-buttons { display: flex; justify-content: center; gap: 1.25rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   9. CONTACTO
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 7rem 0;
  background-color: var(--bg-soft);
  border-top: 1px solid var(--border-xs);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info-card {
  background-color: var(--bg-dark-sec);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}
.contact-info-card h3 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 2rem; }

.contact-item { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 2rem; }
.contact-item:last-child { margin-bottom: 0; }
.contact-icon {
  width: 48px; height: 48px;
  background-color: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.contact-icon.blue-i  { color: #93C5FD; border-color: rgba(147,197,253,0.35); }
.contact-icon.teal-i  { color: #5EEAD4; border-color: rgba(94,234,212,0.35); }
.contact-icon.amber-i { color: #FCD34D; border-color: rgba(252,211,77,0.35); }

.contact-text h4 { font-family: var(--font-heading); font-size: 1rem; color: #fff; margin-bottom: 0.2rem; }
/* 11.4:1 sobre #0F172A — antes 3.75:1 */
.contact-text p  { color: var(--text-on-dark-2); font-size: 0.95rem; line-height: 1.7; }
.contact-text a  { color: var(--text-on-dark-2); text-decoration: underline; text-underline-offset: 3px; }
.contact-text a:hover { color: #fff; }

.nda-badge {
  background-color: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
}
.nda-badge p:first-child { color: #5EEAD4; font-weight: 700; margin-bottom: 0.35rem; font-size: 0.9rem; }
/* 8.4:1 — antes 2.07:1 */
.nda-badge p:last-child  { color: var(--text-on-dark-3); font-size: 0.82rem; line-height: 1.6; }

.contact-form-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-sm);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-md);
}
.contact-form-card h3 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--text-dark); margin-bottom: 2rem; }

.form-group { margin-bottom: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: 0.875rem; color: var(--text-dark); margin-bottom: 0.5rem; }
.form-label .req { color: #B91C1C; }
.form-control {
  width: 100%; padding: 0.825rem 1.1rem;
  background-color: var(--bg-soft);
  border: 1px solid var(--border-sm);
  border-radius: var(--radius-md);
  color: var(--text-dark); font-size: 0.95rem;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control::placeholder { color: var(--text-muted); opacity: 1; }
.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(29,78,216,0.18);
}
.form-control[aria-invalid="true"] { border-color: #B91C1C; background-color: #FEF2F2; }
textarea.form-control { min-height: 120px; resize: vertical; }

.form-status { padding: 1rem; border-radius: var(--radius-md); font-size: 0.9rem; margin-top: 1rem; display: none; }
.form-status.success { display: block; background-color: rgba(4,120,87,0.08); border: 1px solid rgba(4,120,87,0.3); color: #065F46; }
.form-status.error   { display: block; background-color: rgba(185,28,28,0.06); border: 1px solid rgba(185,28,28,0.25); color: #991B1B; }

/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--bg-mid-sec);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 5rem 0 2.5rem;
  color: var(--text-on-dark-2);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 4rem;
}
.footer-brand .brand-logo { margin-bottom: 1.25rem; color: #F1F5F9; }
.footer-brand .brand-logo:hover { color: #F1F5F9; }
.footer-brand .brand-logo .logo-tech { color: #93C5FD; }

/* 9.9:1 sobre #1E293B — antes 1.93:1 */
.footer-desc { font-size: 0.9rem; color: var(--text-on-dark-2); line-height: 1.65; max-width: 320px; margin-bottom: 1.25rem; }
.footer-addr { font-size: 0.85rem; color: var(--text-on-dark-3); line-height: 1.8; }
.footer-addr a { color: var(--text-on-dark-3); text-decoration: underline; text-underline-offset: 3px; }
.footer-addr a:hover { color: #93C5FD; }

.footer-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-on-dark); margin-bottom: 1.25rem; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-on-dark-2); font-size: 0.9rem; }
.footer-links a:hover { color: #93C5FD; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  /* 6.9:1 — antes 1.41:1 */
  color: var(--text-on-dark-3);
}
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom a { color: var(--text-on-dark-3); }
.footer-bottom a:hover { color: #93C5FD; }

/* --------------------------------------------------------------------------
   11. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .service-row,
  .service-row.swap { grid-template-columns: 1fr; grid-template-areas: "content" "visual"; min-height: auto; }
  .ai-bento { grid-template-columns: 1fr 1fr; }
  .bento-item-3 { grid-column: 1 / -1; }
  .bento-demo-inner { grid-template-columns: 1fr; }
  .local-ai-features-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }

  .nav-menu {
    position: fixed; top: var(--header-h); left: -100%;
    width: 100%; height: calc(100dvh - var(--header-h));
    background-color: var(--bg-white); flex-direction: column;
    align-items: flex-start; gap: 0.5rem;
    padding: 2rem; transition: left var(--transition-normal);
    box-shadow: var(--shadow-md);
    overflow-y: auto;
  }
  .nav-menu.active { left: 0; }
  .nav-link { font-size: 1.1rem; padding: 0.75rem 0; width: 100%; }
  .menu-toggle { display: block; }

  .hero-section { padding: calc(var(--header-h) + 2.5rem) 0 3.5rem; }
  .hero-title { font-size: 2.3rem; }
  .hero-description { font-size: 1.05rem; }
  .hero-buttons .btn { width: 100%; }

  .section-title { font-size: 2rem; }
  .cta-title { font-size: 2rem; }

  .services-section, .ai-section, .contact-section { padding: 4.5rem 0; }
  .parallax-section, .cta-section { padding: 5rem 0; }
  .service-row-content { padding: 2rem 1.75rem; }

  /* La prueba de valor se conserva en móvil, en scroll horizontal */
  .visual-panel { flex-direction: row; overflow-x: auto; padding: 1.5rem; gap: 0.75rem; }
  .stat-chip { flex-shrink: 0; }

  .ai-bento { grid-template-columns: 1fr; }
  .bento-item-3 { grid-column: 1; }
  .bento-demo-card { padding: 1.75rem 1.25rem; }
  .demo-widget { padding: 1.25rem; }
  .demo-results { grid-template-columns: 1fr; }
  .rec-grid { grid-template-columns: 1fr; }

  .contact-info-card, .contact-form-card { padding: 1.75rem; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .parallax-section, .cta-section { background-attachment: scroll; }
  .cta-buttons .btn { width: 100%; }
}
