/* ============================================================
   Atlántica Solar — Landing Page (v2)
   ============================================================ */

:root {
  --navy: #03245A;
  --navy-dark: #021A3F;
  --orange: #F06918;
  --orange-soft: #F4A261;
  --gray-text: #2D3436;
  --gray-light: #64748B;
  --gray-line: #E2E8F0;
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(3, 36, 90, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-line);
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
  overflow: visible;
}

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

.logo {
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-primary:hover {
  background: #d95a0f;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(240, 105, 24, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.7);
}

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

.btn-whatsapp {
  background: #25D366;
  color: white;
  padding: 10px 18px;
  font-size: 14px;
}

.btn-whatsapp:hover {
  background: #1ebe57;
}

.btn-large {
  padding: 16px 32px;
  font-size: 17px;
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 60%, #0a3a6e 100%);
  color: white;
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: white;
  clip-path: ellipse(70% 100% at 50% 100%);
}

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

.hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-soft);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--orange);
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 80px 0;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: 10px;
}

.section-sub {
  color: var(--gray-light);
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 560px;
}

/* ---------- INVERSIÓN ---------- */
.inversion {
  background: white;
}

.inversion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.inversion-card {
  background: var(--bg-light);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
}

.inv-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--orange);
  line-height: 1.1;
}

.inv-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inversion-card p {
  font-size: 0.9rem;
  color: var(--gray-light);
  line-height: 1.5;
}

.inversion-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.inversion-text h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.inversion-text ul {
  list-style: none;
  margin-bottom: 20px;
}

.inversion-text li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  font-size: 0.98rem;
  color: var(--gray-text);
  line-height: 1.55;
}

.inversion-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
}

.inversion-text .note {
  font-size: 0.95rem;
  color: var(--gray-light);
  background: var(--bg-light);
  padding: 14px 16px;
  border-radius: 8px;
  border-left: 3px solid var(--orange);
}

.inversion-image img {
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.finance-box {
  margin-top: 36px;
  background: var(--navy);
  color: white;
  border-radius: 12px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.finance-box h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.finance-box p {
  color: #cbd5e1;
  font-size: 0.98rem;
  max-width: 640px;
}

.finance-tag {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

@media (max-width: 800px) {
  .finance-box {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

/* ---------- PILLARS ---------- */
.pillars {
  background: var(--bg-light);
}

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

.pillar-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(3, 36, 90, 0.1);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  background: rgba(240, 105, 24, 0.1);
  color: var(--orange);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pillar-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.pillar-card p {
  font-size: 0.95rem;
  color: var(--gray-light);
  line-height: 1.55;
}

/* ---------- STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.step-num {
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.step h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.step p {
  font-size: 0.95rem;
  color: var(--gray-light);
  line-height: 1.55;
}

.how-image img {
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

/* ---------- TIPOS DE SISTEMA ---------- */
.sistemas {
  background: white;
}

.sistemas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.sistema-card {
  background: var(--bg-light);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.sistema-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(240, 105, 24, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.sistema-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.sistema-card p {
  font-size: 0.95rem;
  color: var(--gray-light);
  line-height: 1.55;
  margin-bottom: 14px;
}

.sistema-card ul {
  list-style: none;
  margin-top: auto;
}

.sistema-card li {
  font-size: 0.9rem;
  color: var(--gray-text);
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}

.sistema-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--navy);
  border-radius: 50%;
}

/* ---------- SEGMENTOS ---------- */
.segmentos {
  background: var(--bg-light);
}

.segmentos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.segmento-card {
  background: white;
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}

.segmento-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.segmento-card p {
  font-size: 0.9rem;
  color: var(--gray-light);
  line-height: 1.5;
}

/* ---------- CTA FINAL ---------- */
.cta-final {
  background: var(--navy);
  color: white;
  padding: 70px 0;
  text-align: center;
}

.cta-final h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.cta-final p {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-bottom: 28px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy-dark);
  color: #94a3b8;
  padding-top: 48px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 36px;
}

.footer-logo {
  height: 52px;
  margin-bottom: 12px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  object-fit: contain;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-contact p {
  color: white;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-contact a {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- FLOATING WHATSAPP ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .sistemas-grid,
  .segmentos-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .inversion-grid {
    grid-template-columns: 1fr;
  }
  .inversion-content {
    grid-template-columns: 1fr;
  }
  .inversion-image {
    order: -1;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .logo {
    height: 48px;
    max-width: 180px;
  }

  .sistemas-grid,
  .segmentos-grid {
    grid-template-columns: 1fr;
  }

  .btn-header {
    padding: 8px 14px;
    font-size: 13px;
  }

  .hero {
    padding: 56px 0 70px;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .btn-secondary {
    color: white;
    border-color: rgba(255,255,255,0.75);
  }

  .section {
    padding: 56px 0;
  }

  .cta-final {
    padding: 56px 0;
  }

  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 54px;
    height: 54px;
  }
}
