/* === Base wrapper === */
.cel-wrap {
  max-width: 960px;
  margin: 0 auto;/*mod*/
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: #333;
  padding: 28px 28px;
  background: #f7f8fa;
  border: 1px solid #e5e7eb; /* Borde sutil */
  border-radius: 14px;       /* Esquinas redondeadas */
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* === Títulos y secciones === */
.cel-wrap h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 14px;
  margin-bottom: 14px;
  color: #222;
}

.cel-wrap .section {
  margin-top: 24px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

/* === Filas y columnas === */
.cel-wrap .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px 28px; /* más espacio entre columnas y filas */
  margin-bottom: 20px;
}

/* === Grupos de campos === */
.cel-wrap .form-group,
.cel-wrap .field,
.cel-wrap .form-row {
  margin-bottom: 18px;
}

.cel-wrap label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

/* === Inputs y textareas === */
.cel-wrap input[type=text],
.cel-wrap input[type=email],
.cel-wrap input[type=number],
.cel-wrap input[type=password],
.cel-wrap input[type=date],
.cel-wrap input[type=file],
.cel-wrap textarea,
.cel-wrap select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 12px;
  box-sizing: border-box;
  font-size: 15px;
}
.cel-wrap input:focus,
.cel-wrap textarea:focus,
.cel-card select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.cel-wrap textarea {
  min-height: 90px;
  resize: vertical;
}

/* === Radios y checkboxes === */
.cel-wrap .inline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.cel-wrap .inline-controls label {
  margin-bottom: 0;
  font-weight: 500;
}

/* === Botón === */
.cel-wrap .btn {
  background: #2563eb;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  transition: background 0.2s ease-in-out;
  margin-top: 8px;
}

.cel-wrap .btn:hover {
  background: #1d4ed8;
}

/* === Mensajes de estado === */
.cel-wrap .ok {
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 10px 12px;
  border-radius: 8px;
  margin-top: 10px;
}

.cel-wrap .ko,
.cel-wrap .error {
  color: #721c24;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 10px 12px;
  border-radius: 8px;
  margin-top: 10px;
}

/* === Responsivo === */
@media (max-width: 720px) {
  .cel-wrap .row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cel-wrap form{
    margin: 16px 12px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
  }

  .cel-wrap .btn {
    width: 100%;
  }
}


/* Ocultar mensajes hasta que el JS los muestre */
.cel-wrap .error,
.cel-wrap #ok,
.cel-wrap #ko {
  display: none;
}