/* ================================================================
   ENERGÍA SOLAR — CSS dedicado
   Paleta: azul marca #093b9b · verde marca #99cc01
           ámbar solar #F59E0B · naranja solar #F97316
   ================================================================ */

/* ── Hero ─────────────────────────────────────────────────────── */
.solar-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url("../public/assets/energia-solar-hero.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: "Montserrat", sans-serif;
  overflow: hidden;
}

.solar-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.75) 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

.solar-hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding: 2rem;
}

.solar-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 20px;
  border-radius: 50px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  animation: fadeSlideDown 0.8s ease-out both;
}

.solar-hero-badge svg {
  flex-shrink: 0;
}

.solar-hero h1 {
  font-size: 3.8rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  animation: fadeSlideDown 0.8s 0.15s ease-out both;
}

.solar-hero h1 span {
  color: #F59E0B;
}

.solar-hero .hero-subtitle {
  font-size: 1.25rem;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  animation: fadeSlideDown 0.8s 0.3s ease-out both;
}

.solar-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fadeSlideDown 0.8s 0.45s ease-out both;
}

.solar-hero-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px rgba(245, 158, 11, 0.55);
}

/* ── Beneficios strip ─────────────────────────────────────────── */
.solar-benefits-strip {
  display: flex;
  justify-content: center;
  gap: 0;
  background: #093b9b;
  font-family: "Montserrat", sans-serif;
  flex-wrap: wrap;
}

.solar-benefit-item {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 30px;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.3s ease;
}

.solar-benefit-item:last-child {
  border-right: none;
}

.solar-benefit-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.solar-benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.solar-benefit-icon svg {
  width: 24px;
  height: 24px;
  color: #F59E0B;
}

.solar-benefit-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 3px;
}

.solar-benefit-text p {
  font-size: 0.78rem;
  margin: 0;
  opacity: 0.8;
  line-height: 1.4;
}

/* ── Secciones de producto (paneles / termotanques) ───────────── */
.solar-section {
  padding: 80px 5%;
  font-family: "Montserrat", sans-serif;
}

.solar-section-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.solar-section.reverse .solar-section-inner {
  flex-direction: row-reverse;
}

.solar-section-img {
  flex: 1;
  min-width: 0;
}

.solar-section-img img {
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.solar-section-img img:hover {
  transform: scale(1.03);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.solar-section-text {
  flex: 1;
  min-width: 0;
}

.solar-section-tag {
  display: inline-block;
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.solar-section-text h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.solar-section-text h2 span {
  color: #093b9b;
}

.solar-section-text .section-desc {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Feature list */
.solar-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.solar-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

.solar-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #99cc01;
}

/* CTA inline */
.solar-section-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.solar-section-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.solar-section-cta img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* ── Sección "Cómo funciona" ──────────────────────────────────── */
.solar-how-it-works {
  background: linear-gradient(180deg, #f8f9fa 0%, #eef1f5 100%);
  padding: 80px 5%;
  font-family: "Montserrat", sans-serif;
  text-align: center;
}

.solar-how-it-works h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 0.5rem;
}

.solar-how-it-works .hiw-subtitle {
  font-size: 1.05rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hiw-steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.hiw-step {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.hiw-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

.hiw-step-number {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #F59E0B, #F97316);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.hiw-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.5rem;
}

.hiw-step p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ── CTA Section ──────────────────────────────────────────────── */
.solar-cta-section {
  background: #093b9b;
  padding: 70px 5%;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  position: relative;
  overflow: hidden;
}

.solar-cta-section::before {
  display: none;
}

.solar-cta-content {
  position: relative;
  z-index: 2;
}

.solar-cta-section h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.solar-cta-section p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.solar-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #093b9b;
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.solar-cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
}

/* ── Sección backgrounds alternados ───────────────────────────── */
.solar-section.bg-light {
  background: #ffffff;
}

.solar-section.bg-warm {
  background: linear-gradient(180deg, #fffbeb 0%, #fff7e0 100%);
}

/* ── Animaciones ──────────────────────────────────────────────── */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.solar-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.solar-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media screen and (max-width: 900px) {
  .solar-section-inner,
  .solar-section.reverse .solar-section-inner {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .solar-section-img img {
    max-width: 100%;
  }

  .solar-features {
    align-items: center;
  }

  .solar-hero h1 {
    font-size: 2.8rem;
  }

  .solar-benefits-strip {
    flex-direction: column;
  }

  .solar-benefit-item {
    max-width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .solar-benefit-item:last-child {
    border-bottom: none;
  }

  .hiw-steps {
    gap: 20px;
  }
}

@media screen and (max-width: 600px) {
  .solar-hero {
    min-height: 75vh;
    background-attachment: scroll;
  }

  .solar-hero h1 {
    font-size: 2rem;
  }

  .solar-hero .hero-subtitle {
    font-size: 1rem;
  }

  .solar-section {
    padding: 50px 5%;
  }

  .solar-section-text h2 {
    font-size: 1.9rem;
  }

  .solar-how-it-works {
    padding: 50px 5%;
  }

  .solar-how-it-works h2 {
    font-size: 1.9rem;
  }

  .solar-cta-section h2 {
    font-size: 1.9rem;
  }

  .solar-cta-section {
    padding: 50px 5%;
  }
}

@media screen and (max-width: 480px) {
  .solar-hero h1 {
    font-size: 1.7rem;
  }

  .solar-hero .hero-subtitle {
    font-size: 0.9rem;
  }

  .solar-hero-cta {
    font-size: 0.9rem;
    padding: 12px 24px;
  }

  .solar-section-text h2 {
    font-size: 1.6rem;
  }

  .solar-section-text .section-desc {
    font-size: 0.95rem;
  }

  .solar-features li {
    font-size: 0.88rem;
  }

  .hiw-step {
    min-width: 100%;
  }

  .solar-cta-section h2 {
    font-size: 1.6rem;
  }
}
