/* ── SLICE — ESTILO PROFESIONAL (PURPLE/INDIGO/CYAN & DUAL THEME) ── */

:root {
  /* Brand Tokens (Palette: Royal Indigo, Electric Violet & Sky Cyan) */
  --indigo: #3A1FA8;
  --indigo-dark: #2B1E78;
  --indigo-lt: rgba(58, 31, 168, 0.12);
  --indigo-glow: rgba(58, 31, 168, 0.35);
  
  --purple: #9333EA;
  --purple-dark: #7E12BD;
  --purple-lt: rgba(147, 51, 234, 0.12);
  --purple-glow: rgba(147, 51, 234, 0.35);

  --cyan: #0284C7;
  --cyan-bright: #38BDF8;
  --cyan-lt: rgba(56, 189, 248, 0.12);
  --cyan-glow: rgba(56, 189, 248, 0.3);

  --grad: linear-gradient(135deg, #0284C7 0%, #3A1FA8 50%, #9333EA 100%);
  --grad-hover: linear-gradient(135deg, #0369A1 0%, #4C1D95 50%, #A855F7 100%);
  --grad-text: linear-gradient(135deg, #0284C7 0%, #4F46E5 45%, #9333EA 100%);
  --grad-dark: linear-gradient(135deg, #0B0F19 0%, #1A1333 50%, #2A0F45 100%);

  --wa-green: #25D366;
  --wa-green-hover: #20BA5A;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 9999px;

  --tr-fast: 0.15s ease;
  --tr-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── LIGHT THEME (DEFAULT) ── */
[data-theme="light"], :root {
  --bg: #FFFFFF;
  --bg-gradient: radial-gradient(circle at 85% 15%, rgba(147, 51, 234, 0.05) 0%, transparent 55%),
                 radial-gradient(circle at 10% 85%, rgba(56, 189, 248, 0.05) 0%, transparent 50%);
  --surface: #F8FAFC;
  --surface-2: #F1F5F9;
  --surface-card: #FFFFFF;
  --surface-elevated: #FFFFFF;
  
  --fg: #0F172A;
  --fg2: #334155;
  --fg3: #64748B;
  
  --border: #E2E8F0;
  --border-hover: #3A1FA8;
  --border-focus: #3A1FA8;

  --nav-bg: rgba(255, 255, 255, 0.92);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(58, 31, 168, 0.06);
  --shadow-lg: 0 20px 50px rgba(58, 31, 168, 0.1);
  --hero-logo-filter: drop-shadow(0 15px 35px rgba(58, 31, 168, 0.22));
}

/* ── DARK THEME ── */
[data-theme="dark"] {
  --bg: #07090E;
  --bg-gradient: radial-gradient(circle at 85% 15%, rgba(147, 51, 234, 0.12) 0%, transparent 60%),
                 radial-gradient(circle at 10% 85%, rgba(56, 189, 248, 0.08) 0%, transparent 50%);
  --surface: #0E131F;
  --surface-2: #151D2E;
  --surface-card: rgba(15, 23, 42, 0.72);
  --surface-elevated: #182238;
  
  --fg: #F8FAFC;
  --fg2: #94A3B8;
  --fg3: #64748B;
  
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(147, 51, 234, 0.45);
  --border-focus: #9333EA;

  --nav-bg: rgba(7, 9, 14, 0.88);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --hero-logo-filter: drop-shadow(0 0 25px rgba(147, 51, 234, 0.45)) drop-shadow(0 15px 35px rgba(0, 0, 0, 0.7));
}

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

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

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--tr-smooth), color var(--tr-smooth);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.section {
  padding: 5.75rem 0;
  position: relative;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  color: var(--fg);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.9rem);
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  margin-bottom: 0.8rem;
}

h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  margin-bottom: 0.45rem;
}

p {
  color: var(--fg2);
}

.sec-header {
  margin-bottom: 3rem;
}

.sec-header.center {
  text-align: center;
}

.sec-header.center .sec-lead {
  margin-left: auto;
  margin-right: auto;
}

.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

[data-theme="dark"] .sec-eyebrow {
  color: var(--cyan-bright);
}

.sec-eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.sec-lead {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--fg2);
  max-width: 620px;
}

.h-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .h-grad {
  background: linear-gradient(135deg, #38BDF8 0%, #818CF8 45%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: var(--r-md);
  padding: 0.85rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--tr-normal);
  line-height: 1;
}

.btn-primary {
  background: var(--grad);
  color: #ffffff;
  box-shadow: 0 4px 18px var(--indigo-glow);
}

.btn-primary:hover {
  background: var(--grad-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px var(--purple-glow);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
  backdrop-filter: blur(8px);
}

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

.btn-wa {
  background: var(--wa-green);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.25);
}

.btn-wa:hover {
  background: var(--wa-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.35);
  color: #ffffff;
}

.btn-sm {
  padding: 0.52rem 1rem;
  font-size: 0.82rem;
  border-radius: var(--r-sm);
}

.btn-lg {
  padding: 0.95rem 1.9rem;
  font-size: 1rem;
  border-radius: var(--r-lg);
}

.btn-block {
  width: 100%;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 990;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--tr-normal);
}

