/*
  Colores
*/
:root {
  --negro: #1a1a1a;
  --blanco: #f2f2f2;
  --gris: #999999;
  --rojo: #990000;
  --naranja: #ff3300;
  --azul:  #1876cd;
  --azul-claro: #5fa8ec;
  --amarillo: #ffff00;
  --background: #e8f3fc;
}

/*
  Fonts
*/
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/raleway.woff2') format('woff2'),
       url('../fonts/raleway.woff') format('woff');
  font-weight: 400;
  font-display: swap;
  font-style:normal
}

@font-face {
  font-family: 'Anton';
  src: url('../fonts/anton-regular.woff2') format('woff2'),
       url('../fonts/anton-regular.woff') format('woff');
       font-weight: 400;
       font-display: swap;
       font-style: normal;
}


/* Reset Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;

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

html {
  /* font-family: 'Raleway', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
  font-family: 'Raleway';

  /* Para evitar que el navbar cubra el contenido al dar clic en una opcion del menu */
  scroll-padding-top: 132px;
}

h1,
h2,
h3,
h4,
h5 {
  /* font-family: 'Anton', sans-serif; */
  font-family: 'Anton', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  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: min( 90%, 40em );
  margin-inline: auto;
}

.even-columns {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
}

/* 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%;
  }
}

/*
  Botón flotante de WhatsApp
*/
.btn-whatsapp {
	position: fixed;
	bottom: 4rem;
	right: 2rem;
	background-color: #0df053;
	border-radius: 50px;
	box-shadow: 0px 1px 10px rgba(0,0,0,0.5);
	z-index: 10;
  transition: background-color .3s ease;
}
.btn-whatsapp:hover {
	background-color: #0ac244;
}
.necesitas-ayuda {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--blanco);
	position: fixed;
	bottom: 2.5rem;
	right: .4rem;
  font-size: 1em;
  text-shadow: 2px 0 #00000050, -2px 0 #00000050, 0 2px #00000050, 0 -2px #00000050,
               1px 1px #00000050, -1px -1px #00000050, 1px -1px #00000050, -1px 1px #00000050;
  z-index: 10;
}

.btn-whatsapp::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #b6fbcc;
    border-radius: 50px;
    opacity: 0.7;
}
.btn-whatsapp::before {
    animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}


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

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

.logo img {
  height: 100px;
}

/* Estilos para el navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #4d4d4d;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4rem;
  transition: background-color 0.3s, box-shadow 0.3s;
  z-index: 99;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--blanco);
  transition: color 0.3s;
  margin-right: 20px;
  transition: all.3s;
}

.nav-links a:hover {
  letter-spacing: 2px;
  border-bottom: 1px solid var(--blanco);
}

/* Hamburger menu styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.line {
  width: 30px;
  height: 3px;
  background-color: var(--blanco);
  margin: 3px 0;
  transition: transform 0.4s;
}

.navbar.scrolled {
  color: var(--blanco);
  background-color: #333;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5); /* Add shadow */

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

}

/* Media query for mobile */
@media screen and (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }

  .nav-links {
      display: none;
      flex-direction: column;
      width: 100%;
      height: calc(100vh - 70px);
      text-align: center;
      justify-content: space-around;
      position: absolute;
      top: 70px;
      left: 0;
      background-color: #333;
  }

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

  .nav-links.active {
    display: flex;
  }

  .hamburger {
      display: flex;
  }

  .hamburger.active .line:nth-child(1) {
      transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger.active .line:nth-child(2) {
      opacity: 0;
  }

  .hamburger.active .line:nth-child(3) {
      transform: rotate(45deg) translate(-5px, -6px);
  }
}


/* Hero Section Styles */
.hero-section {
  position: relative;
  margin-top: 100px;
  height: 90vh;
  max-width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
}

.hero-video {
  background-color: #000000;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 1080px;
  object-fit: cover;
  z-index: -2;  
}
@media (max-width: 767px) {
  .hero-video {
    min-height: 100vh;
  }
}

.hero-text {
  padding: 2rem ;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  z-index: 2;
}

.hero-text h1 {
  color: var(--blanco);
  font-size: 4.5em;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 2rem;
  text-shadow: 8px 8px rgba(0,0,0,0.7);
}

.hero-text p {
  color: var(--blanco);
  font-size: clamp(.8em, 1em + 4vw, 1.5em);
  padding-bottom: 2rem;
}

.hero-text p span {
  color: var(--naranja);
}

