@import url("https://fonts.googleapis.com/css?family=Raleway");

/* :root {

  --primary: #ffcc00; 
  --secondary: #fff;
  --secondary-light: rgb(173, 173, 173);
  --background2: #666;
  --background: #333;
} */

:root {
  /* CSS HEX */
  --primary: #2a7fff; /* Azul brillante - para acentos principales y botones */
  --secondary: #fff;
  --secondary-light: rgb(173, 173, 173);
  --delft-blue: #253b63ff;
  --berkeley-blue: #123360ff;
  --background: #021239ff;
  --space-cadet: #142a52ff;
  --background2: #384e78ff;
}

/* General resets and global styles */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Raleway", "Arial", sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Helvetica Neue", Arial,
    sans-serif;
  /* scrollbar-color: transparent transparent;  */
  scrollbar-width: 0px;
}

html {
  scroll-behavior: smooth;
}

*::-webkit-scrollbar {
  width: 0px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: transparent;
  border: none;
}

* {
  -ms-overflow-style: none;
}

body {
  background: var(--background);
  font-size: 18px;
  color: var(--secondary);
  overflow-y: scroll;
  overflow-x: hidden;
  height: 100vh;
  width: 100vw;
  scroll-behavior: smooth;
}

.app-container {
  width: 100vw;
  height: 100vh;
  padding: 0;
  margin: 0;
}

hr {
  margin-top: 15px;
}

/* Containers */
.container {
  max-width: 1200px;
  width: 88%;
  margin: 0 auto;
}

/* Header */
.header {
  width: 100%;
  position: absolute;
  top: 0;
  z-index: 30;
  background-color: transparent;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: var(--primary); */
  /* opacity: 0.3; */
  transition: background-color 400ms ease, opacity 400ms ease;
  z-index: -1;
}

span {
  color: var(--primary);
  font-size: 1.5rem;
}

h1,
h2,
h3 {
  font-weight: normal;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  width: 100%;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--primary);
  font-size: 18px;
  font-weight: 600;
}

.navbar .menu {
  display: flex;
}

.navbar .menu li {
  list-style: none;
}

.navbar .menu li .nav-link {
  white-space: nowrap;
  display: block;
  text-transform: uppercase;
  margin: 20px 0;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--secondary);
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.5s, color 0.5s;
  z-index: 1;
}

.navbar .menu li:hover > .nav-link {
  color: var(--primary);
  transform: translateY(-5px);
}

.menu li:last-child .nav-link {
  padding-right: 0;
}

ol,
li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Main content */
main {
  display: flex;
  padding-top: calc(81px + 5.5rem);
  flex-direction: column;
  height: 100vh;
}


.main p {
  text-align: justify;
  word-spacing: -1px;
  color: var(--secondary);
  max-width: 600px;
  font-size: clamp(0.9rem, 1.8rem, 2rem);
}


.main a {
  line-height: 1.5rem;
  font-size: 1.5rem;
  padding: 10px 0;
  color: var(--primary);
  text-decoration: none;
}

main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  background-image: url(../img/edificio_2.png);
  z-index: -1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.main::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  transition: background-color 400ms ease, opacity 400ms ease;
  z-index: -1;
}

/* Slideshow */

.carousel {
  background-color: var(--space-cadet);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.slideshow-container {
  width: 100%; /* Ajusta al ancho del contenedor */
  margin: 0 auto; /* Centra horizontalmente dentro del contenedor principal */
  /* margin-top: 8rem;
  margin-bottom: 5.5rem; */
  position: relative;
  overflow: hidden; /* Evita desbordes de las imágenes */

  border-radius: 10px;
}

.slideshow-container span {
  padding: 2.5rem;
  display: block;
  text-align: center;
  color: var(--primary);
  position: relative;
  z-index: 30;
}

.mySlides {
  display: none;
}

.mySlides img {
  height: 600px;
  object-fit: cover;
}

.mySlides .hover-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  opacity: 0.3;
  z-index: 1;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  z-index: 30;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
  z-index: 50;
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: var(--delft-blue);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: var(--berkeley-blue);
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* service style */
.service {
  padding-bottom: 75px;
  /* background-color:var(--berkeley-blue); */
  background-color: var(--delft-blue);
  color: var(--secondary);
}

.service h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: transparent;
  font-size: 1.5rem;
  margin: 0 auto;
  padding: 2.5rem 0;
  display: block;
  text-align: center;
}

.service span {
  font-size: 1.5rem;
  display: block;
  margin: 1rem 0;
  text-align: center;
  color: var(--primary);
}

/* .service span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(../img/edificio_2.png) no-repeat center center;
  background-size: cover;
  background-color: rgba(0, 0, 0, 0.5); 
  z-index: -1;
} */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 0 auto;
}

