/*
Theme Name: Paneles Solares
Theme URI: https://example.com
Author: Sergio
Description: Landing page para empresa de paneles solares - estilo moderno y profesional
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: paneles-solares
*/

/* ═══════════════════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════════════════ */
:root {
  --primary:        #F97316;
  --primary-dark:   #EA580C;
  --primary-light:  #FED7AA;
  --secondary:      #0F172A;
  --secondary-mid:  #1E293B;
  --accent:         #22C55E;
  --text:           #1E293B;
  --text-muted:     #64748B;
  --bg:             #FFFFFF;
  --bg-light:       #F8FAFC;
  --bg-dark:        #0F172A;
  --border:         #E2E8F0;
  --radius:         12px;
  --radius-lg:      20px;
  --shadow:         0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:      0 8px 48px rgba(0,0,0,0.14);
  --font:           'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width:      1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

/* ═══════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════ */
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { font-size: 1.05rem; color: var(--text-muted); }

.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.section-title { margin-bottom: 16px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(249,115,22,0.35);
}

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

.btn-white {
  background: #fff;
  color: var(--primary-dark);
}
.btn-white:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ═══════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.site-header.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--secondary);
}

.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--primary); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-whatsapp {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #25D366;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 60%, #0F4C81 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.2);
  border: 1px solid rgba(249,115,22,0.4);
  color: #FED7AA;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
}

.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 span { color: var(--primary); }

.hero-subtitle {
  color: #94A3B8;
  font-size: 1.15rem;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

.trust-label {
  font-size: 0.82rem;
  color: #94A3B8;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  backdrop-filter: blur(8px);
}

.hero-card-title {
  color: #94A3B8;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.hero-card-value {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
}

.hero-card-value span {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  margin-left: 8px;
}

.hero-card-sub {
  font-size: 0.82rem;
  color: #64748B;
  margin-top: 4px;
}

.card-solar-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════════ */
.stats-bar {
  padding: 0;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
}

.stat-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

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

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   BENEFITS
═══════════════════════════════════════════════════ */
.benefits { background: var(--bg); }

.benefits-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 64px;
}

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

.benefit-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.25s ease;
}

.benefit-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.benefit-icon {
  width: 52px; height: 52px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.benefit-card h3 { margin-bottom: 10px; color: var(--secondary); }
.benefit-card p  { font-size: 0.95rem; }

/* ═══════════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════════ */
.process { background: var(--bg-dark); color: #fff; }

.process .section-title { color: #fff; }
.process .section-subtitle { color: #94A3B8; }
.process .section-label { background: rgba(249,115,22,0.2); color: var(--primary); }

.process-header { margin-bottom: 64px; }

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

.process-grid::before {
  content: '';
  position: absolute;
  top: 40px; left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 16px;
}

.step-number {
  width: 52px; height: 52px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}

.step-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.process-step h3 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.process-step p { color: #94A3B8; font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════
   SAVINGS CALCULATOR BANNER
═══════════════════════════════════════════════════ */
.savings-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 64px 0;
}

.savings-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.savings-banner h2 { color: #fff; }
.savings-banner p  { color: rgba(255,255,255,0.8); margin-top: 12px; }

/* ═══════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════ */
.testimonials { background: var(--bg-light); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.stars {
  color: #FBBF24;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 24px;
  font-style: italic;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.author-name { font-weight: 700; font-size: 0.95rem; }
.author-city { font-size: 0.82rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════ */
.faq { background: var(--bg); }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--secondary);
  background: var(--bg-light);
  transition: background 0.2s;
}
.faq-question:hover { background: var(--primary-light); }

.faq-toggle { font-size: 1.2rem; color: var(--primary); transition: transform 0.3s; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 16px 24px 20px; }
.faq-answer p { font-size: 0.95rem; }

/* ═══════════════════════════════════════════════════
   FINAL CTA
═══════════════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
  padding: 100px 0;
  text-align: center;
  color: #fff;
}

.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p  { color: #94A3B8; font-size: 1.1rem; max-width: 540px; margin: 0 auto 40px; }

.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.site-footer {
  background: #060C17;
  color: #94A3B8;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; }

.footer-col h4 { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.05em; text-transform: uppercase; }

.footer-col a {
  display: block;
  color: #64748B;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social { display: flex; gap: 12px; }

.social-icon {
  width: 36px; height: 36px;
  background: #1E293B;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #94A3B8;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.social-icon:hover { background: var(--primary); color: #fff; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .benefits-header { grid-template-columns: 1fr; gap: 24px; }
  .benefits-grid   { grid-template-columns: 1fr 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }

  .nav-menu, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: #fff;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .hero { padding: 110px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }

  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid::before { display: none; }

  .benefits-grid       { grid-template-columns: 1fr; }
  .testimonials-grid   { grid-template-columns: 1fr; }
  .faq-grid            { grid-template-columns: 1fr; }

  .savings-inner { grid-template-columns: 1fr; text-align: center; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid   { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .cta-actions  { flex-direction: column; align-items: center; }
}
