/* ==========================================================================
   SoftingCode — Hoja de estilos principal
   Diseño: profesional, elegante y responsivo (azul oscuro + celeste)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f8fd;
  --dark: #0b1526;
  --dark-2: #101d33;
  --dark-3: #1a2b47;
  --primary: #0e6cf2;
  --primary-dark: #0a56c4;
  --cyan: #22d3ee;
  --grad: linear-gradient(120deg, #0e6cf2, #22d3ee);
  --text: #24344d;
  --text-muted: #5b6b84;
  --border: #e3ebf5;
  --white: #ffffff;
  --shadow-sm: 0 4px 14px rgba(11, 21, 38, 0.08);
  --shadow-md: 0 12px 34px rgba(11, 21, 38, 0.12);
  --shadow-lg: 0 24px 60px rgba(11, 21, 38, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-head: 'Sora', 'Inter', sans-serif;
  --container: 1180px;
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

section[id] { scroll-margin-top: var(--nav-h); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--dark); line-height: 1.2; }

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

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(14, 108, 242, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(14, 108, 242, 0.45); }

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-3px); }

.btn-light {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  background: rgba(11, 21, 38, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled { background: rgba(11, 21, 38, 0.97); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3); }

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

.brand { display: inline-flex; align-items: center; gap: 10px; }

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(14, 108, 242, 0.4);
  flex-shrink: 0;
}

.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--white); letter-spacing: -0.4px; }
.brand-name span { color: var(--cyan); }

.nav-menu { display: flex; align-items: center; gap: 28px; }

.nav-list { display: flex; align-items: center; gap: 26px; }

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta { padding: 11px 22px; font-size: 14px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 10px;
  z-index: 1100;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--white);
  padding: calc(var(--nav-h) + 72px) 0 84px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(14, 108, 242, 0.35), transparent 60%),
    radial-gradient(800px 500px at 90% 20%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(700px 600px at 60% 120%, rgba(14, 108, 242, 0.22), transparent 60%);
  pointer-events: none;
}

.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero-bg::after {
  filter: blur(1px);
}

.hero-container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}

.badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 22px;
}

.hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  max-width: 540px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14.5px;
}
.hero-trust li { display: flex; align-items: center; gap: 8px; }

/* Visual (tarjeta de código) */
.hero-visual { position: relative; }

.code-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

