@import url("https://fonts.googleapis.com/css?family=Nunito:400,600,700");
* { box-sizing: border-box; margin:0; padding:0; }

body {
  font-family: "Nunito", sans-serif;
  background: #f0f2f5;
  overflow-x: hidden;
}

/* Fondo */
.contenedor-principal {
  height: 200vh;
  background: url("../img/personas.jpg") center/cover no-repeat;
}

/* Modal específico de registro */
.registro-modal .contenedor-modal {
  display: flex;
  max-width: 800px;
  margin: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
  overflow: hidden;
  background: #fff;
  transform: translateY(100px) scale(.8);
  transition: all .4s ease;
  opacity: 0; pointer-events: none;
}

.registro-modal.abierta .contenedor-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Lado izquierdo (form) */
.lado-izquierdo {
  flex: 1;
  padding: 40px;
  background: #fafafa;
}

.titulo-modal {
  font-size: 28px;
  color: #C2185B;
  margin-bottom: 8px;
}

.descripcion-modal {
  color: #666;
  margin-bottom: 24px;
}

/* Grid del formulario */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.bloque-entrada {
  display: flex; flex-direction: column;
}

.bloque-entrada label {
  font-size: 13px;
  margin-bottom: 6px;
  color: #555;
}

.bloque-entrada input {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: all .2s;
}

.bloque-entrada input:focus {
  outline: none;
  border-color: #C2185B;
  box-shadow: 0 0 0 2px rgba(194,24,91,.2);
}

/* Botón registrar */
.boton-entrada {
  width: 100%;
  padding: 12px 0;
  background: linear-gradient(135deg, #C2185B, #36a489);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  transition: all .3s;
}

.boton-entrada:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
}

/* Pie */
.pie-pagina {
  font-size: 12px;
  color: #999;
  margin-top: 20px;
  text-align: center;
}

.pie-pagina a {
  color: #C2185B;
  text-decoration: none;
}

/* Lado derecho (imagen) */
.lado-derecho {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #C2185B33, #36a48933);
}

.lado-derecho img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Botones abrir/cerrar */
.boton-modal, .boton-cerrar {
  cursor: pointer;
}

.boton-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 14px 28px;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  font-weight: 600;
  transition: all .3s;
}

.boton-modal:hover {
  transform: translateY(-3px);
}

.boton-cerrar {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 24px;
  background: none;
  border: none;
  color: #999;
  transition: color .2s;
}

.boton-cerrar:hover {
  color: #C2185B;
}

/* Indicador deslizar */
.desplazar-abajo {
  position: fixed; top:50%; left:50%;
  transform: translate(-50%,-50%);
  color: #fff; font-size: 28px; text-align: center;
}

.desplazar-abajo svg {
  margin-top: 12px;
  width: 48px;
  fill: currentColor;
}

/* Responsive */
@media (max-width: 768px) {
  .registro-modal .contenedor-modal {
    flex-direction: column-reverse;
    transform: translateY(100px) scale(.9);
  }
  .lado-derecho { display: none; }
  .lado-izquierdo { padding: 24px; }
}
