/* Lumen Solar - Rediseño Completo Ampliado */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --navy: #0a0d12;
  --surface: #10141b;
  --surface-card: rgba(22, 28, 36, 0.75);
  --lime-accent: #e2f89c;
  --yellow-pill: #f3f6dc;
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --line-dark: rgba(255, 255, 255, 0.12);
  --max-width: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text-light);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* ── HEADER ─────────────────────────────────────── */
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10, 13, 18, 0.85) 0%, transparent 100%);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font: 800 21px "Manrope", sans-serif;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}
.brand i {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--lime-accent);
  margin-right: 10px;
  box-shadow: 0 0 16px var(--lime-accent);
}
.brand span { font-weight: 400; color: rgba(255,255,255,0.6); margin-left: 4px; }
header nav { display: flex; gap: 32px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.7); }
header nav a { transition: color 0.25s; }
header nav a:hover { color: white; }
.nav-cta {
  background: white;
  color: var(--navy);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  transition: all 0.25s;
}
.nav-cta:hover {
  background: var(--lime-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(226, 248, 156, 0.3);
}

/* ── HERO ───────────────────────────────────────── */
.hero-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: url('dusk-house.jpg') center/cover no-repeat;
  padding-top: 130px;
  padding-bottom: 50px;
}
.hero-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,13,18,0.7) 0%, rgba(10,13,18,0.2) 40%, rgba(10,13,18,0.95) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 4vw;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -3.5px;
  max-width: 900px;
  margin-bottom: 12px;
  color: white;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero-content h1 span {
  font-family: "DM Serif Display", serif;
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.95);
}

