/* =========================================================
   JOLT SOLUTIONS — style.css
   Prototipo web para Jolt Solutions (jolt.tech)
   Agencia: AppyWeb (appyweb.es)
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  /* Paleta principal — LIGHT THEME */
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fc;          /* sections alternadas (tinte azulado muy suave) */
  --color-bg-soft: #e9eff7;
  --color-bg-deep: #0a1628;         /* solo para footer/hero acento ocasional */
  --color-surface: rgba(10, 22, 40, 0.035);
  --color-surface-hover: rgba(10, 22, 40, 0.07);
  --color-border: rgba(10, 22, 40, 0.09);
  --color-border-strong: rgba(10, 22, 40, 0.18);

  /* Texto */
  --color-text: #0a1628;            /* navy profundo pero legible */
  --color-text-muted: #4c566b;
  --color-text-soft: #7d8699;

  /* Texto sobre fondos acentuados (teal, azul) */
  --color-on-accent: #ffffff;

  /* Acentos */
  --color-accent: #00a581;          /* Teal Jolt — tono ajustado para buen contraste en claro */
  --color-accent-hover: #00c099;
  --color-accent-bright: #00d4a8;   /* Teal brillante (para gradients y glows) */
  --color-accent-blue: #1f76d2;     /* Azul tech */
  --color-accent-yellow: #f5b700;   /* Amarillo highlight */
  --color-danger: #e53a4a;

  /* Tipografía */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  /* Espaciado */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container: 1240px;
  --container-narrow: 960px;
  --header-h: 80px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.06), 0 1px 2px rgba(10, 22, 40, 0.04);
  --shadow-md: 0 6px 20px rgba(10, 22, 40, 0.09);
  --shadow-lg: 0 24px 60px rgba(10, 22, 40, 0.14);
  --shadow-glow: 0 10px 35px rgba(0, 212, 168, 0.25);

  /* Transiciones */
  --t-fast: 0.15s ease;
  --t: 0.3s ease;
  --t-slow: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
}

img,
picture,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover {
  color: var(--color-accent);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* ---------- 2. TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

h4 {
  font-size: 1.15rem;
}

p {
  color: var(--color-text-muted);
  margin-bottom: 1em;
}

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

.text-accent { color: var(--color-accent); }
.text-muted  { color: var(--color-text-muted); }
.text-center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 720px;
  margin-bottom: var(--space-lg);
}

.section-header {
  margin-bottom: var(--space-xl);
  max-width: 820px;
}

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

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

/* ---------- 3. LAYOUT HELPERS ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-soft {
  background: var(--color-bg-soft);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-on-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
}

.btn-ghost:hover {
  color: var(--color-accent);
}

.btn-lg {
  padding: 1.1rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Flecha arrow-icon después del texto */
.btn .arrow {
  transition: transform var(--t);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ---------- 5. HEADER / NAVBAR ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--t), box-shadow var(--t);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 38px;
  width: auto;
}

/* El logo Asset-19 de Jolt está diseñado para fondo oscuro (texto blanco + teal).
   En tema claro lo mostramos como silueta negra hasta que exista una versión específica. */
.site-header .logo img {
  filter: brightness(0);
}

/* --- Navegación principal --- */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
  background: var(--color-surface);
}

.nav-link.has-submenu::after {
  content: '▾';
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.75em;
  transition: transform var(--t-fast);
}

.nav-item.open > .nav-link.has-submenu::after {
  transform: rotate(180deg);
}

/* Submenú desplegable */
.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--t-fast);
}

.nav-item:hover > .submenu,
.nav-item.open > .submenu,
.nav-item:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--color-text);
  transition: all var(--t-fast);
}

.submenu a small {
  display: block;
  color: var(--color-text-soft);
  font-size: 0.78rem;
  margin-top: 2px;
}

.submenu a:hover {
  background: var(--color-surface-hover);
  color: var(--color-accent);
}

