/* ===================== BASE ===================== */
:root {
  --violet: #4A2FD4;
  --blue:   #185FA5;
  --cyan:   #00C2E0;
  --navy:   #0A1628;
  scroll-behavior: smooth;
}

/* ===================== TYPOGRAPHY ===================== */
.gradient-text {
  background: linear-gradient(135deg, var(--violet) 0%, var(--blue) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================== BACKGROUNDS ===================== */
.brand-gradient {
  background: linear-gradient(135deg, var(--violet) 0%, var(--blue) 50%, var(--cyan) 100%);
}

/* ===================== NAVBAR ===================== */
#navbar {
  background: linear-gradient(90deg, #1a1060 0%, #2E1FA8 25%, #185FA5 60%, #00A8C8 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#navbar.scrolled {
  background: linear-gradient(90deg, rgba(26,16,96,0.97) 0%, rgba(46,31,168,0.97) 25%, rgba(24,95,165,0.97) 60%, rgba(0,168,200,0.97) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #F8FAFC;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--cyan); }

.mobile-link {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #F8FAFC;
  padding: 0.6rem 0.5rem;
  border-radius: 6px;
  transition: background-color 0.15s, color 0.15s;
}
.mobile-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--cyan);
}

/* ===================== BUTTONS ===================== */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--violet) 0%, var(--blue) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
  border-radius: 6px;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(74, 47, 212, 0.25);
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(74, 47, 212, 0.35);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-block;
  color: var(--violet);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
  border-radius: 6px;
  border: 1.5px solid var(--violet);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-secondary:hover {
  background-color: var(--violet);
  color: #fff;
  transform: translateY(-1px);
}

/* ===================== HERO CARDS ===================== */
.hero-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  transition: transform 0.3s, box-shadow 0.3s;
}
.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.hero-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  transition: transform 0.3s;
}
.hero-card:hover .hero-icon { transform: scale(1.1); }

/* ===================== SECTION HELPERS ===================== */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  margin-top: 0.5rem;
}
.section-desc {
  color: #6b7280;
  margin-top: 1rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ===================== SERVICE CARDS ===================== */
.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1.5px solid #f1f5f9;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}
.service-card:hover {
  box-shadow: 0 12px 32px rgba(74, 47, 212, 0.1);
  border-color: #ddd6fe;
  transform: translateY(-3px);
}
.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}
.service-card:hover .service-icon { transform: scale(1.1); }
.service-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.service-desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.65;
}

/* ===================== PRODUCT CARDS ===================== */
.product-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  border: 1.5px solid #f1f5f9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s, transform 0.3s;
}
.product-card:hover {
  box-shadow: 0 20px 50px rgba(74, 47, 212, 0.12);
  transform: translateY(-4px);
}

/* ===================== BADGES ===================== */
.badge-available {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}
.badge-available::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #22c55e;
  display: block;
  flex-shrink: 0;
}
.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: #f3e8ff;
  color: #7c3aed;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}
.badge-soon::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #a855f7;
  display: block;
  flex-shrink: 0;
}

/* ===================== PROCESS STEPS ===================== */
.step-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  position: relative;
  z-index: 10;
}
.step-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.step-desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.65;
}

/* ===================== CONTACTO ===================== */
#contacto {
  overflow-x: hidden;
}

@media (max-width: 420px) {
  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: center;
  }
}
@media (max-width: 340px) {
  .g-recaptcha {
    transform: scale(0.73);
  }
}

/* ===================== FORM ===================== */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}
.form-input {
  width: 100%;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--navy);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  background: #fff;
}
.form-input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(74, 47, 212, 0.1);
}
.form-input::placeholder { color: #9ca3af; }
.form-input.error-field { border-color: #ef4444; }

#form-response.success {
  color: #15803d;
  background: #dcfce7;
}
#form-response.error {
  color: #b91c1c;
  background: #fee2e2;
}

/* ===================== SOCIAL BUTTONS ===================== */
.social-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.social-btn:hover { transform: translateY(-2px); }

.social-btn--instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
}
.social-btn--instagram:hover {
  filter: brightness(1.1);
}

.social-btn--linkedin {
  background: #0077B5;
  color: #fff;
}
.social-btn--linkedin:hover {
  background: #0063a0;
}
