/* ==========================================================================
   SURIAENERGY - ESTILOS PRINCIPALES (2026 EDITION)
   Soluciones en Energía Solar | Asesoramiento, Equipamiento y Red de Instaladores
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Paleta de Marca derivada del Logo Oficial */
  --brand-green: #5ba354;
  --brand-green-hover: #4e8f47;
  --brand-green-light: #eef7ed;
  --brand-green-glow: rgba(91, 163, 84, 0.25);
  
  --solar-amber: #f59e0b;
  --solar-amber-hover: #d97706;
  --solar-amber-light: #fffbeb;
  
  --energy-cyan: #0284c7;
  --energy-cyan-light: #e0f2fe;

  /* Fondos y Neutros */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-dark: #0f172a;
  --bg-dark-card: #1e293b;
  
  /* Textos */
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  /* Bordes y Sombras */
  --border-light: #e2e8f0;
  --border-focus: #5ba354;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.1), 0 10px 15px -5px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 30px var(--brand-green-glow);
  
  /* Tipografía */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1240px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   COMPONENTES: BOTONES & BADGES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-green);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(91, 163, 84, 0.35);
}

.btn-primary:hover {
  background-color: var(--brand-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(91, 163, 84, 0.45);
}

.btn-secondary {
  background-color: var(--bg-dark);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.btn-secondary:hover {
  background-color: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-light);
  color: var(--text-main);
}

.btn-outline:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--text-main);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-white);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--text-white);
  transform: translateY(-2px);
}

.btn-shop {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.btn-shop:hover {
  background: linear-gradient(135deg, #0369a1, #075985);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.45);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.125rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-green {
  background-color: var(--brand-green-light);
  color: var(--brand-green-hover);
  border: 1px solid rgba(91, 163, 84, 0.2);
}

.badge-amber {
  background-color: var(--solar-amber-light);
  color: var(--solar-amber-hover);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-blue {
  background-color: var(--energy-cyan-light);
  color: var(--energy-cyan);
  border: 1px solid rgba(2, 132, 199, 0.2);
}

/* ==========================================================================
   HEADER / NAVEGACIÓN
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.site-header .container {
  max-width: 1360px;
}

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

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

.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.35vw, 1.65rem);
  list-style: none;
  white-space: nowrap;
}

.nav-link {
  font-weight: 600;
  font-size: clamp(0.85rem, 0.9vw, 0.95rem);
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--brand-green);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--brand-green);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-main);
}

/* ==========================================================================
   HERO SECTION (CON FONDO AMBIENTAL SOLAR)
   ========================================================================== */

.hero-section {
  position: relative;
  padding-top: 140px;
  padding-bottom: 90px;
  background-color: #0b1329;
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.72) 50%, rgba(11, 19, 41, 0.85) 100%), url('../assets/images/hero-solar-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
}

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

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

.hero-badge-wrap {
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero-title .text-highlight {
  color: #86efac;
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 2.25rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: rgba(91, 163, 84, 0.25);
  color: #86efac;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}

.trust-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.3;
}

.trust-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: #94a3b8;
}

.hero-visual {
  position: relative;
}

.hero-card-stack {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   CINTA DE MARCAS OFICIALES (CARRUSEL MARQUEE)
   ========================================================================== */

.brands-ribbon {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.brands-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.brands-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: max-content;
  animation: brandsMarquee 30s linear infinite;
}

.brands-track:hover {
  animation-play-state: paused;
}

@keyframes brandsMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.brand-carousel-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: var(--transition-smooth);
  flex-shrink: 0;
  user-select: none;
}

.brand-carousel-item:hover {
  background: #ffffff;
  border-color: var(--brand-green);
  color: var(--brand-green-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.brand-logo-icon {
  flex-shrink: 0;
  display: block;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.hero-card-header .badge {
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-card-header h3 {
  font-size: 1.25rem;
}

.hero-card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.hero-card-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-info h4 {
  font-size: 0.975rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.feature-info p {
  font-size: 0.85rem;
  line-height: 1.4;
}

.hero-floating-tag {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: var(--bg-dark);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hero-floating-tag .dot-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

/* ==========================================================================
   SECCIONES GENERALES & HEADERS
   ========================================================================== */

.section {
  padding: 90px 0;
}

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

.section-header .badge {
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--bg-dark);
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SIMULADOR / DIMENSIONADOR SOLAR INTERACTIVO
   ========================================================================== */

.simulator-section {
  background-color: #ffffff;
  position: relative;
}

.simulator-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.sim-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--bg-dark);
}

.sim-step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-green);
  color: #fff;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sim-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.sim-option-card {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: #ffffff;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
}

.sim-option-card:hover {
  border-color: rgba(91, 163, 84, 0.4);
  transform: translateY(-2px);
}

.sim-option-card.active {
  border-color: var(--brand-green);
  background-color: var(--brand-green-light);
}

.sim-option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.sim-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.sim-option-card h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.sim-option-card p {
  font-size: 0.8rem;
  line-height: 1.35;
}

.consumption-slider-wrap {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.slider-value-badge {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-green);
  background: var(--brand-green-light);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-sm);
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-green);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Panel de Resultados del Simulador */
.sim-result-card {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
}

.sim-result-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.sim-result-header h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.sim-result-header p {
  color: var(--text-light);
  font-size: 0.875rem;
}

.sim-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.sim-stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.sim-stat-box .stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.sim-stat-box .stat-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-green);
}

.sim-stat-box .stat-number.amber {
  color: var(--solar-amber);
}

.sim-package-recommendation {
  background: rgba(91, 163, 84, 0.1);
  border: 1px dashed rgba(91, 163, 84, 0.4);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.sim-package-recommendation h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.sim-package-recommendation p {
  color: #cbd5e1;
  font-size: 0.825rem;
  line-height: 1.4;
}

.sim-result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* ==========================================================================
   SOLUCIONES & EQUIPAMIENTO SOLAR
   ========================================================================== */

.solutions-section {
  background-color: var(--bg-secondary);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.solution-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-green);
}

.solution-card-img-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.solution-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card:hover .solution-card-img {
  transform: scale(1.06);
}

.solution-card-img-wrap .solution-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  margin-bottom: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.solution-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-green-light);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

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

