/* ---------------------------------
   IMPORTACIÓN DE FUENTE CORPORATIVA
----------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;700&display=swap');

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Baloo 2', sans-serif;
  color: #333;
  background-color: #f9f9f9;
}

/* UTILIDADES */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------------------------------
   HEADER
----------------------------------- */
.header {
  background-color: #ffffff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  max-height: 50px;
}

/* MENÚ PRINCIPAL */
.nav-list {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-list a {
  text-decoration: none;
  font-weight: 700;
  color: #2651a3;
  transition: color 0.3s;
}

.nav-list a.active,
.nav-list a:hover {
  color: #0a2069;
}

/* BOTÓN HAMBURGUESA */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #2651a3;
  cursor: pointer;
}

/* ---------------------------------
   RESPONSIVE
----------------------------------- */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: center; /* centramos el contenido */
  }

  .nav-toggle {
    display: block;
    align-self: flex-end;
    margin-right: 1rem;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    justify-content: center;  /* centra verticalmente los enlaces */
    align-items: center;       /* centra horizontalmente */
    width: 100%;
    background-color: #ffffff;
    padding: 1rem 0;
    gap: 1rem;
    border-top: 1px solid #eee;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list a {
    font-size: 1.1rem;
    color: #2651a3;
  }

  .nav-list a:hover {
    color: #0a2069;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .nav-list a {
    font-size: 1rem;
  }
}


/* ---------------------------------
   HERO
----------------------------------- */
.hero {
  position: relative;
  height: 90vh;
  background: url('img/hero.png') no-repeat center center/cover;
  display: flex;
  align-items: flex-end;
}

.overlay {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  text-align: center;
  padding: 40px 20px;
}

.overlay h1 {
  color: white;
  font-size: 2rem;
  font-weight: 900;
}

/* ---------------------------------
   NOSOTROS (Overlay con ángulo)
----------------------------------- */
.nosotros-overlay {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.nos-img {
  width: 50%;
  position: relative;
  z-index: 1;
}

.nos-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nos-text {
  width: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  z-index: 2;
}

.angled-bg {
  position: absolute;
  left: -80px;
  top: 0;
  width: calc(100% + 80px);
  height: 100%;
  background-color: #7f7f7f;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 10% 100%, 0% 50%);
  z-index: 1;
}

.text-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 600px;
  padding: 60px 40px;
}