nav.elevated {
  height: 64px;
  box-shadow: var(--shadow-sm);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--fg);
  letter-spacing: -0.03em;
}

.nav-logo-img {
  width: 34px;
  height: auto;
  object-fit: contain;
}

.nav-badge {
  background: var(--grad);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
}

.nav-links a {
  color: var(--fg2);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: var(--r-sm);
  transition: all var(--tr-fast);
}

.nav-links a:hover {
  background: var(--surface-2);
  color: var(--fg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.nav-cta {
  background: var(--grad) !important;
  color: #ffffff !important;
  padding: 0.55rem 1.25rem !important;
  border-radius: var(--r-md) !important;
  box-shadow: 0 4px 14px var(--indigo-glow);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--purple-glow);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 8px;
}

.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO SECTION (CON FONDO DE PARTÍCULAS ANTIGRAVITY) ── */
#hero {
  position: relative;
  min-height: calc(100vh - 72px);
  padding-top: 105px;
  padding-bottom: 4.5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#heroParticlesBg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cyan-lt);
  color: var(--cyan);
  border: 1px solid rgba(2, 132, 199, 0.3);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-full);
  margin-bottom: 1.35rem;
}

[data-theme="dark"] .hero-chip {
  color: var(--cyan-bright);
  border-color: rgba(56, 189, 248, 0.3);
}

.chip-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: blink 2s infinite;
}

[data-theme="dark"] .chip-dot {
  background: var(--cyan-bright);
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

.hero-sub {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--fg2);
  max-width: 540px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-num {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

[data-theme="dark"] .metric-num {
  background: linear-gradient(135deg, #38BDF8 0%, #818CF8 45%, #C084FC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg3);
  margin-top: 0.2rem;
}

/* ── HERO LOGO DISPLAY (CLEAN, GLOWING & FLOATING) ── */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.hero-logo-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: var(--hero-logo-filter);
  animation: floatLogo 5s ease-in-out infinite;
  transition: filter var(--tr-smooth);
}

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

.hero-glow-aura {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.25) 0%, rgba(56, 189, 248, 0.15) 50%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: pulseGlow 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes pulseGlow {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

.hero-floating-pill {
  position: absolute;
  z-index: 2;
  background: var(--surface-card);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--r-full);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fg);
  backdrop-filter: blur(12px);
}

.hero-floating-pill.pill-top {
  top: 10px;
  left: -10px;
}

.hero-floating-pill.pill-bottom {
  bottom: 10px;
  right: -10px;
}

/* ── PREGUNTAS CLAVE PARA INCITAR A BAJAR Y LEER (SCROLL HOOKS) ── */
.curiosity-strip {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 0;
}

.curiosity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.curiosity-header h4 {
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.curiosity-header span {
  font-size: 0.8rem;
  color: var(--fg3);
  font-weight: 600;
}

.curiosity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.curiosity-card {
  background: var(--surface-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  transition: all var(--tr-fast);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.curiosity-card:hover {
  border-color: var(--purple);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.curiosity-q {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.45;
}

.curiosity-action {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

[data-theme="dark"] .curiosity-action {
  color: var(--cyan-bright);
}

/* ── TICKER STRIP ── */
.strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 1rem 0;
  position: relative;
}

.strip-track {
  display: flex;
  white-space: nowrap;
  animation: stripScroll 28s linear infinite;
  gap: 2.5rem;
}

@keyframes stripScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg2);
}

.strip-sep {
  color: var(--cyan);
}

[data-theme="dark"] .strip-sep {
  color: var(--cyan-bright);
}

/* ── CÓMO FUNCIONA (3 PASOS) ── */
#proceso {
  background: var(--bg);
}

.easy-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.easy-step-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.25rem 1.75rem;
  position: relative;
  transition: all var(--tr-normal);
  display: flex;
  flex-direction: column;
}

.easy-step-card:hover {
  background: var(--surface-card);
  border-color: var(--purple);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.step-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px var(--indigo-glow);
}

.easy-step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.easy-step-card p {
  font-size: 0.9rem;
  color: var(--fg2);
  line-height: 1.6;
}

/* ── EDUCACIÓN, I+D & ASESORÍA TÉCNICA ── */
#educacion {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.edu-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--tr-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.edu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity var(--tr-fast);
}

