/* ==========================================================================
   LM ENERGÍA - Design System & Clean Tech Aesthetic
   ========================================================================== */

:root {
  --bg-dark: #070d18;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-active: rgba(16, 185, 129, 0.4);
  
  --primary-emerald: #10b981;
  --primary-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-cyan: #06b6d4;
  --solar-amber: #f59e0b;
  --solar-amber-glow: rgba(245, 158, 11, 0.3);
  
  --text-white: #ffffff;
  --text-slate: #cbd5e1;
  --text-muted: #94a3b8;
  
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.12) 0%, transparent 40%),
              radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 15% 70%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
              var(--bg-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #a7f3d0 70%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-solar {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 60%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #34d399;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 13, 24, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 16px 0;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-white);
}

.logo-img {
  height: 48px;
  width: auto;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.logo-title span {
  color: var(--primary-emerald);
}

.header-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-slate);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
}

.btn-header-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-header-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  max-width: 950px;
  margin: 0 auto 20px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-slate);
  max-width: 780px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 50px;
}

.hero-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 20px 16px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
}

.hero-stat-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-emerald);
}

.hero-stat-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ==========================================================================
   Interactive Calculator Section (Core Engine)
   ========================================================================== */
.calculator-section {
  padding: 40px 0 90px;
}

.calc-card-main {
  background: var(--bg-card);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
}

@media (max-width: 960px) {
  .calc-card-main {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 36px;
  }
}

.calc-control-group {
  margin-bottom: 32px;
}

.calc-label-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.calc-label {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-white);
}

.calc-val-pill {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--solar-amber);
}

/* Custom Slider */
.bill-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(to right, #10b981 30%, #1e293b 30%);
  outline: none;
  cursor: pointer;
  margin: 16px 0 8px;
}

.bill-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #10b981;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.bill-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Tariff Pills */
.tariff-pills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.tariff-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-slate);
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.tariff-pill:hover {
  background: rgba(255, 255, 255, 0.08);
}

.tariff-pill.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--primary-emerald);
  color: #34d399;
}

/* State Select */
.calc-select {
  width: 100%;
  padding: 14px 16px;
  background: #0f172a;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-size: 1rem;
  font-family: inherit;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.calc-select:focus {
  border-color: var(--primary-emerald);
}

/* Results Display Box */
.calc-results-box {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.result-main-banner {
  background: rgba(16, 185, 129, 0.1);
  border: 1px dashed rgba(16, 185, 129, 0.4);
  padding: 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  margin-bottom: 24px;
}

.result-banner-lbl {
  font-size: 0.85rem;
  color: var(--text-slate);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result-banner-val {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: #34d399;
  line-height: 1.1;
  margin: 4px 0;
}

.result-banner-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.results-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.metric-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 14px;
  border-radius: var(--radius-sm);
}

.metric-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-number {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-white);
}

.metric-number.highlight-amber {
  color: var(--solar-amber);
}

/* Action Buttons */
.btn-cta-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #25d366 0%, #16a34a 100%);
  color: white;
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
  margin-bottom: 12px;
}

.btn-cta-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

.btn-secondary-lead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-slate);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary-lead:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
}

/* ==========================================================================
   Trust & Value Proposition (Turnkey Section)
   ========================================================================== */
.turnkey-section {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.5) 100%);
}

.section-header-center {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-slate);
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-emerald);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-slate);
  line-height: 1.6;
}

/* ==========================================================================
   4-Step Process Section
   ========================================================================== */
.process-section {
  padding: 80px 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  position: relative;
}

.process-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  position: relative;
}

.process-step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  position: absolute;
  top: 12px;
  right: 18px;
  line-height: 1;
}

.process-step-title {
  font-size: 1.15rem;
  color: var(--primary-emerald);
  margin-bottom: 10px;
}

.process-step-desc {
  font-size: 0.9rem;
  color: var(--text-slate);
}

/* ==========================================================================
   Equipment Showcase & Tier 1 Brands
   ========================================================================== */
.brands-section {
  padding: 50px 0;
  text-align: center;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: rgba(15, 23, 42, 0.4);
}

.brands-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.brands-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-slate);
}

.brand-item {
  opacity: 0.75;
  transition: opacity 0.2s;
}

.brand-item:hover {
  opacity: 1;
  color: #fff;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 80px 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--text-slate);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Lead Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-slate);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-slate);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: #080d1a;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary-emerald);
}

.btn-modal-submit {
  width: 100%;
  padding: 16px;
  background: var(--primary-emerald);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 10px;
  transition: var(--transition);
}

.btn-modal-submit:hover {
  background: #059669;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Footer & Floating WhatsApp
   ========================================================================== */
.site-footer {
  padding: 60px 0 30px;
  background: #040811;
  border-top: 1px solid var(--border-glass);
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-slate);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary-emerald);
}

.whatsapp-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 62px;
  height: 62px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
  z-index: 99;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.whatsapp-floating-btn:hover {
  transform: scale(1.1);
}
