/* ============================================================
   DAJEM DIGITAL — Hoja de estilos principal
   Paleta: azul oscuro · azul eléctrico · celeste/cyan · blanco
   Enfoque: moderno, tecnológico, limpio y responsive
   ============================================================ */

/* ---------- Variables de diseño ---------- */
:root {
  /* Colores Fijos */
  --blue: #3b82f6;       /* azul eléctrico premium */
  --cyan: #06b6d4;       /* cyan vibrante */
  --cyan-soft: #22d3ee;  /* cyan suave */
  --purple: #8b5cf6;     /* morado premium */
  --white: #ffffff;
  --navy-900: #0a1128;   /* Deep space navy blue */
  --navy-800: #0f172a;   /* Dark slate navy card */
  --navy-700: #1e293b;   /* Medium slate navy */
  --grad-primary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  --grad-wa: linear-gradient(135deg, #25d366, #128c4b);

  /* Variables semánticas del Tema - MODO OSCURO (Predeterminado) */
  --bg: #030712;         /* fondo oscuro general */
  --bg-alt: #080b16;     /* fondo alterno oscuro */
  --card-bg: rgba(15, 23, 42, 0.65); /* fondo de tarjeta glassmorphic */
  --text: #f3f4f6;       /* texto claro principal */
  --text-soft: #9ca3af;  /* texto secundario gris */
  --title-color: #ffffff; /* color de títulos */
  --border: rgba(255, 255, 255, 0.08); /* borde sutil para glassmorphism */
  --header-bg: rgba(3, 7, 18, 0.65);
  --header-bg-scrolled: rgba(3, 7, 18, 0.85);
  --grad-text: linear-gradient(120deg, #22d3ee 0%, #f3f4f6 50%, #8b5cf6 100%);

  /* Sombras */
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 10px 40px rgba(6, 182, 212, 0.2);

  /* Radios */
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 100px;

  /* Layout */
  --container: 1180px;
  --header-h: 74px;

  /* Tipografía */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font);

  /* Transiciones */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Variables semánticas del Tema - MODO CLARO */
body.light-theme {
  --bg: #f8fafc;         /* fondo claro pizarra */
  --bg-alt: #f1f5f9;     /* fondo alterno claro */
  --card-bg: rgba(255, 255, 255, 0.75); /* fondo de tarjeta claro translúcido */
  --text: #1e293b;       /* texto oscuro principal */
  --text-soft: #475569;  /* texto secundario gris oscuro */
  --title-color: #0f172a; /* color de títulos oscuro slate */
  --border: rgba(15, 23, 42, 0.08); /* borde oscuro sutil */
  --header-bg: rgba(248, 250, 252, 0.72);
  --header-bg-scrolled: rgba(248, 250, 252, 0.92);
  --grad-text: linear-gradient(120deg, #06b6d4 0%, #0f172a 50%, #8b5cf6 100%);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 10px 40px rgba(59, 130, 246, 0.15);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

/* ---------- Utilidades de texto ---------- */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(30, 144, 255, 0.1);
  margin-bottom: 16px;
}
.eyebrow--light { background: rgba(0, 212, 255, 0.15); color: var(--cyan); }

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

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-family: var(--font-display);
  border-radius: var(--radius-pill);
  padding: 13px 26px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary {
  background: var(--grad-primary);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 50px rgba(0, 212, 255, 0.5); }

.btn--ghost {
  background: var(--card-bg);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: var(--shadow-md);
}

.btn--wa {
  background: var(--grad-wa);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
}
.btn--wa:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(37, 211, 102, 0.5); }

.btn--sm { padding: 10px 18px; font-size: 0.9rem; }
.btn--lg { padding: 16px 32px; font-size: 1.02rem; }
.btn--xl { padding: 19px 40px; font-size: 1.1rem; }
.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--header-bg-scrolled);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  perspective: 400px;
  transform-style: preserve-3d;
  transition: transform 0.25s var(--ease);
}
.logo__mark {
  width: 44px; height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, filter 0.25s;
  animation: logo-float 4s ease-in-out infinite;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotate(0) translateZ(0); }
  50% { transform: translateY(-4px) rotate(2deg) translateZ(0); }
}
.logo:hover .logo__mark {
  animation: none;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.45);
}
.logo__text {
  font-size: 1.3rem;
  color: var(--title-color);
  letter-spacing: -0.01em;
}
.logo__accent { color: var(--blue); }