.edu-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.edu-card:hover::before {
  opacity: 1;
}

.edu-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--indigo-lt);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.edu-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.edu-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.edu-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--fg2);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.edu-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--fg2);
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.edu-bullets li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.edu-bullets li svg {
  color: var(--cyan);
  flex-shrink: 0;
}

[data-theme="dark"] .edu-bullets li svg {
  color: var(--cyan-bright);
}

/* ── SERVICIOS PRINCIPALES ── */
#servicios {
  background: var(--bg);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.svc-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--tr-normal);
  box-shadow: var(--shadow-sm);
}

.svc-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.svc-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.svc-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--indigo-lt);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .svc-icon-box {
  color: var(--cyan-bright);
}

.svc-icon-box svg {
  width: 24px;
  height: 24px;
}

.svc-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.svc-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--fg2);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.svc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.svc-price-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--purple);
}

/* ── CATÁLOGO / PORTAFOLIO ── */
#catalogo {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.catalog-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.75rem;
}

.filter-btn {
  background: var(--surface-card);
  border: 1px solid var(--border);
  color: var(--fg2);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--tr-fast);
}

.filter-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.filter-btn.active {
  background: var(--grad);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px var(--indigo-glow);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.catalog-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--tr-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.catalog-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.catalog-thumb {
  position: relative;
  height: 180px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}

.thumb-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .thumb-icon-wrapper {
  color: var(--cyan-bright);
}

.thumb-icon-wrapper svg {
  width: 36px;
  height: 36px;
}

.catalog-tech-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-sm);
  color: var(--fg2);
}

.catalog-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.catalog-category {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 0.3rem;
}

[data-theme="dark"] .catalog-category {
  color: var(--cyan-bright);
}

.catalog-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.catalog-desc {
  font-size: 0.86rem;
  color: var(--fg2);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.catalog-specs-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--fg3);
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.catalog-specs-row strong {
  color: var(--fg);
}

.catalog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.catalog-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--fg);
}

/* ── COTIZADOR INTERACTIVO ── */
#cotizador {
  background: var(--bg);
}

.calculator-wrapper {
  background: var(--surface-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 3.5rem;
  align-items: start;
}

.calc-step-group {
  margin-bottom: 2rem;
}

.calc-step-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calc-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--indigo-lt);
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.calc-grid-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.calc-pill-option {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  transition: all var(--tr-fast);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.calc-pill-option input {
  position: absolute;
  opacity: 0;
}

.calc-pill-option:hover {
  border-color: var(--purple);
  background: var(--surface-2);
}

.calc-pill-option.selected {
  border-color: var(--purple);
  background: var(--indigo-lt);
}

.calc-pill-option.selected .opt-title {
  color: var(--purple);
}

.opt-icon-svg {
  width: 22px;
  height: 22px;
  color: var(--cyan);
  flex-shrink: 0;
}

[data-theme="dark"] .opt-icon-svg {
  color: var(--cyan-bright);
}

.opt-text .opt-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fg);
}

.opt-text .opt-desc {
  display: block;
  font-size: 0.72rem;
  color: var(--fg3);
}

/* Result Box */
.calc-result-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  position: sticky;
  top: 95px;
  box-shadow: var(--shadow-sm);
}

.calc-result-box h4 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.calc-result-box p {
  font-size: 0.84rem;
  margin-bottom: 1.5rem;
}

.calc-price-big {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.calc-price-big .lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg3);
  display: block;
  margin-bottom: 0.25rem;
}

.calc-price-big .val {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -0.02em;
}

[data-theme="dark"] .calc-price-big .val {
  color: var(--cyan-bright);
}

.calc-summary-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  font-size: 0.86rem;
}

.calc-summary-items li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  color: var(--fg2);
}

.calc-summary-items li strong {
  color: var(--fg);
}

