@import url("https://fonts.googleapis.com/css?family=Nunito:400,600,700");

/* Reinicio básico */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: rgba(0, 0, 0, 0.7);
}

/* Fondo de la página */
.contenedor-principal {
  height: 200vh;
  background-image: url("../img/personas.jpg");
  background-size: cover;
  background-position: center;
}

/* Contenedor de la ventana modal */
.ventana-modal {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 60px;
  background: rgba(51, 51, 51, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.4s;
}

/* Panel interno del modal */
.contenedor-modal {
  display: flex;
  max-width: 720px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition-duration: 0.3s;
  background: #fff;
  transform: translateY(100px) scale(0.4);
}

/* Animación de apertura */
.ventana-modal.abierta {
  height: 100%;
  background: rgba(51, 51, 51, 0.85);
}

.ventana-modal.abierta .boton-modal {
  opacity: 0;
}

.ventana-modal.abierta .contenedor-modal {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-duration: 0.6s;
}

/* Lado izquierdo */
.lado-izquierdo {
  padding: 60px 30px 20px;
  flex: 1.5;
  background: #fff;
  transform: translateY(80px);
  opacity: 0;
  transition-duration: 0.5s;
}

.ventana-modal.abierta .lado-izquierdo {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.1s;
}

/* Lado derecho */
.lado-derecho {
  flex: 2;
  font-size: 0;
  transition: 0.3s;
  overflow: hidden;
}

.lado-derecho img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(2);
  transition-duration: 1.2s;
}

.ventana-modal.abierta .lado-derecho img {
  transform: scale(1);
}

/* Títulos y descripciones */
.titulo-modal {
  font-size: 26px;
  margin: 0;
  font-weight: 400;
  color: #55311c;
}

.descripcion-modal {
  margin: 6px 0 30px;
  color: #348b71;
}

/* Bloques de entrada */
.bloque-entrada {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 20px;
  transition: 0.3s;
}

.bloque-entrada:focus-within {
  border-color: #348b71;
}

.input::-webkit-input-placeholder {
  color: #ccc;
}

/* Etiquetas */
.etiqueta-entrada {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.7px;
  color: #C2185B;
  transition: 0.3s;
}

.bloque-entrada:focus-within .etiqueta-entrada {
  color: rgba(169, 24, 65, 0.8);
}

/* Botones dentro del modal */
.botones-modal {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.enlace-olvido {
  color: rgba(51, 51, 51, 0.6);
  font-size: 14px;
  text-decoration: none;
}

.boton-entrada {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  background: #C2185B;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.boton-entrada:hover {
  background: #36a489;
}

/* Pie de página del modal */
.pie-pagina {
  margin: 60px 0 0;
  font-size: 14px;
  text-align: center;
}

.pie-pagina a {
  color: #348b71;
}

/* Botón grande para abrir */
.boton-modal {
  color: #7d695e;
  font-size: 18px;
  border: none;
  padding: 10px 40px;
  border-radius: 30px;
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: 0.3s;
}

.boton-modal:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Botón de cerrar */
.boton-icono {
  position: absolute;
  right: 10px;
  top: 12px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.boton-cerrar svg {
  fill: rgba(51, 51, 51, 0.8);
}

/* Indicador “desplazar abajo” */
.desplazar-abajo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #dcd8d5;
  font-size: 32px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.desplazar-abajo svg {
  margin-top: 16px;
  width: 52px;
  fill: currentColor;
}

/* Responsive */
@media (max-width: 750px) {
  .contenedor-modal {
    width: 90%;
  }
  .lado-derecho {
    display: none;
  }
}