/* --- Idioma + social en header --- */
.header-aside {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switcher {
  position: relative;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
}

.lang-current:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.lang-current::after {
  content: '▾';
  font-size: 0.7em;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 130px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 0.35rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--t-fast);
  z-index: 10;
}

.lang-switcher.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.7rem;
  font-size: 0.85rem;
  color: var(--color-text);
  border-radius: 4px;
  transition: all var(--t-fast);
}

.lang-menu button:hover {
  background: var(--color-surface-hover);
  color: var(--color-accent);
}

.lang-menu button.active {
  color: var(--color-accent);
  background: var(--color-surface);
}

/* --- Social icons --- */
.social-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text-muted);
  transition: all var(--t-fast);
}

.social-list a:hover {
  background: var(--color-accent);
  color: var(--color-bg);
  transform: translateY(-2px);
}

.social-list svg {
  width: 16px;
  height: 16px;
}

/* --- Hamburguesa móvil --- */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--t-fast);
}

.nav-toggle:hover {
  border-color: var(--color-accent);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  margin: 4px 0;
  transition: all var(--t);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Responsive nav */
@media (max-width: 1024px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: var(--color-bg);
    padding: var(--space-md);
    transform: translateX(100%);
    transition: transform var(--t);
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-link {
    padding: 1rem 0.5rem;
    font-size: 1.05rem;
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0.5rem 1rem;
    display: none;
  }

  .nav-item.open > .submenu {
    display: block;
  }

  .header-aside {
    margin-top: var(--space-md);
    justify-content: space-between;
  }
}

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  padding: calc(var(--space-2xl) + 1rem) 0 var(--space-2xl);
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(0, 212, 168, 0.18), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(31, 118, 210, 0.14), transparent 55%),
    linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 22, 40, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 22, 40, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 60px rgba(0, 212, 168, 0.2));
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    text-align: center;
  }
  .hero-content { margin: 0 auto; }
  .hero-cta { justify-content: center; }
}

/* Hero variants (páginas internas) — banda oscura con foto de fondo */
.hero-page {
  position: relative;
  padding: calc(var(--header-h) + var(--space-xl)) 0 var(--space-xl);
  background: var(--color-bg-deep);
  color: #ffffff;
  overflow: hidden;
}

.hero-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
  z-index: 0;
}

.hero-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.55) 0%, rgba(10, 22, 40, 0.88) 100%),
    linear-gradient(90deg, rgba(10, 22, 40, 0.4), transparent 60%);
  z-index: 0;
}

.hero-page.bg-hydrogen::before {
  background-image: url('https://jolt.tech/wp-content/uploads/2024/02/shutterstock_1539610088.jpg');
}

.hero-page.bg-chlorine::before {
  background-image: url('https://jolt.tech/wp-content/uploads/2025/07/pexels-pixabay-62307-scaled.jpg');
}

.hero-page.bg-industrial::before {
  background-image: url('https://jolt.tech/wp-content/uploads/2024/01/IMG_0343.png');
}

.hero-page.bg-factory::before {
  background-image: url('https://jolt.tech/wp-content/uploads/2024/10/IMG_2433-smaller-scaled.jpg');
}

.hero-page .container {
  position: relative;
  z-index: 1;
}

.hero-page h1 {
  margin-bottom: var(--space-md);
  max-width: 820px;
  color: #ffffff;
}

.hero-page .eyebrow {
  color: var(--color-accent-bright);
}

.hero-page .lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 680px;
}

.hero-page .breadcrumb {
  color: rgba(255, 255, 255, 0.6);
}

.hero-page .breadcrumb a:hover { color: var(--color-accent-bright); }
.hero-page .breadcrumb span.sep { color: rgba(255, 255, 255, 0.3); }

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin-bottom: var(--space-md);
}

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

.breadcrumb span.sep { color: var(--color-border-strong); }

/* ---------- 7. CARDS ---------- */
.card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition: all var(--t);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}

.card:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--color-text-muted);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 212, 168, 0.15), rgba(63, 169, 245, 0.1));
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

