:root {
  --primary-color: #03366D; /* Azul profundo corporativo */
  --secondary-color: #a6192e; /* Nuevo Rojo (Pantone 187 C) */
  --text-dark: #1F2937;
  --text-light: #6B7280;
  --bg-light: #F9FAFB;
  --white: #FFFFFF;
  --black: #000000;
  --accent: #8b1526; /* Rojo variante más oscuro para hover */
  --border-color: #E5E7EB;
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-secondary);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Base Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn i {
  font-size: 1.5em; /* Icono más grande */
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-blue {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(3, 54, 109, 0.4);
}

.btn-blue:hover {
  background-color: #022347; /* Azul más oscuro */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3, 54, 109, 0.6);
  color: var(--white);
}

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

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

/* Header & Navbar */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 1);
  backdrop-filter: blur(15px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-brand h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

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

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

.nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--text-dark);
  font-size: 1rem;
  position: relative;
}

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

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background-color: #000;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 8s ease-out;
  transform: scale(1.05);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(3,54,109,0.85) 0%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
}

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

.hero-content {
  text-align: left;
  color: var(--white);
  max-width: 600px;
  position: relative;
}

.hero-text-slide {
  display: none;
  animation: fadeTextIn 0.8s ease forwards;
}

.hero-text-slide.active {
  display: block;
}

@keyframes fadeTextIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
  font-family: var(--font-primary);
  font-size: 0.875rem; /* Ajustado para placa/badge */
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: 700;
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.5); /* Cápsula 50% transparente */
  padding: 6px 16px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 40px;
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin-inline: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.hero-product-slider {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-product-img {
  position: absolute;
  max-width: 85%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 1s ease, transform 1s ease;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

.hero-product-img.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hero Navigation Arrows */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.5rem;
}

.hero-nav-btn:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-50%) scale(1.1);
}

.hero-nav-btn.prev-btn {
  left: 20px;
}

.hero-nav-btn.next-btn {
  right: 20px;
}

@media (max-width: 1024px) {
  .hero-nav-btn {
    display: none; /* Hide on smaller screens to avoid blocking text/images */
  }
}

/* Section Common */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--secondary-color);
  font-family: var(--font-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-size: 0.875rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--primary-color);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Products Section (Icons Grid) */
.products {
  background-color: var(--bg-light);
}

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

.product-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.product-card:hover::before {
  opacity: 1;
}

.product-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(3, 54, 109, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 2.5rem;
  transition: var(--transition);
}

.product-card:hover .product-icon-wrapper {
  background-color: var(--primary-color);
  color: var(--white);
  transform: scale(1.1) rotate(5deg);
}

.product-title {
  font-size: 1.25rem;
  color: var(--text-dark);
  font-weight: 700;
  transition: var(--transition);
}

.product-card:hover .product-title {
  color: var(--primary-color);
}

/* Stats / Counters */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.stat-card {
  background-color: var(--white);
  padding: 40px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 5px;
  font-family: var(--font-primary);
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary-color);
}

/* Valores / Blocks */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-img img {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

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

/* Project Hover Images */
.project-img-box {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9; /* Fuerza a que ambas fotos sean idénticas de tamaño */
  background-color: var(--black);
}

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

.project-img-box:hover img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Oscurecimiento al 80% */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  color: var(--white);
}

.project-img-box:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  margin-bottom: 12px;
  transform: translateY(-20px);
  transition: transform 0.5s ease;
  color: var(--white);
}

.project-overlay p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  transform: translateY(20px);
  transition: transform 0.5s ease;
}

.project-img-box:hover .project-overlay h3,
.project-img-box:hover .project-overlay p {
  transform: translateY(0);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: var(--white);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary-color);
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(3, 54, 109, 0.05); /* fondo azul sutil */
  color: var(--primary-color);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-card:hover .contact-icon {
  background-color: var(--primary-color);
  color: var(--white);
}

.contact-details h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.contact-details p {
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 4px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
}

.footer {
  background-color: #0A192F;
  color: white;
  padding: 40px 0 20px;
}


.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center; 
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-col-logo {
  flex-shrink: 0;
}

.footer-col-social .social-links {
  display: flex;
  gap: 15px;
}

.footer-col-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.footer-col-contact i {
  color: #2F80ED; /* Azul vibrante coincidente con la captura */
  font-size: 1.25rem;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 40px;
}

.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 20px;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 25px;
}

.footer-legal-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-legal-links a:hover {
  color: var(--secondary-color);
}

.footer-copyright {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05); /* Línea muy sutil como en la imagen */
  padding-top: 25px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* Utilities */
.text-highlight {
  color: var(--secondary-color);
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 65px;
  height: 65px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  background-color: #1ebe57;
  color: white;
}

/* Efecto de Punto Caliente (Pulse Effect) */
.whatsapp-float::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25d366;
  z-index: -1;
  animation: pulse-wa 2s infinite ease-out;
}

