:root {
  --primary: #ffa100;
  --primary-dark: #e69100;
  --primary-glow: rgba(255, 161, 0, 0.35);
  --dark: #1a2327;
  --dark-2: #0f171a;
  --slate: #546e7a;
  --slate-light: #94a3b8;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: rgba(255,255,255,0.08);
  --card-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.12), 0 4px 8px -4px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 25px 50px -12px rgba(255, 161, 0, 0.25), 0 10px 20px -8px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--dark);
  text-decoration: none;
}
.brand strong { color: var(--primary); }
.brand-light { color: var(--white); }
.brand-dot {
  width: 10px; height: 10px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--primary-glow);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  text-decoration: none;
  color: var(--slate);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--dark); }
.nav-cta {
  background: var(--dark) !important;
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s;
}
.nav-cta:hover {
  background: var(--primary) !important;
  color: var(--dark) !important;
  transform: translateY(-1px);
}
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
  padding: 80px 24px 100px;
  border-bottom: 4px solid var(--primary);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('assets/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.55;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--dark) 80%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(255, 161, 0, 0.12);
  border: 1px solid rgba(255, 161, 0, 0.3);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 28px;
}
.pulse {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 161, 0, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(255, 161, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 161, 0, 0); }
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 24px;
}
.grad {
  background: linear-gradient(135deg, var(--primary) 0%, #ffc966 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--slate-light);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.stats {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 6vw, 64px);
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--primary);
}
.stat-lbl {
  font-size: 0.85rem;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .25s ease;
  font-family: inherit;
}
.btn-primary {
  background: var(--primary);
  color: var(--dark);
  box-shadow: 0 8px 24px -8px var(--primary-glow);
}
.btn-primary:hover {
  background: #ffb733;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px var(--primary-glow);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
}
.btn-block { width: 100%; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-disabled {
  background: #e2e8f0;
  color: var(--slate);
  cursor: default;
}

/* ============ SECTIONS ============ */
.section {
  padding: 100px 0;
}
.section-dark {
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}
.eyebrow-light { color: var(--primary); }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-title.light { color: var(--white); }
.section-sub {
  color: var(--slate);
  font-size: 1.05rem;
  margin: 0;
}
.section-sub.light { color: var(--slate-light); }

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all .3s ease;
  position: relative;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary);
}
.service-card.featured {
  background: linear-gradient(180deg, #fffaf0 0%, var(--white) 100%);
  border-color: var(--primary);
}
.service-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--primary);
  color: var(--dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.service-icon {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--dark);
  border-radius: 16px;
  font-size: 1.5rem;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px -8px var(--primary-glow);
}
.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--slate);
  margin: 0 0 24px;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap .2s, color .2s;
}
.service-link:hover {
  color: var(--primary);
  gap: 12px;
}

/* ============ APPS ============ */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  position: relative;
  z-index: 1;
}
.app-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all .35s ease;
  display: flex;
  flex-direction: column;
}
.app-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 20px 40px -16px rgba(255, 161, 0, 0.3);
}
.app-image-wrap {
  height: 240px;
  background: linear-gradient(135deg, rgba(255,161,0,0.12), rgba(255,161,0,0.02));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}
.app-image-wrap img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.4));
  transition: transform .4s ease;
}
.app-card:hover .app-image-wrap img {
  transform: translateY(-6px) scale(1.04);
}
.app-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.app-tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}
.app-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-card h3 i { color: var(--primary); }
.app-card p {
  color: var(--slate-light);
  font-size: 0.95rem;
  margin: 0 0 22px;
  flex: 1;
}
.app-card-soon { opacity: 0.85; }
.privacy-footer {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--slate-light);
  text-decoration: none;
  transition: color .2s;
}
.privacy-footer:hover:not(.privacy-disabled) { color: var(--primary); }
.privacy-disabled { opacity: 0.4; }

/* ============ PROCESO ============ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.process-step {
  background: var(--white);
  padding: 36px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  transition: all .3s;
}
.process-step:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
  line-height: 1;
}
.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.process-step p {
  color: var(--slate);
  margin: 0;
  font-size: 0.95rem;
}

/* ========= FORMULARIO LEADS ========= */

.lead-form-wrap {
  margin-top: 44px;
  padding: clamp(26px, 5vw, 42px);
  border-radius: 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 2;
}

