/* 
   Solar Panel Sparkle - Stylesheet
   Designed for future migration to Elementor 
*/

:root {
  --primary: #0A369D; /* Deep Trust Blue */
  --primary-light: #3D70F1;
  --secondary: #F6AA1C; /* Solar Sun Gold */
  --secondary-hover: #D99516;
  --text-dark: #2C3539;
  --text-muted: #5E6973;
  --bg-light: #F7F9FC;
  --white: #FFFFFF;
  --border-color: #E2E8F0;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
  --border-radius: 12px;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--primary);
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 0;
}

/* Base Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--secondary);
  color: #fff;
  border: 2px solid var(--secondary);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

/* Header */
.site-header {
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-light);
}

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 80vh;
  padding: 4rem 5%;
  background-image: linear-gradient(rgba(10, 54, 157, 0.8), rgba(10, 54, 157, 0.4)), url('assets/hero_solar_panels_1775349578394.png');
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero-content {
  max-width: 650px;
}

.hero h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  font-weight: 400;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-white {
  background-color: var(--white);
  color: var(--primary);
  border: 2px solid var(--white);
}

.btn-white:hover {
  background-color: transparent;
  color: var(--white);
}

/* Sections Global */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Problem Section */
.problem-section {
  background-color: var(--white);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.image-rounded {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.problem-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.problem-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.checklist {
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.checklist li::before {
  content: "✗";
  color: #E63946;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Benefits */
.benefits-section {
  background-color: var(--bg-light);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  padding: 2.5rem 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(246, 170, 28, 0.1);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
  background-color: var(--white);
}

.steps {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.step-item {
  text-align: center;
  max-width: 300px;
}

.step-num {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit';
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step-item h3 {
  margin-bottom: 0.5rem;
}

/* Before / After & Services */
.impact-section {
  background-color: var(--primary);
  color: var(--white);
}

.impact-section h2, .impact-section p {
  color: var(--white);
}

.services-list {
  list-style: none;
}

.services-list li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.services-list li::before {
  content: "✓";
  color: var(--secondary);
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(246, 170, 28, 0.2);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* FAQ */
.faq-section {
  background-color: var(--bg-light);
}

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

.faq-item {
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem;
  max-height: 300px; /* arbitrary max height for transition */
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* CTA Footer */
.final-cta {
  text-align: center;
  padding: 5rem 2rem;
  background-color: #0bd5ec;
  background-image: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
}

.final-cta h2 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.final-cta p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.footer {
  background-color: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .grid-2, .grid-4 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem !important;
  }
  
  .hamburger {
    display: flex !important;
  }
  
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 0;
    box-shadow: var(--shadow-sm);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    align-items: center;
  }
  
  .nav-links.active {
    max-height: 400px; /* Suficiente para los enlaces */
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
  }
  
  .hero-split {
      padding: 3rem 1rem !important;
  }
  
  .hero {
    min-height: 60vh;
  }
  
  .problem-image {
      margin-top: 2rem;
  }
}
