/* ===== DESIGN SYSTEM — Electricista Juárez 24h ===== */
:root {
  /* Core palette */
  --bg-dark: #0a0e17;
  --bg-card: #111827;
  --bg-card-hover: #1a2236;
  --surface: #1e293b;
  --border: #1e293b;

  /* Electric amber accent */
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;

  /* Text */
  --text-white: #f8fafc;
  --text-light: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;

  /* Functional */
  --success: #22c55e;
  --danger: #ef4444;
  --whatsapp: #25D366;

  /* Typography */
  --font-display: 'Oswald', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --section-py: clamp(3.5rem, 8vw, 7rem);
  --container-px: clamp(1rem, 4vw, 2rem);
  --container-max: 1200px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.35s;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ===== UTILITIES ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}
.section-padding { padding: var(--section-py) 0; }
.text-amber { color: var(--amber-400); }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== ANIMATED BACKGROUND PARTICLES ===== */
.electric-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.electric-bg::before,
.electric-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  animation: floatGlow 12s ease-in-out infinite alternate;
}
.electric-bg::before {
  width: 500px;
  height: 500px;
  background: var(--amber-500);
  top: -100px;
  right: -100px;
}
.electric-bg::after {
  width: 400px;
  height: 400px;
  background: var(--amber-600);
  bottom: -80px;
  left: -80px;
  animation-delay: -6s;
}
@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.15); }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.75rem 0;
  transition: background var(--duration) var(--ease-out), box-shadow var(--duration);
}
.navbar.scrolled {
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(251, 191, 36, 0.1);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.navbar-brand .brand-icon {
  width: 32px;
  height: 32px;
  background: var(--amber-500);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.navbar-brand .brand-icon svg { width: 20px; height: 20px; color: var(--bg-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--duration);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: var(--font-display);
}
.nav-links a:hover { color: var(--amber-400); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--amber-500);
  color: var(--text-dark) !important;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  transition: background var(--duration), transform 0.2s;
}
.nav-cta:hover { background: var(--amber-400); transform: translateY(-1px); }
.nav-cta svg { width: 16px; height: 16px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  transition: transform var(--duration), opacity var(--duration);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 14, 23, 0.97);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: brightness(0.5) contrast(1.2);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,14,23,0.4) 0%,
    rgba(10,14,23,0.75) 50%,
    var(--bg-dark) 100%
  );
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 720px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--amber-400);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-display);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s var(--ease-out) forwards;
}
.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.08;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s 0.15s var(--ease-out) both;
}
.hero h1 .highlight {
  color: var(--amber-400);
  position: relative;
}
.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--amber-500);
  border-radius: 2px;
  opacity: 0.5;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s 0.3s var(--ease-out) both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeInUp 0.8s 0.45s var(--ease-out) both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--amber-500);
  color: var(--text-dark);
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background var(--duration), transform 0.2s, box-shadow var(--duration);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.15);
}
.btn-primary:hover {
  background: var(--amber-400);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.3);
}
.btn-primary svg { width: 20px; height: 20px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: transparent;
  color: var(--text-white);
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: border-color var(--duration), background var(--duration);
}
.btn-secondary:hover { border-color: var(--amber-500); background: rgba(251, 191, 36, 0.06); }
.btn-secondary svg { width: 20px; height: 20px; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.8s 0.6s var(--ease-out) both;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--amber-400);
  font-weight: 700;
}
.hero-stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--amber-400);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ===== SERVICES ===== */
.services { background: var(--bg-dark); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: border-color var(--duration), transform var(--duration), box-shadow var(--duration);
  cursor: default;
}
.service-card:hover {
  border-color: var(--amber-500);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.08);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: rgba(251, 191, 36, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 26px; height: 26px; color: var(--amber-400); }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}
.service-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ===== WHY US ===== */
.why-us { background: var(--bg-card); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.why-item { text-align: center; padding: 1.5rem; }
.why-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--amber-400);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.why-item p { font-size: 0.9rem; color: var(--text-muted); }

/* ===== PROCESS ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.process-step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  counter-increment: step;
}
.process-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--amber-500);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  margin: 0 auto 1rem;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text-white);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.process-step p { font-size: 0.85rem; color: var(--text-muted); }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--bg-card); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
}
.testimonial-stars {
  color: var(--amber-400);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 3px;
}
.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  background: var(--amber-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}
.testimonial-name {
  font-weight: 600;
  color: var(--text-white);
  font-size: 0.9rem;
}
.testimonial-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== COVERAGE ===== */
.coverage-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}
.zone-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-light);
  transition: border-color var(--duration), background var(--duration);
}
.zone-badge:hover {
  border-color: var(--amber-500);
  background: rgba(251, 191, 36, 0.06);
}

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 0;
  color: var(--text-white);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color var(--duration);
  cursor: pointer;
}
.faq-question:hover { color: var(--amber-400); }
.faq-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--duration);
}
.faq-icon svg { width: 18px; height: 18px; color: var(--amber-400); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.faq-answer-inner {
  padding: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--amber-600) 0%, var(--amber-500) 100%);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(0,0,0,0.04) 20px,
    rgba(0,0,0,0.04) 40px
  );
}
.cta-banner .container { position: relative; z-index: 1; text-align: center; }
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--text-dark);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.cta-banner p {
  color: rgba(15, 23, 42, 0.7);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 0.9rem 2.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background var(--duration), transform 0.2s;
}
.btn-dark:hover { background: #1a2236; transform: translateY(-2px); }
.btn-dark svg { width: 20px; height: 20px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}
.footer p { font-size: 0.85rem; color: var(--text-muted); }
.footer h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--amber-400);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.footer-links a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  transition: color var(--duration);
}
.footer-links a:hover { color: var(--amber-400); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* ===== WHATSAPP FLOATING ===== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s, box-shadow var(--duration);
  animation: floatBounce 3s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg { width: 30px; height: 30px; color: #fff; }
@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-stat strong { font-size: 1.4rem; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary, .btn-dark { width: 100%; justify-content: center; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