.lead-form-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.lead-form-head h3 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin-bottom: 12px;
  color: var(--white);
}

.lead-form-head p {
  margin: 0;
  color: var(--slate-light);
  font-size: 1rem;
}

.lead-form {
  max-width: 900px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-full {
  margin-bottom: 22px;
}

.field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border-radius: 16px;
  padding: 15px 16px;
  font-size: 0.96rem;
  font-family: inherit;
  outline: none;
  transition: all .22s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255,255,255,0.45);
}

.field select {
  appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255,161,0,0.12);
  background: rgba(255,255,255,0.07);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.form-note {
  color: var(--slate-light);
  font-size: 0.92rem;
}

.form-status {
  margin: 14px 0 0;
  font-size: 0.94rem;
  color: var(--primary);
  min-height: 20px;
}

/* ========= MOBILE ========= */

@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn {
    width: 100%;
  }

  .form-note {
    text-align: center;
  }
}

/* ============ CTA ============ */
.cta-section {
  padding: 80px 0 100px;
  background: var(--bg);
}
.cta-card {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  border-radius: 32px;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,161,0,0.2);
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
}
.cta-card::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
}
.cta-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 14px;
  position: relative;
}
.cta-card p {
  color: var(--slate-light);
  font-size: 1.1rem;
  margin: 0 0 32px;
  position: relative;
}
.cta-card .btn { position: relative; }

/* ============ FOOTER ============ */
footer {
  background: var(--dark-2);
  color: var(--white);
  padding: 60px 0 30px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
  margin: 8px 0 0;
  color: var(--slate-light);
  font-size: 0.9rem;
}
.social-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.social-item {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  font-size: 1.05rem;
  transition: all .25s;
}
.social-item:hover {
  background: var(--primary);
  color: var(--dark);
  border-color: var(--primary);
  transform: translateY(-3px);
}
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  color: var(--slate-light);
  font-size: 0.88rem;
}

/* ============ WHATSAPP FLOAT ============ */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  z-index: 99;
  transition: all .25s;
  animation: float-pulse 2.5s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}
@keyframes float-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .hero { padding: 60px 20px 80px; min-height: auto; }
  .hero-cta .btn { width: 100%; }
  .footer-top { flex-direction: column; text-align: center; }
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   THEME TOGGLE 
   ========================================================= */

.theme-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--dark);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform .22s ease,
    background .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    color .22s ease;
  box-shadow:
    0 10px 24px -16px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.theme-toggle i {
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 161, 0, 0.35);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 18px 32px -18px rgba(255, 161, 0, 0.45),
    0 8px 18px -12px rgba(0, 0, 0, 0.18);
}

.theme-toggle:active {
  transform: translateY(0);
}

.theme-toggle:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(255, 161, 0, 0.18),
    0 10px 24px -16px rgba(0, 0, 0, 0.22);
}

/* Icono más limpio */
.theme-toggle .fa-moon {
  transform: translateX(1px);
}

/* =========================================================
   DARK MODE
   ========================================================= */

body.dark .theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 14px 28px -18px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.dark .theme-toggle:hover {
  background: rgba(255, 161, 0, 0.12);
  border-color: rgba(255, 161, 0, 0.4);
  box-shadow:
    0 18px 32px -16px rgba(255, 161, 0, 0.28),
    0 8px 20px -14px rgba(0, 0, 0, 0.5);
}

/* =========================================================
   DARK MODE FIX TITLES / CONTRASTE
   ========================================================= */

body.dark .hero-title,
body.dark .cta-card h2,
body.dark .lead-form-head h3,
body.dark .section-dark .section-title,
body.dark .app-card h3,
body.dark .brand,
body.dark .brand-light {
  color: #f8fafc;
}

/* texto secundario en fondos oscuros */

body.dark .cta-card p,
body.dark .lead-form-head p,
body.dark .section-dark .section-sub,
body.dark .app-card p {
  color: #cbd5e1;
}

/* gradiente principal sigue brillante */

body.dark .grad {
  background: linear-gradient(135deg, #ffa100 0%, #ffd36a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   FOOTER SOCIAL ICONS - DARK MODE
   ========================================================= */

body.dark .social-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #f8fafc;
  box-shadow: 0 10px 24px -18px rgba(0,0,0,.45);
}

body.dark .social-item:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #111827;
  transform: translateY(-3px);
  box-shadow: 0 18px 30px -18px rgba(255,161,0,.45);
}