.text-content h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.text-content p {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Responsive para Nosotros */
@media (max-width: 768px) {
  .nosotros-overlay {
    flex-direction: column;
  }

  .nos-img,
  .nos-text {
    width: 100%;
  }

  .angled-bg {
    clip-path: none;
    left: 0;
    width: 100%;
  }

  .text-content {
    padding: 40px 20px;
  }
}

/* ---------------------------------
   PRODUCTOS / PROCESOS
----------------------------------- */
.servicios-circulares {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 60px 20px;
  background-color: #f1f4f8;
  text-align: center;
}

.servicio {
  flex: 1 1 280px;
  max-width: 300px;
  transition: transform 0.3s ease;
}

.servicio:hover {
  transform: translateY(-5px);
}

.imagen-circular {
  width: 220px;
  height: 220px;
  margin: 0 auto 20px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.imagen-circular img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.imagen-circular:hover img {
  transform: scale(1.05);
}

.servicio h3 {
  color: #2651a3;
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.servicio p {
  color: #2651a3;
  font-size: 1rem;
  margin-top: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Responsive para servicios circulares */
@media (max-width: 768px) {
  .servicios-circulares {
    flex-direction: column;
    align-items: center;
  }

  .imagen-circular {
    width: 180px;
    height: 180px;
  }

  .servicio h3 {
    font-size: 1.5rem;
  }
}

/* ---------------------------------
   SECCIÓN SERVICES CON CARDS
----------------------------------- */
.services {
  padding: 60px 0;
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 10px;
  background-color: #fff;
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ---------------------------------
   FEATURES / ÍCONOS
----------------------------------- */
.features {
  background-color: #f1f4f8;
  padding: 40px 20px;
  text-align: center;
}

.features h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #003865;
  margin-bottom: 40px;
}

.features-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.feature-item {
  flex: 1 1 220px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-item img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

.feature-item p {
  font-size: 1rem;
  color: #333;
  line-height: 1.4;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .features-grid {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
}

/* ---------------------------------
   FOOTER
----------------------------------- */
.site-footer {
  background-color: #003865;
  color: #ffffff;
  padding: 60px 20px;
  font-family: 'Baloo 2', sans-serif;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1 1 300px;
}

.footer-logo {
  max-width: 180px;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f2b705;
  margin-top: 20px;
  margin-bottom: 10px;
}

.footer-col p {
  font-size: 1rem;
  line-height: 1.6;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-menu a:hover {
  color: #f2b705;
}

/* Redes sociales */
.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-icons a img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s;
}

.social-icons a:hover img {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    gap: 30px;
  }

  .footer-col {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}


.servicios-frigocentro {
  background-color: #f8f8f8;
  padding: 80px 20px;
  text-align: center;
}

.servicios-frigocentro h2 {
  font-size: 2.2rem;
  color: #003865; /* azul Frigocentro */
  font-weight: 700;
  margin-bottom: 50px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.servicio-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-6px);
}

.servicio-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.servicio-card h3 {
  color: #2651a3;
  font-size: 1.4rem;
  margin: 20px 0 10px;
  font-weight: 700;
}

.servicio-card p {
  font-size: 1rem;
  padding: 0 20px 30px;
  color: #444;
  line-height: 1.5;
}

.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: transparent;
  text-align: center;
}

/* --- VIDEO AJUSTADO AL ANCHO --- */
.hero-video {
  display: block;
  width: 100%;     /* siempre ocupa el ancho completo */
  height: auto;    /* se ajusta en altura manteniendo proporción */
  margin: 0 auto;  /* centra el video horizontalmente */
  z-index: 0;
}

/* --- SLIDE Y OVERLAY --- */
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide .overlay {
  width: 100%;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4);
  text-align: center;
}

.hero-slide .overlay h1 {
  color: white;
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .hero-slider {
    height: 80vh; /* reduce altura en tablets */
  }

  .hero-slide .overlay h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    height: 70vh; /* reduce aún más en móviles */
  }

  .hero-slide .overlay {
    padding: 20px;
  }

  .hero-slide .overlay h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 60vh;
  }

  .hero-slide .overlay h1 {
    font-size: 1.4rem;
  }
}

.carousel-container {
            width: 100%;
            position: relative;
            background: transparent;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }

        .carousel-wrapper {
            overflow: hidden;
            position: relative;
        }

        .carousel-track {
            display: flex;
            transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .carousel-slide {
            min-width: 100%;
            position: relative;
            overflow: hidden;
        }

        .carousel-slide::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: var(--bg-image);
            background-size: cover;
            background-position: center;
            filter: blur(20px);
            transform: scale(1.1);
            z-index: 0;
        }

        .carousel-slide img {
            width: 100%;
            height: 500px;
            object-fit: contain;
            object-position: center;
            display: block;
            position: relative;
            z-index: 1;
        }

        .slide-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            color: white;
            padding: 40px 30px 30px;
        }

        .slide-content h2 {
            font-size: 2em;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        .slide-content p {
            font-size: 1.1em;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        }

        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.9);
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 10;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }

        .carousel-btn:hover {
            background: white;
            transform: translateY(-50%) scale(1.1);
        }

        .carousel-btn.prev {
            left: 20px;
        }

        .carousel-btn.next {
            right: 20px;
        }

        .carousel-indicators {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
            z-index: 10;
        }

        .indicator {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            border: 2px solid white;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .indicator.active {
            background: white;
            transform: scale(1.2);
        }

        @media (max-width: 768px) {
            .carousel-slide img {
                height: 350px;
                object-fit: contain;
            }

            .slide-content h2 {
                font-size: 1.5em;
            }

            .slide-content p {
                font-size: 0.9em;
            }

            .carousel-btn {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }

            .carousel-btn.prev {
                left: 10px;
            }

            .carousel-btn.next {
                right: 10px;
            }
        }

        @media (max-width: 480px) {
            .carousel-slide img {
                height: 250px;
                object-fit: contain;
            }

            .slide-content {
                padding: 20px 15px 15px;
            }

            .slide-content h2 {
                font-size: 1.2em;
            }

            .slide-content p {
                font-size: 0.8em;
            }
        }