:root {
  --primary-color: #CC0001;
  --secondary-color: #fff;
  --background-color: #F3F3F3;
  --card-background: #F3F3F3;
  --line-color: #E6E6E6;
  --black-color: #0B0909;
  --bg-color: #D1D1D1;

}

@font-face {
  font-family: 'Steel';
  src: url('Fonts/STEELWLF.TTF') format('truetype');
}

@font-face {
  font-family: '1979';
  src: url('Fonts/1979rg__.ttf') format('truetype');
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;  
  color: var(--secondary-color);
  margin: 0;
  padding: 0;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  padding: 1rem;
  background-color: var(--black-color);
  width: 100%;
  height: 96px;
  z-index: 1000;
}

#languageButton{
  font-family: 'Poppins';
}



header button{
  margin-right: 90px;
  margin-top: 20px;

}

footer{
  width: 100%;
  z-index: 1000;
  background-color: var(--black-color);
  height: 90px;
}

main {
  display: flex;
  flex-direction: column;
}

nav {
  grid-column: 1;
  display: flex;
  justify-content: center;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo img {
  width: 170px;
  height: 50px;
  margin-top: 10px;
  transform: scale(2);
}

nav ul {
  display: flex;
  list-style-type: none;
  gap: 96px;
}

nav ul li {
  margin-right: 0;
}

nav ul li a {
  color: var(--secondary-color);
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 36px;
  text-align: left;
  text-decoration: none;
  position: relative;
}

nav ul li a.active {
  text-decoration: underline;
}

#inicio {
  min-height: 1000px; /* Match background height */
  padding: 2rem;
  text-align: center;
  background-color: var(--background-color);
  background-image: url('/Images/background.png');
  background-size: cover; /* Changed to cover for better responsiveness */
  background-position: center; /* Center the background image */
  background-repeat: no-repeat;
}


#contacto{
  background-color: var(--primary-color);
  min-height: 1000px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

}

.contactText{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50%;
}

#contacto h3{
  font-family: 'Poppins', sans-serif; 
  font-size: 80px;
  width: 636px;
  height: 240px;
  font-weight: 700;
}
#contacto p{
  flex-grow: 1;
  flex-shrink: 1;
  font-size: 24px;
  font-weight: 500px;
  max-width: 700px;
  line-height: 36px;
  min-height: 216px;
  margin-top: 56px;
}


.contactCard{
  background-color:var(--background-color); /* White background for the card */
  border-radius: 10px; /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  padding: 20px; /* Padding inside the card */
  max-width: 725px;
  min-height: 736px; 
  display: flex;
  align-items: left;
  margin-bottom: 70px;
  margin-right: 150px;
  flex-direction: column;
  margin-top: auto;
}
.contactForm{
  display: flex;
  height: 100%;
  width: 100%;
  align-items:flex-start;
  flex-direction: column;
}

.contactForm label{
  color: #0B0909;
  font-family: "Poppins";
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
  margin-left: 40px;
}

.contactForm input{
  background-color:  #D9D9D9;
  width: 600px;
  margin-bottom: 16px;
  height: 59px;
  margin-left: 40px;
  border-radius: 12px;
  padding: 16px;
  color: var(--black-color);
}

.contactForm input::placeholder{
  color: #9E9C9C;
}

.contactForm textarea{
  background-color:  #D9D9D9;
  width: 600px;
  margin-bottom: 16px;
  height: 200px;
  margin-left: 40px;
  border-radius: 12px;
  padding: 16px;
  color: var(--black-color);
}
.contactForm button{
  width: 132px;
  height: 60px;
  border-radius: 48px;
  margin-top: auto; /* Pushes the button to the bottom */
  align-self: flex-end;
  background-color: var(--primary-color);
  

}
.clientesText{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
#clientes{
  min-height: 560px;
  background-color: var(--card-background);
  align-items: center;
  display: flex;
  flex-direction: column;
}

#clientes h3{
  font-family: 'Steel', sans-serif;
  color: #0B0909;
  margin-top: 40px;
  text-align: center;
  height:130px;
  width: 1000px;
  font-size: 80px;
  font-weight: 5;
  line-height: 91.2px;
}
#clientes p{
  width: 700px;
  text-align: center;
  align-self: center;
  height: 108px;
  font-family: Poppins;
  color: #0B0909;
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
}

