@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

html {
  position: relative;
  overflow: hidden;
}

body {
  background: #b0b0b0;
  background: linear-gradient(90deg, rgba(176, 176, 176, 1) 0%, rgba(71, 71, 71, 1) 100%);
  font-family: "Roboto", serif;
  font-weight: 300;
  font-style: normal;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-size: cover;
  height: 100vh;
}

/* ====== HEADER ====== */
.main-header {
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .logo {
  display: flex;
  align-items: center;
}

.main-header .logo img {
  max-height: 60px;
}

.main-header .navigation {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* ====== MENÚ NIVEL SUPERIOR ====== */
.main-header .nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

/* Limitar estilos al PRIMER NIVEL */
.main-header .nav-list > li{
  display: inline-block;
  position: relative;
  background-color: #ffffff;
  border-radius: 5px;
  padding: 2px;
  border: solid 3px black;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/* Link de primer nivel */
.main-header .nav-list > li > a{
  display: inline-block;
  text-decoration: none;
  padding: 4px 10px;
  color: black;
  font-size: 16px;
  font-weight: normal;
  transition: color .2s ease;
}

/* === Animación igual a INGRESAR para SERVICIOS / NOSOTROS / CONTACTO === */
.main-header .nav-list > li:hover{
  background-color: #000;                    /* fondo negro */
  border-color: #ffffff;                     /* borde blanco */
  box-shadow: 0px 0px 15px 5px rgba(255,255,255,0.5);  /* resplandor */
}
.main-header .nav-list > li:hover > a{
  color: #ffffff;                            /* texto blanco */
}

/* ====== DROPDOWN ====== */
.main-header .nav-list > li.dropdown { position: relative; }

/* Caja del dropdown alineada al botón padre */
.main-header .nav-list > li.dropdown > .dropdown-menu{
  display: none;
  position: absolute;
  top: calc(100% + 2px);   /* pequeño gap; evita hueco que cierre el menú */
  left: 0;                 /* alineado al borde izquierdo del botón */
  width: max-content;
  padding: 0;
  margin: 0;
  list-style: none;
  background: transparent;
  border-radius: 8px;
  z-index: 1000;
  box-shadow: 0 8px 16px rgba(0,0,0,.25);
}

/* Flechita (opcional) */
.dropdown-menu::after{
  content: '';
  position: absolute;
  top: -8px;           /* ligeramente más cerca para “cerrar” el hueco */
  left: 14px;
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent #ffffff transparent;
}

/* Items del submenú */
.dropdown-menu li{
  position: relative;
  margin: 6px 0;
}

/* El enlace ocupa TODO el ancho/alto y pinta la “pastilla” */
.dropdown-menu li > a{
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: #fff;
  color: #111 !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  text-decoration: none;
  border: 2px solid #111;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  position: relative;
  z-index: 1;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

/* Hover del submenú (negro) */
.dropdown-menu li:hover > a,
.dropdown-menu li > a:hover{
  background: #000;
  color: #fff !important;
  border-color: #000;
}

/* Mantener menú abierto al pasar del botón al dropdown */
.nav-list > li.dropdown:hover > .dropdown-menu,
.nav-list > li.dropdown > .dropdown-menu:hover {
  display: block;
}

/* “Puente” invisible para evitar cierre por huequito */
.nav-list > li.dropdown::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;   /* tolerancia */
}

/* ====== BOTÓN INGRESAR ====== */
.btn-ingresar {
  float: right;
  background-color: #ffffff;
  color: black;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: normal;
  border-radius: 5px;
  border: solid 3px black;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn-ingresar:hover {
  background-color: black;
  color: #ffffff;
  border: solid 3px #ffffff;
  box-shadow: 0px 0px 15px 5px rgba(255, 255, 255, 0.5);
}

a, a:hover { text-decoration: none; }
.icon { display: inline-block; width: 1em; height: 1em; stroke-width: 0; stroke: currentColor; fill: currentColor; }

/* ====== RESTO (slider y otros) ====== */

.item-bg {
  width: 300px;
  height: 500px;
  position: absolute;
  top: 30px;
  border-radius: 10px;
  box-shadow: 0 6px 26px 6px rgba(0,0,0,0.25);
  opacity: 0;
  transition: all .3s;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.item-bg.active {
  background-color: #ffffff;
  color: black;
  z-index: 0;
  left: 0;
  top: 0;
  opacity: 1;
}

.news-slider {
  z-index: 2;
  max-width: 1100px;
  width: 85%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
}
@media screen and (min-width: 1920px) { .news-slider { max-width: 1500px; } }
@media screen and (max-width: 1300px) { .news-slider { max-width: 900px; } }
@media screen and (max-width: 992px)  { .news-slider { max-width: 680px; } }
@media screen and (max-width: 576px)  { .news-slider { width: 100%; margin-top: 20px; } }

.news-slider__wrp { display: flex; align-items: flex-start; position: relative; z-index: 2; }
.news-slider__item { width: 400px !important; flex-shrink: 0; }  /* laptop 1280-1440px */
@media screen and (min-width: 1920px) { .news-slider__item { width: 520px !important; } } /* full HD y 2K */
@media screen and (max-width: 1300px) { .news-slider__item { width: 350px !important; } } /* laptop pequeña */
@media screen and (max-width: 992px)  { .news-slider__item { width: 280px !important; } } /* tablet */
@media screen and (max-width: 576px)  { .news-slider__item { width: 220px !important; } } /* móvil */

.news-slider__item.swiper-slide { opacity: 0; pointer-events: none; transition: all .3s; }
.news-slider__item.swiper-slide-active,
.news-slider__item.swiper-slide-prev,
.news-slider__item.swiper-slide-next { opacity: 1; pointer-events: auto; }

.news-slider__ctr { position: relative; z-index: 12; }
.news-slider__arrow {
  background: #ffffff;
  border: none;
  display: inline-flex;
  width: 50px;
  height: 50px;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  z-index: 12;
  cursor: pointer;
  outline: none!important;
}
.icon-arrow-left { fill: black; width: 20px; height: 20px; }
.icon-arrow-right { fill: black; width: 20px; height: 20px; }
.news-slider-prev { left: 320px; transform: translateY(-50%); }
.news-slider-next { right: 320px; transform: translateY(-50%); }

.news-slider__pagination { text-align: center; margin-top: 20px; }
.news-slider__pagination .swiper-pagination-bullet {
  width: 15px;
  height: 10px;
  display: inline-block;
  background: #57595c;
  opacity: 1;
  margin: 0 5px;
  border-radius: 20px;
  transition: opacity .5s, background-color .5s, width .5s;
  transition-delay: .5s, .5s, 0s;
}
.news-slider__pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: #ffffff;
  width: 50px;
  transition-delay: 0s;
}
@media screen and (max-width: 576px) {
  .news-slider__pagination .swiper-pagination-bullet-active { width: 70px; }
}

.news__item {
  height: 300px;
  padding: 10px 20px;
  color: #000000;
  border-radius: 10px;
  display: block;
  transition: all .3s;
  z-index: 1;
}
.news__item.active { z-index: 10; color: black; }
.news__title.active { color: black; }
.news__txt.active { color: black; }
.news__item.active .news__img { display: flex; box-shadow: none; }

@media screen and (max-width: 992px) { .news__item { padding: 30px; } }
@media screen and (max-width: 576px) { .news__item { padding: 20px; } }

.news__title {
  font-size: 16px;
  font-weight: 500;
  margin-top: 6px;
  margin-bottom: 8px;
  transition: opacity .3s;
  color: white;
}
@media screen and (max-width: 576px) {
  .news__title { font-size: 22px; margin-bottom: 10px; color: black; }
}

.news__txt {
  margin: 6px 0;
  line-height: 1.4em;
  font-size: 12px;
  transition: opacity .3s;
  color: white;
}

/* Hover global del slide */
.news-slider__item:hover .news__title,
.news-slider__item:hover .news__txt {
  color: #000 !important;
  opacity: 1;
}

@media (min-width: 800px) {
  .news__item:hover .news__img { box-shadow: none; }
}

.news__img {
  border-radius: 10px;
  box-shadow: 0 6px 26px 6px rgba(0,0,0,0.25);
  height: 185px;
  margin-top: 10px;
  width: 100%;
  transition: all .3s;
  transform-origin: 0% 0%;
}
@media screen and (max-width: 576px) {
  .news__img { height: 180px; margin-top: 20px; }
}
.news__img img {
  max-width: 100%;
  border-radius: 10px;
  height: 100%;
  width: 100%;
}

svg[hidden] { display: none; }

.titulo-carrusel {
  display: flex;
  justify-content: center;
  padding: 8px 0;
  font-size: 22px;
}

.carousel-container {
  width: 700px;
  max-width: 90%;
  overflow: hidden;
  position: relative;
  height: 65px;
  margin: 0 auto;
  white-space: nowrap;
}

@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

.carousel-slide {
  display: inline-block;
  gap: 25px;
  animation: 50s slide infinite linear;
}

.carousel-slide img {
  height: 45px;
  padding: 0 10px;
  width: auto;
  object-fit: cover;
}

.orica-logo { height: 50px; width: 110px; }
.cfe-logo { height: 38px; width: 110px; }
.field-logo { height: 50px; width: 120px; }
.karcher-logo { height: 50px; width: 120px; }
.coca-cola-logo { height: 50px; width: 120px; }
.infac-logo { height: 45px; width: 120px; }
.metelmex-logo { height: 45px; width: 120px; }
.sesa-logo { height: 45px; width: 120px; }
.mission-logo { height: 45px; width: 70px; }

/* ===== FIX colores slider ===== */
.news__title,
.news__txt { color:#fff; transition: color .25s ease; }

.news-slider .news-slider__item.swiper-slide-active .news__title,
.news-slider .news-slider__item.swiper-slide-active .news__txt,
.news-slider .news-slider__item.swiper-slide-duplicate-active .news__title,
.news-slider .news-slider__item.swiper-slide-duplicate-active .news__txt {
  color: #fff !important;
}

.news-slider__item:hover .news__title,
.news-slider__item:hover .news__txt {
  color: #000 !important;
  opacity: 1;
}

.news-slider .news__item.active .news__title,
.news-slider .news__item.active .news__txt {
  color: #000 !important;
}

/* Hero móvil — oculto en desktop */
.mobile-hero { display: none; }

/* ====== MÓVIL (max 768px) — lista vertical, sin carrusel ====== */
@media screen and (max-width: 768px) {

  /* Permitir scroll vertical en móvil */
  html { overflow: auto !important; }
  body { height: auto !important; overflow-x: hidden !important; overflow-y: auto !important; }


  /* Bienvenida móvil */
  .mobile-hero {
    display: block;
    text-align: center;
    padding: 20px 16px 10px;
  }
  .mobile-hero__title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: 1px;
  }
  .mobile-hero__sub {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin: 0;
    letter-spacing: 0.5px;
  }

  /* Ocultar fondo animado y controles del carrusel */
  .item-bg { display: none !important; }
  .news-slider__ctr { display: none !important; }

  /* Slider como contenedor normal */
  .news-slider {
    width: 92% !important;
    max-width: 92% !important;
    margin: 10px auto 0;
  }

  /* Slides apiladas verticalmente */
  .news-slider__wrp {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
  }

  /* Todas las tarjetas visibles */
  .news-slider__item {
    width: 100% !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Estilo de cada tarjeta */
  .news__item {
    height: auto !important;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 16px 20px !important;
    display: block !important;
  }

  /* Texto oscuro sobre fondo blanco */
  .news__title,
  .news-slider .news-slider__item .news__title,
  .news-slider .news-slider__item.swiper-slide-active .news__title {
    color: #000000 !important;
    font-size: 18px !important;
    margin-bottom: 6px;
  }
  .news__txt,
  .news-slider .news-slider__item .news__txt,
  .news-slider .news-slider__item.swiper-slide-active .news__txt {
    color: #333333 !important;
    font-size: 14px !important;
  }

  /* Imagen de cada tarjeta */
  .news__img {
    height: 180px !important;
    margin-top: 10px;
  }
  .news__img img { object-fit: cover; }

  /* Sección clientes */
  .titulo-carrusel { font-size: 20px !important; margin-top: 24px !important; padding: 8px 0; }
  .carousel-container { height: 50px; }
  .carousel-slide img { height: 35px; }

}

/* ====== DESKTOP MEDIANO (1300px-1919px, pantalla alta) ====== */
@media screen and (min-width: 1300px) and (max-width: 1919px) and (min-height: 850px) {
  .main-header .logo img { max-height: 80px; }
  .main-header .nav-list > li > a { font-size: 20px; }
  .main-header .nav-list { gap: 30px; }
  .btn-ingresar { font-size: 20px; padding: 8px 16px; }
  .news-slider { max-width: 1600px; }
  .news-slider__item { width: 600px !important; }
  .news__item { height: 490px; padding: 14px 20px 6px; }
  .news__img { height: 360px; }
  .news__img img { object-fit: cover; }
  .news__title { font-size: 22px; }
  .news__txt { font-size: 16px; }
  .news-slider-prev { left: 430px; }
  .news-slider-next { right: 430px; }
  .titulo-carrusel { font-size: 26px; padding: 6px 0; margin-top: 55px; }
  .carousel-container { height: 95px; }
  .carousel-slide img { height: 60px; }
}

/* ====== DESKTOP FULL HD (1920px+) ====== */
@media screen and (min-width: 1920px) {
  .main-header { padding: 20px 60px; }
  .main-header .logo img { max-height: 100px; }
  .main-header .nav-list > li > a { font-size: 22px; }
  .main-header .nav-list { gap: 40px; }
  .btn-ingresar { font-size: 22px; padding: 10px 20px; }
  .news-slider { max-width: 1800px; margin-top: 60px; }
  .news-slider__item { width: 620px !important; }
  .news__item { height: 500px; padding: 18px 26px; }
  .news__img { height: 310px; }
  .news__title { font-size: 24px; margin-top: 12px; margin-bottom: 12px; }
  .news__txt { font-size: 16px; margin: 10px 0; line-height: 1.5em; }
  .news-slider__pagination { margin-top: 30px; }
  .titulo-carrusel { font-size: 34px; padding: 22px 0; }
  .news-slider-prev { left: 480px; }
  .news-slider-next { right: 480px; }
  .carousel-container { width: 1200px; height: 110px; }
  .carousel-slide img { height: 65px; }
  .orica-logo { height: 80px; width: 170px; }
  .cfe-logo { height: 62px; width: 170px; }
  .field-logo { height: 80px; width: 180px; }
  .karcher-logo { height: 80px; width: 180px; }
  .coca-cola-logo { height: 80px; width: 180px; }
  .infac-logo { height: 72px; width: 180px; }
  .metelmex-logo { height: 72px; width: 180px; }
  .sesa-logo { height: 72px; width: 180px; }
  .mission-logo { height: 72px; width: 110px; }
}

/* ====== DESKTOP 2K (2560px+) ====== */
@media screen and (min-width: 2560px) {
  .main-header .logo img { max-height: 110px; }
  .main-header .nav-list > li > a { font-size: 26px; }
  .main-header .nav-list { gap: 50px; }
  .btn-ingresar { font-size: 26px; padding: 12px 24px; }
  .news-slider { max-width: 2200px; }
  .news-slider__item { width: 700px !important; }
  .news__item { height: 680px; }
  .news__img { height: 420px; }
  .news__title { font-size: 44px; }
  .news__txt { font-size: 30px; }
}
