:root {
      --naranja: #f59020;
      --azul: #003350;
      --gris: #f1f1f1;
      --negro: #000000;
      --blanco: #ffffff;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      margin: 0;
      font-family: 'Work Sans', sans-serif;
      background-color: var(--blanco);
      color: var(--azul);
      line-height: 1.6;
      padding-top: 70px;
    }

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

    /* --- NAVIGATION STYLES --- */
header {
  background: var(--azul);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  transition: background 0.3s;
}

header.scrolled {
  background: rgba(0, 51, 80, 0.85) !important;
}

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

.logo {
  margin-right: 32px;
  display: flex;
  align-items: center;
  height: 60px;
}

.logo img {
  height: 48px;
  width: auto;
}

nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 3000;
}

nav ul li {
  position: relative;
  font-family: 'Work Sans', sans-serif;
}

nav ul li a {
  display: block;
  padding: 20px 24px;
  color: var(--blanco);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

nav ul li:hover > a,
nav ul li:focus-within > a {
  background: var(--naranja);
  color: var(--blanco);
}

.has-dropdown {
  position: relative;
}

.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: rgba(0, 51, 80, 0.97);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 4000 !important;
  padding-top: 8px; /* Espacio para evitar que se cierre al mover el mouse */
  border-radius: 0 0 8px 8px;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

.has-dropdown .dropdown li a {
  color: var(--blanco);
  padding: 0.7rem 1.2rem;
  display: block;
  text-decoration: none;
  font-weight: 500;
  border-radius: 0;
  transition: background 0.2s;
}

.has-dropdown .dropdown li a:hover {
  background: var(--gris);
  color: var(--naranja);
}

.dropdown li a {
  padding: 14px 24px;
  color: var(--blanco);
  background: none;
}

.dropdown li a:hover {
  background: var(--naranja);
  color: var(--blanco);
}

header,
.nav-container,
nav ul,
.has-dropdown .dropdown {
  z-index: 2000 !important;
}

.has-dropdown .dropdown {
  pointer-events: auto;
}

    section.hero {
      display: flex;
      /* background-color: var(--azul); */
      color: white;
      padding: 4rem 2rem;
      min-height: 100vh;
      box-sizing: border-box;
      position: relative;
      align-items: center;
    }
    .hero-video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -2;
    }

    .video-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 51, 80, 0.7);
      z-index: -1;
    }
    .hero-video::-webkit-media-controls {
      display: none !important;
    }

    .hero-flex {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4rem;
      height: 100%;
      text-align: center;
      position: relative;
      z-index: 0;
    }

    .hero-text {
      flex: 1;
      max-width: 600px;
      text-align: left;
    }

    .hero-image {
      flex: 1;
      max-width: 600px;
      display: flex;
      justify-content: center;
    }

    .hero-image img {
      /* max-width: 300px; */
      width: 100%;
      height: auto;
      border-radius: 12px;
      /*  box-shadow: 0 2px 12px rgba(0,0,0,0.12); */
    }
    
    .testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 2rem auto;
    overflow: hidden;
    } /* End of .testimonials-carousel */
    
    .carousel-container {
      display: flex;
      transition: transform 0.5s ease;
    }
    
    .testimonial-video {
      min-width: 100%;
      padding: 0 15px;
      box-sizing: border-box;
      display: none;
    }
    
    .testimonial-video.active {
      display: block;
    }
    
    .testimonial-video iframe {
      width: 100%;
      height: 450px;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .testimonial-info {
      margin-top: 1.5rem;
      text-align: center;
    }
    
    .testimonial-info h3 {
      color: var(--azul);
      margin-bottom: 0.5rem;
    }
    
    .testimonial-info p {
      font-style: italic;
      color: #555;
    }
    
    .carousel-controls {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-top: 1.5rem;
    }
    
    .carousel-prev, .carousel-next {
      background: var(--naranja);
      color: white;
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      font-size: 1rem;
      cursor: pointer;
      margin: 0 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.3s;
    }
    
    .carousel-prev:hover, .carousel-next:hover {
      background: #e07d0d;
    }
    
    .carousel-dots {
      display: flex;
      gap: 10px;
    }
    
    .dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #ccc;
      cursor: pointer;
    }
    
    .dot.active {
      background: var(--naranja);
    }
    

    /* Responsive: stack on mobile */
    @media (max-width: 800px) {
      header.hero {
        padding: 4rem 2rem;
        height: auto;
      }

      .hero-flex {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
      }

      .hero-image {
        justify-content: center;
        margin-top: 2rem;
      }
      
      .testimonial-video iframe {
        height: 250px;
      }
    }
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