.clientesCarousel{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  max-width: 100%;
  min-height: 200px;
  justify-content: center;
}

.clientesCarousel img{
  padding: 5px;
  height: 200px;
  width: 200px;
}

#bolsa{
  display: flex;
  flex-direction: row;
  background-color: var(--black-color);
  background-image: url('/Images/bolsa.png');
  min-height: 464px;
  background-size: cover; /* Changed to cover for better responsiveness */
  background-position: center; /* Center the background image */
  background-repeat: no-repeat;
  align-items: center;
}

#bolsa p{
  width: 708px;
  height: 200px;
  font-family: Poppins;
  font-size: 25px;
  font-weight: 24px;
  line-height: 36px;
  font-weight: 500;
  line-height: 36px;
  margin-left: 140px;
  text-align: left;
}

#bolsa h1{
  font-family: 'Steel', sans-serif;  
  font-size: 80px;
  font-weight: 5;
  margin-left: 262px;
  width: 750px;
  line-height: 91.5px;
  font-weight: 5;
}



#inicio h1 {
  font-family: 'Steel', sans-serif;  
  font-size: 80px;
  font-weight: 5;
  margin-top: 90px;
  margin-bottom: 60px;
}

.subtitle {
  font-size: 2rem;
  margin-bottom: 3rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.card-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* Make sure all cards stretch to the same height */
  margin: 2rem auto;
  width:  100%; /* Changed to 100% for responsiveness */
  max-width: 1362px; /* Set a max-width */
  height: auto; /* Changed to auto for flexibility */
  background-color: var(--card-background);
  min-height: 541px;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card {
  display: flex;
  flex-direction: column; /* Stack card content vertically */
  padding: 2rem;
  background: none;
  box-shadow: none;
  position: relative;
  text-align: center;
}

/* Add dividers between cards */
.card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 3px;
  background-color: var(--line-color);
}

.card h2 {
  color: var(--primary-color);
  font-size: 32px;
  font-weight: bold;
}

.card p {
  color: var(--black-color);
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 36px;
  height: 216px;
  width: 358px;
  margin-top: 48px;
  text-align: center; /* Center text horizontally */
}

.card button {
  width: 189px; /* Fixed width */
  height: 48px; /* Fixed height */
  border-radius: 36px; /* Adjust border-radius if needed */
  background-color: var(--primary-color); /* Button background color */
  color: var(--secondary-color); /* Button text color */
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  margin-top: 43px;
  justify-content: center; /* Horizontal centering of text inside the button */
  align-items:normal; /* Vertical centering of text inside the button */
  margin: 0 auto; /* Center the button horizontally */
  padding: 0;/* Pushes the button to the bottom of the card */
}

@media (max-width: 388px) {
  .card-container {
    flex-direction: column;
  }
  
  .card:not(:last-child)::after {
    width: 80%;
    height: 1px;
    right: 10%;
    top: auto;
    bottom: 0;
  }
}

/* New styles for the services carousel */
#servicios {
  background-color: var(--background-color);
  padding: 2rem 2rem;
  color: var(--background-color);
  text-align: center;
  overflow: hidden;
  width: 100%;
  height: 1000px;
}

.section-title {
  font-family: '1979', sans-serif;  
  font-size: 80px;
  font-weight: 400;
  margin-top: 50px;
  margin-bottom: 0px;
  color: var(--primary-color);
}

.carousel-container {
  position: relative;
  max-width: 1600px; /* Set the desired width for the carousel container */
  height: 800px;
  width: 100%; /* Ensure it takes full width up to max-width */
  margin: 0 auto; /* Center the carousel */
  overflow:hidden;
  margin-top: 0;
  padding-top: 100px;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.carousel-item {
  flex: 0 0 33.33%; /* Each item takes up one-third of the carousel width */
  max-width: 500px; /* Set a max-width for each item if needed */
  height: 400px; /* Adjust as needed */
  padding: 100px;
  padding-top: 0;
  box-sizing: border-box;
  opacity: 1;
}

.carousel-item.active {
  opacity: 1; /* Fully visible for active items */
  transform: scale(1.2);
  transition: transform 0.5s ease;  /* Slightly scale up the active item */
  z-index: 1; /* Bring active item to the front */
}

.carousel-item.activeInstant {
  opacity: 1; /* Fully visible for active items */
  transform: scale(1.2);
  z-index: 1; /* Bring active item to the front */
}

.carousel-image {
  position: relative;
  width: 400px;
  height: 371.5px;
  overflow: hidden;
}

.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 15px;
  background-color: var(--primary-color);
  padding: 0.5rem;
  transform: skew(-40deg);
  transform-origin: top left;
}

