/* ==============================
   Muro de Frases – style.css
   ============================== */

/* Contenedor principal que limita el muro */
.muro-container {
  position: relative;
  width: 100%;
  height: 80vh;
  max-height: 600px;
  overflow: hidden;
}

/* Botón para abrir el formulario, relativo al contenedor */
.muro-container .boton-abrir {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 8px 12px;
  background: #0a3b69;
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
}

.muro-container .boton-centrar {
  position: absolute;
  top: 50px;
  left: 10px;
  z-index: 1000;
  padding: 8px 12px;
  background: #f8f8f8;
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
}

#firmaCanvas {
	width:100%!important;
	background: #f9fafb;
    border: 1px solid #e2e8f0;
}

/* Contenedor del formulario dentro de .muro-container */
#formulario-container {
  position: absolute;
  top: 50px;
  left: 10px;
  width: 280px;
  background: rgba(255,255,255,0.95);
  padding: 40px 20px 20px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: none;
  z-index: 1000;
  box-sizing: border-box;
}

/* Mostrar formulario cuando esté abierto */
#formulario-container.abierto {
  display: block;
}

/* Botón para cerrar el formulario */
.cerrar-formulario {
  position: absolute;
  top: 5px;
  right: 5px;
  color: #12347d!important;
  background: none!important;
  font-size: 16px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
}

/* Wrapper del muro */
#muro-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
}

/* El espacio infinito del muro */
#muro {
  position: absolute;
  top: 0;
  left: 0;
  width: 5000px;
  height: 5000px;
  cursor: grab;
  transform-origin: 0 0;
}

/* Estilos de cada nota */
.nota {
  position: absolute;
  background: #ffffcc;
  padding: 12px;
  border: 1px solid #aaa;
  border-radius: 6px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
  font-family: 'Just Another Hand', cursive;
  font-size: 20px;
  z-index: 10;
}

.nota img {
  max-width: 100px;
  margin-top: 8px;
  display: block;
}

.nota a {
  display: block;
  margin-top: 6px;
  color: #333;
  text-decoration: none;
}

.borrar-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #d00;
  cursor: pointer;
  float: right;
}

/* Responsive para móviles */
@media (max-width: 600px) {
  .muro-container { height: 70vh; }

  #formulario-container {
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    padding: 10px;
  }

  .muro-container .boton-abrir {
    top: 10px;
    left: 10px;
    padding: 6px 10px;
    font-size: 14px;
  }

  #formulario textarea,
  #formulario input,
  #formulario button {
    font-size: 16px;
  }

  canvas #firmaCanvas {
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .nota {
    font-size: 18px;
    padding: 10px;
    max-width: 90%;
  }
}
