/*
  Colores
*/
:root {
  --negro: #000000;
  --blanco: #f2f2f2;
  --rojo: #990000;
  --azul: #0066cc;
  --background: #bfbfde;
  --gris: #333333;
}

/* Reset Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 400;

  /* for debug

  outline: 2px solid limegreen !important;
  background-color: rgb(0 100 0 / 0.1) !important; */
}

h1,
h2,
h3,
h4,
h5 {
  font-size: 700;
  line-height: 1.5;
}

a,
p {
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

/* Contenedor general */
.container {
  width: 100dvw;
  margin-inline: auto;
}

/* Global Styles */
body {
  line-height: 1.5;

  /*position: relative;*/ /* Para la barra de navegación */
}

header {
  position: relative;
  height: 100dvh;
}

/* Divide el contenido en columnas iguales */
.split-columns {
  display: flex;
  flex-direction: column;
}

@media (min-width: 40em) {

  /* 40em = 640px */
  .split-columns {
      flex-direction: row;
  }

  .split-columns>* {
      flex-basis: 100%;
  }
}

.hero-video {
  background-color: #000000;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  object-fit: cover;
  z-index: -2;
}

.camion {
  position: absolute;
  bottom: 0;
  right: 0;
}

/* Para el cambio de lenguaje */
.shift-language {
  border: 2px solid #000;
  background-color: #fff;
  padding: .75em 1em;
  display: flex;
  position: absolute;
  top: 12rem;
  right: 2rem;
  z-index: 9;
}

.shift-language a, .shift-language p {
  color: var(--negro);
  background-color: #fff;
  font-size: 1em;
  text-transform: uppercase;
}

.shift-language a:hover {
  color: var(--azul);
}

/* .logo img {
  position: relative;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
  z-index: 2;
} */
.logo {
  max-height: 120px;
  margin: 1rem 0;
  z-index: 2;
}

.logo img {
  max-width: 50%;
}

.layer-hero {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-text {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.hero-text h1 {
  color: var(--blanco);
  font-size: clamp(3em, 3em + 2vw, 8em); /* clamp( min, pref, max) */
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 1rem rgba(0, 0, 0, 0.5);
  max-width: 60vw;
  margin: 8rem 0 2rem 0;
}

.hero-text p {
  text-transform: uppercase;
  color: #fff;
  font-size: clamp(1em, 1em + 1vw, 2em);
  padding: 0rem;
  padding-left: 1rem;
  border-left: 4px solid var(--azul);
  margin-bottom: 2rem;
}

.btn {
  display: flex;
  align-items: center;
  background-color: var(--azul);
  color: var(--blanco);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: .8rem 1.5rem;
  border-radius: 5px;
  border: 2px solid var(--blanco);
  width: fit-content;
  transition: all .3s ease;
}

.btn > .arrow-btn {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--blanco);
  border-bottom: 2px solid var(--blanco);
  position: relative;
  transform: rotate(-45deg);
  margin-left: 3px;
  transition: all .3s ease;
}

.btn > .arrow-btn::before {
  display: block;
  background-color: var(--blanco);
  width: 3px;
  transform-origin: bottom right;
  height: 2px;
  position: absolute;
  opacity: 0;
  bottom: calc(-2px / 2);
  transform: rotate(45deg);
  transition: all .3s ease;
  content: "";
  right: 0;
}

.btn:hover > .arrow-btn {
  transform: rotate(-45deg) translate(8px, 8px);
  border-color: var(--blanco);
}

.btn:hover > .arrow-btn::before {
  opacity: 1;
  width: 16px;
}

.btn:hover {
  background-color: #0575E6;
}


/* Responsive Menu */
nav {
  background: #0575E6; /*#00F260*/
  background: -webkit-linear-gradient(to right, #f1f1f1, #0575E6);
  background: linear-gradient(to right, #f1f1f1, #0575E6);

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.30);
}


.nav-links {
  display: flex;
  justify-content:flex-end;
}

.nav-links li {
  list-style: none;
  margin-left: 20px;
}

.nav-links a {
  color: var(--blanco);
  text-shadow: 0 0 .5rem rgba(0, 0, 0, 0.5);
  padding: .8rem 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  position: relative;
  transition: .5s ease;
  z-index: 9;
}

.nav-links a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background-color: var(--azul);
  transition: .5s ease;
}

.nav-links a:hover {
  color: var(--blanco);
  border: 2px solid var(--blanco);
  border-radius: 5px;
  transition-delay: .5s;
}

.nav-links a:hover::before {
  width: 100%;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 0;
  width: 100%;
  background-color: var(--azul);
  transition: .4s ease;
  z-index: -1;
}

.nav-links a:hover::after {
  height: 100%;
  transition-delay: 0.4s;
  color: aliceblue;
}

.burger {
  display: none;
  cursor: pointer;
  z-index: 99;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--azul);
  margin: 5px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  nav {
    background: -webkit-linear-gradient(0deg, rgba(109, 213, 250,0.8) 0%, rgba(255,255,255,1) 100%);
    background: linear-gradient(0deg, rgba(109, 213, 250,0.8) 0%, rgba(255,255,255,1) 100%);
    border-radius: 6px;
    position: absolute;
    top: 8vh;
    left: 1rem;
    width: 90%;
  }

  .logo img {
    width: 50%;
  }

  .nav-links a {
    color: var(--blanco);
  }

  .nav-links {
    position: absolute;
    left: 0;
    top: 23vh;
    height: 66vh;
    background-color: var(--azul);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 99%;
    transform: translateX(-110%);
    transition: transform 0.5s ease-in;
    z-index: 8;
  }
  .nav-links li {
    opacity: 0;
  }

  .burger {
    display: block;
  }
}

.nav-active {
  transform: translateX(0%);
}

@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

/* Cotizador */
section#cotizador {
  padding: 4rem 0;
  background-color: var(--blanco);
}