.carousel-title h3 {
  color: var(--secondary-color);
  margin-left: 40px;
  justify-self: left;
  transform: skew(40deg);
  font-size: 1.2rem;
  font-weight: bold;
}

.carousel-item ul {
  text-align: left;
  align-self:center;
  color: #333;
  padding: 1rem;
  list-style-type: none;
  margin-top: 10px;
  width: 400px;

}

.carousel-item ul li {
  margin-bottom: 0.2rem;
  position: relative;
  padding-left: 1.5rem;
  font-size: 16px;
  line-height: 1.4;
}

.carousel-item ul li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 0;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: var(--secondary-color);
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
}

.carousel-arrow.left {
  left: 20px;
}

.carousel-arrow.right {
  right: 20px;
}
/* Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  flex-direction: column;
}


.modal-content {
  background-color: var(--background-color); /* Background color of the modal */
  padding: 20px;
  border-radius: 20px;
  display: flex;
  align-self: center;
  flex-direction: column;
  width: 80%; /* Adjust width as needed */
  max-width: 900px; /* Set a max-width for larger screens */
  max-height: 800px;
}
.modal-Policy {
  background-color: var(--background-color); /* Background color of the modal */
  border-radius: 20px;
  display: flex;
  align-self: center;
  flex-direction: column;
  width: 80%; /* Adjust width as needed */
  max-width: 1700px; /* Set a max-width for larger screens */
  max-height: 800px;
}

#modalTitle2{

  color: var(--black-color);
  margin-bottom: 2%;
  font-size: 73px;
  font-weight: bold;
  align-self: center;
}

#modalTitle{
  color: var(--black-color);
  margin-bottom: 5%;
  font-size: 73px;
  font-weight: bold;
  align-self: center;


}

#modalImage{
  width: 220px;
  height: 220px;
  align-self: center;
  margin-bottom: 5%;

}
#modalDescription{
  color: var(--black-color);
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  align-self: center;
  padding-left: 10%;
  padding-right: 10%;
}
#modalDescription2{
  color: var(--black-color);
  margin: 0;
  font-size: 15px;
  align-self: center;
  padding-left: 10%;
  padding-right: 10%;
  margin-bottom: 5%;
  font-weight: 500;

  line-height: normal;
  font-family: 'Poppins';
  text-align: center;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

footer{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 600px;
}

footer h2{
  margin-left: 60px;
}
footer a{
  font-family: 'Poppins';
  text-decoration: underline;
  font-weight: bold;
  font-size: 18px;
}