.card-icon svg { width: 26px; height: 26px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-md);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.card-link .arrow {
  transition: transform var(--t);
}

.card:hover .card-link .arrow {
  transform: translateX(4px);
}

/* Card con imagen (aplicaciones home) */
.card-image {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.card-image .img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.card-image .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.card-image:hover .img-wrap img {
  transform: scale(1.06);
}

.card-image .card-body {
  padding: var(--space-lg);
}

/* ---------- 8. FEATURES / BENEFITS ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.feature {
  padding: var(--space-md);
  border-left: 2px solid var(--color-accent);
  background: var(--color-surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: all var(--t);
}

.feature:hover {
  background: var(--color-surface-hover);
  transform: translateX(4px);
}

.feature h4 {
  color: var(--color-accent);
  font-family: var(--font-display);
  margin-bottom: 0.35rem;
}

.feature p {
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- 9. STATS / DATOS CLAVE ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.stat {
  text-align: center;
  padding: var(--space-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all var(--t);
}

.stat:hover {
  border-color: var(--color-accent);
  background: var(--color-surface-hover);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------- 10. COMPARATIVA (Standard vs Sparkfuze) ---------- */
.comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-md);
  align-items: stretch;
}

.comparison-col {
  padding: var(--space-lg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.comparison-col.highlight {
  border-color: var(--color-accent);
  background: linear-gradient(180deg, rgba(0, 212, 168, 0.08), rgba(0, 212, 168, 0.02));
  box-shadow: var(--shadow-glow);
}

.comparison-col h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
}

.comparison-col.highlight h4 { color: var(--color-accent); }

.comparison-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comparison-col li {
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.comparison-col li:last-child { border-bottom: none; }

.comparison-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-text-soft);
}

@media (max-width: 820px) {
  .comparison {
    grid-template-columns: 1fr;
  }
  .comparison-vs {
    padding: var(--space-sm) 0;
  }
}

/* ---------- 11. PROCESS / DIAGRAMA ---------- */
.process-image {
  width: 100%;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
}

/* ---------- 12. TESTIMONIAL ---------- */
.quote {
  position: relative;
  padding: var(--space-lg);
  background: var(--color-surface);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote::before {
  content: '“';
  position: absolute;
  top: -10px;
  left: 10px;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--color-accent);
  opacity: 0.3;
  line-height: 1;
}

.quote blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.quote cite {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  font-style: normal;
}

.quote cite strong {
  color: var(--color-accent);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

/* ---------- 13. PARTNERS / LOGOS GRID ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  align-items: center;
}

.logo-grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  min-height: 90px;
  transition: all var(--t);
}

.logo-grid-item:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-strong);
  transform: translateY(-2px);
}

.logo-grid-item img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--t);
}

.logo-grid-item:hover img {
  opacity: 1;
  filter: grayscale(0);
}

/* Badges (footer) — no invertir colores */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-sm);
  align-items: center;
}

.badge-grid-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  min-height: 80px;
  transition: all var(--t);
}

.badge-grid-item:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

.badge-grid-item img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.badge-grid-item.placeholder {
  background: var(--color-surface);
  border: 1px dashed var(--color-border-strong);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  padding: 0.5rem;
  line-height: 1.3;
}

/* ---------- 14. TWO-COL (image + text) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.two-col.reverse .text-col { order: 2; }

.two-col .image-col img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .two-col.reverse .text-col { order: initial; }
}

/* ---------- 15. CTA SECTION ---------- */
.cta-section {
  position: relative;
  padding: var(--space-2xl) 0;
  background:
    linear-gradient(135deg, rgba(0, 212, 168, 0.12), rgba(63, 169, 245, 0.08)),
    var(--color-bg);
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0, 212, 168, 0.15), transparent 50%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta-inner h2 {
  margin-bottom: var(--space-sm);
}

.cta-inner p {
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
}

.cta-inner .btn-group {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 16. FAQ (accordion) ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--t);
}

