/* Reset y Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #1e3a5f;
  --color-secondary: #ff6b35;
  /* Añadido color verde más vibrante para destacar elementos importantes */
  --color-accent: #2d8659;
  --color-accent-light: #3fa872;
  --color-dark: #2c3e50;
  --color-light: #f8f9fa;
  --color-white: #ffffff;
  --color-gray: #6c757d;
  --color-gray-light: #e9ecef;

  --font-primary: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: Georgia, "Times New Roman", serif;

  --transition: all 0.3s ease;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-white);
}

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

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

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

/* Header */
.header {
  background-color: var(--color-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@keyframes logoAnim {
  from {
    transform: scale(1.5);
  }
  to {
    transform: scale(1);
  }
}

.logo img {
  height: 50px;
  width: auto;
  transition: var(--transition);
  animation: logoAnim 0.3s;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  font-weight: 500;
  color: var(--color-dark);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-secondary);
  background-color: var(--color-light);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--color-dark);
  transition: var(--transition);
}

/* Hero Video Section */
.hero-video {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-dark);
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.8), rgba(74, 124, 89, 0.6));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 2rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes subtleGlow {
  0%,
  100% {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }
  50% {
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.3), 2px 2px 4px rgba(0, 0, 0, 0.3);
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: #e55a2b;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn-full {
  width: 100%;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-primary);
}

@keyframes heroAnimation {
  0% {
    background-position: 10% 0%;
  }
  50% {
    background-position: 91% 100%;
  }
  100% {
    background-position: 10% 0%;
  }
}

.page-hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  padding: 4rem 0;
  text-align: center;
  background-size: 200% 200%;
  animation: heroAnimation 5s ease infinite;
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* About Section */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.client-card {
  background-color: var(--color-light);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
  /* Añadido borde superior en color acento */
  border-top: 3px solid var(--color-accent);
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  /* Borde superior más grueso al hacer hover */
  border-top-width: 5px;
}

/* Nuevo estilo para texto destacado en verde */
.highlight-green {
  color: var(--color-accent);
  font-weight: 700;
}

.highlight-green--animation {
  color: var(--color-accent);
  font-weight: 700;
}

/* Services Grid */
.services-grid {
  display: grid;
  /* Ajustado para dos columnas en lugar de tres */
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  /* Añadido borde sutil en color acento */
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  /* Borde verde al hacer hover */
  border-color: var(--color-accent);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Products Overview */
.products-overview {
  background-color: var(--color-light);
  padding: 3rem;
  border-radius: 8px;
  margin-top: 3rem;
}

.products-overview h3 {
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.products-list {
  list-style: none;
  margin-bottom: 2rem;
}

.products-list li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
}

.products-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  /* Checkmarks en verde más vibrante */
  color: var(--color-accent);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--color-light);
  border: 2px solid var(--color-gray-light);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.product-item {
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.product-item.hidden {
  display: none;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 20px;
}

.project-card {
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form-container h2,
.contact-info h2 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.form-description {
  margin-bottom: 2rem;
  color: var(--color-gray);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-dark);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid var(--color-gray-light);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-message {
  padding: 1rem;
  border-radius: 6px;
  text-align: center;
  display: none;
}

.form-message.success {
  background-color: #d4edda;
  color: #155724;
  display: block;
}

.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  display: block;
}

/* Contact Info */
.contact-info {
  background-color: var(--color-light);
  padding: 2rem;
  border-radius: 8px;
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.info-item h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.info-item a {
  color: var(--color-secondary);
}

.info-item a:hover {
  text-decoration: underline;
}

.coverage-area {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-gray-light);
}

.coverage-area h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.coverage-area ul {
  list-style: none;
}

.coverage-area li {
  padding: 0.5rem 0;
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-white);
  text-align: center;
  padding: 4rem 2rem;
  background-size: 200% 200%;
  animation: heroAnimation 5s ease infinite;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Error Page */
.error-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
}

.error-code {
  font-size: 8rem;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1;
}

.error-content h2 {
  font-size: 2rem;
  margin: 1rem 0;
  color: var(--color-dark);
}

.error-content p {
  font-size: 1.2rem;
  color: var(--color-gray);
  margin-bottom: 2rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 3rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 50px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-col h4 {
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Nueva sección de cobertura geográfica */
.coverage-section {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.05), rgba(45, 134, 89, 0.05));
}

.coverage-intro {
  text-align: center;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.coverage-card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--color-accent);
}

.coverage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-left-width: 6px;
}

.coverage-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.coverage-card h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.coverage-card ul {
  list-style: none;
  text-align: left;
}

.coverage-card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.coverage-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

.coverage-card li strong {
  color: var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow);
    display: none;
  }

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

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

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .products-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .error-code {
    font-size: 5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .coverage-grid {
    grid-template-columns: 1fr;
  }
}

/* Estado inicial (oculto) */
section,
.service-card,
.client-card 
.product-item {
  transition: all 0.8s ease;
}

/* Exclude legal sections from animation so they load immediately visible */
section.legal-section {
  opacity: 1;
  transform: translateY(0);
}

