/* ============================================================
   LUMINA ENERGY — catalogo.css
   Catálogo de proveedores y productos
   ============================================================ */

/* ============================================================
   CATALOG HERO
   ============================================================ */

.catalog-hero {
  padding: 220px 0 80px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139,197,63,0.10) 0%, transparent 55%),
    linear-gradient(to bottom, #0A0A0A 0%, #111111 100%);
}

/* Hero con imagen de fondo — aplica a cada sub-página */
.catalog-hero--bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.catalog-hero--index {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139,197,63,0.12) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(8,8,8,0.78) 0%, rgba(10,10,10,0.93) 100%),
    url('../images/heroes/hero-catalog.jpg') center / cover no-repeat;
}

.catalog-hero--solar {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139,197,63,0.14) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(6,12,4,0.72) 0%, rgba(10,14,8,0.92) 100%),
    url('../images/heroes/hero-solar.jpg') center / cover no-repeat;
}

.catalog-hero--ev {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139,197,63,0.12) 0%, transparent 50%),
    linear-gradient(to bottom, rgba(6,8,14,0.74) 0%, rgba(8,10,16,0.93) 100%),
    url('../images/heroes/hero-ev.jpg') center / cover no-repeat;
}

.catalog-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8BC53F;
  margin-bottom: 16px;
}

.catalog-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}

.catalog-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.5);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Filter pills */
.catalog-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-pill {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: rgba(139,197,63,0.4);
  color: #8BC53F;
}

.filter-pill.active {
  background: #8BC53F;
  border-color: #8BC53F;
  color: #0D0D0D;
}

/* ============================================================
   PROVIDER SECTION
   ============================================================ */

.catalog-section {
  padding: 80px 0 60px;
}

.catalog-section:nth-child(even) {
  background: rgba(255,255,255,0.015);
}

.provider-header {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.provider-logo-block {
  flex-shrink: 0;
  width: 180px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
}

.provider-logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: #fff;
}

.provider-logo-text span {
  color: #8BC53F;
}

.provider-info {
  flex: 1;
}

.provider-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8BC53F;
  margin-bottom: 8px;
}

.provider-info h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.2;
}

.provider-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 20px;
}

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cert-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(139,197,63,0.10);
  border: 1px solid rgba(139,197,63,0.25);
  color: #8BC53F;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.product-card {
  background: rgba(255,255,255,0.028);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: rgba(139,197,63,0.3);
  transform: translateY(-4px);
}

/* Product image */
.product-card-img {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #161616;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  z-index: 1;
}

.product-badge--flagship {
  background: #8BC53F;
  color: #0D0D0D;
}

.product-badge--comercial {
  background: rgba(255,255,255,0.15);
  color: #fff;
  backdrop-filter: blur(8px);
}

.product-badge--premium {
  background: rgba(139,197,63,0.15);
  color: #8BC53F;
  border: 1px solid rgba(139,197,63,0.4);
}

.product-badge--residencial {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
}

/* Card body */
.product-card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-model {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 6px;
}

.product-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 20px;
}

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  margin-bottom: 24px;
  flex: 1;
}

.spec-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.spec-table tr:last-child {
  border-bottom: none;
}

.spec-table td {
  padding: 7px 0;
  line-height: 1.4;
}

.spec-table td:first-child {
  color: rgba(255,255,255,0.38);
  width: 42%;
  padding-right: 10px;
}

