/* ============================================
   ATS - Servicios Eléctricos Profesionales
   Diseño Premium Elegante
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&display=swap');

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

:root {
  /* DARK MODE (Default/Industrial Charcoal) */
  --bg-primary: #121216;
  --bg-secondary: #1a1b1e;
  --bg-card: #222328;
  --bg-elevated: #2a2c32;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0aa;
  --text-muted: #666670;

  /* Neon Orange Accent */
  --accent: #ff5e00;
  --accent-light: #ff8533;
  --accent-dark: #cc4b00;
  --accent-glow: rgba(255, 94, 0, 0.25);

  --secondary: #64748b;
  --secondary-light: #94a3b8;

  /* Surfaces */
  --glass-bg: rgba(26, 27, 30, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.05);

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, #ff5e00, #ff8533);
  --gradient-elegant: linear-gradient(135deg, #ff5e00 0%, #35363c 100%);
  --gradient-text: linear-gradient(135deg, #ff8533, #ffcc00, #ff8533);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(255, 94, 0, 0.15);

  /* Layout */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 50px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --theme-transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="light"] {
  --bg-primary: #f4f5f7;
  --bg-secondary: #ffffff;
  --bg-card: #f8fafc;
  --bg-elevated: #e2e8f0;
  --text-primary: #0f1015;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  /* Neon Orange Accent */
  --accent: #ff5e00;
  --accent-light: #ff7a29;
  --accent-dark: #cc4b00;
  --accent-glow: rgba(255, 94, 0, 0.15);

  --secondary: #e2e8f0;
  --secondary-light: #f8fafc;

  /* Surfaces */
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-hover: rgba(0, 0, 0, 0.15);
  --border-subtle: rgba(0, 0, 0, 0.05);

  --gradient-elegant: linear-gradient(135deg, #ff5e00 0%, #cbd5e1 100%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(255, 94, 0, 0.15);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

body, .navbar, .service-card, .footer, .glass-card, .stat-item, .contact-card, .footer-col, .service-hero, .service-cta-banner {
  transition: var(--theme-transition);
}

/* ---- Theme Toggle Button ---- */
.theme-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  margin-left: 20px;
  transition: var(--transition);
}

.theme-switch:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.theme-switch svg {
  width: 20px;
  height: 20px;
  transition: transform 0.4s ease;
}

[data-theme="light"] .theme-switch .moon-icon { display: block; }
[data-theme="light"] .theme-switch .sun-icon { display: none; }

[data-theme="dark"] .theme-switch .moon-icon { display: none; }
[data-theme="dark"] .theme-switch .sun-icon { display: block; }


a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

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

/* ---- Utilities ---- */
.container {
  width: min(1160px, 90%);
  margin: 0 auto;
}

.section-padding {
  padding: 110px 0;
}

.text-gradient {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-light);
  margin-bottom: 20px;
  padding: 7px 18px;
  border: 1px solid rgba(220, 38, 38, 0.15);
  border-radius: var(--radius-full);
  background: rgba(220, 38, 38, 0.06);
}

.section-label svg {
  width: 13px;
  height: 13px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---- Divider ---- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border-hover), transparent);
  border: none;
  margin: 0;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 14px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--glass-border);
  padding: 8px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.logo:hover .logo-img {
  filter: brightness(1.1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-cta {
  margin-left: 16px;
  padding: 9px 22px !important;
  background: var(--accent) !important;
  color: white !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: var(--transition) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--accent-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.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);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg.png') center/cover no-repeat;
  opacity: 0.35;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 260px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  z-index: 1;
}

/* Soft ambient glow */
.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  z-index: 0;
}

.hero-glow.red {
  background: var(--accent);
  top: 10%;
  right: 10%;
}

.hero-glow.purple {
  background: #7c3aed;
  bottom: 20%;
  left: 5%;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(220, 38, 38, 0.6);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.4);
  animation: float-particle linear infinite;
  opacity: 0;
}

@keyframes float-particle {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.7; }
  90% { opacity: 0.7; }
  100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

.electric-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 32px;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-badge .pulse-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.6rem, 6.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s ease 0.35s both;
}

.hero-title .electric-line {
  position: relative;
  display: inline-block;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 480px;
  animation: fadeInUp 0.7s ease 0.5s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.65s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  animation: fadeInUp 0.7s ease 0.8s both;
}

.stat-item { text-align: left; }

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.btn:hover svg { transform: translateX(2px); }

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before { left: 100%; }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border-hover);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

/* ---- Service Cards ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  transition: var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-icon.red {
  background: rgba(220, 38, 38, 0.08);
  color: var(--accent-light);
}

.service-icon.orange {
  background: rgba(249, 115, 22, 0.08);
  color: #fb923c;
}

.service-icon.amber {
  background: rgba(245, 158, 11, 0.08);
  color: #fbbf24;
}

.service-icon.emerald {
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
}

/* Keep old class names working too */
.service-icon.blue { background: rgba(220, 38, 38, 0.08); color: var(--accent-light); }
.service-icon.cyan { background: rgba(249, 115, 22, 0.08); color: #fb923c; }
.service-icon.yellow { background: rgba(245, 158, 11, 0.08); color: #fbbf24; }
.service-icon.green { background: rgba(16, 185, 129, 0.08); color: #34d399; }

.service-card:hover .service-icon { transform: scale(1.08); }

.service-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
}

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-light);
  transition: var(--transition);
}

