/* ==========================================================================
   Panel Solar Caracas - Design System & Stylesheet
   Inspired by EnergySage layout architecture. Zero external trackers.
   ========================================================================== */

:root {
  --primary-navy: #1b1763;
  --primary-blue: #2e46b9;
  --accent-orange: #ff9133;
  --accent-orange-hover: #e07a22;
  --bg-light-blue: #ddedff;
  --bg-gradient-blue: linear-gradient(130deg, #ddedff 0%, #85b2ff 100%);
  --bg-dark-radial: radial-gradient(100% 150% at 0% 0%, #4a62d4 0%, #1b1763 100%);
  --text-dark: #222633;
  --text-muted: #515362;
  --text-light: #ffffff;
  --bg-card: #ffffff;
  --border-light: #eaecf4;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(27, 23, 99, 0.08);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.12);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1280px;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-dark);
  background-color: #f8fafc;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

/* --- Top Announcement Bar --- */
.top-bar {
  background: linear-gradient(90deg, #f4df83, #ffaa66);
  color: var(--primary-navy);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  padding: 0.5rem 1rem;
}
.top-bar strong {
  color: #000;
  text-decoration: underline;
}

/* --- Navigation Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.5px;
}
.brand-logo svg {
  color: var(--accent-orange);
}

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

.nav-link {
  font-weight: 600;
  color: var(--primary-navy);
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--accent-orange);
  transition: var(--transition-fast);
}
.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary {
  background-color: var(--accent-orange);
  color: #ffffff;
}
.btn-primary:hover {
  background-color: var(--accent-orange-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

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

/* --- Hero Section --- */
.hero-section {
  position: relative;
  background: var(--bg-dark-radial);
  color: #ffffff;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

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

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.hero-search-card {
  background: #ffffff;
  color: var(--text-dark);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-search-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.hero-search-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(46, 70, 185, 0.15);
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-wrapper img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.badge-trust {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(27, 23, 99, 0.9);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge-trust .number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-orange);
}

.badge-trust .text {
  font-size: 0.85rem;
  line-height: 1.2;
}

/* --- Impact Metrics Banner --- */
.impact-banner {
  background-color: #ffffff;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-light);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.impact-item h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.25rem;
}

.impact-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- Solutions Grid / Cards Section --- */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
}

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

.card-img-container {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-fast);
}

.card:hover .card-img-container img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
}

.card-body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-link {
  font-weight: 700;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card-link:hover {
  color: var(--primary-navy);
}

/* --- Features & Why Choose Us --- */
.why-us-section {
  background: var(--bg-light-blue);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-box {
  background: #ffffff;
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-light-blue);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-box h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.feature-box p {
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* --- Educational / SEO Articles --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.article-tag {
  align-self: flex-start;
  background: #eef2ff;
  color: var(--primary-blue);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.article-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.article-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* --- Testimonials --- */
.testimonials-section {
  background-color: #ffffff;
}

.testimonial-card {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.stars {
  color: var(--accent-orange);
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-style: italic;
  color: var(--text-dark);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-navy);
  font-size: 0.9rem;
}

.testimonial-author span {
  font-weight: 400;
  color: var(--text-muted);
  display: block;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--primary-navy);
  color: #ffffff;
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 1rem;
  line-height: 1.5;
}

.footer-col h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition-fast);
}
.footer-col a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #25d366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: var(--transition-fast);
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  background-color: #20ba5a;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* --- Alternating Kit Row Layout (Zig-Zag) --- */
.kits-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 2rem;
}

.kit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.kit-row:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Alternating position for even rows on desktop */
.kit-row:nth-child(even) .kit-img-col {
  order: 2;
}
.kit-row:nth-child(even) .kit-content-col {
  order: 1;
}

.kit-img-col {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.kit-img-col img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  transition: var(--transition-fast);
}

.kit-row:hover .kit-img-col img {
  transform: scale(1.03);
}

.kit-content-col {
  display: flex;
  flex-direction: column;
}

.kit-content-col h3 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.kit-content-col p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* --- Mobile Navigation & Header Actions --- */
.mobile-nav-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-nav-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background-color: #fff7ed;
  color: var(--accent-orange);
  border: 1px solid #fed7aa;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-fast);
  height: 40px;
}

.btn-nav-store:hover {
  background-color: var(--accent-orange);
  color: #ffffff;
  border-color: var(--accent-orange);
}

.btn-nav-store svg {
  width: 20px;
  height: 20px;
  display: block;
}

.hamburger-btn {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--primary-navy);
  padding: 0.4rem;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.hamburger-btn:hover {
  background-color: var(--bg-neutral);
  color: var(--accent-orange);
}

.hamburger-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid, .features-grid, .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  /* Hide WhatsApp header button on mobile */
  .btn-whatsapp-header {
    display: none !important;
  }

  /* Make Tienda button match hamburger button size and hide text on mobile */
  .btn-nav-store {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }

  .btn-nav-store span {
    display: none;
  }

  /* Mobile Hamburger Drawer Navigation */
  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-bottom: 2px solid var(--border-light);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    z-index: 1000;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu .nav-link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-neutral);
    width: 100%;
  }

  /* Mobile Kit Layout: Image always on top, content below */
  .kit-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.5rem;
  }
  .kit-row:nth-child(even) .kit-img-col {
    order: 1;
  }
  .kit-row:nth-child(even) .kit-content-col {
    order: 2;
  }
  .kit-img-col {
    order: 1;
  }
  .kit-content-col {
    order: 2;
  }
  .kit-img-col img {
    height: 260px;
  }
}

@media (max-width: 640px) {
  .cards-grid, .features-grid, .articles-grid, .impact-grid {
    grid-template-columns: 1fr;
  }
  .hero-content h1 {
    font-size: 2.15rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