.figure-container {
  background: var(--background);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.figure-container:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.figure-container svg {
  width: clamp(40px, 50px, 60px);
  height: clamp(30px, 40px, 50px);
  font-size: 2.5rem;
  fill: var(--primary);
  margin-bottom: 0.88rem;
}

.figure-container p {
  font-size: 0.9rem;
  color: var(--secondary);
  margin-top: 0.5rem;
}

/* .figure-container:hover i svg {
  color: var(--primary);
} */

/*about*/

.about .about-grid {
  height: 100%;
  margin: 0 auto;
}

.about .about-grid .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 50px 0 100px;
}

.about .about-grid .about-info span {
  /* font-size: 1.5rem; */
  font-size: 2.5rem;
  margin: 0 auto;
  line-height: 2.5rem;
  padding: 2.5rem 0;
}

.about .about-grid .about-info h2 {
  padding-bottom: 2.5rem;
}

.about .about-grid .about-info p {
  font-size: 1.5rem;
  margin: 0 auto;
  line-height: 2.5rem;
  color: var(--secondary-light);
  text-align: justify;
  letter-spacing: -1px;
  font-size: clamp(16px, 1vw + 1rem, 1.5rem);
  text-wrap: wrap;
}

.about .about-grid .about-info .contact-container {
  margin: 0 auto;
}

.btn {
  position: relative;
  width: fit-content;
  margin-top: 8px;
  padding: 10px 49.17px;
  border: 1px solid var(--primary);
  font-size: 18px;
  color: var(--primary);
  font-weight: 300;
  letter-spacing: 2px;
  transition: all 600ms cubic-bezier(0.77, 0, 0.175, 1);
  cursor: pointer;
  user-select: none;
}

.btn:after,
.btn:before {
  content: "";
  position: absolute;
  transition: inherit;
  z-index: -1;
}

.btn:hover {
  color: var(--dark2);
}

.btn:hover:after {
  background: var(--primary);
}

.from-left:after,
.from-left:before {
  top: 0;
  width: 0;
  height: 100%;
}

.from-left:before {
  right: 0;
  border-left: 0;
  border-right: 0;
}

.from-left:after {
  left: 0;
}

.from-left:hover:after,
.from-left:hover:before {
  width: 100%;
}

/*contact form*/

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background-color: var(--space-cadet);
  border-radius: 20px;
  padding: 2.5rem;
}
.form > span {
  width: 100%;
  font-size: 35px;
  margin: 4px 0 20px 0;
}

.form > input {
  margin: 4px 0;
  height: 40px;
  border: none;
  background-color: var(--background);
  padding: 10px;
  color: var(--secondary);
  outline: none;
  /* opacity: 0.7; */
  width: 100%;
  border-bottom: 1px solid var(--primary);
}

.form > textarea {
  margin: 4px 0;
  resize: none;
  border: none;
  background-color: var(--background);
  height: 141.375px;
  width: 100%;
  color: var(--secondary);
  outline: none;
  padding: 10px;
  /* opacity: 0.7; */
  border-bottom: 1px solid var(--primary);
}

.form > textarea::-webkit-scrollbar {
  width: 3px;
}

.form > textarea::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

.btn-2 {
  position: relative;
  width: fit-content;
  margin-top: 4px;
  padding: 10px 41px;
  border: 1px solid var(--primary);
  font-size: 18px;
  color: var(--primary);
  font-weight: 300;
  letter-spacing: 2px;
  transition: all 400ms cubic-bezier(0.77, 0, 0.175, 1);
  cursor: pointer;
  user-select: none;
  width: 100%;
  text-align: center;
  z-index: 50;
}

.btn-2:after,
.btn-2:before {
  content: "";
  position: absolute;
  transition: inherit;
  z-index: -1;
}

.btn-2:hover {
  color: var(--background2);
}

.btn-2:hover:after {
  background: var(--primary);
}

.from-left-2:after,
.from-left-2:before {
  top: 0;
  width: 0;
  height: 100%;
}

.from-left-2:before {
  right: 0;
  border-left: 0;
  border-right: 0;
}

.from-left-2:after {
  left: 0;
}

.from-left-2:hover:after,
.from-left-2:hover:before {
  width: 100%;
}

.empresas-asociadas {
  text-align: center;
  padding: 20px;
  background-color: var(--berkeley-blue);
}

/* .empresas-asociadas::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--berkeley-blue); 
  opacity: 0.8;
  transition: background-color 400ms ease, opacity 400ms ease;
  z-index: -1;
} */

.empresas-asociadas h3 {
  padding: 2.5rem 0;
}

.slider-container {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

/* .slider {
  display: flex;
  animation: slide 4s infinite linear;
  gap: 20px;
} */


.slider svg {
  fill: var(--secondary);
  width: 50px;
  height: 50px;
}

.slider img {
  width: 100px; /* Tamaño de los logos */
  height: auto;
  flex-shrink: 0;
  padding: 10px;
}

@keyframes slide {
  0% {
    transform: translateX(100%); /* Fuera del contenedor por la derecha */
  }
  50% {
    transform: translateX(0); /* Totalmente visible en el centro */
  }
  100% {
    transform: translateX(-100%); /* Fuera del contenedor por la izquierda */
  }
}
