/* ============================================
   CANAR-IA v6 — Apple-Style Light Mode Premium
   Clean · Luminous · Bento · Whitespace
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  /* Apple-style light palette */
  --bg: #FBFBFD;
  --bg-white: #FFFFFF;
  --bg-input: #F5F5F7;

  /* Text hierarchy */
  --heading: #1D1D1F;
  --text: #86868B;
  --text-secondary: #AEAEB2;

  /* Borders and surfaces */
  --border: rgba(0,0,0,0.04);
  --border-hover: rgba(0,0,0,0.08);
  --border-focus: rgba(99,102,241,0.4);

  /* Brand accents */
  --accent: #6366F1;
  --accent-light: rgba(99,102,241,0.08);
  --accent-hover: #5558E6;
  --fse: #06B6D4;
  --fse-light: rgba(6,182,212,0.08);
  --heliox: #8B5CF6;
  --heliox-light: rgba(139,92,246,0.08);

  /* Radius tokens */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1440px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-mockup: 0 20px 40px rgba(0,0,0,0.08);
  --shadow-btn: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-btn-hover: 0 4px 16px rgba(0,0,0,0.1);

  /* Aurora tokens */
  --aurora-white: #FBFBFD;
  --aurora-transparent: transparent;
  --aurora-blue-500: #6366F1;
  --aurora-indigo-300: #a5b4fc;
  --aurora-blue-300: #93c5fd;
  --aurora-violet-200: #ddd6fe;
  --aurora-blue-400: #818cf8;
}

body {
  width: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: min(1440px, 100% - 64px);
  margin-inline: auto;
}

section {
  padding: clamp(80px, 10vw, 160px) 0;
  position: relative;
}

/* --- Typography (Apple-style) --- */
.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--heading);
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  letter-spacing: -0.01em;
  max-width: 600px;
}

.section-header { margin-bottom: 72px; }
.section-header--center { text-align: center; }
.section-header--center .section-desc { margin: 0 auto; }

/* ============================================
   NAV — Luminous Glassmorphism
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 16px 24px 0;
  pointer-events: none;
}

.nav::before { display: none; }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 6px 8px;
  border-radius: 100px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  position: relative;
  pointer-events: auto;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.nav.scrolled .nav-inner {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.nav-logo { display: flex; align-items: center; padding: 0 8px; }
.nav-logo img { height: 64px; width: auto; }

.nav-links { display: flex; gap: 4px; }

.nav-links a {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  padding: 8px 20px;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-links a.active {
  color: var(--accent);
  background: rgba(99,102,241,0.06);
}

/* Tubelight glow on active */
.nav-links a.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 16px;
  background: rgba(99,102,241,0.18);
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 8px 20px;
  border-radius: 100px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-btn);
  margin-left: 4px;
}
.nav-cta:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  z-index: 10;
}
.nav-toggle span {
  display: block; width: 20px; height: 1.5px;
  background: var(--heading); border-radius: 1px;
  transition: 0.3s;
}

/* ============================================
   HERO — Clean & Spacious
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* Aurora background effect */
.hero-aurora {
  position: absolute;
  inset: -10px;
  overflow: hidden;
  pointer-events: none;
  --white-gradient: repeating-linear-gradient(
    100deg,
    var(--aurora-white) 0%,
    var(--aurora-white) 7%,
    var(--aurora-transparent) 10%,
    var(--aurora-transparent) 12%,
    var(--aurora-white) 16%
  );
  --aurora-gradient: repeating-linear-gradient(
    100deg,
    var(--aurora-blue-500) 10%,
    var(--aurora-indigo-300) 15%,
    var(--aurora-blue-300) 20%,
    var(--aurora-violet-200) 25%,
    var(--aurora-blue-400) 30%
  );
  background-image: var(--white-gradient), var(--aurora-gradient);
  background-size: 300% 200%;
  background-position: 50% 50%;
  filter: blur(10px) invert(1);
  opacity: 0.5;
  will-change: transform;
  mask-image: radial-gradient(ellipse at 100% 0%, black 10%, var(--aurora-transparent) 70%);
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, black 10%, var(--aurora-transparent) 70%);
}

.hero-aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--white-gradient), var(--aurora-gradient);
  background-size: 200% 100%;
  background-attachment: fixed;
  mix-blend-mode: difference;
  animation: aurora 60s linear infinite;
}

@keyframes aurora {
  from { background-position: 50% 50%, 50% 50%; }
  to { background-position: 350% 50%, 350% 50%; }
}

