/* Variables */
:root {
  --dark-blue: #002b5b;
  --cyan: #00c6ff;
  --light-gray: #f0f0f0;
  --white: #ffffff;
  --text-color: #333;
  --heading-color: var(--dark-blue);
  --accent-color: var(--cyan);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  /* TRANSITION AND OVERFLOW FOR menu-open MOVED TO EMBEDDED STYLES IN HEADER.PHP */
}

/* OVERLAY FOR mobile menu HAS BEEN MOVED TO EMBEDDED STYLES IN HEADER.PHP */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--dark-blue);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  color: var(--heading-color);
  margin-bottom: 15px;
}

h1 {
  font-size: 2.8em;
}
h2 {
  font-size: 2.2em;
}
h3 {
  font-size: 1.8em;
}

p {
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--dark-blue);
  color: var(--white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--dark-blue);
  border: 2px solid var(--dark-blue);
}

.btn-secondary:hover {
  background-color: var(--dark-blue);
  color: var(--white);
}

/* HEADER STYLES (INCLUDING HAMBURGER AND NAV-LIST DEFAULTS) HAVE BEEN MOVED TO EMBEDDED STYLES IN HEADER.PHP */

/* Hero Section */
.hero {
  background-color: var(--dark-blue); /* Fallback color */
  color: var(--white);
  text-align: center;
  padding: 150px 20px;
  position: relative;
  overflow: hidden; /* Hide particles outside */
}

.hero #particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Behind content */
  opacity: 0.7; /* Slightly transparent */
}

.hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--white);
  line-height: 1.2;
}

.hero p {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: var(--light-gray);
}

/* Sections */
.section {
  padding: 80px 0;
  text-align: center;
}

.section:nth-child(even) {
  background-color: var(--light-gray);
}

.section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.section-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

/* About Us & Why Choose Us */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.about-item {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.about-item h3 {
  color: var(--accent-color);
  margin-bottom: 15px;
}

/* Products & Solutions */
.product-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.product-categories button {
  background-color: var(--dark-blue);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.product-categories button:hover,
.product-categories button.active {
  background-color: var(--accent-color);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.product-card-content {
  padding: 20px;
}

.product-card h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--dark-blue);
}

.product-card p {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 15px;
}

/* Certifications & Manufacturing */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.info-item {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.info-item img {
  max-width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.info-item h3 {
  color: var(--accent-color);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 40px;
  text-align: left;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-blue);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: "Roboto", sans-serif;
  font-size: 1em;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  width: auto;
  padding: 12px 30px;
}

.contact-info p {
  margin-bottom: 10px;
}

.contact-info iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 8px;
  margin-top: 20px;
}

/* Footer */
.footer {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 60px 0 30px;
  font-size: 0.95em;
}

.footer a {
  color: var(--light-gray);
}

.footer a:hover {
  color: var(--accent-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  text-align: left;
}

.footer-section h3 {
  color: var(--cyan);
  margin-bottom: 20px;
  font-size: 1.2em;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section .social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.footer-section .social-links img {
  width: 24px;
  height: 24px;
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(103%) contrast(103%); /* White icons */
  transition: filter 0.3s ease;
}

.footer-section .social-links a:hover img {
  filter: invert(70%) sepia(90%) saturate(1000%) hue-rotate(150deg) brightness(100%) contrast(100%); /* Cyan icons on hover */
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-bottom .btn {
  margin-top: 10px;
}

/* RESPONSIVE DESIGN (Solo para el resto del sitio, el header tiene sus propios media queries embebidos) */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8em;
  }

  .hero p {
    font-size: 1.1em;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 20px;
  }

  .hero h1 {
    font-size: 2.2em;
  }

  .hero p {
    font-size: 1em;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2em;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8em;
  }

  .hero p {
    font-size: 0.9em;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }

  .product-grid,
  .gallery-grid,
  .info-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
}