/* Navegación */
.nav__list {
  display: flex;
  gap: 6px;
}
.nav__link {
  position: relative;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text);
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--grad-text);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--blue); }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }
.nav__link.active { color: var(--blue); }

.header__actions { display: flex; align-items: center; gap: 12px; }

/* Hamburguesa */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__toggle span {
  width: 26px; height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 70px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 80% -10%, rgba(0,212,255,0.10), transparent 60%),
              radial-gradient(100% 80% at 0% 20%, rgba(30,144,255,0.08), transparent 55%),
              var(--bg);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(30,144,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,144,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(80% 60% at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 60% at 70% 30%, #000 30%, transparent 75%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: float 14s ease-in-out infinite;
}
.blob--1 { width: 360px; height: 360px; background: var(--cyan); top: -80px; right: -60px; }
.blob--2 { width: 300px; height: 300px; background: var(--blue); bottom: -90px; left: -50px; animation-delay: -4s; }
.blob--3 { width: 220px; height: 220px; background: var(--cyan-soft); top: 40%; left: 45%; animation-delay: -8s; opacity: 0.35; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.08); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-700);
  background: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.badge__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 0 0 rgba(37,211,102,0.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70% { box-shadow: 0 0 0 10px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--title-color);
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero__stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--title-color);
}
.hero__stats span { font-size: 0.85rem; color: var(--text-soft); }

/* ---------- Hero visual (ilustración 3D + parallax) ---------- */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  /* permite profundidad 3D a las capas internas */
  perspective: 1200px;
}
/* Capa que rota según el movimiento del mouse (JS) */
.hero__3d {
  position: relative;
  width: 100%;
  max-width: 500px;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}
.hero__3d img.hero-illustration {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(10,31,68,0.35));
  transform: translateZ(0);
}

/* Tarjetas flotantes glassmorphism sobre la ilustración */
.hero__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow-md);
  color: var(--navy-800);
  transform-style: preserve-3d;
  animation: floaty 4.5s ease-in-out infinite;
}
.hero__chip--wa {
  top: 8%; right: -4%;
  color: #0a7f3d;
  transform: translateZ(90px);
}
.hero__chip--check {
  bottom: 12%; left: -5%;
  color: #0a7f3d;
  transform: translateZ(110px);
  animation-delay: -2s;
}
.hero__chip svg { color: #25d366; }
.hero__chip--check .hero__chip-dot {
  display: grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #28c840; color: white;
  font-size: 0.7rem;
}
.hero__chip--star {
  top: 2%; left: 8%;
  transform: translateZ(70px);
  animation-delay: -1s;
}
.hero__chip--star .stars { color: #ffc14d; letter-spacing: 1px; }

/* ---------- Mockup antiguo (sin uso, mantenido por compatibilidad) ---------- */
.mockup { display: none; }
.mockup__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: var(--shadow-md);
  color: var(--navy-800);
}
.mockup__float--wa {
  top: 60px; right: -22px;
  color: #128c4b;
  animation: floaty 4s ease-in-out infinite;
}
.mockup__float--wa svg { color: #25d366; }
.mockup__float--check {
  bottom: 70px; left: -26px;
  color: #0a7f3d;
  animation: floaty 4s ease-in-out infinite 1s;
}
.mockup__float--check span {
  display: grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #28c840; color: white;
  font-size: 0.7rem;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--navy-800);
  padding: 16px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.marquee__track {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  width: max-content;
  animation: scroll-x 28s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--cyan-soft);
  letter-spacing: 0.04em;
}
.marquee__track span:nth-child(even) { color: rgba(255,255,255,0.25); }
@keyframes scroll-x {
  to { transform: translateX(-50%); }
}

/* ============================================================
   SECCIONES GENERALES
   ============================================================ */
.section { padding: 90px 0; position: relative; }
.section--alt { background: var(--bg-alt); }

.section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  color: var(--title-color);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.section__desc {
  font-size: 1.05rem;
  color: var(--text-soft);
}

/* ---------- Servicios ---------- */
.cards.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card.service {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
  position: relative;
  overflow: hidden;
}
.card.service::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card.service:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card.service:hover::before { transform: scaleX(1); }

.service__icon {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(30,144,255,0.12));
  color: var(--blue);
  margin-bottom: 20px;
  transition: transform 0.35s var(--ease), background 0.35s;
}
.card.service:hover .service__icon {
  transform: rotate(-8deg) scale(1.08);
  background: var(--grad-primary);
  color: var(--white);
}
.service__title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--title-color);
  margin-bottom: 10px;
}
.service__desc {
  color: var(--text-soft);
  font-size: 0.97rem;
  margin-bottom: 18px;
}
.service__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--blue);
  font-size: 0.95rem;
  transition: gap 0.25s var(--ease);
}
.service__link:hover { gap: 12px; }