.code-card-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.bar-title {
  margin-left: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Inter', monospace;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.code-card pre {
  padding: 26px 22px;
  font-size: 14px;
  line-height: 1.8;
  font-family: 'SFMono-Regular', Consolas, 'Courier New', monospace;
  color: rgba(255, 255, 255, 0.85);
  overflow-x: auto;
}
.tok-kw { color: #c792ea; }
.tok-var { color: #82aaff; }
.tok-fn { color: #82aaff; }
.tok-key { color: #f07178; }
.tok-str { color: #c3e88d; }
.tok-bool { color: #f78c6c; }

.code-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
}
.status-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 10px #28c840;
  animation: pulse 1.8s ease-in-out infinite;
}

.floating-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--dark);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-md);
  animation: float 5s ease-in-out infinite;
}
.chip-1 { top: -18px; right: 30px; animation-delay: 0.6s; }
.chip-2 { bottom: 34px; left: -24px; animation-delay: 1.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ===== Secciones generales ===== */
.section { padding: 96px 0; }

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

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head.left { text-align: left; margin: 0 0 36px; }

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(14, 108, 242, 0.09);
  border: 1px solid rgba(14, 108, 242, 0.18);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.section-head p { color: var(--text-muted); font-size: 16.5px; }

/* ===== Cards (servicios) ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(14, 108, 242, 0.35);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 14px;
  background: rgba(14, 108, 242, 0.09);
  color: var(--primary);
  margin-bottom: 20px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.card-icon svg { width: 27px; height: 27px; }

.card:hover .card-icon { background: var(--grad); color: var(--white); transform: scale(1.06); }

.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; }

/* ===== Nosotros ===== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 64px;
}

.about-visual { position: relative; }

.about-frame {
  border-radius: var(--radius);
  background: var(--grad);
  padding: 4px;
  box-shadow: var(--shadow-md);
}

.about-frame-inner {
  border-radius: calc(var(--radius) - 4px);
  background: var(--dark);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.about-frame-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 300px at 30% 20%, rgba(34, 211, 238, 0.18), transparent 60%),
              radial-gradient(400px 300px at 80% 85%, rgba(14, 108, 242, 0.3), transparent 60%);
}

.about-stamp {
  position: relative;
  width: 92px; height: 92px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--cyan);
  margin-bottom: 18px;
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.about-year { position: relative; font-family: var(--font-head); font-weight: 800; font-size: 54px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-title { position: relative; font-family: var(--font-head); font-weight: 700; font-size: 24px; }
.about-sub { position: relative; color: rgba(255, 255, 255, 0.65); font-size: 14.5px; }

.chip-3 { position: absolute; bottom: -16px; right: 20px; }

.about-list { display: flex; flex-direction: column; gap: 22px; }

.about-list li { display: flex; gap: 16px; align-items: flex-start; }
.check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  font-size: 14px;
  margin-top: 2px;
  box-shadow: 0 6px 14px rgba(14, 108, 242, 0.3);
}
.about-list strong { color: var(--dark); font-family: var(--font-head); font-size: 16.5px; }
.about-list p { color: var(--text-muted); font-size: 14.5px; margin-top: 3px; }

/* ===== Proceso ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.step-num {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 30px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14.5px; }

/* ===== Tecnologías ===== */
.techs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.tech {
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}
.tech:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 108, 242, 0.45);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* ===== Testimonios ===== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.testimonial {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.quote-mark {
  font-family: var(--font-head);
  font-size: 64px;
  line-height: 1;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  height: 42px;
}

.testimonial blockquote { color: var(--text); font-size: 15px; flex: 1; }

.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
}
.avatar-1 { background: linear-gradient(135deg, #0e6cf2, #22d3ee); }
.avatar-2 { background: linear-gradient(135deg, #6a5cff, #22d3ee); }
.avatar-3 { background: linear-gradient(135deg, #0a56c4, #6a5cff); }

.testimonial figcaption div { display: flex; flex-direction: column; }
.testimonial figcaption strong { color: var(--dark); font-size: 15px; }
.testimonial figcaption span { color: var(--text-muted); font-size: 13px; }

/* ===== CTA ===== */
.cta { padding: 0 0 96px; }

.cta-box {
  position: relative;
  background: var(--dark);
  background-image:
    radial-gradient(700px 300px at 20% 0%, rgba(14, 108, 242, 0.4), transparent 60%),
    radial-gradient(600px 300px at 90% 100%, rgba(34, 211, 238, 0.2), transparent 60%);
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-box h2 { color: var(--white); font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.8px; margin-bottom: 16px; }
.cta-box p { color: rgba(255, 255, 255, 0.75); font-size: 16.5px; max-width: 560px; margin: 0 auto 32px; }

/* ===== Contacto ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.8px; margin-bottom: 16px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 32px; }

.contact-list { display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 13px;
  background: rgba(14, 108, 242, 0.09);
  color: var(--primary);
  font-size: 19px;
}
.contact-list div { display: flex; flex-direction: column; line-height: 1.4; }
.contact-list strong { color: var(--dark); font-size: 14.5px; }
.contact-list a, .contact-list span { color: var(--text-muted); font-size: 15px; }
.contact-list a:hover { color: var(--primary); }

/* Formulario */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 34px;
  box-shadow: var(--shadow-md);
}

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

.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }

.form-group label { font-weight: 600; font-size: 14px; color: var(--dark); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg-alt);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  resize: vertical;
}
.form-group select { appearance: none; cursor: pointer; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(14, 108, 242, 0.12);
}

.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: #e5484d;
  box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.1);
}

.error-msg { display: none; color: #e5484d; font-size: 13px; }
.form-group.invalid .error-msg { display: block; }

.form-success {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(40, 200, 80, 0.12);
  border: 1px solid rgba(40, 200, 80, 0.4);
  color: #1f7a3d;
  font-weight: 600;
  font-size: 14.5px;
}

.form-error {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(229, 72, 77, 0.12);
  border: 1px solid rgba(229, 72, 77, 0.4);
  color: #b00020;
  font-weight: 600;
  font-size: 14.5px;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 0;
}

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

.footer-brand p { margin-top: 16px; font-size: 14.5px; max-width: 280px; }

.footer-col h4 {
  color: var(--white);
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li { font-size: 14.5px; }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
}
/* ===== Botón de WhatsApp ===== */
.whatsapp-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  z-index: 950;
}
.whatsapp-btn svg { width: 30px; height: 30px; }
.whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.05);
  background: #1eb75a;
  box-shadow: 0 18px 36px rgba(37, 211, 102, 0.55);
}
.whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: -1;
  animation: wa-pulse 2s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 96px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 10px 24px rgba(14, 108, 242, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

/* ===== Animaciones reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .code-card, .floating-chip { animation: none; }
  .status-dot { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-container { gap: 40px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr 1fr; }
  .testimonials figure:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero { padding: calc(var(--nav-h) + 56px) 0 72px; }
  .hero-container { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .hero h1, .hero p { max-width: none; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  /* Menú móvil */
  .menu-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    width: min(340px, 84vw);
    height: calc(100vh - var(--nav-h));
    background: var(--dark-2);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 30px 26px;
    transform: translateX(110%);
    transition: transform 0.35s ease;
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.35);
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 6px; }
  .nav-link { display: block; padding: 13px 12px; border-radius: 10px; font-size: 16px; }
  .nav-link:hover, .nav-link.active { background: rgba(14, 108, 242, 0.15); }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: 20px; }
}

@media (max-width: 640px) {
  .cards-grid, .steps, .testimonials { grid-template-columns: 1fr; }
  .testimonials figure:last-child { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 30px 22px; }
  .cta-box { padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .chip-2 { left: -6px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
}