@keyframes pulse-wa {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

/* Media Queries */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    margin-top: 40px;
  }
  .hero-content {
    margin: 0 auto;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-product-slider {
    height: 350px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 1.8rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    position: fixed;
    top: 100px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 100px);
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}


/* =========================================
   CATÁLOGO DE PRODUCTOS (catalogo.html)
   ========================================= */
.page-banner {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0 40px;
    text-align: center;
    margin-top: 80px;
}
.page-banner h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

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

/* Sidebar */
.catalog-sidebar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}
.catalog-search {
    margin-bottom: 30px;
}
.catalog-search h3,
.catalog-categories h3 {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
}
.search-box {
    position: relative;
}
.search-box input {
    width: 100%;
    padding: 10px 35px 10px 15px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    outline: none;
    font-family: inherit;
}
.search-box input:focus {
    border-color: var(--secondary-color);
}
.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 1.2rem;
    pointer-events: none;
}

.catalog-categories ul {
    list-style: none;
}
.catalog-categories .category-item {
    padding: 12px 10px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    color: #4b5563;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.catalog-categories .category-item i {
    font-size: 1.2rem;
    margin-top: 1px;
}
.catalog-categories .category-item:last-child {
    border-bottom: none;
}
.catalog-categories .category-item:hover {
    color: var(--primary-color);
    font-weight: 600;
}
.catalog-categories .category-item.active {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    border-radius: 4px;
    border-bottom-color: transparent;
}

/* Catalog Views */
.catalog-grid,
.catalog-detail {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}
.catalog-grid.view-active {
    display: grid;
}
.catalog-detail.view-active {
    display: block;
}

/* Grid Styling */
.catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}
.product-list-card {
    background: #fff;
    border: 1px solid #d1d5db;
    padding: 15px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.2s;
    min-height: 80px;
}
.product-list-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}
.product-list-card.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.product-list-card.active .product-name {
    color: var(--white);
}
.product-name {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
}
.no-results {
    color: #6b7280;
    text-align: center;
    padding: 40px;
    width: 100%;
}

/* Detail View Styling */
.detail-header {
    margin-bottom: 20px;
}
.btn-back {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #4b5563;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 30px;
    margin-top: 10px;
    transition: all 0.2s;
}
.btn-back:hover {
    color: var(--primary-color);
    background: #e5e7eb;
    border-color: #d1d5db;
}
.detail-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
@media (max-width: 768px) {
    .detail-container {
        grid-template-columns: 1fr;
    }
}
.detail-left {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.product-image-wrapper {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}
.product-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.detail-category {
    color: #6b7280;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}
.detail-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
}
.detail-desc h4 {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.detail-desc p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.detail-specs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    border-top: 1px solid #e5e7eb;
    padding-top: 25px;
}
.spec-group {
    display: flex;
    flex-direction: column;
}
.spec-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.spec-val {
    color: #4b5563;
    font-size: 0.95rem;
}

.btn-red {
    background: #dc2626;
    color: #fff;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
}
.btn-red:hover {
    background: #b91c1c;
    color: #fff;
}

/* Catalog Sectors Tabs */
.catalog-sectors {
  display: flex;
  justify-content: flex-start;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.sector-tab {
  background-color: var(--white);
  border: 2px solid var(--border-color);
  color: var(--text-light);
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.sector-tab.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(3, 54, 109, 0.3);
}

/* Fix width and centering for 10th card in Grid */
@media (min-width: 769px) {
  .products-grid .product-card:nth-child(10) {
    grid-column: 2;
  }
}

/* ---------------- BESTSELLERS SLIDER ---------------- */
.bestseller-slider-container {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid rgba(0,0,0,0.02);
}

.bestsellers-wrapper {
  position: relative;
  height: 380px;
}

.bs-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 80px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.bs-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.bs-content {
  flex: 1;
  max-width: 50%;
  animation: fadeInRight 0.8s ease forwards;
}

.bs-badge {
  display: inline-block;
  background: var(--secondary-color);
  color: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.bs-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.1;
  font-weight: 800;
}

.bs-desc {
  color: #4b5563;
  margin-bottom: 30px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.bs-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

.bs-image img {
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.1));
  transition: transform 0.4s ease;
}

.bs-slide.active .bs-image img {
  animation: float 4s ease-in-out infinite;
}

.bs-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
}

.bs-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(3, 54, 109, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.bs-dot:hover {
  background: rgba(3, 54, 109, 0.5);
}

.bs-dot.active {
  background: var(--primary-color);
  transform: scale(1.4);
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@media (max-width: 900px) {
  .bs-slide {
    padding: 30px 40px;
  }
}

@media (max-width: 768px) {
  .bestsellers-wrapper {
    height: 500px;
  }
  .bs-slide {
    flex-direction: column-reverse;
    text-align: center;
    padding: 30px 20px 60px 20px;
  }
  .bs-content { 
    max-width: 100%; 
    margin-top: 15px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
  }
  .bs-image { 
    justify-content: center; 
    max-height: 200px; 
  }
}