.faq-item.open {
  border-color: var(--color-accent);
  background: var(--color-surface-hover);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: color var(--t-fast);
}

.faq-question:hover { color: var(--color-accent); }

.faq-question .icon {
  width: 22px;
  height: 22px;
  position: relative;
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

.faq-question .icon::before,
.faq-question .icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-accent);
  border-radius: 2px;
  transition: transform var(--t);
}

.faq-question .icon::before {
  width: 14px;
  height: 2px;
}

.faq-question .icon::after {
  width: 2px;
  height: 14px;
}

.faq-item.open .faq-question .icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}

.faq-answer-inner {
  padding: 0 var(--space-lg) var(--space-md);
  color: var(--color-text-muted);
  line-height: 1.75;
}

.faq-item.open .faq-answer {
  max-height: 600px;
}

/* ---------- 17. CONTACT FORM ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
  align-items: flex-start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.form-group label .required { color: var(--color-accent); }

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 168, 0.15);
}

.form-control::placeholder { color: var(--color-text-soft); }

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.form-consent input { margin-top: 4px; }

.form-success,
.form-error {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: var(--space-sm);
  display: none;
}

.form-success {
  background: rgba(0, 212, 168, 0.1);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.form-error {
  background: rgba(255, 90, 95, 0.1);
  border: 1px solid var(--color-danger);
  color: var(--color-danger);
}

.form-success.show,
.form-error.show { display: block; }

/* Info contacto */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-info-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all var(--t);
}

.contact-info-item:hover {
  border-color: var(--color-accent);
  background: var(--color-surface-hover);
}

.contact-info-item .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 168, 0.12);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
}

.contact-info-item .icon svg { width: 20px; height: 20px; }

.contact-info-item h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-soft);
  margin-bottom: 0.2rem;
}

.contact-info-item a,
.contact-info-item p {
  font-size: 1rem;
  color: var(--color-text);
  margin: 0;
}

.contact-info-item a:hover { color: var(--color-accent); }

/* ---------- 18. FOOTER (navy oscuro — cierre visual) ---------- */
.site-footer {
  background: var(--color-bg-deep);
  color: rgba(255, 255, 255, 0.82);
  border-top: none;
  padding: var(--space-2xl) 0 var(--space-lg);
  margin-top: 0;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(0, 212, 168, 0.10), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(31, 118, 210, 0.08), transparent 55%);
  pointer-events: none;
}

.site-footer > .container { position: relative; z-index: 1; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand img {
  height: 44px;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffffff;
  margin-bottom: var(--space-sm);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  transition: color var(--t-fast);
}

.footer-col a:hover { color: var(--color-accent-bright); }

/* Social icons en footer oscuro */
.site-footer .social-list a {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

.site-footer .social-list a:hover {
  background: var(--color-accent);
  color: #ffffff;
}

.footer-badges {
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-md);
}

.footer-badges h5 {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover { color: var(--color-accent-bright); }

.footer-legal {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ---------- 19. ANIMATIONS / SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 20. UTILITIES ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-lg) 0;
  border: none;
}

/* Selection */
::selection {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

/* Scrollbar (webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

/* Focus-visible para accesibilidad */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- 21. CLIENT PORTAL LINKS ---------- */
/* Enlace discreto al área de clientes en el header */
.client-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
  white-space: nowrap;
}

.client-portal-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-surface-hover);
  transform: translateY(-1px);
}

.client-portal-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (max-width: 1280px) {
  .client-portal-link span { display: none; }
  .client-portal-link {
    padding: 0.5rem;
    width: 36px;
    height: 36px;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .client-portal-link {
    width: auto;
    padding: 0.5rem 0.8rem;
  }
  .client-portal-link span { display: inline; }
}

/* Enlace en footer (legal nav) — destacado sutilmente */
.footer-client-portal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-accent-bright) !important;
  font-weight: 600;
}

.footer-client-portal::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-accent-bright);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 212, 168, 0.7);
}

.footer-client-portal:hover {
  color: #ffffff !important;
}