/* ---------- Beneficios ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.benefit {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.benefit__icon {
  font-size: 2.4rem;
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(30,144,255,0.1));
}
.benefit h3 {
  font-family: var(--font-display);
  color: var(--title-color);
  margin-bottom: 8px;
  font-size: 1.12rem;
}
.benefit p { color: var(--text-soft); font-size: 0.93rem; }

/* ---------- Precios ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}
.price-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.price-card--featured {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-700));
  border: none;
  transform: scale(1.04);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,212,255,0.2);
}
.price-card--featured:hover { transform: scale(1.04) translateY(-8px); }
.price-card__tag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%) translateZ(40px);
  z-index: 10;
  background: var(--grad-text);
  color: var(--navy-800);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.78rem;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price-card__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--title-color);
  margin-bottom: 8px;
}
.price-card--featured .price-card__name { color: var(--white); }
.price-card__price {
  font-size: 0.95rem;
  color: var(--text-soft);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.price-card__price strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--blue);
  line-height: 1;
}
.price-card--featured .price-card__price { color: rgba(255,255,255,0.7); }
.price-card--featured .price-card__price strong { color: var(--cyan); }

.price-card__list { margin-bottom: 28px; flex: 1; }
.price-card__list li {
  position: relative;
  padding: 9px 0 9px 30px;
  font-size: 0.95rem;
  color: var(--text-soft);
  border-bottom: 1px dashed var(--border);
}
.price-card--featured .price-card__list li {
  color: rgba(255,255,255,0.82);
  border-color: rgba(255,255,255,0.12);
}
.price-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 9px;
  display: grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(40,200,64,0.15);
  color: #28c840;
  font-size: 0.72rem;
  font-weight: 700;
}
.price-card--featured .price-card__list li::before { background: rgba(0,212,255,0.2); color: var(--cyan); }

.pricing__note {
  text-align: center;
  margin-top: 32px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* ---------- Portafolio ---------- */
.portfolio {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.portfolio__card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  /* base 3D: perspectiva lista para el tilt */
  perspective: 1000px;
  transition: box-shadow 0.35s var(--ease);
}
.portfolio__card:hover { box-shadow: var(--shadow-lg); }

/* Contenedor con tilt aplicado por JS */
.portfolio__inner {
  transition: transform 0.2s ease-out;
  transform-style: preserve-3d;
  height: 100%;
}
.portfolio__card:hover .portfolio__inner { transform: translateY(-6px); }

.portfolio__mock {
  position: relative;
  height: 175px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
}
.portfolio__mock img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* brillo 3D al pasar el mouse */
  transform: translateZ(40px) scale(1.04);
  transition: transform 0.4s var(--ease);
}
.portfolio__card:hover .portfolio__mock img { transform: translateZ(50px) scale(1.1); }
.portfolio__emoji {
  position: absolute;
  bottom: 10px; right: 12px;
  font-size: 2rem;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.35));
  transform: translateZ(60px);
}
.portfolio__body { padding: 20px; transform: translateZ(30px); }
.portfolio__body h3 {
  font-family: var(--font-display);
  color: var(--title-color);
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.portfolio__body p { color: var(--text-soft); font-size: 0.9rem; }
/* ---------- Proceso ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: center;
}
.step {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step__num {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--grad-primary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}
.step h3 {
  font-family: var(--font-display);
  color: var(--title-color);
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.step p { color: var(--text-soft); font-size: 0.9rem; }
.step__arrow {
  font-size: 1.6rem;
  color: var(--blue);
  font-weight: 700;
}

/* ---------- Testimonios ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testimonial {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testimonial__stars { color: #ffc14d; font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial p {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 22px;
  font-style: italic;
}
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}
.testimonial__author strong { display: block; color: var(--title-color); font-size: 0.97rem; }
.testimonial__author small { color: var(--text-soft); }

/* ---------- CTA final ---------- */
.cta-final { padding: 90px 0 100px; background: var(--bg); }
.cta-final__box {
  position: relative;
  text-align: center;
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-final__glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.35), transparent 60%);
  top: -200px; left: 50%;
  transform: translateX(-50%);
  filter: blur(40px);
  pointer-events: none;
}
.cta-final__title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.cta-final__text {
  position: relative;
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 34px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  padding-top: 64px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer .logo__text { color: var(--white); }
.footer .logo__accent { color: var(--cyan); }
.footer__tag {
  margin-top: 16px;
  font-size: 0.93rem;
  line-height: 1.7;
  max-width: 320px;
}
.footer__col h4 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
}
.footer__col ul li { padding: 6px 0; font-size: 0.93rem; }
.footer__col ul li a { transition: color 0.2s; }
.footer__col ul li a:hover { color: var(--cyan); }