.btn {
  color: var(--blanco);
  background-color: var(--negro);
  background-color: var(--naranja);
  text-align: center;
  text-transform: uppercase;
  position: relative;
  padding: .5em 1em;
  border-radius: 6px;
  border: 2px solid var(--blanco);
  transition: all 0.3s;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  user-select: none;
  font-size: 1.1em;
  letter-spacing: 2px;
  width: fit-content;
}

.btn::after {
  width: 100%;
  left: 0;
  height: 100%;
  position: absolute;
  opacity: 0;
  border: 2px solid var(--negro);
  transform: scale(1.2);
  border-radius: 3px;
  top: 0;
  transition: all 0.3s;
  content: '';
  z-index: 1;
}

.btn:hover::after {
  opacity: 1;
  transform: scale(1);
}

.btn:hover {
  transform: scale(1.1);
  box-shadow: 0 .2em .5em rgba(0,0,0,.3);
}

.btn:hover::before {
  opacity: 0;
  transform: scale(0);
}

.btn::before {
  background-color: var(--azul);
  width: 100%;
  left: 0;
  height: 100%;
  position: absolute;
  opacity: .2;
  transform: scale(1);
  border-radius: 3px;
  top: 0;
  transition: all 0.3s;
  content: '';
  z-index: 1;
}

.btn:focus {
  outline: none;
}

.btn-cotiza {
  display: flex;
  border: none;
  border-radius: 6px;
  padding: .5rem .75rem;
  background-color: var(--azul);
  color: var(--blanco);
}

.btn-cotiza a {
  display: flex;
  color: var(--blanco);
}
.btn-cotiza img {
  width: 24px;
  margin-right: 1rem;
}
.btn-cotiza a:hover {
  color: var(--azul-claro);
}

section {
  overflow: hidden;
}
section h2 {
  font-size: 2em;
  text-transform: uppercase;
  letter-spacing: 5px;
  border-bottom: 1px solid #cccccc;
  width: max-content;
  margin: 0 auto;
  margin-bottom: 2rem;
  padding: 1rem;
}


/* Services */
section#servicios {
  padding: 4rem;
  background-image: linear-gradient(145deg, #e8f3fc 0%, var(--naranja) 74%);
  -webkit-clip-path: polygon(0 10%, 100% 0, 100% 90%, 0% 100%);
  clip-path: polygon(0 10%, 100% 0, 100% 90%, 0% 100%);
}
section#servicios h2 {
  color: var(--blanco);
}

.service-slider {
  width: 95%;
  position: relative;
  max-width: 800px;
  margin: auto;
  background: #fff;
  box-shadow: 0px 14px 80px rgba(34, 35, 58, 0.2);
  padding: 25px;
  border-radius: 25px;
  height: 400px;
  transition: all 0.3s;
}
@media screen and (max-width: 992px) {
  .service-slider {
    max-width: 680px;
    height: 400px;
  }
}
@media screen and (max-width: 768px) {
  .service-slider {
    min-height: 500px;
    height: auto;
    margin: 180px auto;
  }
}
@media screen and (max-height: 500px) and (min-width: 992px) {
  .service-slider {
    height: 350px;
  }
}
.service-slider__item {
  display: flex;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .service-slider__item {
    flex-direction: column;
  }
}
.service-slider__item.swiper-slide-active .service-slider__img img {
  opacity: 1;
  transition-delay: 0.3s;
}
.service-slider__item.swiper-slide-active .service-slider__content > * {
  opacity: 1;
  transform: none;
}
.service-slider__item.swiper-slide-active .service-slider__content > *:nth-child(1) {
  transition-delay: 0.3s;
}
.service-slider__item.swiper-slide-active .service-slider__content > *:nth-child(2) {
  transition-delay: 0.4s;
}
.service-slider__item.swiper-slide-active .service-slider__content > *:nth-child(3) {
  transition-delay: 0.5s;
}
.service-slider__item.swiper-slide-active .service-slider__content > *:nth-child(4) {
  transition-delay: 0.6s;
}
.service-slider__item.swiper-slide-active .service-slider__content > *:nth-child(5) {
  transition-delay: 0.7s;
}
.service-slider__item.swiper-slide-active .service-slider__content > *:nth-child(6) {
  transition-delay: 0.8s;
}
.service-slider__item.swiper-slide-active .service-slider__content > *:nth-child(7) {
  transition-delay: 0.9s;
}
.service-slider__item.swiper-slide-active .service-slider__content > *:nth-child(8) {
  transition-delay: 1s;
}
.service-slider__item.swiper-slide-active .service-slider__content > *:nth-child(9) {
  transition-delay: 1.1s;
}
.service-slider__item.swiper-slide-active .service-slider__content > *:nth-child(10) {
  transition-delay: 1.2s;
}
.service-slider__item.swiper-slide-active .service-slider__content > *:nth-child(11) {
  transition-delay: 1.3s;
}
.service-slider__item.swiper-slide-active .service-slider__content > *:nth-child(12) {
  transition-delay: 1.4s;
}
.service-slider__item.swiper-slide-active .service-slider__content > *:nth-child(13) {
  transition-delay: 1.5s;
}
.service-slider__item.swiper-slide-active .service-slider__content > *:nth-child(14) {
  transition-delay: 1.6s;
}
.service-slider__item.swiper-slide-active .service-slider__content > *:nth-child(15) {
  transition-delay: 1.7s;
}
.service-slider__img {
  width: 300px;
  flex-shrink: 0;
  height: 300px;
  background-image: linear-gradient(145deg, #e8f3fc 0%, var(--azul) 74%);
  box-shadow: 4px 13px 30px 1px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  transform: translateX(-80px);
  overflow: hidden;
}
.service-slider__img:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  opacity: 0.8;
}
.service-slider__img img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  opacity: 0;
  border-radius: 20px;
  transition: all 0.3s;
}
@media screen and (max-width: 768px) {
  .service-slider__img {
    transform: translateY(-50%);
    width: 90%;
  }
}
@media screen and (max-width: 576px) {
  .service-slider__img {
    width: 95%;
  }
}
@media screen and (max-height: 500px) and (min-width: 992px) {
  .service-slider__img {
    height: 270px;
  }
}

