/* ==========================================================================
   MCH INGENIERÍA - CLIMATIZACIÓN & AIRE ACONDICIONADO
   Estilos Premium Modernos y Optimizados para Conversión
   ========================================================================== */

:root {
  --primary:        #0e0249;
  --primary-light:  #1d097c;
  --primary-dark:   #07011f;
  --secondary:      #a8d453;
  --secondary-dark: #8ab836;
  --secondary-glow: rgba(168, 212, 83, 0.4);
  --accent:         #fbc061;
  --accent-hover:   #f5a623;
  --dark-bg:        #07011e;
  --surface:        #ffffff;
  --text-dark:      #0f172a;
  --text-muted:     #64748b;
  --border-light:   #e2e8f0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background-color: #f8fafc;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--secondary);
  color: var(--primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0e0249;
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Top Notification Bar */
.top-bar-animated {
  background: linear-gradient(90deg, #07011e 0%, #0e0249 50%, #1a086b 100%);
  border-bottom: 1px solid rgba(168, 212, 83, 0.2);
}

/* Navbar */
#header {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#header.scrolled {
  background-color: rgba(7, 1, 30, 0.96) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding-top: 10px;
  padding-bottom: 10px;
}

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s ease;
  padding: 6px 2px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after {
  width: 100%;
}

/* Main Website Badge in Nav */
.main-web-pill {
  background: rgba(168, 212, 83, 0.15);
  border: 1px solid rgba(168, 212, 83, 0.5);
  color: var(--secondary);
  transition: all 0.3s ease;
}
.main-web-pill:hover {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 0 20px rgba(168, 212, 83, 0.4);
}

/* Hero Section Styles */
.hero-gradient {
  background: linear-gradient(135deg, rgba(7, 1, 30, 0.95) 0%, rgba(14, 2, 73, 0.85) 55%, rgba(14, 2, 73, 0.65) 100%);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(168, 212, 83, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 212, 83, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero-glow-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  pointer-events: none;
}

.hero-check {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: rgba(168, 212, 83, 0.22);
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Hero section layout — métricas en flujo (no absolute) */
.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 92vh;
  overflow: hidden;
}

.hero-section-inner {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 3.5rem;
  padding-bottom: 2rem;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-section-inner {
    padding-top: 4.5rem;
    padding-bottom: 2.5rem;
  }
}

.hero-content-center {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  width: 100%;
}

.hero-intro {
  width: 100%;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .hero-content-center {
    align-items: center;
    text-align: center;
  }

  .hero-intro {
    text-align: center;
  }

  .hero-intro .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-intro .inline-flex {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Checklist + AC: lado a lado desde tablet */
.hero-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  align-items: start;
  margin-bottom: 1.75rem;
}

.hero-ac-col {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .hero-main-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr);
    gap: 1rem 1.75rem;
    align-items: start;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .hero-ac-col {
    justify-content: flex-end;
    align-self: start;
  }
}

.hero-ac-visual {
  position: relative;
  animation: hero-ac-float 4.5s ease-in-out infinite;
  max-width: 260px;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-ac-visual {
    max-width: 340px;
  }
}

@media (min-width: 1024px) {
  .hero-ac-visual {
    max-width: 400px;
  }
}

.hero-ac-img {
  width: 100%;
  height: auto;
  max-height: 280px;
  display: block;
  object-fit: contain;
  object-position: top center;
  background: transparent;
  filter: drop-shadow(0 22px 35px rgba(0, 0, 0, 0.55));
}

@media (min-width: 640px) {
  .hero-ac-img {
    max-height: none;
  }
}

@keyframes hero-ac-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Métricas: flujo normal debajo del CTA — no lo tapa */
.hero-metrics-bar {
  position: relative;
  z-index: 5;
  flex-shrink: 0;
  margin-top: auto;
  background: rgba(7, 1, 30, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.15rem 0;
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  text-align: center;
  justify-items: center;
}

@media (min-width: 768px) {
  .hero-metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
  }
}

.hero-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.hero-metric-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.1;
}

@media (min-width: 1024px) {
  .hero-metric-value {
    font-size: 1.85rem;
  }
}

.hero-metric-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.hero-services-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
}

@media (min-width: 768px) {
  .hero-services-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .hero-service-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }
}

