*{
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #301F3F 25%, #521978 49%, #281B47 80%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  height: auto;
  font-family: 'Rubik', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

main, footer {
  background-color: transparent;
  color: white;
}

.fondo{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 75%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.8) saturate(1.2);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 3%;
  flex-wrap: wrap;
  height: auto;
}

.espaciado {
  margin-bottom: 20px;
}

.logotipo img {
  max-width: 160px;
  min-width: 100px;
}

.logotipo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: snow;
  text-decoration: none;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.70);
  padding: 10px;
}

.texto{
  margin-left: 14%;
  padding-right: 20%;
}

h2{
  color: snow;
  font-size: 2.4rem;
  letter-spacing: 0.5px;
}

strong{
  text-decoration: underline;
}

li{
  color: snow;
  font-size: 1.2rem;
  text-align: justify;
  font-weight: 400;
}

.caja-texto {
  width: 100%;
  max-width: 500px;
  height: 100px;
  resize: vertical;
  overflow-y: auto;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

p{
  color: snow;
  font-size: 1.2rem;
  letter-spacing: 0.7px;
  text-align: justify;
  font-weight: 300;
}

.logotipo img {
  width: 100%;
  height: auto;
  max-width: 160px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

.logotipo img:hover {
  transform: scale(1.05);
}

.menu a{  
  font-size: 1.4rem;
  text-decoration: none;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
  color: rgba(255, 255, 255, 0.80);
}

.menu a:hover {
  color: #ffffff;
}

.menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #8026F1;
  transition: width 0.3s;
}

.menu a:hover::after {
  width: 100%;
}

.menu {
  list-style: none;
  display: flex;
  gap: 100px;
  margin-right: 30px;
  padding: 0;
  margin-bottom: 5%;
  flex-wrap: wrap;
  justify-content: center;
}

.menu li {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: snow;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  margin-top: auto;
}

.menu-reg {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

.menu-reg, ul{
  list-style-type: none;
  margin: 0px;
  padding: 15px;
  margin-top: -10px;
  padding-top: 50px;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 60px;
}

.pie{
  padding-bottom: 25px;
}

.pie nav{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  color: snow;
  font-size: 1.8rem;
  text-align: justify;
  font-weight: 400;
  height: auto;
  margin-top: 5vh;
  justify-content: flex-start;
}

.pie a {
  color: snow;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.pie a:hover {
  color: #bdaaff;
  transform: translateY(-2px);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}

.col1 {
  width:30%;
  padding: 10px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  text-align: left;
  padding-left: 6%;
  margin-left: 5vh;
}

.col1 img{
 margin-top: 7vh;
}


.col3 {
  width: 30%;
  padding: 10px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  text-align: left;
}

.col3 img{
  margin-top: 3vh;
 }
 


.col2{
  width: 30%;
  padding-left: 0;
  letter-spacing: 0.7px;
  margin-right: 7%;
}


.col1 img, .col3 a img {
  width: 90%;
  height: auto;
}

.col3 {
  margin-top: 20px;
  padding-top: 5%;
  padding-bottom: 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* Centra verticalmente */
  align-items: center;       /* Centra horizontalmente */
  width: 30%;
  padding: 10px;
  gap: 20px;
}

.col3 a img {
  width: 50px;
  height: 50px;
  transition: transform 0.5s ease;
}

.col3 a img:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.contactanos {
  background: linear-gradient(135deg, #8026F1, #102095);
  background-size: 200% auto;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 50px;
  margin-right: 20px;
  padding: 6px 20px;
  font-size: 1.4rem;
  font-weight: 500;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.2),
              0 4px 10px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: background-position 0.5s, transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
}

.contactanos:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.15),
              0 6px 15px rgba(0, 0, 0, 0.3);
  color: snow;
}

.contactanos:active {
  transform: scale(0.98);
}

.contacto-page .contactanos {
  pointer-events: none;
  opacity: 0.5;
}

@media (max-width: 1024px) {
  .texto {
    margin-left: 5%;
    padding-right: 5%;
  }
  .menu {
    gap: 40px;
  }
  .menu-reg {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .texto {
    margin-left: 3%;
    padding-right: 3%;
  }
  h2 {
    font-size: 2rem;
  }
  p, li {
    font-size: 1rem;
  }
  .contactanos {
    margin: 20px auto;
    display: block;
  }
}

@media (max-width: 768px) {
  .overlay {
    height: 30vh;  /* Adjust to prevent overlap with other content */
  }
}

@media (max-width: 480px) {
  .contactanos {
    padding: 6px 18px;
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .pie nav {
    flex-direction: column;
    align-items: center;
  }

  .col1, .col2, .col3 {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .overlay{
    display: none;
  }
  button{
    margin-left: 0;
    padding-left: 0;
  }
  li{
    text-align: left;
  }
  p{
    text-align: left;
  }

  .logotipo img {
    max-width: 100px;
  }
  .menu { 
    display: none;
  }

  /* Mostrar el botón de menú en pantallas móviles */
  button {
    display: block;
  }
  .col1 img, .col3 a img {
    width: 60%;
  }
  .col2 {
    font-size: 1rem;
    padding-left: 0;
  }
  .pie nav {
    flex-direction: column;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .pie nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .col1, .col2, .col3 {
    width: 30%;
    padding: 10px;
  }

  .col1 {
    padding-left: 6%;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .col2 {
    padding-left: 15vh;
    justify-content: center;
    align-items: center;
    text-align: left;
  }

  .col3 {
    justify-content: flex-end;
    align-items: center;
    gap: 10%;
  }
}

@media (max-width: 768px) {
  .col3 {
    justify-content: center;
  }

  .col3 a img {
    width: 50px;
    height: 50px;
  }
}

/* CARRUSEL */

.carousel {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  height: 400px; /* altura de las imágenes */
}

.carousel-track-container {
  overflow: hidden;
  height: 100%;
}
.carousel-track {
  display: flex;
  transition: transform 0.8s ease-in-out;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  transition: opacity 0.5s ease;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Animación automática */
@keyframes scrollSlides {
  0% { transform: translateX(0%); }
  33.333% { transform: translateX(0%); }
  44.444% { transform: translateX(-100%); }
  77.777% { transform: translateX(-100%); }
  88.888% { transform: translateX(-200%); }
  100% { transform: translateX(-200%); }
}

/* Responsive: alto máximo */
@media (max-width: 768px) {
  .carousel-slide img {
    height: 250px;
  }
}
@media (min-width: 769px) {
  .carousel-slide img {
    height: 400px;
  }
}
.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  color: #333;
  font-size: 2.5rem;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-button:hover {
  background-color: white;
  transform: translateY(-50%) scale(1.1);
  color: #000;
}

.carousel-button.prev {
  left: 15px;
}

.carousel-button.next {
  right: 15px;
}

/* Responsive */

@media (max-width: 1024px) {
  h2 {
    font-size: 2rem;
  }

  p, li, .menu a, .menu li, .contactanos {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.7rem;
  }

  p, li, .menu a, .menu li, .contactanos {
    font-size: 0.8rem;
  }

  .contactanos {
    font-size: 0.6rem;
    padding: 5px 8px;
  }

}

@media (max-width: 480px) {
  h2 {
    font-size: 1.5rem;
  }

  p, li, .menu a, .menu li, .contactanos {
    font-size: 0.95rem;
  }

  .logotipo {
    font-size: 0.85rem;
  }

  
  .logotipo {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    width: 100% !important; /* Asegura que ocupe todo el ancho */
    text-align: center !important;
    margin: 0 auto !important; /* Asegura que esté centrado */
    padding: 0 !important; /* Elimina cualquier relleno no deseado */
  }

  .logotipo img {
    display: block;
    margin: 0 auto; /* Esto asegura que la imagen se centra dentro del contenedor */
    max-width: 100%; /* Hace que la imagen no se salga del contenedor */
  }
}



@media (max-width: 1024px) {
  .carousel {
    height: 320px;
  }
  .carousel-slide img {
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .carousel {
    height: 260px;
  }
  .carousel-slide img {
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .carousel {
    height: 200px;
  }

  .carousel-button {
    font-size: 1.2rem;
    padding: 6px 10px;
  }

  .carousel-slide img {
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .carousel {
    height: 300px;
  }

  .carousel-button {
    font-size: 1.5rem;
    padding: 8px 12px;
  }
}

@media (max-width: 600px) {
  .pie nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .col1, .col2, .col3 {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 1024px) {
  .logotipo img {
    max-width: 120px;
  }
}

@media (max-width: 768px) {
  .logotipo {
    max-width: 100px;
  }

  .logotipo img {
    max-width: 100px;
  }
}

@media (max-width: 480px) {
  .logotipo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .logotipo img {
    max-width: 100%;
    height: auto;
    display: block;
  }
}

@media (max-width: 600px) {
  .logotipo {
    max-width: 60px;
    padding: 5px;
  }

  .logotipo img {
    max-width: 80px;
  }
}

@media (max-width: 400px) {
  .logotipo {
    max-width: 60px;
    padding: 4px;
  }

  .logotipo img {
    max-width: 60px;
  }
}

.contact-form-section {
  width: 100%;
  max-width: 600px;
  margin: 50px auto;
  margin-top: 26vh;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.contact-form-section h2 {
  text-align: center;
  color: #333;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  resize: vertical;
}

textarea {
  height: 120px;
}

button.submit-button {
  width: 100%;
  padding: 12px;
  background-color: #8026F1;
  color: #fff;
  font-size: 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button.submit-button:hover {
  background-color: #6619b3;
}

.confirmation-message {
  margin-top: 20px;
  background-color: #d4edda;
  color: #155724;
  padding: 10px;
  border-radius: 8px;
}