@import url('https://fonts.googleapis.com/css2?family=Lora:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');


body {
  margin: 0;
  
}
.h2_carrusel {
	font-size: 6vw;
	font-family: 'Lora', serif;
	font-weight: bold;
}

.span_carrusel {
	font-family: 'DM Sans', sans-serif;
	font-weight: 600;
	font-size: 4vw;
}

.pantallas-contenedor {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
	background-color: #CFD5DC;
	border-top-left-radius: 30em;
  border-top-right-radius: 30em;
	
}

.pantalla {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
	padding: 5vh 0vh;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateX(100%);
  z-index: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.contenido-centrado {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}


.pantalla.activa {
  opacity: 1;
  z-index: 1;
  transform: translateX(0%);
}

.pantalla-1 {
  border-top-left-radius: 0vw;
}

.pantalla-2 {
  border-top-left-radius: 30em;
  border-top-right-radius: 30em;
  margin-top: 2vh;
	background-color: #EFEDE9;
	
}

.pantalla-3 {
  border-top-left-radius: 0vw;
}

.pantalla-4 {
  background-color: #EFEDE9;
  border-radius: 50%;
  width: 40vh;
  height: 40vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
  padding: 3vh 2vw;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}


.pantalla-4.activa {
  opacity: 1;
  z-index: 1;
  transform: translate(-50%, -50%);
}





.boton-cambio {
  background-color: #1D3557;
  color: white;
  border: none;
  border-radius: 50%;
  width: 3.5em;
  height: 3.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.boton-cambio-derecha {
  background-color: #1D3557;
  color: white;
  border: none;
  border-radius: 50%;
  width: 3.5em;
  height: 3.5em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.boton-cambio-izquierda {
  background-color: #1D3557;
  color: white;
  border: none;
  border-radius: 50%;
  width: 3.5em;
  height: 3.5em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.botones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem; 
  margin-top: 2em;
}


.boton-cambio:hover {
  background-color: #457B9D;
}

@media (min-width: 768px) {
 .h2_carrusel {
    font-size: 2.5vw;
  }

 .span_carrusel {
    font-size: 1.3vw;
  }

  .pantallas-contenedor {
    height: 90vh;
    border-top-left-radius: 60em;
    border-top-right-radius: 60em;
  }

  .pantalla {
    flex-direction: column;
    padding: 5vh 5vw;
  }
	
	.pantalla-2 {
  border-top-left-radius: 30em;
  border-top-right-radius: 30em;
  margin-top: 5vh;
	padding-bottom: 10vh;
	background-color: #EFEDE9;
	
}

  .pantalla-4 {
    width: 80vh;
    height: 80vh;
    padding: 5vh 4vw;
  }

  .botones {
    gap: 5rem;
    margin-top: 3em;
  }

  .boton-cambio,
  .boton-cambio-izquierda,
  .boton-cambio-derecha {
    width: 4em;
    height: 4em;
  }
}