.solution-card p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.solution-features {
  list-style: none;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.solution-feature-item {
  font-size: 0.825rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.solution-feature-item svg {
  color: var(--brand-green);
  flex-shrink: 0;
}

.solution-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* ==========================================================================
   PROYECTOS & CASOS REALES DE INSTALACIÓN
   ========================================================================== */

.projects-section {
  background-color: #ffffff;
}

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

.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(91, 163, 84, 0.4);
}

.project-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: #0f172a;
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-card:hover .project-card-img {
  transform: scale(1.08);
}

.project-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.project-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.project-card-body p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.project-meta-item svg {
  color: var(--brand-green);
}

/* ==========================================================================
   CANAL GREMIO & INSTALADORES (B2B)
   ========================================================================== */

.b2b-section {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.93) 0%, rgba(30, 41, 59, 0.94) 100%), url('../assets/images/b2b-soporte-solar.jpg');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.b2b-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(91, 163, 84, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.b2b-section .section-title {
  color: #ffffff;
}

.b2b-section .section-description {
  color: var(--text-light);
}

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

.b2b-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.b2b-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand-green);
  transform: translateY(-4px);
}

.b2b-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(91, 163, 84, 0.2);
  color: #86efac;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.b2b-card h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.b2b-card p {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.55;
}

.b2b-cta-banner {
  background: rgba(91, 163, 84, 0.15);
  border: 1px solid rgba(91, 163, 84, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.b2b-cta-text h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.b2b-cta-text p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

/* ==========================================================================
   CÓMO TRABAJAMOS (TRANSPARENCIA OPERATIVA)
   ========================================================================== */

.how-it-works-section {
  background-color: #ffffff;
}

.steps-roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
}

.steps-roadmap::before {
  content: '';
  position: absolute;
  top: 45px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: dashed 2px var(--border-light);
  border-top: 2px dashed var(--border-light);
  z-index: 1;
}

.step-card {
  position: relative;
  z-index: 2;
  text-align: center;
  background: #ffffff;
  padding: 1.5rem;
}

.step-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-md);
  color: var(--brand-green);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.step-card:nth-child(2) .step-badge {
  background: var(--brand-green);
  color: #ffffff;
}

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