/* Keep old glow classes for backwards compat but hide them */
.hero-glow { display: none; }

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(99,102,241,0.12);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--heading);
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #818cf8 50%, var(--fse) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Vapour text effect */
.vapour-wrapper {
  position: relative;
  width: 100%;
  height: clamp(5rem, 12vw, 10rem);
  margin-bottom: 24px;
}
.vapour-canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* h1 hidden by default — canvas replaces it. JS shows it as fallback if canvas fails */
.hero-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.hero-desc {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  letter-spacing: -0.01em;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.01em;
}

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

.btn-ghost {
  color: var(--heading);
  background: var(--bg-white);
  border: 1px solid var(--border-hover);
}
.btn-ghost:hover {
  background: var(--bg-input);
  border-color: rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.btn-dark {
  color: var(--heading);
  background: var(--bg-input);
  border: 1px solid var(--border);
}
.btn-dark:hover {
  background: rgba(0,0,0,0.06);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-white {
  color: var(--bg);
  background: var(--heading);
  font-weight: 600;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ============================================
   EMPRESA
   ============================================ */
.empresa {
  background: var(--bg-white);
}

.empresa-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}

.stats {
  display: flex;
  align-items: center;
  gap: 48px;
}

.stat { text-align: center; }

.stat-number {
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text);
  font-weight: 500;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(0,0,0,0.06);
}

/* ============================================
   PRODUCTOS
   ============================================ */
.productos {
  background: var(--bg);
}

.product {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 120px;
}
.product:last-child { margin-bottom: 0; }

.product--reverse .product-info { order: 2; }
.product--reverse .product-img { order: 1; }

.product-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.product-tag--fse {
  color: var(--fse);
  background: var(--fse-light);
}
.product-tag--heliox {
  color: var(--heliox);
  background: var(--heliox-light);
}

.product-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--heading);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.product-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 24px;
}

.product-list {
  margin-bottom: 28px;
}

.product-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 2;
}

.product-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fse);
}

.product-list--heliox li::before {
  background: var(--heliox);
}

.product-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-mockup);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product:hover .product-img {
  box-shadow: 0 24px 48px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.product-img img {
  width: 100%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.product:hover .product-img img {
  transform: scale(1.015);
}

/* ============================================
   AUTOMATIZACION — Bento Grid
   ============================================ */
.auto-section {
  background: var(--bg-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

/* Bento: make first and last card span 2 columns */
.features-grid .feature:first-child {
  grid-column: span 2;
}

.features-grid .feature:last-child {
  grid-column: span 2;
}

.feature {
  padding: 36px 32px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.feature-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
}

/* ============================================
   TECNOLOGIA
   ============================================ */
.tech {
  background: var(--bg);
}

.tech-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tech-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-mockup);
  background: var(--bg-white);
}
.tech-visual img { width: 100%; display: block; }

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tech-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.tech-item:last-child { border-bottom: none; }

.tech-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
}

.tech-item strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--heading);
  display: block;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.tech-item p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text);
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
  padding: 0 0 160px;
  background: var(--bg);
}

.cta-box {
  background: var(--heading);
  border-radius: var(--radius-xl);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: inherit;
}

.cta-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.cta-desc {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

/* ============================================
   CONTACTO
   ============================================ */
.contacto {
  background: var(--bg-white);
  overflow: hidden;
}

.contacto > .container {
  position: relative;
}

/* CTA glow rectangle */
.contacto-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  box-shadow:
    0 -16px 128px 0 hsla(260, 97%, 72%, 0.35) inset,
    0 -16px 32px 0 hsla(245, 87%, 67%, 0.35) inset;
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,1) 8rem);
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,1) 8rem);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: 0.3s;
}
.contacto-glow.visible {
  opacity: 1;
  transform: scale(1);
}

@keyframes cta-fade-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cta-scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.contacto-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contacto-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-size: 0.9375rem;
  color: var(--heading);
  font-weight: 500;
}

.contacto-email svg { color: var(--accent); }

.contact-form {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--heading);
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  outline: none;
  transition: all 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-secondary); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--border-focus);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
}

.form-group textarea { min-height: 100px; resize: vertical; }

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2386868B' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6l3.5 4 3.5-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.form-status {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}
.form-status--success {
  background: rgba(34,197,94,0.08);
  color: #16a34a;
  border: 1px solid rgba(34,197,94,0.15);
}
.form-status--error {
  background: rgba(239,68,68,0.08);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,0.15);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 64px 0 0;
  border-top: 1px solid rgba(0,0,0,0.04);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
}

/* Company column */
.footer-company { display: flex; flex-direction: column; gap: 16px; }