.service-card .learn-more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.service-card:hover .learn-more svg { transform: translateX(3px); }

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-floating-card {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  z-index: 2;
}

.about-floating-card .big-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-light);
}

.about-floating-card span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.about-text h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.about-text > p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-check {
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(220, 38, 38, 0.08);
  color: var(--accent-light);
  margin-top: 2px;
}

.feature-check svg {
  width: 14px;
  height: 14px;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.feature-item strong {
  color: var(--text-primary);
}

/* ---- Testimonials ---- */
.testimonials {
  background: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-3px);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
  color: #f59e0b;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.testimonial-card blockquote {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 18px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
}

.testimonial-info h4 {
  font-size: 0.85rem;
  font-weight: 600;
}

.testimonial-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- Contact ---- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  overflow: hidden;
  position: relative;
}

.contact-wrapper::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  opacity: 0.2;
  z-index: 0;
}

.contact-info,
.contact-form {
  position: relative;
  z-index: 1;
}

.contact-info h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 0.9rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.06);
  color: var(--accent-light);
  border: 1px solid rgba(220, 38, 38, 0.08);
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item-text h4 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-item-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2363637a' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
  padding: 16px;
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 56px 0 0;
}

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

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 20px;
  max-width: 260px;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer-socials a svg {
  width: 16px;
  height: 16px;
}

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 0.83rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent-light);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--accent-light);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-image { max-height: 340px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .hero-stats { gap: 28px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85%);
    height: 100vh;
    flex-direction: column;
    background: rgba(9, 9, 11, 0.97);
    backdrop-filter: blur(24px);
    padding: 90px 32px 32px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
    border-left: 1px solid var(--glass-border);
  }
  .nav-links.active { transform: translateX(0); }
  .nav-links a {
    font-size: 1rem;
    padding: 10px 16px;
    width: 100%;
  }
  .nav-cta {
    margin-left: 0 !important;
    margin-top: 10px;
    text-align: center;
  }
  .hamburger { display: flex; }
  .hero-content { padding-top: 90px; }
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .testimonials-grid { grid-template-columns: 1fr; }
  .section-padding { padding: 72px 0; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .contact-wrapper { padding: 20px; }
  .logo-img { height: 36px; }
}

/* ==========================================
   NUEVOS ESTILOS (Mejoras Premium)
   ========================================== */

/* ---- Preloader ---- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.preloader-content img {
  height: 60px;
  animation: pulseLogo 2s infinite ease-in-out;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spinner 1s linear infinite;
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

/* ---- Botones Flotantes ---- */
.float-btn {
  position: fixed;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-md);
  z-index: 900;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

.float-btn svg {
  width: 28px;
  height: 28px;
}

.whatsapp-btn {
  bottom: 24px;
  background: #25d366;
}

.whatsapp-btn:hover {
  background: #128c7e;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.back-to-top {
  bottom: 90px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
  color: var(--accent-light);
}

@media (max-width: 768px) {
  .float-btn { right: 16px; width: 48px; height: 48px; }
  .whatsapp-btn { bottom: 16px; }
  .back-to-top { bottom: 76px; }
  .float-btn svg { width: 24px; height: 24px; }
}

/* ---- Galería Grid ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 9, 11, 0.9) 0%, rgba(9, 9, 11, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-overlay h3 {
  font-family: 'Outfit', sans-serif;
  color: white;
  font-size: 1.1rem;
  margin-bottom: 4px;
  transform: translateY(15px);
  transition: transform 0.4s 0.1s ease;
}

.gallery-overlay p {
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: translateY(15px);
  transition: transform 0.4s 0.15s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p {
  transform: translateY(0);
}

/* ---- Páginas de Servicios Internos ---- */
.service-hero {
  padding: 160px 0 80px;
  background: var(--bg-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% -20%, rgba(220, 38, 38, 0.12) 0%, transparent 70%);
}

.service-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.service-hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.service-content-section {
  padding: 80px 0;
}

.service-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .service-details-grid { grid-template-columns: 1fr; }
}

.service-description h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.service-description p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-features-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.service-features-list li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.service-features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

.service-images-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 240px;
  gap: 20px;
}

.service-images-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.4s ease;
}

.service-images-grid img:hover {
  transform: scale(1.03);
}

.service-img-large {
  grid-column: 1 / -1;
  height: 350px !important;
}

.service-cta-banner {
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.service-cta-banner h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.service-cta-banner p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.btn-whatsapp-large {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: #fff;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-large:hover {
  background: #1ebc59;
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-large svg {
  width: 26px;
  height: 26px;
}

/* ---- Brand Logo text SVG colors ---- */
.brand-text-main {
  fill: var(--text-primary);
  transition: fill 0.3s ease;
}
.brand-text-sub {
  fill: var(--text-secondary);
  transition: fill 0.3s ease;
}