/* Estado visible al hacer scroll */
section.visible,
.service-card.visible,
.client-card.visible 
.product-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Añadida animación de entrada para las tarjetas de cobertura */
.coverage-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.coverage-card.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes wordsFlip {
  from {
    transform: translateY(-1rem);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.wordsflipspan {
  transform: translateY(0);
  opacity: 1;
  animation-name: wordsFlip;
  animation-duration: 4s;
}

.black-bg {
  background-color: rgba(31, 31, 31, 0.4);
  border-radius: 1rem;
}

/* Added styles for legal pages (Aviso Legal, Política de Cookies) */

/* Legal Pages Styles */
.legal-section {
  background-color: var(--color-white);
  min-height: 60vh;
  margin: 2rem 0;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  line-height: 1.8;
}

.legal-content h2 {
  color: var(--color-primary);
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-accent);
}

.legal-content h3 {
  color: var(--color-dark);
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content p {
  margin-bottom: 1rem;
  color: var(--color-dark);
}

.legal-content ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.info-box {
  background-color: var(--color-light);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-accent);
  margin: 1.5rem 0;
}

.info-box p {
  margin-bottom: 0.5rem;
}

.legal-link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
}

.legal-link:hover {
  color: var(--color-accent-light);
}

.legal-date {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-gray-light);
  color: var(--color-gray);
  font-style: italic;
  text-align: center;
}

/* Cookie Policy Table */
.cookie-table {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-white);
  box-shadow: var(--shadow);
  border-radius: 8px;
  overflow: hidden;
}

.cookie-table thead {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.cookie-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.cookie-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-gray-light);
}

.cookie-table tbody tr:hover {
  background-color: var(--color-light);
}

.cookie-table tbody tr:last-child td {
  border-bottom: none;
}

/* Added cookie consent banner styles */

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: bottom 0.4s ease-in-out;
  border-top: 3px solid var(--color-accent);
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text p {
  margin-bottom: 0.5rem;
  color: var(--color-dark);
  line-height: 1.6;
}

.cookie-banner-text p:first-child {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.cookie-banner-text a {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-banner-text a:hover {
  color: var(--color-accent-light);
}

.cookie-banner-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 200px;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-size: 0.95rem;
  white-space: nowrap;
}

.cookie-btn-accept {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.cookie-btn-accept:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.cookie-btn-reject {
  background-color: var(--color-gray);
  color: var(--color-white);
  border-color: var(--color-gray);
}

.cookie-btn-reject:hover {
  background-color: var(--color-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.cookie-btn-settings {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

/* Cookie Banner Responsive */
@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    padding: 1.5rem;
  }

  .cookie-banner-buttons {
    width: 100%;
    min-width: auto;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-banner-text p {
    font-size: 0.95rem;
  }

  .legal-content {
    padding: 1rem;
  }

  .cookie-table {
    font-size: 0.9rem;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 0.75rem 0.5rem;
  }
}

/* Added new product catalog styles with categories, subcategories, and image gallery */

/* Category Navigation */
.category-nav-section {
  background-color: var(--color-light);
  padding: 2rem 0;
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.category-tabs-projects {
  margin-bottom: 20px;
}

.category-tab {
  padding: 1rem 2rem;
  background-color: var(--color-white);
  border: 2px solid var(--color-gray-light);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-dark);
}

.category-tab:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.category-tab.active {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
}

/* Subcategory Filters */
.subcategory-filters {
  margin-bottom: 3rem;
}

.subcategory-filters .filter-buttons {
  justify-content: flex-start;
}

.subcategory-filters .filter-btn {
  background-color: var(--color-white);
  border-color: var(--color-accent);
  color: var(--color-dark);
}

.subcategory-filters .filter-btn:hover,
.subcategory-filters .filter-btn.active {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* Products Catalog */
.products-catalog {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.subcategory-section {
  animation: fadeInUp 0.6s ease;
}

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

.subcategory-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--color-accent);
}

.subcategory-header h2 {
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.subcategory-header p {
  color: var(--color-gray);
  font-size: 1.1rem;
}

/* Product Cards */
.product-card {
  background-color: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 2px solid transparent;
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.1);
}

.image-count {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.product-card .product-info {
  padding: 1.5rem;
}

.product-card .product-info h3 {
  color: var(--color-primary);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.product-card .product-info p {
  color: var(--color-gray);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.feature-tag {
  background-color: var(--color-light);
  color: var(--color-accent);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--color-accent);
}

.btn-view-product {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-view-product:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Image Modal / Lightbox */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 2rem;
}

.modal-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.modal-content img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.modal-info {
  text-align: center;
  color: var(--color-white);
  max-width: 800px;
}

.modal-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.modal-info p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  border: 2px solid var(--color-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-close:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  transform: rotate(90deg);
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  border: 2px solid var(--color-white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-prev {
  left: 2rem;
}

.modal-next {
  right: 2rem;
}

.modal-prev:hover,
.modal-next:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-50%) scale(1.1);
}

.modal-thumbnails {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin-top: 1rem;
}

.modal-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
  border: 3px solid transparent;
}

.modal-thumb:hover {
  opacity: 1;
  transform: scale(1.1);
}

.modal-thumb.active {
  opacity: 1;
  border-color: var(--color-accent);
  box-shadow: 0 0 15px var(--color-accent);
}

/* Responsive for Product Catalog */
@media (max-width: 768px) {
  .category-tabs {
    flex-direction: column;
  }

  .category-tab {
    width: 100%;
    text-align: center;
  }

  .subcategory-header h2 {
    font-size: 1.5rem;
  }

  .product-image-wrapper {
    height: 220px;
  }

  .modal-prev,
  .modal-next {
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
  }

  .modal-prev {
    left: 1rem;
  }

  .modal-next {
    right: 1rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .modal-info h3 {
    font-size: 1.5rem;
  }

  .modal-info p {
    font-size: 1rem;
  }

  .modal-thumbnails {
    gap: 0.5rem;
  }

  .modal-thumb {
    width: 60px;
    height: 60px;
  }
}