.footer-logo {
  display: inline-block;
  text-decoration: none;
}
.footer-logo img {
  height: 80px;
  width: auto;
}
.footer-desc {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.6;
}

/* Columns */
.footer-col-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.8125rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* Newsletter */
.footer-newsletter-desc {
  font-size: 0.8125rem;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-newsletter-input-wrap {
  position: relative;
  display: flex;
}
.footer-newsletter-input-wrap input {
  flex: 1;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--heading);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.footer-newsletter-input-wrap input::placeholder { color: var(--text-secondary); }
.footer-newsletter-input-wrap input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
}
.footer-newsletter-input-wrap button {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.footer-newsletter-input-wrap button:hover {
  background: var(--accent-hover);
}

.footer-newsletter-status {
  margin-top: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
}
.footer-newsletter-status.success { color: #16a34a; }
.footer-newsletter-status.error { color: #dc2626; }

/* Bottom bar */
.footer-bottom {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  will-change: opacity, transform, filter;
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Hero reveals always visible — no need to wait for scroll */
.hero .reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ============================================
   MOCKUPS — Shared Base (Light Theme)
   ============================================ */
.mockup {
  background: var(--bg-white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-mockup);
  overflow: hidden;
  font-size: 0.8125rem;
  color: var(--text);
}

.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-input);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #FF5F57; }
.mockup-dots span:nth-child(2) { background: #FFBD2E; }
.mockup-dots span:nth-child(3) { background: #28C840; }

.mockup-title {
  font-size: 0.75rem;
  color: var(--text);
  font-weight: 500;
}

.mockup-body {
  display: flex;
  min-height: 340px;
}

/* ============================================
   MOCKUP — FSE (Light)
   ============================================ */
.mockup--fse .mockup-sidebar {
  width: 180px;
  padding: 16px 12px;
  background: var(--bg-input);
  border-right: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mockup-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s;
}

.mockup-nav-item.active {
  background: var(--fse-light);
  color: var(--fse);
}

.mockup-nav-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.mockup-nav-item.active .mockup-nav-icon {
  background: rgba(6,182,212,0.2);
}

.mockup--fse .mockup-main {
  flex: 1;
  padding: 20px 24px;
  background: var(--bg-white);
}

.mockup-section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Timeline */
.mockup-timeline {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
  position: relative;
}

.mockup-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  height: 2px;
  background: rgba(0,0,0,0.06);
}

.mockup-timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.mockup-step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid rgba(0,0,0,0.1);
}

.mockup-timeline-step.completed .mockup-step-dot {
  background: var(--fse);
  border-color: var(--fse);
}

.mockup-timeline-step.active .mockup-step-dot {
  border-color: var(--fse);
  box-shadow: 0 0 0 4px rgba(6,182,212,0.15);
}

.mockup-timeline-step span {
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

.mockup-timeline-step.completed span,
.mockup-timeline-step.active span {
  color: var(--heading);
}

/* Checklist */
.mockup-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.mockup-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text);
}

.mockup-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.mockup-check-item.done .mockup-checkbox {
  background: var(--fse);
  border-color: var(--fse);
}

.mockup-check-item.done {
  color: var(--heading);
}

/* Progress bars */
.mockup-progress-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-progress-row {
  display: grid;
  grid-template-columns: 120px 1fr 40px;
  align-items: center;
  gap: 12px;
  font-size: 0.6875rem;
  color: var(--text);
}

.mockup-progress-bar {
  height: 6px;
  background: rgba(0,0,0,0.04);
  border-radius: 3px;
  overflow: hidden;
}

.mockup-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--fse), rgba(6,182,212,0.5));
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-progress-val {
  text-align: right;
  font-weight: 600;
  color: var(--fse);
}

/* ============================================
   MOCKUP — Heliox (Light)
   ============================================ */
.mockup--heliox .mockup-body {
  min-height: 380px;
}

.mockup-document {
  flex: 1;
  padding: 20px 24px;
  border-right: 1px solid rgba(0,0,0,0.04);
  background: var(--bg-white);
}

.mockup-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mockup-doc-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--heliox);
  background: var(--heliox-light);
  padding: 4px 12px;
  border-radius: 100px;
}

.mockup-doc-status {
  font-size: 0.6875rem;
  color: var(--fse);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-doc-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fse);
  animation: pulse 2s ease-in-out infinite;
}

.mockup-doc-field {
  margin-bottom: 16px;
}

.mockup-field-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 8px;
}

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

.mockup-text-line {
  height: 8px;
  background: rgba(0,0,0,0.04);
  border-radius: 4px;
  display: block;
}

