:root {
  --vh: 1vh;
}

*::selection {
    background-color: #ff370f;
    color: white;
}

body {
  font-family: 'Montserrat', sans-serif;
}

h1, .text-logo #logo {
	font-size: 48px !important;
	line-height: 50px !important;
	font-weight: 400 !important;
	letter-spacing: 0px !important;
}
h2 {
	font-size: 50px !important;
	line-height: 60px !important;
	font-weight: 700 !important;
	letter-spacing: 0px !important;
}
h3 {
	font-size: 35px !important;
	line-height: 45px !important;
	font-weight: 700 !important;
	letter-spacing: 0px !important;
}
h4 {
	font-size: 25px !important;
	line-height: 35px !important;
	font-weight: 300 !important;
	letter-spacing: 0px !important;
}
h5 {
	font-size: 20px !important;
	line-height: 30px !important;
	font-weight: 400 !important;
	letter-spacing: 0px !important;
}
h6 {
	font-size: 15px !important;
	line-height: 25px !important;
	font-weight: 300 !important;
	letter-spacing: 0px !important;
}

@media only screen and (min-width: 480px) and (max-width: 767px) {
	h1, .text-logo #logo {
		font-size: 36px !important;
		line-height: 38px !important;
		letter-spacing: 0px !important;
	}
	h2 {
		font-size: 38px !important;
		line-height: 45px !important;
		letter-spacing: 0px !important;
	}
	h3 {
		font-size: 26px !important;
		line-height: 34px !important;
		letter-spacing: 0px !important;
	}
	h4 {
		font-size: 19px !important;
		line-height: 26px !important;
		letter-spacing: 0px !important;
	}
	h5 {
		font-size: 15px !important;
		line-height: 23px !important;
		letter-spacing: 0px !important;
	}
	h6 {
		font-size: 13px !important;
		line-height: 19px !important;
		letter-spacing: 0px !important;
	}
}
@media only screen and (max-width: 479px) {
	
	h1, .text-logo #logo {
		font-size: 29px !important;
		line-height: 30px !important;
		letter-spacing: 0px !important;
	}
	h2 {
		font-size: 30px !important;
		line-height: 36px !important;
		letter-spacing: 0px !important;
	}
	h3 {
		font-size: 21px !important;
		line-height: 27px !important;
		letter-spacing: 0px !important;
	}
	h4 {
		font-size: 15px !important;
		line-height: 21px !important;
		letter-spacing: 0px !important;
	}
	h5 {
		font-size: 13px !important;
		line-height: 19px !important;
		letter-spacing: 0px !important;
	}
	h6 {
		font-size: 13px !important;
		line-height: 19px !important;
		letter-spacing: 0px !important;
	}
}

/* Navbar general */

.custom-navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 9999;
  padding: 56px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  background-color: transparent;
}

.custom-navbar.custom-transparent {
  background-color: rgba(0, 0, 0, 0);
}

.custom-navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Logo */
.custom-logo img {
  max-height: 50px;
}

/* Slogan */
.custom-slogan {
  color: white;
  font-weight: 500;
  font-size: 14px;
  flex-grow: 1;
  text-align: center;
  white-space: nowrap;
}

/* Menú */
.custom-nav-menu {
  padding: 15px;
}

.custom-nav-menu ul {
  list-style: none;
  display: flex;
  gap: 30px;
  right: 50px;
  position: relative;
  margin: 0;
  font-family: "Montserrat", Arial, Tahoma, sans-serif;
  padding: 0 20px;
}

.custom-nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.custom-nav-menu a:hover,
.custom-nav-menu a.active {
  color: #00c8a0;
}

/* NUEVO: menú hamburguesa móvil */
.custom-hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.custom-hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
}

/* Mostrar fondo fijo al hacer scroll */
.custom-navbar.scrolled{
  background-color: #000 !important;
  padding: 5px;
}

.custom-navbar.scrolled .custom-logo img {
  position: relative;
  left: 50px;
  max-height: 35px;
}

/* En móvil: menú oculto por defecto */
@media (max-width: 768px) {
    .custom-hamburger {
        display: flex;
        padding: 30px;
    }

    .custom-nav-menu {
        width: 100%;
        padding: 0px;
    }

    .custom-nav-menu ul {
        display: none;
        flex-direction: column;
        background-color: #000;
        padding: 10px 0;
        margin-top: 10px;
        left: 30px;
    }

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

    .custom-navbar {
        background-color: #000 !important;
        padding: 10px;
    }


    .custom-logo{
        left: 43px;
        position: relative;
    }

    .custom-logo img {
        height: 1000px !important;
    }

    .custom-navbar.scrolled .custom-logo img {
        position: relative;
        left: 10px;
        max-height: 50px !important;
    }

    
}

/* Botón hamburguesa */
.menu-toggle {
  font-size: 28px;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 10001;
  color: white;
}

/* Fondo oscuro al activarse */
.menu-overlay {
  display: none;
  position: fixed;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  top: 0;
  left: 0;
  z-index: 10000;
}