.text-cotizador {
  background-image: url(../images/entrega-paqueteria.jpg);
  background-position: right;
  background-size:40%;
  background-repeat: no-repeat;
  border: 3px solid #ccc;
  padding: 2rem;
  margin: 2rem 0 2rem 2rem;
}

.text-cotizador h2, .text-cotizador p {
  width: 60%;
}

.text-cotizador p {
  padding-top: 2rem;
}

.flecha {
  max-width: 20px;
  height: 0;
  margin: auto 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 20px solid #ccc;
}




.cotizador {
  background-color: var(--blanco);
  background-image: url(../images/paquetes.jpg);
  background-position: right;
  background-size: 50% 100%;
  background-repeat: no-repeat;
  border: 2px solid var(--background);
  border-radius: 6px;
  padding: 2rem;
  transform: translateY(-6rem);
  max-width: 50vw;
  box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.4);
  margin: auto;
}

.cotizador h2 {
  text-align: left;
  text-transform: capitalize;
}

.img-cotizador {
  width: 40%;
}

.form-cotizador {
  padding: 0 1rem;
}

.form-cotizador h2 {
  text-shadow: 0 0 4px rgba(255, 255, 255, 1);
}

.form-cotizador p {
  font-size: 1.2em;
}

.form-cotizador input, .form-cotizador select, .form-cotizador textarea {
  font: inherit;
  font-size: 1rem;
  padding: .75rem;
  margin-bottom: 1rem;
  width: 100%;
  border: 2px solid var(--background);
  border-radius: .5rem;
}

textarea {
  resize: none;
}

.origen-destino {
  display: grid;
  grid-template-columns: auto 8ch auto 8ch;
  gap: 1rem;
  margin-bottom: 1rem;  
}

.destino-celular {
  display: none;
}

.error {
  color: var(--rojo);
  display: none;
}

.gracias {
  color: var(--azul);
  font-size: 1.2em;
  display: none;
}

.thanks {
  display: none;
  padding-top: 1rem;
}