.spec-table td:last-child {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.spec-table td em {
  color: #8BC53F;
  font-style: normal;
  font-weight: 600;
}

/* Card actions */
.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.btn-catalog-primary {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  border-radius: 8px;
  background: #8BC53F;
  color: #0D0D0D;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn-catalog-primary:hover { opacity: 0.85; }

.btn-catalog-secondary {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-catalog-secondary:hover {
  border-color: rgba(139,197,63,0.4);
  color: #8BC53F;
}

/* ============================================================
   PRODUCT SUB-CATEGORY HEADER (within a provider section)
   ============================================================ */

.catalog-subcategory {
  margin-top: 56px;
  margin-bottom: 32px;
}

.catalog-subcategory:first-of-type {
  margin-top: 0;
}

.catalog-subcategory-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8BC53F;
  margin-bottom: 8px;
}

.catalog-subcategory-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Badge variants for EVB product families */
.product-badge--industrial {
  background: rgba(255,200,0,0.12);
  color: #FFD54F;
  border: 1px solid rgba(255,200,0,0.3);
}

.product-badge--storage {
  background: rgba(100,180,255,0.12);
  color: #90CAF9;
  border: 1px solid rgba(100,180,255,0.3);
}

.product-badge--portable {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ============================================================
   SECTION DIVIDER
   ============================================================ */

.catalog-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(139,197,63,0.2) 30%, rgba(139,197,63,0.2) 70%, transparent 100%);
  margin: 20px 0;
}

/* ============================================================
   CATALOG CTA
   ============================================================ */

.catalog-cta {
  padding: 80px 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(139,197,63,0.08) 0%, transparent 55%);
}

.catalog-cta h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.catalog-cta p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

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

/* ============================================================
   SIDEBAR LAYOUT
   ============================================================ */

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0 100px;
}

/* Back link */
.catalog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s;
}
.catalog-back-link:hover { color: #8BC53F; }

/* Sidebar */
.catalog-sidebar {
  position: sticky;
  top: 120px;
}

.sidebar-provider {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.sidebar-provider-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.sidebar-provider-name span { color: #8BC53F; }

.sidebar-provider-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}

.sidebar-nav {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
}

.sidebar-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.sidebar-cat-header:hover { background: rgba(255,255,255,0.03); }
.sidebar-cat-header.active { background: rgba(139,197,63,0.05); border-left: 3px solid #8BC53F; }

.sidebar-cat-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.sidebar-cat-header.active .sidebar-cat-name { color: #8BC53F; }

.sidebar-cat-count {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(139,197,63,0.1);
  color: #8BC53F;
  padding: 2px 7px;
  border-radius: 99px;
}

.sidebar-products {
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.sidebar-products:last-child { border-bottom: none; }

.sidebar-product-link {
  display: block;
  padding: 6px 16px 6px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s, padding-left 0.15s;
}
.sidebar-product-link:hover {
  color: rgba(255,255,255,0.78);
  padding-left: 26px;
}
.sidebar-product-link.active { color: #8BC53F; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .catalog-layout {
    grid-template-columns: 220px 1fr;
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-sidebar {
    position: static;
  }
  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
  }
  .sidebar-cat-header { flex: 1 1 auto; }
  .provider-header {
    flex-direction: column;
    gap: 24px;
  }
  .provider-logo-block {
    width: 140px;
    height: 60px;
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .catalog-hero {
    padding: 200px 0 60px;
  }
}

@media (max-width: 480px) {
  .product-actions {
    flex-direction: column;
  }
  .btn-catalog-primary,
  .btn-catalog-secondary {
    text-align: center;
  }
}

/* ============================================================
   CATALOG SOLAREVER — Page-specific overrides
   ============================================================ */

/* Hero compacto (paneles solares) */
.catalog-hero--compact {
  padding: 160px 0 40px;
}

/* H1 accent span */
.catalog-hero h1 .accent {
  color: #8BC53F;
}

/* First subcategory in main — no top margin */
.catalog-subcategory--first {
  margin-top: 0;
}

/* Product image backgrounds per brand */
.product-card-img--topcon img {
  object-fit: contain;
  padding: 16px;
  background: #0d1a08;
}

.product-card-img--perc img {
  object-fit: contain;
  padding: 16px;
  background: #111111;
}

.product-card-img--black img {
  object-fit: contain;
  padding: 16px;
  background: #080808;
}

.product-card-img--longi img {
  object-fit: contain;
  padding: 16px;
  background: #0a0e14;
}

.product-card-img--tongwei img {
  object-fit: contain;
  padding: 16px;
  background: #0d1216;
}

.product-card-img--thornova img {
  object-fit: contain;
  padding: 16px;
  background: #0d1310;
}
