/* 🎯 Contenedor general del formulario */
.formulario {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;             /* 👈 asegura que use todo el alto del contenedor */
  min-height: 100%;
  padding: 20px;
  background-color: #1e1e2f;
  color: #f0f0f0;
  border-radius: 6px;

  /* 📍 AJUSTE DE ANCHO */
  max-width: 900px;         /* ← CAMBIÁ ESTO para hacer el form más ancho */
  min-width: 500px;         /* ← CAMBIÁ ESTO para hacer el form más angosto */
  margin: 0 auto;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}

/* 🎯 Grupos de campos */
.grupo-form {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.grupo-form label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #ddd;
}

.grupo-form input,
.grupo-form select,
.grupo-form textarea {
  padding: 8px 10px;
  border: 1px solid #555;
  background-color: #2a2a3d;
  color: #f0f0f0;
  border-radius: 4px;
  font-size: 0.95em;
}

.grupo-form input:disabled,
.grupo-form textarea:disabled,
.grupo-form select:disabled {
  background-color: #3a3a4d;
  color: #aaa;
}

/* 🎯 Placeholder cuando no hay usuario seleccionado */
.texto-placeholder {
  font-style: italic;
  color: #aaa;
}

/* 🎯 Botonera final del formulario */
.formulario .acciones {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.formulario .acciones button {
  padding: 8px 16px;
  font-size: 0.95em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.formulario .acciones button:first-child {
  background-color: #007acc;
  color: white;
}

.formulario .acciones button:last-child {
  background-color: #666;
  color: white;
}

/* 🎯 Separadores visuales */
hr {
  border: none;
  border-top: 1px solid #444;
  margin: 15px 0;
}
.usuario-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.avatar-preview {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  border: 1px solid #444;
  object-fit: cover;
}
.logo-preview {
  margin-top: 10px;
}

.logo-img {
  max-height: 60px;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #1a1a1a;
  padding: 4px;
  object-fit: contain;
}

.oculto {
  display: none;
}
.area-enriquecida {
  min-height: 250px;
  padding: 10px;
  border: 1px solid #888;
  border-radius: 4px;
  background-color: #1a1a1a;
  color: white;
  outline: none;
  overflow-y: auto;
}
.area-enriquecida:empty:before {
  content: attr(placeholder);
  color: #666;
}
.preview-bloque {
  padding: 10px;
  border: 1px solid #444;
  background-color: #222;
  border-radius: 6px;
  margin-bottom: 5px;
  color: #ccc;
}
.placeholder {
  color: #666;
}
.bloque-desactivado {
  opacity: 0.6;
  pointer-events: none;
  background-color: #48485f;         /* fondo más grisáceo para destacar desactivado */
  border: 1px dashed #6c6c6c;           /* borde punteado tenue */
  border-radius: 4px;
  cursor: not-allowed;               /* cambia el cursor */
  padding: 4px;                      /* separa el contenido del borde */
}

.sublista-interfaces {
  margin-top: 10px;
  padding-left: 10px;
  font-size: 0.95em;
  color: #aaa;
}
.interface-preview {
  border: 1px solid #444;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 8px;
  background-color: #2a2a3d;
}
.resaltado {
  color: #80bfff;
  font-weight: bold;
}
/*estilos instancias*/
.interface-preview > .btnInstancias {
  background-color: #007acc;
  color: white;
  font-size: 0.85em;
  padding: 5px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 8px;
  display: block;
  margin-left: auto;
  transition: background-color 0.2s ease;
}

.interface-preview .btnInstancias:hover {
  background-color: #005fa3;
}

.interface-preview .botones-acciones {
  display: flex;
  justify-content: flex-end;
  gap: 4px; /* 👈 menos separación */
  margin-top: 8px;
}

.interface-preview .botones-acciones button {
  background-color: #007acc;
  color: white;
  font-size: 0.8em;         /* 👈 más chico */
  padding: 4px 10px;        /* 👈 más compacto */
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  min-width: 72px;          /* 👈 uniforma tamaño visual */
  text-align: center;
}

.interface-preview .botones-acciones button:hover {
  background-color: #005fa3;
}
/*estilos instancias*/
.interface-preview .botones-acciones .btnBorrar {
  background-color: #cc2e3e;
  color: white;
  font-size: 0.8em;
  padding: 4px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  min-width: 72px;
  text-align: center;
  transition: background-color 0.2s ease;
}

.interface-preview .botones-acciones .btnBorrar:hover {
  background-color: #a3202f;
}