/* Estilos generales del cuerpo */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 2rem 0;
  background-color: #f0f2f5;
  color: #333;
}

/* Contenedor principal para centrar y dar espacio */
.container {
  text-align: center;
  padding: 2rem;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 700px;
  margin-bottom: 2rem;
}

/* Estilo del lienzo donde se dibujan los ojos */
#canvas {
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background-color: #000;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
}

/* Contenedor para los botones de control */
.controls {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Estilo de los botones */
button {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  background-image: linear-gradient(45deg, #007bff, #0056b3);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}
button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.3);
}
button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}
#btn-speaking.active {
    background-image: linear-gradient(45deg, #28a745, #218838);
}

/* --- ESTILOS PARA EL CREADOR DE EXPRESIONES --- */
.editor-container {
    text-align: center;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 700px;
}
#editor-canvas {
    border: 2px solid #ccc;
    border-radius: 12px;
    background-color: #f8f9fa;
    cursor: crosshair;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
}
.editor-controls {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}
#output-code {
    width: 100%;
    height: 150px;
    margin-top: 1rem;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    resize: vertical;
    background-color: #e9ecef;
    color: #495057;
}
.editor-controls label {
    font-weight: 600;
}