/* Menú lateral */
.side-menu {
  position: fixed;
  top: 0;
  right: -50%;
  width: 50%;
  height: 100vh;
  background-color: #191919;
  z-index: 10001;
  transition: right 0.3s ease;
  color: white;
  display: flex;
  flex-direction: column;
}

.side-menu.active {
  right: 0;
}

/* Encabezado del menú */
.menu-header {
    display: flex;
    justify-content: end;
    align-items: center;
    padding: 20px;
    font-weight: bold;
    border-bottom: 1px solid #333;
}

.menu-header .close-btn {
  font-size: 24px;
  cursor: pointer;
}

/* Lista de enlaces */
.menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.menu-items li {
  border-bottom: 1px solid #333;
}

.menu-items li a {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  font-size: 16px;
}

.menu-items li a:hover {
  background-color: #2a2a2a;
}

/* Solo mostrar el menú hamburguesa en móvil */
@media (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }
}


.hero-traffic-section {
  display: flex;
  height: calc(var(--vh, 1vh) * 100);
  width: 100%;
  flex-direction: row;
}

.traffic-card {
  flex: 1;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.overlay {
  position: relative;
  z-index: 2;
}

.traffic-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55); /* oscurece la imagen */
  z-index: 1;
}

.overlay h3 {
  font-size: 1.8em;
  margin-bottom: 20px;
  line-height: 1.3em;
}

.button.button_large {
  padding: 10px 20px;
  font-size: 1em;
  background-color: white;
  color: #333;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  z-index: 2;
  position: relative;
}

@media (max-width: 768px) {
  .hero-traffic-section {
    flex-direction: column;
  }

  .traffic-card {
    height: calc(var(--vh, 1vh) * 33.33);
  }
}

/*VIDEO HERO*/

.video-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.video-text{
    font-size: 60px;
    line-height: 69px;
    font-weight: 700;
}

/* Muestra solo el video de escritorio por defecto */
.desktop-video {
  display: block;
}
.mobile-video {
  display: none;
}

.overlay-content {
  position: relative;
  z-index: 1;
  color: white;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 5%;
  background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0));
}

.overlay-content h1 {
  font-size: 2.5em;
  font-weight: bold;
  line-height: 1.3;
}
.overlay-content span {
  font-weight: normal;
  font-size: 1.3em;
}

/* Responsivo: cambia a video móvil */
@media (max-width: 768px) {
  .desktop-video {
    display: none;
  }
  .mobile-video {
    display: block;
  }
  .overlay-content h1 {
    font-size: 1.8em;
  }
  .overlay-content span {
    font-size: 1em;
  }
}

/*Seccion Servicios*/

.services-section {
  background-color: #02756b;
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.main-title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 50px;
}

.main-title span {
  font-weight: 900;
  color: #000;
}

.services-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
}

.service-item .icon {
  width: 80px;
  height: 80px;
  background-color: white;
  border-radius: 50%;
  padding: 10px;
  object-fit: contain;
}

.service-title {
  font-size: 1.1em;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.service-title img.underline-img {
  margin-top: 6px;
  width: 80px;
  height: auto;
}

/* Estilos para los destacados */
.service-item.destacado .icon {
  width: 100px;
  height: 100px;
}

.service-item.destacado .service-title {
  font-size: 1.3em;
}

.service-item.destacado .underline-img {
  width: 100px;
}

@media (max-width: 768px) {
  .services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 20px;
    justify-items: center;
  }

  .column {
    all: unset; /* eliminamos el flex de las columnas */
  }

  .service-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .service-title {
    align-items: center;
    text-align: center;
  }
}

.services-video-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.services-video {
  width: 95%;
  max-width: 100%;
}

/* logistics-section*/

