/* =========================================================
   REGISTRO MNM — MODO CLARO
   Compatible con home.css (tema claro MNM)
   ========================================================= */

/* ===== CONTENEDOR GENERAL ===== */

#registro {
  position: relative;
  z-index: 1;
}

.reg__card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(1, 52, 35, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

/* ===== TITULOS ===== */

.kicker {
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 700;
  color: #0b5d3f;
  margin-bottom: 6px;
}

.sub {
  color: #3b5a4b;
  margin-bottom: 22px;
}

/* =========================================================
   BLOQUE INTRO (guerrero + texto)
   ========================================================= */

.reg__intro {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border-radius: 14px;
  background: rgba(1, 52, 35, 0.04);
  border: 1px solid rgba(1, 52, 35, 0.12);
  margin-bottom: 22px;
}

.reg__introImg {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  background: #e9f2ee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reg__introImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reg__introTitle {
  font-weight: 800;
  font-size: 18px;
  color: #0b1f16;
  margin-bottom: 6px;
}

.reg__introBody {
  color: #2f4a3e;
  line-height: 1.55;
  font-size: 14px;
}

/* =========================================================
   SECCIONES DEL FORM
   ========================================================= */

.reg__section {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(1, 52, 35, 0.12);
}

.reg__sectionH {
  font-weight: 800;
  font-size: 15px;
  color: #0b1f16;
  margin-bottom: 14px;
}

/* =========================================================
   GRID
   ========================================================= */

.reg__grid {
  display: grid;
  gap: 14px;
}

.reg__grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reg__grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reg__grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* =========================================================
   CAMPOS
   ========================================================= */

.reg__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reg__label {
  font-size: 13px;
  font-weight: 600;
  color: #2f4a3e;
}

/* ===== INPUTS ===== */

.reg__input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(1, 52, 35, 0.18);
  background: #ffffff;
  color: #0b1f16;
  font-size: 14px;
  transition: all .15s ease;
}

.reg__input:focus {
  outline: none;
  border-color: #0b5d3f;
  box-shadow: 0 0 0 3px rgba(11, 93, 63, 0.12);
}

/* textarea support futuro */
textarea.reg__input {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
}

/* =========================================================
   CHECKBOXES Y RADIOS
   ========================================================= */

.reg__check,
.reg__radio {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: #2f4a3e;
  margin-bottom: 6px;
}

.reg__check input,
.reg__radio input {
  margin-top: 3px;
}

/* =========================================================
   LEGAL
   ========================================================= */

.reg__legal {
  background: rgba(1, 52, 35, 0.04);
  border: 1px solid rgba(1, 52, 35, 0.12);
  border-radius: 12px;
  padding: 14px;
}

.reg__legalH {
  font-weight: 700;
  color: #0b1f16;
  margin-bottom: 6px;
}

.reg__muted {
  color: #6c8a7c;
  font-weight: 600;
}

/* =========================================================
   ALERTAS
   ========================================================= */

.reg__alert {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  font-size: 14px;
}

.reg__alert--ok {
  background: #e8f6ef;
  border: 1px solid #b7e2cd;
  color: #0b5d3f;
}

.reg__alert--err {
  background: #fdeeee;
  border: 1px solid #f2bcbc;
  color: #8a1f1f;
}

.reg__alertList {
  margin: 6px 0 0 16px;
}

/* =========================================================
   DONE
   ========================================================= */

.reg__done {
  text-align: center;
  padding: 30px 10px;
}

.reg__doneT {
  font-size: 22px;
  font-weight: 800;
  color: #0b1f16;
  margin-bottom: 6px;
}

.reg__doneS {
  color: #3b5a4b;
  margin-bottom: 16px;
}

.reg__doneA {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   BOTONES
   ========================================================= */

.reg__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

/* =========================================================
   HINTS
   ========================================================= */

.reg__hint {
  font-size: 12px;
  color: #6c8a7c;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
  .reg__intro {
    grid-template-columns: 1fr;
  }

  .reg__introImg {
    max-width: 220px;
  }

  .reg__grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reg__grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .reg__grid--2,
  .reg__grid--3,
  .reg__grid--4 {
    grid-template-columns: 1fr;
  }

  .reg__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =========================================================
   MEJORAS UI FORMULARIO REGISTRO (CP e Inputs)
   ========================================================= */

/* Estilo para los selects que se autocompletan (solo lectura visual) */
select.readonly-select {
    background-color: #e9ecef; /* Gris suave indicando que se autocompletó */
    pointer-events: none; /* Evita que el usuario lo despliegue y lo cambie */
    color: #495057;
    border-color: #ced4da;
    opacity: 0.9;
}

/* Campos de formulario estándar */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
    color: #333;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875em;
}

.text-muted {
    color: #6c757d !important;
}

/* Efecto focus en el campo de CP cuando es válido (Feedback visual) */
#codigo_postal {
    transition: border-color 0.3s ease;
}

/* Bloquear campos autocompletados (Estado y Municipio del CP) */
.reg__input--locked {
    background-color: #2a3b32 !important; /* Ajusta el color si quieres que resalte menos/mas */
    pointer-events: none;
    opacity: 0.7;
    cursor: not-allowed;
}