.step-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.disclaimer-banner {
  margin-top: 3.5rem;
  background-color: var(--brand-green-light);
  border: 1px solid rgba(91, 163, 84, 0.25);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.disclaimer-icon {
  color: var(--brand-green);
  flex-shrink: 0;
}

.disclaimer-text h4 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

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

/* ==========================================================================
   PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */

.faq-section {
  background-color: var(--bg-secondary);
}

.faq-container {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item.active {
  border-color: var(--brand-green);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.35rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--brand-green);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.75rem;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.35rem;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   CONTACTO & FORMULARIO INTELIGENTE
   ========================================================================== */

.contact-section {
  background-color: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

.contact-info-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-light);
}

.contact-info-card h3 {
  font-size: 1.65rem;
  margin-bottom: 1rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.channel-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-green-light);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-details h4 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.channel-details p, .channel-details a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.channel-details a:hover {
  color: var(--brand-green);
}

.contact-form-wrap {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.profile-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.profile-btn {
  padding: 0.65rem 0.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
}

.profile-btn.active {
  background: var(--brand-green);
  color: #ffffff;
  border-color: var(--brand-green);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  color: var(--text-main);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-green);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px var(--brand-green-glow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding-top: 70px;
  padding-bottom: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-logo-wrap {
  display: inline-block;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}

.footer-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-brand p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 1.25rem;
  line-height: 1.6;
}

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

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-light);
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--brand-green);
  transform: translateX(3px);
}

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

/* ==========================================================================
   WIDGET FLOTANTE DE WHATSAPP
   ========================================================================== */

.whatsapp-float-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
}

.whatsapp-main-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
}

.whatsapp-main-btn:hover {
  transform: scale(1.08);
  background-color: #20ba5a;
}

.whatsapp-popover {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 320px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: none;
  overflow: hidden;
  animation: popIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-popover.active {
  display: block;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.wa-popover-header {
  background: #25d366;
  color: #ffffff;
  padding: 1.15rem;
}

.wa-popover-header h4 {
  color: #ffffff;
  font-size: 1rem;
}

.wa-popover-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
}

.wa-options-list {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.wa-option-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.wa-option-btn:hover {
  background: var(--brand-green-light);
  border-color: var(--brand-green);
  color: var(--brand-green-hover);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .b2b-grid {
    grid-template-columns: 1fr;
  }
  
  .simulator-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 1080px) {
  .nav-links, .nav-actions {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .mobile-nav-active .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-light);
    gap: 1rem;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  
  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    width: 100%;
    max-width: 100%;
  }

  .section {
    padding: 45px 0;
  }

  .section-header {
    margin-bottom: 1.75rem;
  }

  .section-title {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  .section-description {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero-section {
    padding-top: 105px;
    padding-bottom: 40px;
    background-attachment: scroll;
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    word-break: break-word;
  }

  .hero-card-stack {
    padding: 1.5rem 1.15rem;
    width: 100%;
    max-width: 100%;
  }

  .hero-card-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .hero-card-header h3 {
    font-size: 1.1rem;
  }

  .hero-card-header .badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .hero-floating-tag {
    position: static;
    margin-top: 1.25rem;
    width: 100%;
    display: inline-flex;
    justify-content: center;
    font-size: 0.85rem;
  }
  
  .hero-trust-bar {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .brand-carousel-item {
    padding: 0.45rem 1rem;
    font-size: 0.825rem;
    gap: 0.5rem;
  }

  .simulator-box {
    padding: 1.25rem 0.85rem;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-md);
  }

  .sim-step-title {
    font-size: 1rem;
    gap: 0.5rem;
  }

  .consumption-slider-wrap {
    padding: 1.15rem 0.85rem;
  }

  .slider-label-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .slider-value-badge {
    font-size: 1.05rem;
    padding: 0.2rem 0.65rem;
  }

  .slider-ticks {
    font-size: 0.68rem;
    gap: 0.2rem;
  }

  .sim-result-card {
    padding: 1.25rem 1rem;
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-md);
  }

  .sim-result-header h3 {
    font-size: 1.15rem;
  }

  .sim-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .sim-result-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .sim-result-actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
  }
  
  .sim-options-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .sim-option-card {
    padding: 1rem;
  }
  
  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .solution-card-img-wrap {
    height: 220px;
    padding: 1rem;
  }

  .solution-card-body {
    padding: 1.25rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card-body {
    padding: 1.25rem;
  }
  
  .steps-roadmap {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .steps-roadmap::before {
    display: none;
  }

  .faq-list {
    gap: 0.75rem;
  }

  .faq-question {
    padding: 1.15rem 1rem;
    font-size: 0.975rem;
  }

  .disclaimer-banner {
    padding: 1.25rem 1rem;
    flex-direction: column;
    text-align: center;
  }

  .b2b-section::after {
    display: none;
  }

  .b2b-card {
    padding: 1.5rem 1.15rem;
    width: 100%;
    max-width: 100%;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-info-card,
  .contact-form-wrap {
    padding: 1.5rem 1.15rem;
    width: 100%;
    max-width: 100%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .b2b-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.15rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .whatsapp-popover {
    width: calc(100vw - 32px);
    right: -10px;
    max-width: 320px;
  }
}