.logistics-section {
  background-color: #02756b;
  background-image: url('../img/transport2_pic14.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover; /* ✅ La clave */
  padding: 60px 20px;
  color: white;
  font-family: 'Montserrat', sans-serif;
}

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

.logistics-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.logistics-left, .logistics-right {
  flex: 1 1 45%;
  min-width: 300px;
}

.logistics-left h2 {
  font-size: 2.2em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.logistics-left h2 span {
  font-weight: 600;
  color: white;
}

.logistics-left h2 strong {
  font-weight: 900;
  color: black;
}

.logistics-left p {
  font-size: 1em;
  line-height: 1.6;
  color: white;
}

.logistics-left p strong {
  font-weight: 600;
}

.logistics-right h3 {
  font-size: 1.1em;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.logistics-right ul {
  list-style: disc;
  padding-left: 20px;
  font-size: 1em;
  line-height: 1.6;
}

/* RESPONSIVE: conserva el diseño horizontal en móviles */
@media (max-width: 768px) {
  .logistics-section {
    background-size: cover;
    background-position: center top;
  }

  .logistics-grid {
    flex-direction: column;
    align-items: center;
  }

  .logistics-left, .logistics-right {
    text-align: center;
    flex: 1 1 100%;
  }

  .logistics-right ul {
    list-style-position: inside;
    padding-left: 0;
  }
}

/*adapt-seccion*/

.adapt-section {
  background-color: #02756b;
  padding: 80px 20px;
  text-align: justify;
  font-family: 'Montserrat', sans-serif;
}

.adapt-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.adapt-line {
  width: 60px;
  margin: 0 auto 20px;
  text-align: left;
}

.adapt-title {
  font-size: 2.5rem;
  line-height: 1.3;
  color: white;
}

.adapt-title .white {
  color: white;
  font-weight: 700;
}

.adapt-title .black {
  color: black;
  font-weight: 700;
}

.adapt-title .bold {
  font-weight: 700;
}

@media (max-width: 768px) {
  .adapt-title {
    font-size: 4rem !important;
  }

  .adapt-line {
    width: 50px;
    margin-bottom: 15px;
  }
}

/*traffic-services-section */

.cards-section {
  background-color: #fff;
  padding: 40px 20px;
  font-family: 'Montserrat', sans-serif;
  color: #333;
}

.cards-container {
  display: flex;
  justify-content: center;
  max-width: 1150px; /* Esto evita que las cards se estiren */
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 20px 0;
}

.card {
  flex: 1;
  background-size: cover;
  background-position: center;
  color: white;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 494px;
  box-shadow: inset 0 0 0 1000px rgba(0, 75, 75, 0.4); /* oscurecer imagen */
}

.card h3 {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.btn-card {
  background-color: #fff;
  color: #333;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  width: 40%;   /* Ajusta este valor según prefieras */
  text-align: center;
  box-shadow: 0px 2px 4px rgba(0,0,0,0.2);
}


.cards-bottom-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  padding: 40px 20px;
  max-width: 1150px;
  margin: 0 auto;
}

.cards-bottom-content .column {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.cards-bottom-content ul {
  list-style: none;
  padding: 0;
}

.cards-bottom-content li {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.cards-bottom-content li img {
  width: 20px;
  margin-right: 10px;
}

.cards-bottom-content .adapt-line {
  width: 50px;
  margin-bottom: 20px;
  display: block;
  margin-left: 0; /* Asegura que esté alineada a la izquierda */
}

.text-column {
  flex: 1 1 400px;
  max-width: 500px;
}

.text-column ul {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.text-column li {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 1em;
}

.text-column li img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .cards-container {
    flex-direction: column;
  }

  .card {
    min-height: 300px;
  }

  .cards-text-columns {
    flex-direction: column;
    align-items: center;
  }

  .text-column {
    max-width: 100%;
  }
}

/* Certificaciones */

.certifications-section {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.cert-title {
    font-family: 'Montserrat', Arial, Tahoma, sans-serif;
    font-size: 60px;
    line-height: 60px;
    font-weight: 700;
    letter-spacing: 0px;
    color: #000;
}

.cert-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.cert-logo1 {
  max-width: 40%;
  height: auto;
}

.cert-logo2{
  max-width: 40%;
  height: auto;
}

.cert-divider {
  width: 80%;
  margin: 0 auto;
  border: none;
  border-top: 1px solid #ddd;
}

@media (max-width: 768px) {

    .cert-logo1 {
        max-width: 100%;
        height: auto;
    }

    .cert-logo2  {
        max-width: 70%;
        height: auto;
    }

}

.contacto-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #fff;
  font-family: 'Montserrat', sans-serif;
}

.contacto-section .adapt-line {
  width: 50px;
  margin: 0 auto 20px;
  display: block;
}

.contacto-section h2 {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 10px;
}

.contacto-section p {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 30px;
}

.contacto-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2em;
  font-weight: 600;
  color: #111;
  justify-content: center;
}

.contacto-whatsapp .fa-whatsapp {
  color: #25d366;
  font-size: 1.5em;
}

/* FOOTER */

.main-footer {
  background-color: #0f0f0f;
  color: #fff;
  padding: 30px 20px;
  font-family: 'Montserrat', sans-serif;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.social-icons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icons img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}


.footer-info {
  text-align: center;
}

.footer-info p {
  margin: 5px 0;
  font-size: 0.9em;
}

.footer-info a {
  color: #00e0c6;
  text-decoration: none;
  margin: 0 4px;
}

/* Desktop layout */
@media (min-width: 769px) {
  .footer-container {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px; /* Ajuste preciso al espaciado de la imagen */
  }

  .footer-info {
    text-align: left;
  }

  .social-icons {
    justify-content: flex-end;
  }
}

/* Whatsapp */
.whatsapp-icon-btn {
  position: fixed;
  bottom: 20px;
  right: 50px;
  background-color: #25d366;
  color: white;
  font-size: 70px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
  text-decoration: none;

  /* Efecto pulsante */
  animation: pulse 1.5s infinite;
}

.whatsapp-icon-btn,
.whatsapp-icon-btn i {
  text-decoration: none;
  color: white;
}

.whatsapp-icon-btn:hover,
.whatsapp-icon-btn:hover i {
  color: #ff370f;
  text-decoration: none;
}

/* Pulsación */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Responsivo para móvil */
@media (max-width: 768px) {
  .whatsapp-icon-btn {
    font-size: 24px;
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
}