.mockup-text-line.w100 { width: 100%; }
.mockup-text-line.w90 { width: 90%; }
.mockup-text-line.w80 { width: 80%; }
.mockup-text-line.w70 { width: 70%; }
.mockup-text-line.w60 { width: 60%; }
.mockup-text-line.w45 { width: 45%; }

.mockup-ai-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--heliox);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 4px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.mockup-ai-panel {
  width: 200px;
  padding: 16px;
  background: var(--bg-input);
}

.mockup-ai-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--heliox);
  margin-bottom: 16px;
}

.mockup-ai-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--heliox), var(--accent));
  flex-shrink: 0;
}

.mockup-ai-suggestion {
  background: var(--heliox-light);
  border: 1px solid rgba(139,92,246,0.1);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 12px;
}

.mockup-ai-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--heliox);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.mockup-ai-actions {
  display: flex;
  gap: 8px;
}

.mockup-ai-btn {
  flex: 1;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--heliox);
  color: #fff;
}

.mockup-ai-btn--ghost {
  background: var(--bg-white);
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.08);
}

/* ============================================
   MOCKUP — Tech Architecture (Light)
   ============================================ */
.mockup-body--tech {
  flex-direction: column;
  align-items: center;
  padding: 28px 24px;
  gap: 12px;
  background: var(--bg-white);
}

.tech-arch-node {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  background: var(--bg-white);
}

.tech-arch-node--api {
  background: var(--accent-light);
  color: var(--accent);
  border-color: rgba(99,102,241,0.12);
  min-width: 160px;
}

.tech-arch-node--service {
  background: var(--fse-light);
  color: var(--fse);
  border-color: rgba(6,182,212,0.12);
}

.tech-arch-node--ai {
  background: var(--heliox-light);
  color: var(--heliox);
  border-color: rgba(139,92,246,0.12);
}

.tech-arch-node--db {
  background: var(--bg-input);
  color: var(--text);
}

.tech-arch-node--cloud {
  background: var(--fse-light);
  color: var(--fse);
  border-color: rgba(6,182,212,0.08);
}

.tech-arch-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  width: 100%;
  flex-wrap: wrap;
}

.tech-arch-connector {
  width: 2px;
  height: 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(99,102,241,0.2));
  margin: 0 auto;
}

/* ============================================
   COOKIE BANNER — Dark Floating (Contrast)
   ============================================ */
.cookie-banner {
  background: #1D1D1F !important;
  color: rgba(255,255,255,0.8) !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.cookie-banner p {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.875rem !important;
}

.cookie-banner .accept-btn {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
}

.cookie-banner .accept-btn:hover {
  background: var(--accent-hover) !important;
}

.cookie-banner .reject-btn {
  background: rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.7) !important;
  border-radius: 100px !important;
  border: none !important;
}

.cookie-banner .reject-btn:hover {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  section { padding: 120px 0; }

  .empresa-layout,
  .tech-layout,
  .contacto-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .product {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .product--reverse .product-info,
  .product--reverse .product-img { order: unset; }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid .feature:first-child,
  .features-grid .feature:last-child {
    grid-column: span 1;
  }

  .stats { justify-content: center; }
}

@media (max-width: 768px) {
  section { padding: 80px 0; }
  .container { padding: 0 20px; }

  .nav { padding: 12px 16px 0; }

  .nav-links { display: none; }
  .nav-cta.desktop-only { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  }
  .nav-links.open a {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
  }
  .nav-links.open a:hover,
  .nav-links.open a.active {
    background: rgba(99,102,241,0.06);
  }
  .nav-links.open a.active::before,
  .nav-links.open a.active::after { display: none; }

  .nav-logo img { height: 28px; }

  .hero { padding: 140px 20px 80px; min-height: auto; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }

  .stats { flex-direction: column; gap: 24px; }
  .stat-divider { width: 48px; height: 1px; }
  .stat-number { font-size: 2.5rem; }

  .features-grid {
    grid-template-columns: 1fr;
  }
  .features-grid .feature:first-child,
  .features-grid .feature:last-child {
    grid-column: span 1;
  }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }

  .cta-section { padding: 0 0 80px; }
  .cta-box { padding: 48px 24px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  /* Mockup responsive */
  .mockup-body { flex-direction: column; }
  .mockup--fse .mockup-sidebar {
    width: 100%;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    overflow-x: auto;
    gap: 0;
  }
  .mockup-ai-panel {
    width: 100%;
    border-top: 1px solid rgba(0,0,0,0.04);
  }
  .mockup-progress-row {
    grid-template-columns: 80px 1fr 36px;
  }
  .mockup-document {
    border-right: none;
  }
  .tech-arch-row {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
