.carmin-box {
  background-color: #0d40e6; /* Rojo carmín aproximado */
  color: white;
  padding: 50px 10px;
  border-radius: 10px;
  border: none;
  width: 38%;
  margin: 10px 180px;
  font-size: 2.2em;
  font-family: "Roboto", sans-serif;
}

.contact-button {
  background-color: #666666; /* Azul cobalto */
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.slider-cont {
  position: absolute; /* Necesario para posicionar las imágenes */
  width: 500px;
  height: 328px;
  overflow: hidden;
  top: 78%;
  right: 10%;
}

.slid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slid img {
  width: 100%;
  height: 100%;
}

.about {
  padding: 100px 130px;
  display: flex;
}

.about-img {
  width: 50%;
  position: relative;
  overflow: hidden;
}
.slide {
  width: 100%;
  float: left;
  transition: transform 0.5s ease-in-out;
}
.about-img img {
  width: 100%;
  float: left;
  transition: transform 0.5s ease-in-out;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.prev {
  left: 0;
}

.next {
  right: 0;
}
.about-img img {
  width: 500px;
  height: 300px;
  border-radius: 15px;
}

.about-txt {
  width: 50%;
  margin-left: 25px;
}

.about-txt h2 {
  color: #0d40e6;
  font-size: 40px;
  margin-bottom: 15px;
  font-family: "Roboto", sans-serif;
  text-align: center;
}

.about-txt p {
  font-size: 16px;
  color: #0f0f0f;
  font-family: "Roboto", sans-serif;
  text-align: justify;
}

.con {
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 4px solid #0d40e6;
  margin: 10px;
  position: relative;
  box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.3); /* Sombra más pronunciada */
}

.circle:hover {
  transform: translateY(-5px) scale(1.1); /* Elevación y aumento de tamaño */
}
.circle:hover {
  transform: translateY(5px) scale(1.1) !important;
  transition: all 0.2s ease-in-out;
}

.circle img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: auto;
  border-radius: 50%;
}
/* Tablet and Mobile Styles */
@media (max-width: 768px) {
  /* Adjust carmin-box for smaller screens */
  .carmin-box {
    width: 80%; /* Make it wider on smaller screens */
    margin: 10px 10px; /* Reduce margins */
    font-size: 1.8em; /* Reduce font size slightly */
    margin-left: 50px;
  }

  /* Adjust slider-cont for smaller screens */
  .slider-cont {
    width: 100%; /* Make it full width */
    right: 0; /* Remove right offset */
    height: 200px; /* Reduce height */
    margin-top: 100px;
    margin-left: 50px;
  }

  /* Adjust about section for smaller screens */
  .about {
    flex-direction: column; /* Stack elements vertically */
    padding: 100px 20px; /* Reduce padding */
  }

  .about-img {
    width: 100%; /* Make image full width */
    margin-bottom: 20px; /* Add spacing below image */
  }

  .about-txt {
    width: 100%; /* Make text full width */
    margin-left: 0; /* Remove left margin */
  }

  /* Adjust circle size for smaller screens */
  .circle {
    width: 120px;
    height: 120px;
    margin-top: 180px;
  }
}

/* Mobile Styles */
@media (max-width: 480px) {
  /* Further adjustments for smaller screens */
  .carmin-box {
    font-size: 1.6em; /* Reduce font size further */
  }

  .slider-cont {
    height: 150px; /* Reduce height further */
  }

  .about-img img {
    height: 150px; /* Reduce image height */
  }

  .circle {
    width: 100px; /* Reduce circle size further */
    height: 100px;
  }
}

/* Ajustar para pantallas extra pequeñas (e.g., iPhones SE) */
@media (max-width: 320px) {
  .carmin-box {
    font-size: 1.4em;
  }
  .slider-cont {
    height: 100px;
  }
}
