/* WondarCore — código propio, no generado. Se puede modificar libremente. */
/* Modal global de "Sugerencias" — ver _Layout.cshtml y sugerencia-modal.js. Autocontenido (no
   depende de clases de otras páginas) porque se carga en TODO el sitio, no solo en /sugerencias. */

.sm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 30, 0.55);
  z-index: 2001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.sm-overlay--visible { opacity: 1; pointer-events: auto; }

.sm-panel {
  position: relative;
  background: #fff;
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  padding: 32px 28px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.sm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: 50%;
  border: none;
  background: #f0f1f5;
  color: #666;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.sm-close:hover { background: #e4e6ec; }

.sm-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 4px 0 6px;
}

.sm-sub {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.5;
  margin-bottom: 20px;
}

.sm-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 16px;
}

.sm-textarea {
  min-height: 120px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1a1a2e;
  resize: vertical;
  box-sizing: border-box;
}
.sm-textarea:focus { outline: none; border-color: #7c3aed; }

.sm-input-text {
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1a1a2e;
  box-sizing: border-box;
}
.sm-input-text:focus { outline: none; border-color: #7c3aed; }

.sm-input-file {
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  font-family: inherit;
  color: #1a1a2e;
  background: white;
  min-height: 44px;
  box-sizing: border-box;
  max-width: 100%;
}

.sm-footer { margin-top: 8px; }

.sm-btn-primary {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  border: none;
  background: #7c3aed;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.sm-btn-primary:hover { background: #6d28d9; }
.sm-btn-primary:disabled { opacity: 0.65; cursor: default; }

.sm-error {
  color: #dc2626;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 12px;
}

.sm-gracias {
  padding: 1.5rem;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  text-align: center;
}
.sm-gracias h3 { font-size: 1.05rem; font-weight: 800; color: #166534; margin-bottom: 0.4rem; }
.sm-gracias p { font-size: 0.85rem; color: #166534; }

@media (max-width: 480px) {
  .sm-panel { padding: 26px 20px 20px; }
}