/* =========================================================
   NAV AJUSTE VISUAL
   ========================================================= */

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links a:not(.nav-cta) {
  margin-right: 2px;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {
  .theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .nav-links {
    gap: 10px;
  }
}

/* =========================================================
   DARK MODE GLOBAL
   ========================================================= */

body.dark {
  --bg: #0b1014;
  --white: #121a20;
  --dark: #f8fafc;
  --dark-2: #06090c;
  --slate: #94a3b8;
  --slate-light: #cbd5e1;
  --border: rgba(255, 255, 255, 0.08);

  background: var(--bg);
  color: var(--dark);
}

/* NAV */

body.dark .nav {
  background: rgba(11, 16, 20, 0.78);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

body.dark .brand,
body.dark .nav-links a {
  color: #f8fafc;
}

body.dark .nav-links a:hover {
  color: var(--primary);
}

body.dark .nav-cta {
  background: var(--primary) !important;
  color: #111 !important;
}

body.dark .nav-cta:hover {
  background: #ffb733 !important;
}

/* HERO */

body.dark .hero {
  background: #05080b;
}

body.dark .hero-bg::after {
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    #05080b 82%
  );
}

body.dark .hero-sub,
body.dark .stat-lbl {
  color: #cbd5e1;
}

/* SECCIONES */

body.dark .section {
  background: var(--bg);
}

body.dark .section-title,
body.dark .process-step h3,
body.dark .service-card h3 {
  color: #f8fafc;
}

body.dark .section-sub,
body.dark .service-card p,
body.dark .process-step p {
  color: #94a3b8;
}

/* CARDS */

body.dark .service-card,
body.dark .process-step {
  background: #121a20;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 12px 28px -18px rgba(0,0,0,.55);
}

body.dark .service-card:hover,
body.dark .process-step:hover {
  border-color: rgba(255,161,0,.55);
}

body.dark .service-card.featured {
  background: linear-gradient(
    180deg,
    rgba(255,161,0,.08),
    #121a20 100%
  );
}

/* APPS */

body.dark .section-dark {
  background: #05080b;
}

/* CTA */

body.dark .cta-section {
  background: #0b1014;
}

body.dark .cta-card {
  background: linear-gradient(
    135deg,
    #121a20 0%,
    #0a0f13 100%
  );
}

/* FORM */

body.dark .field input,
body.dark .field select,
body.dark .field textarea {
  background: rgba(255,255,255,.04);
  color: #f8fafc;
  border: 1px solid rgba(255,255,255,.08);
}

body.dark .field input::placeholder,
body.dark .field textarea::placeholder {
  color: rgba(255,255,255,.42);
}

body.dark .field label {
  color: #f8fafc;
}

/* FOOTER */

body.dark footer {
  background: #05080b;
}

/* BOTÓN GHOST */

body.dark .btn-ghost {
  background: rgba(255,255,255,.04);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
}

body.dark .btn-ghost:hover {
  background: rgba(255,255,255,.08);
}


/* =========================================================
   SELECT
   ========================================================= */

.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  border-radius: 16px;
  padding: 15px 16px;
  font-size: 0.96rem;
  font-family: inherit;
  outline: none;
  transition: all .22s ease;
}

.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255,161,0,0.12);
  background: rgba(255,255,255,0.07);
}

.field select option {
  background: #1a2327;
  color: #ffffff;
}

/* DARK MODE */

body.dark .field select {
  background: rgba(255,255,255,0.04);
  color: #f8fafc;
  border-color: rgba(255,255,255,0.08);
}

body.dark .field select:focus {
  background: rgba(255,255,255,0.06);
}

body.dark .field select option {
  background: #121a20;
  color: #f8fafc;
}


/*TOAST */
.toast{
  position: fixed;
  top: 24px;
  right: 24px;
  min-width: 280px;
  max-width: 360px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
  z-index: 9999;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: all .25s ease;
}

.toast.show{
  opacity: 1;
  transform: translateY(0);
}

.toast.success{
  border-left: 4px solid #22c55e;
}

.toast.error{
  border-left: 4px solid #ef4444;
}

/* Spinner Styles */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff; /* O el color de tu marca */
  animation: spin 0.8s linear infinite;
  margin-right: 10px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Estilo para el estado de carga en el texto */
.form-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 24px;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}