.scroll-down a {
  display: block;
  width: 40px;
  height: 40px;
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
    .hero h1 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      font-weight: 700;
    }

    .hero p {
      font-size: 1.2rem;
      max-width: 800px;
    }
    

    .section {
      padding: 4rem 0;
    }

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

    .section-subtitle {
      text-align: center;
      font-size: 1.2rem;
      max-width: 800px;
      margin: 0 auto 3rem;
    }

    .section-image {
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 2rem;
    }

    .section-image img {
      max-width: 300px;
      width: 100%;
      height: auto;
      border-radius: 12px;
    }

    .brands-section {
      background-color: var(--gris);
    }

    .brand-categories {
      display: flex;
      justify-content: center;
      gap: 2rem;
      margin-bottom: 3rem;
      flex-wrap: wrap;
    }

    .brand-category {
      font-weight: 700;
      color: var(--blanco);
      background-color: var(--naranja);
      padding: 1rem 1rem;
      border-radius: 4px;
      box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
    }    
     .bio-categories {
      display: flex;
      justify-content: center;
      gap: 2rem;
      margin-bottom: 3rem;
      flex-wrap: wrap;
    }
    .bio-category {
      font-weight: 700;
      color: var(--blanco);
      padding: 0.5rem 1rem;
      border-radius: 4px;
    }

    .brands-grid {
      display: grid;
      justify-items: center;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
      text-align: center;
    }

    .brand-card {
      background-color: var(--blanco);
      /* padding: 2rem 1rem; */
      box-sizing: border-box;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .brand-card img {
      max-width: none;
      width: 100%;
      border-top-left-radius: 8px;
      border-top-right-radius: 8px;
      /* height: auto; */
      /* margin-bottom: 1rem; */
    }

    .brand-card h3 {
      margin: 0.5rem 0;
      font-size: 1.2rem;
    }

    .brand-card p {
      font-size: 1rem;
      margin: 1rem 1rem;
    }

    .cta-button {
      display: inline-block;
      margin-top: 2rem;
      padding: 0.8rem 1.5rem;
      font-size: 1rem;
      font-weight: 600;
      background-color: var(--naranja);
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      text-decoration: none;
    }    
    
    .contact-button {
      display: inline-block;
      margin-top: 2rem;
      padding: 0.8rem 1.5rem;
      font-size: 1rem;
      font-weight: 600;
      background-color: var(--naranja);
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      text-decoration: none;
    }

    .bio-technology {
      position: relative;
      overflow: hidden;
      text-align: left;
      background-color: var(--azul);
      color: white;
      padding: 3rem 2rem;
    }

    .bio-technology > *:not(.bio-bg-slideshow) {
      position: relative;
      z-index: 1;
    }

    .bio-technology h2 {
      font-size: 1.8rem;
      margin-bottom: 1rem;
    }

    .bio-technology p {
      font-size: 1.5rem;
      font-weight: 300;
      max-width: 600px;
      margin: 0 auto;
    }

    .bio-bg-slideshow {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      background-size: cover;
      background-position: center;
      transition: opacity 1.5s ease;
      opacity: 0.5;
      pointer-events: none;
    }
    .bio-items {
      display: flex;
      justify-content: center;
      gap: 2rem;
      margin-bottom: 3rem;
      color: var(--naranja);
      flex-wrap: wrap;
      padding: 0.5rem 1rem;
    }
     /* .bio-category {
      font-weight: 700;
      color: var(--naranja);
      background-color: var(--azul);
      padding: 0.5rem 1rem;
      border-radius: 4px;
    } */

    footer {
      text-align: center;
      background: var(--negro);
      color: white;
      padding: 1.5rem;
      font-size: 0.9rem;
    }

    .bio-flex {
      display: flex;
      align-items: center;
      gap: 2rem;
      flex-wrap: wrap;
      margin-bottom: 2rem;
    }

    .bio-logo img {
      max-width: 300px;
      display: block;
      margin: 0 auto;
    }

    .bio-content {
      flex: 1;
      min-width: 250px;
    }

    .bio-content h2 {
      font-size: 1.5rem;
      margin-bottom: auto;
    }

    .bio-list {
      list-style: none;
      padding: 0;
      margin: 1.5rem 0 0 0;
    }

    .bio-list li {
      margin-bottom: 0.7rem;
      font-size: 1.1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .bio-list iframe {
      display: block;
      margin: 0 auto;
    }

    /* .contacto-grid {
      display: grid;
      background-color: var(--gris);
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      align-items: flex-start;
    } */

    .map-container {
      display: flex;
      height: 300px;
      padding: 2rem
    }
    .map-container iframe {
      width: 100%;
      height: 100%;
      border: 0;
      border-radius: 8px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    }

    /* @media (max-width: 800px) {
      .contacto-grid {
        grid-template-columns: 1fr;
      }
    } */

    /* Responsive */
    @media (max-width: 700px) {
      .bio-flex {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
      }

      .bio-logo img {
        margin-bottom: 1rem;
      }
    }

    .social-icons {
      display: flex;
      color: var(--naranja);
      justify-content: center;
      gap: 1rem;
      margin-bottom: 3rem;
      margin-top: 1rem;
    }
  
    .social-icons a {
      color: var(--naranja);
      text-decoration: none;
      font-size: 2rem;
    }