@media (max-width: 768px) { /* Smaller phones */
  /* More specific mobile styles here */
  .card {
    width: 100%;
  }

  #languageButton{
    margin-right: 0px;
  }
  #contacto{
    flex-direction: column;
    display: flex;
    min-height: 1500px;
    justify-content: baseline;
  }

  #bolsa{
    display: block;
    height: auto;
    gap: 0;
  }

  #bolsa p{
    font-size: 4vw;
    width: 80%;
    height: 100px;
    margin-top: 100px;
    margin-left: 60px;
    min-height: auto;
    margin-bottom: 0px;
    order: 2;

  }
  
  #bolsa h1{
    display: none;
    order: 1;
    margin-left: 60px;
    max-width: 80px;
    font-size: 8vw;
    margin-top: 0px;
    line-height: normal;
  }

  .contactText{
    display: flex;
    flex-direction: column;
    margin-right: 0px;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  #contacto h3{
    display: block;
    flex-shrink: 1;
    font-size: 10vw;
    margin-top: 20%;
    margin-bottom: 10%;
    min-height: 150px;
    height: 10%;
    max-width: 80%;
    text-align: center;
    justify-content: center;
  }
  #contacto p{
    display: block;
    text-align:start;
    margin-top: 0px;
    font-size: 5vw;
    line-height: normal;
    max-width: 70%;
    min-height: 300px;
    justify-content: center;

  }
  
  


  .contactForm input{
    background-color:  #D9D9D9;
    max-width: 80%;
    margin-bottom: 5px;
    height: 40px;
    border-radius: 12px;
    color: var(--black-color);
  }
  
  .contactForm input::placeholder{
    color: #9E9C9C;
  }
  
  .contactForm textarea{
    background-color:  #D9D9D9;
    max-width: 80%;
    margin-bottom: 16px;
    overflow: hidden; /* Prevent scrolling */
    height: 200px; /* Set a fixed height */
    resize: none; 
    margin-left: 40px;
    border-radius: 12px;
    padding: 16px;
    color: var(--black-color);
  }
  .contactForm button{ 
    width: 132px;
  height: 60px;
  border-radius: 48px;
  background-color: var(--primary-color);
  margin-left: 0px;
  
  }


  .contactCard{
    min-width: 80%;
    margin-top: 20%;
    max-width: 70%;
    margin-bottom: 10%;
    margin-right: 0;
  }
  .contactForm label{
    color: #0B0909;
    font-family: "Poppins";
    font-size: 20px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
  }

  .section-title {
    font-family: '1979', sans-serif;  
    font-size: 10vw;
    font-weight: 400;
    margin-bottom: 0px;
    color: var(--primary-color);
  }

  #servicios{
    min-height: 700px;
  }

  #inicio h1 {
    font-family: 'Steel', sans-serif;  
    font-size: 7.5vw;
    width: 100%;
    font-weight: 5;
    margin-top: 80px;
  }
  
  .subtitle {
    font-size:6vw;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  }

  #clientes{
    flex-direction: column;
    min-height: 900px;
    align-items: center;
    justify-items: center;
  }

  .clientesText{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 80%;
  }
  #clientes h3{
    display: block;
    max-width: 80%;
    min-height: 100px;
    margin-left: 0px;
    margin-top: 15%;
    margin-bottom: 0;
    line-height: normal;
    font-size: 10vw;
    max-height: 130px;
  }
  #clientes p{
    margin-left: 0;
    font-size: 5vw;
    margin-top: 0%;
    margin-bottom: 10%;
    max-width: 60%;
    min-height: 300px;
    text-align: center;
    flex-grow: 1;
    padding-bottom: 200px;
  }

  .clientesCarousel{
    flex-direction: row;
    
  }

  .carousel-item {
    display: flex;
    flex-direction: column;
    flex: 0 0 100%; /* Set width to 270px */
    max-width: none; 
    width: 600;/* Ensure max-width is also 270px */
    height: 500px;
    padding: 0px;
    padding-top: 50px;
    align-self: center;
  }
  .carousel-image{
    align-self: center;
    width: 300px;
    height: 250.5px;
  }
  .carousel-image img{
    align-self: center;
  }
  .carousel{  
    display: flex; /* Use flexbox for the carousel */
    flex-direction: row;
    transition: transform 0.5s ease; /* Smooth transition */
    will-change: transform; /* Optimize for performance */
    width: 100%; 
    align-items:center;
  }
  .carousel-container { /* Corrected class name */
    overflow: visible;
    padding: 0px;
    padding-top: 0px;
  }

  .carousel-arrow {
    font-size: 1.5rem;
    padding: 0.3rem 0.7rem;
  }

  .carousel-arrow.left {
    left: -2rem;
  }

  .carousel-arrow.right {
    right: -2rem;
  }
  #servicios{
    min-height: 800px;
  } 


  .subtitle {
    font-size: 6vw; /* Responsive font size */
    margin-bottom: 1rem;

  }

  .card-container {
    flex-direction: column; /* Stack cards vertically on small screens */
    width: 100%; /* Ensure full width */
  }

  .card {
    width: 100%; /* Ensure cards take full width */
    margin-bottom: 1rem; /* Add space between cards */
    padding: 1rem; /* Adjust padding for smaller screens */
  }
  .card p{
    margin-left:  0px;
    width: 100%;
    height: 170;
    font-size: 4vw;
    margin-top: 0px;
    line-height: normal;
  }

  #modalDescription{
    color: var(--black-color);
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    align-self: center;
    padding: 0px;
  }
  
#modalTitle{
  color: var(--black-color);
  margin-bottom: 5%;
  font-size: 40px;
  font-weight: bold;
  align-self: center;
  


}
  nav{
    display: none;
  }

}

/* Add/modify these rules */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