.footer__social { display: flex; gap: 12px; margin-bottom: 12px; }
.footer__social a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  transition: background 0.25s, transform 0.25s var(--ease), color 0.25s;
}
.footer__social a:hover { background: var(--grad-primary); transform: translateY(-3px); color: var(--white); }
.footer__handle { font-family: var(--font-display); color: var(--cyan); font-weight: 600; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer__bottom p { font-size: 0.85rem; }
.footer__made .heart { color: #ff5f6d; }

/* ============================================================
   BOTÓN FLOTANTE WHATSAPP
   ============================================================ */
.float-wa {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-wa);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(37,211,102,0.45);
  z-index: 999;
  transition: transform 0.3s var(--ease);
}
.float-wa:hover { transform: scale(1.1) rotate(8deg); }
.float-wa__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ============================================================
   ANIMACIONES REVEAL (al hacer scroll)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: perspective(1200px) rotateX(12deg) translateY(42px) scale(0.96);
  filter: blur(4px);
  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);
  will-change: opacity, transform, filter;
}
.reveal.visible {
  opacity: 1;
  transform: perspective(1200px) rotateX(0deg) translateY(0) scale(1);
  filter: blur(0);
}

/* ============================================================
   EFECTOS 3D AVANZADOS
   ============================================================ */
/* Perspectiva base para cards con tilt */
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  will-change: transform;
}
/* Capa interna que sale hacia el frente al inclinar */
.tilt__inner {
  transform-style: preserve-3d;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Brillo radial interactivo para botones */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 80px at var(--btn-x, -999px) var(--btn-y, -999px), rgba(255, 255, 255, 0.25), transparent 85%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.btn:hover::before {
  opacity: 1;
}

/* Profundidad en sub-elementos al inclinar las tarjetas */
.card.service .service__icon {
  transform: translateZ(30px);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.card.service:hover .service__icon {
  transform: translateZ(55px) rotate(-8deg) scale(1.08);
}
.card.service .service__title {
  transform: translateZ(20px);
  transition: transform 0.3s var(--ease);
}
.card.service:hover .service__title {
  transform: translateZ(35px);
}
.card.service .service__desc {
  transform: translateZ(15px);
  transition: transform 0.3s var(--ease);
}
.card.service:hover .service__desc {
  transform: translateZ(25px);
}
.card.service .service__link {
  transform: translateZ(25px);
  transition: transform 0.3s var(--ease), gap 0.25s var(--ease);
}
.card.service:hover .service__link {
  transform: translateZ(40px);
}

.price-card .price-card__name {
  transform: translateZ(20px);
  transition: transform 0.3s var(--ease);
}
.price-card:hover .price-card__name {
  transform: translateZ(35px);
}
.price-card .price-card__price-wrapper {
  transform: translateZ(25px);
  transition: transform 0.3s var(--ease);
}
.price-card:hover .price-card__price-wrapper {
  transform: translateZ(45px);
}
.price-card .price-card__list {
  transform: translateZ(15px);
  transition: transform 0.3s var(--ease);
}
.price-card:hover .price-card__list {
  transform: translateZ(25px);
}
.price-card .btn {
  transform: translateZ(30px);
  transition: transform 0.3s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.price-card:hover .btn {
  transform: translateZ(50px) translateY(-3px);
}

/* Brillo "shine" que recorre la card con el mouse (añadido por JS) */
.tilt__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
              rgba(255,255,255,0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 2;
}
.tilt:hover .tilt__shine { opacity: 1; }

/* Border Beam (Haz luminoso dinámico en los bordes) */
.price-card--featured::after,
.calculator-card::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--purple), var(--cyan));
  background-size: 200% auto;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1.5px;
  pointer-events: none;
  z-index: 5;
  animation: border-beam-move 4s linear infinite;
  opacity: 0.8;
}
@keyframes border-beam-move {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* --- Tarjeta de Pago 3D en Hero --- */
.payment-card-3d {
  position: absolute;
  bottom: 8%;
  left: -8%;
  width: 220px;
  height: 130px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6),
              0 0 30px rgba(6, 182, 212, 0.15),
              inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transform: translateZ(95px) rotateY(15deg) rotateX(-5deg);
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 8;
  pointer-events: none;
}
.payment-card-glass {
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  color: var(--white);
}
.payment-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transform: translateZ(15px);
}
.payment-card-chip {
  width: 28px;
  height: 20px;
  background: linear-gradient(135deg, #ffd700, #b8860b);
  border-radius: 4px;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5);
}
.payment-card-chip::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 2px;
}
.payment-card-logo {
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.payment-card-number {
  font-family: monospace;
  font-size: 14px;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  transform: translateZ(20px);
  margin: 12px 0 6px;
}
.payment-card-info {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform: translateZ(15px);
}
.payment-card-label {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 2px;
}
.payment-card-value {
  display: block;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Ajustes de temas para cubos y tarjetas en modo claro */
body.light-theme .payment-card-3d {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--navy-900);
}
body.light-theme .payment-card-glass {
  color: var(--navy-900);
}
body.light-theme .payment-card-label {
  color: rgba(15, 23, 42, 0.6);
}
body.light-theme .payment-card-value {
  color: var(--navy-900);
}
body.light-theme .payment-card-number {
  text-shadow: none;
}

/* Glassmorphism mejorado para header y badges */
.glass {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Sombra multicapa (borde luminoso cyan) para cards destacadas */
.shadow-3d {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.3),
    0 24px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(6, 182, 212, 0.1);
}

/* --- Hero HTML 3D Interactive --- */
.hero__3d-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 380px;
  transform-style: preserve-3d;
  perspective: 1200px;
}
.browser-mockup {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 85%;
  aspect-ratio: 16/10;
  background: #0f172a;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(6, 182, 212, 0.15);
  overflow: hidden;
  transform: translateZ(10px);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-style: preserve-3d;
}
.browser-header {
  height: 30px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.browser-dot--red { background: #ef4444; }
.browser-dot--yellow { background: #eab308; }
.browser-dot--green { background: #22c55e; }
.browser-address {
  flex: 1;
  height: 16px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  margin: 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.3);
  font-family: monospace;
}
.browser-content {
  height: calc(100% - 30px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #090d16 0%, #171026 100%);
  position: relative;
  transform-style: preserve-3d;
}
.browser-content h4 {
  font-family: var(--font-display);
  color: var(--cyan);
  font-size: clamp(16px, 2.2vw, 26px);
  margin-bottom: 8px;
  text-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
  transform: translateZ(25px);
  font-weight: 700;
}
.browser-content p {
  font-size: clamp(10px, 1.4vw, 13px);
  color: var(--text-soft);
  text-align: center;
  margin-bottom: 16px;
  max-width: 280px;
  transform: translateZ(15px);
  line-height: 1.4;
}
.browser-content .browser-btn {
  background: var(--grad-primary);
  color: white;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 30px;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
  transform: translateZ(35px);
  pointer-events: none;
}
.phone-mockup {
  position: absolute;
  bottom: 0%;
  right: 5%;
  width: 140px;
  height: 270px;
  background: #090d16;
  border: 4px solid #1f2937;
  border-radius: 26px;
  box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(139, 92, 246, 0.25);
  overflow: hidden;
  transform: translateZ(80px) rotateY(-12deg) rotateX(6deg);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform-style: preserve-3d;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #161026 0%, #090d16 100%);
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  justify-content: space-between;
  box-sizing: border-box;
}
.phone-camera {
  width: 40px;
  height: 10px;
  background: #1f2937;
  border-radius: 5px;
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.phone-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.phone-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  font-size: 16px;
}
.phone-status {
  font-size: 8px;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  padding: 2px 6px;
  border-radius: 10px;
}
.phone-msg {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px;
  border-radius: 10px;
  font-size: 8px;
  color: #e5e7eb;
  line-height: 1.3;
  text-align: center;
}
.phone-btn {
  background: var(--grad-wa);
  color: white;
  width: 100%;
  padding: 8px;
  border-radius: 30px;
  font-size: 9px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

/* --- Calculadora de Presupuesto --- */
.calculator-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.65) 0%, rgba(8, 11, 22, 0.75) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  max-width: 820px;
  margin: 0 auto;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform-style: preserve-3d;
}
.calculator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
}
.calc-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.calc-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.calc-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cyan);
}
.calc-select {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
.calc-select:focus {
  border-color: var(--blue);
}
.calc-checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.calc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: all 0.25s;
  user-select: none;
}
.calc-checkbox-label:hover {
  background: rgba(6, 182, 212, 0.05);
  border-color: rgba(6, 182, 212, 0.2);
}
.calc-checkbox-label input {
  display: none;
}
.calc-custom-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid var(--text-soft);
  opacity: 0.7;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.calc-checkbox-label input:checked + .calc-custom-checkbox {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}