.service-slider__video {
  background-color: #000000;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* z-index: -2;   */
}

.service-slider__content {
  padding-right: 25px;
}
@media screen and (max-width: 768px) {
  .service-slider__content {
    margin-top: -80px;
    text-align: center;
    padding: 0 30px;
  }
}
@media screen and (max-width: 576px) {
  .service-slider__content {
    padding: 0;
  }
}
.service-slider__content > * {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.4s;
}
.service-slider__code {
  color: #7b7992;
  margin-bottom: 15px;
  display: block;
  font-weight: 500;
}
.service-slider__title {
  font-size: 24px;
  font-weight: 700;
  color: #0d0925;
  margin-bottom: 20px;
}
.service-slider__text {
  color: #4e4a67;
  margin-bottom: 30px;
  line-height: 1.5em;
}
.service-slider__button {
  display: inline-flex;
  background-image: linear-gradient(145deg, #e8f3fc 0%, var(--azul) 74%);
  padding: 15px 35px;
  border-radius: 50px;
  color: var(--blanco);
  box-shadow: 0px 14px 80px rgba(252, 56, 56, 0.4);
  text-decoration: none;
  font-weight: 500;
  justify-content: center;
  text-align: center;
  letter-spacing: 1px;
}
@media screen and (max-width: 576px) {
  .service-slider__button {
    width: 100%;
  }
}
.service-slider .swiper-container-horizontal > .swiper-pagination-bullets, .service-slider .swiper-pagination-custom, .service-slider .swiper-pagination-fraction {
  bottom: 10px;
  left: 0;
  width: 100%;
}
.service-slider__pagination {
  position: absolute;
  z-index: 21;
  right: 20px;
  width: 11px !important;
  text-align: center;
  left: auto !important;
  top: 50%;
  bottom: auto !important;
  transform: translateY(-50%);
}
@media screen and (max-width: 768px) {
  .service-slider__pagination {
    transform: translateX(-50%);
    left: 50% !important;
    top: 205px;
    width: 100% !important;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
.service-slider__pagination.swiper-pagination-bullets .swiper-pagination-bullet {
  margin: 8px 0;
}
@media screen and (max-width: 768px) {
  .service-slider__pagination.swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 0 5px;
  }
}
.service-slider__pagination .swiper-pagination-bullet {
  width: 11px;
  height: 11px;
  display: block;
  border-radius: 10px;
  background: #062744;
  opacity: 0.2;
  transition: all 0.3s;
}
.service-slider__pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--rojo);
  height: 30px;
}
@media screen and (max-width: 768px) {
  .service-slider__pagination .swiper-pagination-bullet-active {
    height: 11px;
    width: 30px;
  }
}


/* About Styles */
section#nosotros {
  background-color: var(--blanco);
  padding: 4rem 0;
}

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

.about-img {
  background: no-repeat center/100% fixed url("../images/nosotros.jpg");
  border-radius: 12px;
}