/* Services Styles */
section#services {
  background: conic-gradient(at left bottom, rgb(74, 222, 128), rgb(240, 171, 252), rgb(190, 18, 60));
  padding: 4rem;
}

section h3 {
  text-transform: uppercase;
  font-size: 2em;
  text-align: center;
  letter-spacing: 0px;
  margin-bottom: 40px;
}

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

.service {
  border-radius: 5px;
  text-align: center;
  overflow: hidden;
  background-color: var(--blanco);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.service:nth-child(8) {
  background-color: transparent;
  box-shadow: none;
}

.service img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
  transition: all 1s ease;
  -webkit-transition: all 1s ease;
  z-index: -1;
}

.service:hover img {
  transform: scale(1.6) rotate(-10deg);
}

.service h2 {
  font-size: 1.5em;
}

.service h2, .service p {
  color: #595959;
  position: relative;
  z-index: 2;
}

.service p {
  text-align: left;
  padding: 0 1rem;
}

.service-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
}

/* About Styles */
section#about {
  padding: 4rem 0;
  background: conic-gradient(at left top, rgb(74, 222, 128), rgb(240, 171, 252), rgb(190, 18, 60));
}

.about-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
  gap: 2rem;
  justify-content: center;
  padding: 0 2rem;
}

.about-video {
  padding: 2rem;
}

.about-video video {
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.25) 1rem 1rem 1.5rem;
}

.about-text {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 2rem;
  font-size: 1.1rem;
}

.about-text span {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.2em;
  color: var(--blanco);
}

/* Contact Styles */
section#contact {
  position: relative;
  padding: 4rem;
  color: rgb(191, 191, 222);
  background: conic-gradient(at left bottom, rgb(240, 171, 252), rgb(74, 222, 128), rgb(190, 18, 60));
  color: var(--gris);
}

/* section#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/contacto.jpg') fixed center/cover no-repeat;
  z-index: -1;
}

.pattern {
  position: absolute;
  bottom: 0;
  right: 2rem;
  width: 20vw;
  height: 20vh;
  background: url('../images/pattern.png') center center/cover repeat;
} */

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

#contactForm {
  padding: 0 4rem;
}

#contactForm input,
#contactForm textarea,
#contactForm select {
  font: inherit;
  font-size: 1rem;
  padding: .75rem;
  width: 100%;
  margin-bottom: 1rem;
  border: none;
  border-radius: 5px;
}

#contactForm h3 {
  font-family: 'Noto Serif';
  font-size: 1.1rem;
  padding-bottom: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info h3 {
  font-size: 1.6em;
  letter-spacing: 1px;
}

/* .address,
.phone,
.email {
  
} */

/* Footer Styles */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
}

footer a {
  color: #ffffff;
}

footer a span {
  color: var(--azul);
}


/*
    Adaptación a dispositivos móviles

*/

@media (max-width: 768px) {

  .shift-language {
    top: .5rem;
    right: 1rem;
    padding: .5rem .75rem;
  }

  .hero-text h1 {
    max-width: 90vw;
    margin: 10rem 0 1.5rem 0;
  }

  .hero-text p {
    max-width: 80vw;
    text-align:center;
  }

  .cotizador {
    max-width: 90vw;
    padding: 1rem .5rem;
  }

  .cotizador h2 {
    font-size: 1.4em;
  }

  .origen-destino {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;  
  }

  .text-cotizador {
    padding: 1rem;
    margin: 0;
  }

  .flecha {
    max-width: 20px;
    height: 0;
    margin: 0 auto;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #ccc;
  }

  .destino-desktop {
    display: none;
  }
  
  .destino-celular {
    display: inline-block;
    margin-bottom: -1rem;
  }

  .form-cotizador .btn {
    justify-content: center;
    width: 100%;
  }

  .about-video {
    padding: 0;
  }

  .about-text {
    padding: 0 1rem;
  }
  
  section#services {
    padding: 2rem 1rem;
  }

  section#contact {
    padding: 4rem 1rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  #contactForm {
    padding: 0 1rem;
  }
  

}