.toggle-pill-card {
  margin: 40px 0 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 6px;
  display: inline-flex;
  gap: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.toggle-tab {
  padding: 14px 36px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.toggle-tab small { font-size: 9px; opacity: 0.75; font-weight: 600; }
.toggle-tab.active {
  background: var(--yellow-pill);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.toggle-tab.active small { color: rgba(10, 13, 18, 0.8); }

.hero-caption {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  line-height: 1.65;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-bottom-bar {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 4vw;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 30px;
}
.hero-stat-item { text-align: center; }
.hero-stat-item b { font-size: 32px; font-weight: 800; color: white; display: block; letter-spacing: -1px; }
.hero-stat-item span { font-size: 11px; color: rgba(255,255,255,0.65); font-weight: 600; }

/* ── MARQUEE STRIP ───────────────────────────────── */
.marquee-strip {
  background: var(--surface);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  padding: 16px 0;
  display: flex;
}
.marquee-track {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  animation: marquee-anim 30s linear infinite;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-muted);
}
.marquee-track b { color: var(--lime-accent); }
@keyframes marquee-anim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── SECCIÓN SOLUCIONES ─────────────────────────── */
.solutions-wrapper { background: var(--navy); color: white; }
.solutions { max-width: var(--max-width); margin: 0 auto; padding: 110px 4vw; }
.section-head {
  display: grid;
  grid-template-columns: 0.5fr 1.2fr 0.8fr;
  align-items: end;
  gap: 36px;
  margin-bottom: 60px;
}
.section-head h2 { font: 700 clamp(36px, 4.4vw, 62px)/0.95 "Manrope", sans-serif; letter-spacing: -2.5px; margin: 12px 0 0; }
.section-head h2 em { font-family: "DM Serif Display", serif; font-style: italic; font-weight: 400; color: var(--lime-accent); }
.section-head p { font-size: 13px; line-height: 1.7; color: var(--text-muted); }

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.solution-grid article {
  background: var(--surface-card);
  border: 1px solid var(--line-dark);
  padding: 38px 30px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(10px);
}
.solution-grid article:hover {
  transform: translateY(-8px);
  border-color: rgba(226, 248, 156, 0.4);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.solution-grid article.featured {
  border-top: 3px solid var(--lime-accent);
  background: linear-gradient(180deg, rgba(226, 248, 156, 0.08) 0%, var(--surface-card) 100%);
}
.solution-grid > article > span { font: 800 10px "Manrope", sans-serif; color: var(--lime-accent); letter-spacing: 1.5px; }

.line-art {
  height: 130px;
  margin: 24px 0;
  display: grid;
  place-items: center;
  font: 300 70px "DM Serif Display", serif;
  color: var(--lime-accent);
  border: 1px solid var(--line-dark);
  background: rgba(10, 13, 18, 0.5);
}
.solution-grid h3 { font: 700 26px "Manrope", sans-serif; margin: 0 0 12px; color: white; }
.solution-grid p { font-size: 12px; line-height: 1.7; color: var(--text-muted); margin: 0; }
.solution-grid a {
  margin-top: auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--lime-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 20px;
}

/* ── TECNOLOGÍA ─────────────────────────────────── */
.tech-wrapper { background: var(--surface); color: white; border-top: 1px solid var(--line-dark); }
.tech-section { max-width: var(--max-width); margin: 0 auto; padding: 110px 4vw; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tech-card {
  background: var(--surface-card);
  border: 1px solid var(--line-dark);
  padding: 36px;
  border-radius: 12px;
  transition: transform 0.3s;
}
.tech-card:hover { transform: translateY(-6px); border-color: rgba(226, 248, 156, 0.3); }
.tech-icon { font-size: 32px; margin-bottom: 20px; }
.tech-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: white; }
.tech-card p { font-size: 12px; color: var(--text-muted); line-height: 1.7; }

/* ── CASOS DE ÉXITO ──────────────────────────────── */
.cases-wrapper { background: var(--navy); color: white; border-top: 1px solid var(--line-dark); }
.cases-section { max-width: var(--max-width); margin: 0 auto; padding: 110px 4vw; }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.case-card {
  background: var(--surface-card);
  border: 1px solid var(--line-dark);
  padding: 40px;
  border-radius: 16px;
}
.case-tag { font-size: 9px; font-weight: 800; letter-spacing: 1.5px; color: var(--lime-accent); }
.case-card h3 { font-size: 26px; font-weight: 700; margin: 12px 0 24px; }
.case-metrics {
  display: flex;
  gap: 40px;
  padding: 20px 0;
  border-block: 1px solid var(--line-dark);
  margin-bottom: 20px;
}
.case-metrics small { font-size: 9px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); display: block; }
.case-metrics b { font-size: 22px; color: white; margin-top: 4px; display: block; }
.case-metrics b.highlight { color: var(--lime-accent); }
.case-card p { font-size: 12px; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* ── CALCULADORA ────────────────────────────────── */
.calculator-wrapper { background: var(--surface); color: white; border-top: 1px solid var(--line-dark); }
.calculator {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 110px 4vw;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 6vw;
  align-items: center;
}
.calculator h2 { font: 700 clamp(38px, 4.4vw, 66px)/0.95 "Manrope", sans-serif; letter-spacing: -2.5px; margin: 16px 0 20px; }
.calculator h2 em { font-family: "DM Serif Display", serif; font-style: italic; font-weight: 400; color: var(--lime-accent); }
.calculator-copy p { max-width: 480px; line-height: 1.75; font-size: 14px; color: var(--text-muted); }

.calculator-card {
  background: var(--surface-card);
  border: 1px solid var(--line-dark);
  padding: 44px;
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
}
.calculator-card label { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--lime-accent); }
.amount { font: 800 56px "Manrope", sans-serif; letter-spacing: -3px; margin: 14px 0 20px; color: white; }
.amount small { font-size: 14px; letter-spacing: 0; font-weight: 600; color: var(--text-muted); }
.calculator-card input {
  width: 100%;
  accent-color: var(--lime-accent);
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  cursor: pointer;
}
.range-labels { display: flex; justify-content: space-between; font-size: 9px; font-weight: 700; color: var(--text-muted); margin-top: 10px; }

.results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 32px 0;
  padding: 22px 0;
  border-block: 1px solid var(--line-dark);
}
.results article { display: flex; flex-direction: column; }
.results article + article { padding-left: 20px; border-left: 1px solid var(--line-dark); }
.results span { font-size: 9px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; }
.results strong { font: 800 28px "Manrope", sans-serif; margin-top: 6px; color: var(--lime-accent); letter-spacing: -1px; }

.button-calc {
  width: 100%;
  padding: 16px;
  border-radius: 999px;
  background: var(--lime-accent);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  display: block;
  transition: all 0.25s;
}
.button-calc:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(226, 248, 156, 0.35);
}

/* ── PROCESO ────────────────────────────────────── */
.process-wrapper { background: var(--navy); color: white; border-top: 1px solid var(--line-dark); }
.process { max-width: var(--max-width); margin: 0 auto; padding: 110px 4vw; }
.process .section-head { grid-template-columns: 0.5fr 1.5fr; }
.process ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.process li {
  display: grid;
  grid-template-columns: 130px 1fr;
  min-height: 110px;
  align-items: center;
  border-bottom: 1px solid var(--line-dark);
  padding: 20px 0;
}
.process li > b { font: 800 11px "Manrope", sans-serif; color: var(--lime-accent); letter-spacing: 2px; }
.process li div { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.process h3 { font: 700 24px "Manrope", sans-serif; margin: 0; color: white; }
.process p { max-width: 400px; font-size: 12px; color: var(--text-muted); line-height: 1.7; margin: 0; }

/* ── FAQ ACCORDION ──────────────────────────────── */
.faq-wrapper { background: var(--surface); color: white; border-top: 1px solid var(--line-dark); }
.faq-section { max-width: var(--max-width); margin: 0 auto; padding: 110px 4vw; }
.faq-grid { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.faq-question i {
  font-style: normal;
  font-size: 20px;
  color: var(--lime-accent);
  transition: transform 0.3s;
}
.faq-answer {
  padding: 0 30px 24px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-muted);
  display: none;
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question i { transform: rotate(45deg); }

/* ── FOOTER ─────────────────────────────────────── */
footer {
  background: #06080b;
  color: white;
  border-top: 1px solid var(--line-dark);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 110px;
  padding: 30px 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}
footer p { color: var(--text-muted); margin: 0; }
footer a { color: var(--lime-accent); font-weight: 700; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  header nav { display: none; }
  .hero-content h1 { font-size: 42px; }
  .hero-bottom-bar { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .toggle-tab { padding: 12px 24px; font-size: 12px; }
  .section-head, .calculator { grid-template-columns: 1fr; }
  .section-head h2 { grid-column: auto; }
  .solution-grid, .tech-grid, .cases-grid { grid-template-columns: 1fr; }
  .calculator { padding: 75px 4vw; gap: 30px; }
  .calculator-card { padding: 28px 20px; }
  .process li { grid-template-columns: 50px 1fr; }
  .process li div { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
}