.about-text {
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.about-text h4 {
  font-size: 1.2em;
}

.about-text h4 span, .about-text p span {
  text-transform: uppercase;
  color: var(--naranja);
  letter-spacing: 1px;
}
.btn span {
  color: var(--blanco);
}

/* Experiencia */
#experiencia {
  padding: 4rem 0;
}
.experiencia {
  padding: 4rem;
  border: 1rem solid var(--negro);
  background-color: var(--gris);
  -webkit-clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 90%);
  clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 90%);
}

.experiencia p {
  color: var(--background);
  line-height: 2;
}


.experiencia h3 {
  color: var(--naranja);
  /* text-align: justify; */
  font-size: 2em;
  padding: 2rem;
}

/* Contact Styles */
section#contacto {
  position: relative;
  padding: 4rem;
  color: var(--negro);
  background-image: linear-gradient(145deg, #e8f3fc 0%, var(--naranja) 74%);
  -webkit-clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 100%);
  clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 100%);
}

section#contacto h2 {
  border-bottom: 1px solid var(--gris);
}

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

#contactForm {
  border-radius: 0 12px 12px 0;
  background-color: rgba(255,255,255,0.1);
  background: linear-gradient( to right, rgba(0,0,0,1), transparent);
  padding: 2rem;
}

#contactForm input,
#contactForm textarea,
#contactForm select {
  color: var(--blanco);
  font: inherit;
  font-size: 1rem;
  padding: .5rem;
  margin-bottom: 2rem;
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--blanco);
  background-color: transparent;
}

#contactForm label {
  color: var(--blanco);
}

#contactForm textarea {
  resize: none;
  field-sizing: content;
}

#contactForm select {
  color: var(--blanco);
}

textarea:focus, input:focus, select:focus {
  outline: none;
}

#contactForm h3 {
  color: var(--blanco);
  font-size: 1.2rem;
  letter-spacing: 1px;
  padding-bottom: 2rem;
}

.form-column-even {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-image {
  height: 100%;
  background-image: url(../images/contacto.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 12px 0 0 12px;
}


.phone {
  display: flex;
  flex-direction: column;
}

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

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

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

.thanks {
  color: var(--amarillo);
  padding-top: 1rem;
  letter-spacing: 1px;
  display: none;
}

/* Enlaces */
section#enlaces {
  margin-top: 4rem;
  position: relative;
  padding: 4rem;
  color: var(--blanco);
  background-color: #333;
}

#enlaces h3 {
  text-transform: uppercase;
  letter-spacing: 3px;
  padding-bottom: 1rem;
}

.info-contacto {
  padding: 0 2rem;
}
.info-contacto p, .horario p {
  display: flex;
  align-items: center;
  padding-bottom: 1rem;
}

.info-contacto img {
  padding-right: 1rem;
}

.info-contacto a {
  color: var(--blanco);
}
.info-contacto a:hover {
  color: var(--gris);
}

.horario span {
  color: var(--negro);
  margin-left: 1rem;
}

.horario img {
  height: 32px;
  padding-right: 1rem;
}


/* Footer Styles */
footer {
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.9));
  color: var(--blanco);
  text-align: center;
  padding: 10px;
}

footer a {
  color: #ffffff;
}

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


/*
    Adaptación a dispositivos móviles

*/

@media (max-width: 768px) {

  .logo a {
    font-size: 1.5em;
  }
  
  .logo img {
    max-height: 80px;
  }
  
  .hero-section {
    position: relative;
    margin-top: 0px;
  }
  .hero-text {
    position: relative;
    width: 100vw;
    height: 47vh;
    align-items: center;
    padding: 1rem;
    margin-top: 15vh;
  }

  .hero-text h1 {
    font-size: 3em;
  }

  .hero-text p {
    font-size: 1.2em;
  }

  section#servicios {
    padding: 4rem 1rem 2rem 1rem;
    -webkit-clip-path: polygon(0 5%, 100% 0, 100% 95%, 0% 100%);
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0% 100%);
  
  }

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

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

  .btn {
    font-size: 1em;
  }

  .btn-whatsapp {
    bottom: 5rem;
    right: 3rem;
  }

  .img-service {
    display: none;
  }

  #experiencia {
    padding: 2rem 0;
  }

  .experiencia {
    padding: 6rem .5rem;
    font-size: 1.2em;
  }

  .experiencia h3 {
    font-size: 1.5em;
  }

  .experiencia p {
    line-height: 1.2;
  }

  .even-columns {
    grid-auto-flow: row;
    gap: 2rem;
  }

  section#enlaces {
    padding: 2rem 1rem;
  }

  footer {
    padding: .5rem 2rem;
  }

}
