/* Tarjetas de cada paso */
.card-section {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.card-section h2 {
  font-size: 1.3rem;
  color: #1f2937;
  margin-bottom: 15px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 6px;
}

/* Campos */
.campo {
  margin-bottom: 15px;
}
.campo label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  display: block;
}
.campo input,
.campo select,
.campo textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 6px rgba(37,99,235,0.3);
  outline: none;
}

/* Wizard steps */
.form-step { display: none; }
.form-step.active { display: block; }

/* Botones */
.btn-siguiente,
.btn-anterior,
.btn-guardar {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 10px;
}
.btn-siguiente { background: #2563eb; color: #fff; }
.btn-anterior { background: #2563eb; color: #fff; }
.btn-guardar { background: #10b981; color: #fff; }
.btn-siguiente:hover { background: #1d4ed8; }
.btn-anterior:hover { background: #2563eb; }
.btn-guardar:hover { background: #059669; }

/* Croquis */
.croquis-container {
  position: relative;
  width: 500px;
  margin: 20px auto;
}
.croquis-container img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.croquis-btn {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.croquis-btn:hover { background: #1d4ed8; }

/* Previews */
#preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
#preview-container img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Grilla de dos columnas */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Grupo de checkboxes */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.checkbox-group label {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
  transition: background 0.2s, border-color 0.2s;
}

.checkbox-group input {
  margin-right: 6px;
}

.checkbox-group label:hover {
  background: #f3f4f6;
  border-color: #2563eb;
}

/* Ajustes generales para inputs dentro de grillas */
.grid-2 .campo input,
.grid-2 .campo select,
.grid-2 .campo textarea {
  width: 80%;
}
button[type="button"] {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #ccc;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  border: none;
  background: #darkslategray;
  width: 100%;
  text-align: left;
  cursor: pointer;
  width: auto;
}
button[type="button"]:hover {
  background-color: #2a2a3d;
}

.button2[type="button2"] {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #ccc;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  border: none;
  background: #004080;
  width: 100%;
  text-align: left;
  cursor: pointer;
  width: auto;
}
.button2[type="button2"]:hover {
  background-color: #2a2a3d;
}

.submenu-items {
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #252538;
  transition: max-height 0.3s ease;
}

.submenu-items a {
  padding-left: 40px;
  font-size: 14px;
}

.submenu.open .submenu-items {
  max-height: 200px; /* suficiente para mostrar los ítems */
}
