/* ============================================================
   XESCO ALABAU — Custom Styles
   Tema: Apple-inspired light — blanco puro + azul #0071e3
   ============================================================ */

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --bg:            #ffffff;
  --bg-alt:        #f5f5f7;
  --bg-card:       #ffffff;
  --bg-card-hover: #fafafa;
  --primary:       #0071e3;
  --primary-light: #3395ff;
  --accent:        #34aadc;
  --success:       #30d158;
  --warning:       #ff9f0a;
  --text:          #1d1d1f;
  --text-secondary:#6e6e73;
  --muted:         #86868b;
  --border:        rgba(0, 0, 0, 0.1);
  --border-hover:  rgba(0, 113, 227, 0.35);
  --radius-sm:     12px;
  --radius-md:     16px;
  --radius-lg:     20px;
  --radius-xl:     24px;
  --shadow-primary: 0 4px 20px rgba(0, 113, 227, 0.28);
  --shadow-card:    0 2px 20px rgba(0, 0, 0, 0.07), 0 8px 40px rgba(0, 0, 0, 0.05);
  --shadow-hover:   0 4px 32px rgba(0, 0, 0, 0.11), 0 16px 48px rgba(0, 0, 0, 0.07);
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: rgba(0, 113, 227, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 113, 227, 0.5); }

/* ─── Tailwind utility overrides for light theme ─────────── */
.text-slate-400 { color: var(--text-secondary) !important; }
.text-slate-500 { color: var(--muted) !important; }
.text-slate-600 { color: #515154 !important; }
.text-indigo-400 { color: var(--primary) !important; }
.text-sky-400    { color: var(--accent)   !important; }

/* ─── Utility ────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #0071e3 0%, #34aadc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

/* ─── Navigation ─────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.07);
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 13px 26px;
  border-radius: 980px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-primary);
  white-space: nowrap;
}
.btn-primary:hover {
  background: #0077ed;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(0, 113, 227, 0.38);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--primary);
  padding: 13px 26px;
  border-radius: 980px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1.5px solid rgba(0, 113, 227, 0.35);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-secondary:hover {
  background: rgba(0, 113, 227, 0.06);
  border-color: rgba(0, 113, 227, 0.6);
  transform: translateY(-1px);
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 0% 40%, rgba(0, 113, 227, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 0%,  rgba(52, 170, 220, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Stats divider */
.stat-divider { width: 1px; height: 42px; background: var(--border); }

/* Scroll indicator */
.scroll-indicator {
  animation: scrollBounce 2.5s ease-in-out infinite;
  opacity: 0.3;
  color: var(--muted);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Badge / disponible */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 113, 227, 0.07);
  border: 1px solid rgba(0, 113, 227, 0.2);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}
.badge:hover {
  background: rgba(0, 113, 227, 0.12);
  border-color: rgba(0, 113, 227, 0.35);
}

/* Pulse dot */
.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5); }
  50%       { opacity: 0.8; transform: scale(1.1); box-shadow: 0 0 0 6px rgba(48, 209, 88, 0); }
}

/* ─── Service Cards ──────────────────────────────────────── */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.benefit-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ─── Why Me Cards ───────────────────────────────────────── */
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.why-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.why-emoji { font-size: 1.8rem; margin-bottom: 12px; line-height: 1; }

/* ─── Use Case Cards ─────────────────────────────────────── */
.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.usecase-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

/* ─── Process Steps ──────────────────────────────────────── */
.process-line {
  width: 2px;
  flex-shrink: 0;
  background: linear-gradient(to bottom, rgba(0, 113, 227, 0.4), rgba(0, 113, 227, 0.05));
  margin: 8px 0;
}

.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.35);
  position: relative; z-index: 1;
}

/* ─── CTA Section ────────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border: 1px solid rgba(0, 113, 227, 0.15);
  border-radius: var(--radius-xl);
}

/* Contact buttons */
.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.contact-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.contact-btn.cb-phone {
  background: var(--primary);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-primary);
}
.contact-btn.cb-phone:hover { background: #0077ed; box-shadow: 0 8px 28px rgba(0,113,227,0.42); }

.contact-btn.cb-whatsapp { border-color: rgba(37, 211, 102, 0.3); color: var(--text); }
.contact-btn.cb-whatsapp:hover { border-color: rgba(37, 211, 102, 0.55); background: rgba(37, 211, 102, 0.05); }

.contact-btn.cb-email { border-color: rgba(0, 113, 227, 0.2); }
.contact-btn.cb-email:hover { border-color: rgba(0, 113, 227, 0.45); background: rgba(0, 113, 227, 0.04); }

.contact-btn.cb-linkedin { border-color: rgba(10, 102, 194, 0.22); }
.contact-btn.cb-linkedin:hover { border-color: rgba(10, 102, 194, 0.45); background: rgba(10, 102, 194, 0.05); }

.contact-btn .cb-label { font-size: 0.8rem; color: var(--muted); font-weight: 400; }

/* Form inputs */
.form-input {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}
.form-input::placeholder { color: var(--muted); }
.form-input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(0,113,227,0.12); }
.form-input option { background: #fff; color: var(--text); }

/* ─── Testimonials ───────────────────────────────────────── */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: white;
  flex-shrink: 0;
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
footer a { text-decoration: none; transition: color 0.2s; }
footer .nav-link { font-size: 0.85rem; }

.social-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}
.social-btn:hover { transform: scale(1.12); }
.social-btn.linkedin-btn {
  background: rgba(10, 102, 194, 0.1);
  border: 1px solid rgba(10, 102, 194, 0.22);
}
.social-btn.whatsapp-btn {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
}

/* ─── Mobile Menu ────────────────────────────────────────── */
#mobile-menu {
  position: fixed; inset: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
#mobile-menu.open { display: flex; }
#mobile-menu .nav-link { font-size: 1.4rem; font-weight: 700; color: var(--text); }
#menu-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; color: var(--text);
  cursor: pointer; padding: 8px;
}

/* ─── Divider ────────────────────────────────────────────── */
.separator {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ─── Fade success ───────────────────────────────────────── */
#form-success { display: none; }
#form-success.visible { display: block; }

/* ─── Responsive tweaks ──────────────────────────────────── */
@media (max-width: 640px) {
  .btn-primary, .btn-secondary { padding: 12px 20px; font-size: 0.875rem; }
  .service-card { padding: 24px; }
  .cta-box { padding: 32px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