.calc-custom-checkbox::after {
  content: "✓";
  color: white;
  font-size: 10px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.1s;
}
.calc-checkbox-label input:checked + .calc-custom-checkbox::after {
  opacity: 1;
}
.calc-checkbox-label input:checked ~ span {
  color: var(--title-color);
  font-weight: 600;
}
.calc-slider-container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.calc-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
  transition: transform 0.1s;
}
.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}
.calc-slider-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--title-color);
  width: 32px;
  text-align: right;
}
.calc-summary {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}
.calc-sum-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.calc-sum-price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--title-color);
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
  margin-bottom: 6px;
}
.calc-sum-price span {
  color: var(--cyan);
  font-size: 1.6rem;
  font-weight: 600;
  margin-right: 4px;
}
.calc-sum-desc {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 24px;
  line-height: 1.4;
}
.calc-sum-button {
  width: 100%;
}

/* --- FAQ Acordeón --- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s;
}
.faq-item:hover, .faq-item.active {
  border-color: rgba(6, 182, 212, 0.3);
}
.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  cursor: pointer;
}
.faq-icon {
  font-size: 1.2rem;
  color: var(--cyan);
  transition: transform 0.3s var(--ease);
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0 24px;
}
.faq-item.active .faq-answer {
  padding-bottom: 20px;
}

/* Canvas de fondo */
.particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* Cursor Glow Spot */
.cursor-glow {
  position: fixed;
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 70%);
  border-radius: 50%;
  top: 0; left: 0;
  z-index: -1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(40px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__content { text-align: center; }
  .hero__subtitle { margin-inline: auto; }
  .hero__cta, .hero__stats { justify-content: center; }
  .hero__stats { justify-content: center; }

  .cards.services { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .portfolio { grid-template-columns: repeat(2, 1fr); }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .step__arrow { transform: rotate(90deg); margin: -6px 0; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  /* Menú móvil */
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: rgba(8, 11, 22, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
    box-shadow: var(--shadow-md);
  }
  .nav.open { transform: translateY(0); }
  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 14px 22px 24px;
  }
  .nav__link {
    display: block;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav__link::after { display: none; }
  .nav__toggle { display: flex; }

  .header__actions .btn--wa span { display: none; }
  .header__actions .btn--wa { padding: 10px; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero { padding-top: calc(var(--header-h) + 36px); }
  .cards.services,
  .benefits,
  .pricing,
  .portfolio { grid-template-columns: 1fr; }
  .price-card--featured { transform: none; }
  .price-card--featured:hover { transform: translateY(-8px); }

  .hero__stats { gap: 22px; }
  .hero__stats strong { font-size: 1.4rem; }

  .cta-final__box { padding: 48px 22px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom .container { flex-direction: column; text-align: center; }

  .mockup__float--wa { right: -8px; }
  .mockup__float--check { left: -8px; }
  .hero__chip--wa { right: 0; }
  .hero__chip--check { left: 0; }
  .hero__chip--star { display: none; }

  .float-wa { width: 54px; height: 54px; bottom: 18px; right: 18px; }
}

/* Accesibilidad: respetar reduce-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* --- Theme Toggle Button --- */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s, border-color 0.3s;
  box-shadow: var(--shadow-sm);
}
.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--blue);
  transform: scale(1.08);
}
body.light-theme .theme-toggle-btn:hover {
  background: rgba(15, 23, 42, 0.05);
}

/* Mostrar/ocultar iconos según el tema */
body.light-theme .theme-toggle-btn .sun-icon { display: none; }
body.light-theme .theme-toggle-btn .moon-icon { display: block; }
body:not(.light-theme) .theme-toggle-btn .sun-icon { display: block; }
body:not(.light-theme) .theme-toggle-btn .moon-icon { display: none; }

/* Estilos de precios para la estrategia comercial */
.price-card__price-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}
.price-card__old-price {
  font-size: 1.05rem;
  color: var(--text-soft);
  text-decoration: line-through;
  opacity: 0.7;
}
.price-card__discount-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: #28c840;
  background: rgba(40, 200, 64, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
}