.hero-service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  padding: 0.65rem 0.5rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-service-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.hero-service-item span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
}

.hero-cta-bar {
  display: flex;
  align-items: stretch;
  max-width: 520px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(251, 192, 97, 0.35);
  background: linear-gradient(135deg, var(--accent) 0%, #f5a623 100%);
}

.hero-cta-phone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
  transition: background 0.25s ease;
}

.hero-cta-phone:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-cta-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  flex-shrink: 0;
  background: #25d366;
  color: #fff;
  font-size: 1.65rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-cta-wa:hover {
  background: #1ebe57;
}

@media (max-width: 480px) {
  .hero-cta-phone span {
    font-size: 0.92rem;
  }
}

/* Hero Lead Form Card */
.lead-form-box {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(14, 2, 73, 0.35);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.lead-form-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary));
  background-size: 200% 100%;
  animation: barGradient 4s linear infinite;
}

@keyframes barGradient {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  background-color: #f8fafc;
  color: #1e293b;
  transition: all 0.25s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--secondary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(168, 212, 83, 0.18);
}

/* Primary Action Button */
.btn-cta-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #f5a623 100%);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 28px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(251, 192, 97, 0.4);
}

.btn-cta-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(251, 192, 97, 0.55);
}

.btn-cta-green {
  background: linear-gradient(135deg, var(--secondary) 0%, #8ebd35 100%);
  color: var(--primary);
  font-weight: 800;
  padding: 14px 26px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(168, 212, 83, 0.35);
}

.btn-cta-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(168, 212, 83, 0.5);
  background: #ffffff;
}

/* Client Showcase & Marquee */
.client-logo-card {
  background: #ffffff;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  height: 85px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.35s ease;
}

.client-logo-card img {
  max-height: 48px;
  max-width: 135px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.65);
  transition: all 0.35s ease;
}

.client-logo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 212, 83, 0.4);
  box-shadow: 0 12px 30px rgba(14, 2, 73, 0.08);
}

.client-logo-card:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.08);
}

/* Continuous Infinite Marquee */
.marquee-container {
  overflow: hidden;
  user-select: none;
  position: relative;
  width: 100%;
}

.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(90deg, #f8fafc 0%, transparent 100%);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(-90deg, #f8fafc 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: marquee-run 35s linear infinite;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-run {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Service Card Styles */
.service-card-modern {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  padding: 32px 28px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card-modern::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card-modern:hover {
  transform: translateY(-8px);
  border-color: rgba(168, 212, 83, 0.4);
  box-shadow: 0 20px 45px rgba(14, 2, 73, 0.08);
}

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

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(14, 2, 73, 0.05);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.service-card-modern:hover .service-icon-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--secondary);
  transform: scale(1.06);
}

/* Interactive Calculator Box */
.calc-card {
  background: linear-gradient(135deg, #0e0249 0%, #15065e 100%);
  border-radius: 24px;
  border: 1px solid rgba(168, 212, 83, 0.25);
  color: #ffffff;
  box-shadow: 0 25px 60px rgba(14, 2, 73, 0.25);
}

.calc-option-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 600;
  text-align: center;
}

.calc-option-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--secondary);
}

.calc-option-btn.active {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
  box-shadow: 0 0 20px rgba(168, 212, 83, 0.4);
}

/* Main Website Bridge Card */
.bridge-card {
  background: linear-gradient(135deg, #07011e 0%, #0e0249 70%, #1b0975 100%);
  border-radius: 28px;
  border: 1px solid rgba(168, 212, 83, 0.3);
  position: relative;
  overflow: hidden;
}

.bridge-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 212, 83, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Video Section */
.video-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: #000;
}

/* Footer & Footer Logo Fix */
.footer-dark {
  background: linear-gradient(180deg, #07011e 0%, #050117 100%);
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo-container {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.footer-logo-container:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--secondary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.footer-logo-container img {
  max-height: 58px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* Floating WhatsApp Button */
.wa-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wa-floating-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.7);
}

.wa-floating-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  z-index: -1;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-gradient {
    padding-top: 100px;
  }
  .client-logo-card {
    min-width: 140px;
    height: 75px;
    padding: 12px 16px;
  }
  .marquee-track {
    gap: 1rem;
  }
}