/* ── CONFIANZA & PROCESO ── */
#confianza {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.trust-3-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.25rem 2rem;
  text-align: center;
  transition: all var(--tr-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.trust-3-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--indigo-lt);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .trust-3-icon-wrap {
  color: var(--cyan-bright);
}

.trust-3-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.trust-3-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.trust-3-card p {
  font-size: 0.88rem;
  color: var(--fg2);
  line-height: 1.6;
}

/* ── FAQ ── */
#faq {
  background: var(--bg);
}

.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--tr-fast);
}

.faq-item.active {
  border-color: var(--purple);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--fg);
  cursor: pointer;
  gap: 1rem;
}

.faq-icon-svg {
  width: 18px;
  height: 18px;
  transition: transform var(--tr-normal);
  color: var(--cyan);
  flex-shrink: 0;
}

[data-theme="dark"] .faq-icon-svg {
  color: var(--cyan-bright);
}

.faq-item.active .faq-icon-svg {
  transform: rotate(180deg);
  color: var(--purple);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s;
  padding: 0 1.4rem;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 1.4rem 1.4rem 1.4rem;
}

.faq-answer p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--fg2);
}

/* ── CTA BANNER (HIGH CONTRAST & READABLE) ── */
#cta {
  background: var(--grad-dark) !important;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 5.5rem 0;
  flex-wrap: wrap;
}

.cta-inner .sec-eyebrow {
  color: #38BDF8 !important;
  font-weight: 800;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.cta-inner h2 {
  color: #FFFFFF !important;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.05rem;
  max-width: 520px;
  margin-top: 0.5rem;
}

.cta-btns {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 260px;
}

/* ── CONTACTO ── */
#contacto {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-form-card {
  background: var(--surface-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  margin-bottom: 1.35rem;
}

.field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg);
  margin-bottom: 0.45rem;
}

.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  color: var(--fg);
  outline: none;
  transition: all var(--tr-fast);
}

.field input:focus, .field select:focus, .field textarea:focus {
  background: var(--surface-2);
  border-color: var(--purple);
  box-shadow: 0 0 0 3.5px var(--purple-lt);
}

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

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1.5rem 0;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.info-icon-svg {
  width: 22px;
  height: 22px;
  color: var(--cyan);
  flex-shrink: 0;
}

[data-theme="dark"] .info-icon-svg {
  color: var(--cyan-bright);
}

.info-t strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fg);
}

.info-t span {
  font-size: 0.82rem;
  color: var(--fg2);
}

.pay-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
}

.pay-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--fg2);
}

/* ── FOOTER ── */
footer {
  background: #06080D;
  color: rgba(255, 255, 255, 0.6);
  padding: 5rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
}

.footer-logo img {
  width: 32px;
  height: auto;
}

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

.footer-col h5 {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col ul li a {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--tr-fast);
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.footer-bottom a:hover {
  color: #ffffff;
}

/* ── FLOATING WHATSAPP ── */
#wa {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--wa-green);
  color: #fff;
  padding: 0.85rem 1.35rem 0.85rem 1.05rem;
  border-radius: var(--r-full);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: transform var(--tr-smooth), opacity var(--tr-normal);
}

#wa.show {
  transform: translateY(0);
  opacity: 1;
}

#wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.55);
}

/* ── REVEAL ANIMATIONS ── */
.r {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.r.in {
  opacity: 1;
  transform: translateY(0);
}

.rd1 { transition-delay: 0.08s; }
.rd2 { transition-delay: 0.16s; }
.rd3 { transition-delay: 0.24s; }

/* ── RESPONSIVE ── */
@media (max-width: 1080px) {
  #hero .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-sub {
    margin: 0 auto 2.25rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-metrics {
    justify-content: center;
  }
  
  .curiosity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .edu-grid {
    grid-template-columns: 1fr;
  }
  
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .calculator-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .calc-result-box {
    position: static;
  }
  
  .trust-3-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 1.25rem;
  }
  
  nav {
    padding: 0 1.25rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 1.5rem;
    gap: 0.4rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  
  .nav-cta {
    margin-left: 0;
    text-align: center;
  }
  
  .nav-burger {
    display: flex;
  }
  
  .section {
    padding: 4.5rem 0;
  }
  
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .curiosity-grid {
    grid-template-columns: 1fr;
  }
  
  .svc-grid {
    grid-template-columns: 1fr;
  }
  
  .calc-grid-options {
    grid-template-columns: 1fr;
  }
  
  .calculator-wrapper {
    padding: 1.75rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-form-card {
    padding: 1.75rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