/* --- Capas 3D Flotantes en Hero --- */
.hero__floating-card {
  position: absolute;
  padding: 10px 16px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transform-style: preserve-3d;
  animation: floaty-layer 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 10;
}
.hero__floating-card--seo {
  top: 18%;
  left: -8%;
  color: var(--cyan);
  border-color: rgba(6, 182, 212, 0.2);
  transform: translateZ(110px);
  animation-delay: -1s;
}
.hero__floating-card--speed {
  bottom: 22%;
  right: -5%;
  color: var(--purple);
  border-color: rgba(139, 92, 246, 0.2);
  transform: translateZ(130px);
  animation-delay: -3s;
}
.hero__floating-card--lead {
  top: 40%;
  right: -10%;
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.2);
  transform: translateZ(145px);
  animation-delay: -2s;
}

@keyframes floaty-layer {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}

/* ============================================================
   CUBOS 3D GLASSMORPHIC ROTATIVOS
   ============================================================ */
.cube-3d {
  position: absolute;
  transform-style: preserve-3d;
  animation: rotate-cube 20s infinite linear;
  pointer-events: none;
  z-index: 5;
  will-change: transform;
}
.cube-3d--1 {
  top: 15%;
  left: 2%;
  width: 60px;
  height: 60px;
  transform: translateZ(50px);
}
.cube-3d--2 {
  bottom: 20%;
  right: 5%;
  width: 44px;
  height: 44px;
  transform: translateZ(80px);
  animation-duration: 16s;
  animation-direction: reverse;
}
@keyframes rotate-cube {
  0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}
.cube-face {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.3s, border-color 0.3s;
}
/* Cubo 2: Temática Púrpura */
.cube-3d--2 .cube-face {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

/* Posiciones de las caras en 3D para el Cubo 1 */
.cube-3d--1 .cube-face--front  { transform: rotateY(  0deg) translateZ(30px); }
.cube-3d--1 .cube-face--back   { transform: rotateY(180deg) translateZ(30px); }
.cube-3d--1 .cube-face--right  { transform: rotateY( 90deg) translateZ(30px); }
.cube-3d--1 .cube-face--left   { transform: rotateY(-90deg) translateZ(30px); }
.cube-3d--1 .cube-face--top    { transform: rotateX( 90deg) translateZ(30px); }
.cube-3d--1 .cube-face--bottom { transform: rotateX(-90deg) translateZ(30px); }

/* Posiciones de las caras en 3D para el Cubo 2 */
.cube-3d--2 .cube-face--front  { transform: rotateY(  0deg) translateZ(22px); }
.cube-3d--2 .cube-face--back   { transform: rotateY(180deg) translateZ(22px); }
.cube-3d--2 .cube-face--right  { transform: rotateY( 90deg) translateZ(22px); }
.cube-3d--2 .cube-face--left   { transform: rotateY(-90deg) translateZ(22px); }
.cube-3d--2 .cube-face--top    { transform: rotateX( 90deg) translateZ(22px); }
.cube-3d--2 .cube-face--bottom { transform: rotateX(-90deg) translateZ(22px); }

/* Soporte de temas: modo claro cambia el color del cristal de los cubos para legibilidad */
body.light-theme .cube-face {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.4);
}
body.light-theme .cube-3d--2 .cube-face {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.4);
}
