:root {
  --bg-page: #fffefa;
  --bg-band: #f6f6f6;
  --text-main: #5c5b5b;
  --text-soft: #919191;
  --brand-green: #c1d13f;
  --brand-green-dark: #9da73d;
  --line: #d9d9d9;
  --progress-height: 11px;
  --progress-top: 0px;
}

body.ui-page {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: "Noto Sans", Arial, sans-serif;
  overflow-x: hidden;
}

body.ui-page[data-page-tone="soft-top"] {
  background:
    radial-gradient(circle at 50% -220px, #f7f9df 0%, #fffefa 58%),
    var(--bg-page);
}

body.ui-page[data-page-tone="soft-dual"] {
  background:
    radial-gradient(circle at 10% 14%, #f7f9df 0%, #fffefa 43%),
    radial-gradient(circle at 90% 88%, #f4f7d6 0%, #fffefa 36%),
    var(--bg-page);
}

p {
  font-size: 1rem;
  margin: 0;
}

.progress-strip {
  position: fixed;
  top: var(--progress-top);
  left: 0;
  width: 100%;
  height: var(--progress-height);
  background: #d9d9d9;
  z-index: 45;
}

.progress-strip::before {
  content: "";
  display: block;
  width: 0;
  height: var(--progress-height);
  background: var(--brand-green);
}

.registro-main {
  max-width: 1324px;
  margin: 0 auto;
  padding: calc(2.5rem + var(--progress-height)) 1rem 2.6rem;
}

.hero-block {
  text-align: center;
  margin-bottom: 1.2rem;
}

.hero-logo {
  width: min(775px, 92vw);
  height: auto;
}

.gen-title {
  margin: 0.25rem 0 0;
  color: var(--brand-green);
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  font-weight: 700;
}

.registro-section {
  max-width: 1324px;
  margin: 4.2rem auto 0;
  text-align: center;
}

.section-kicker,
.section-title {
  font-size: 1.15rem;
  color: var(--brand-green);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* Tarjeta de credenciales del aspirante */
.registro-section .cred-card {
  margin: 1rem auto 0;
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  background: #fff;
  display: grid;
  gap: 0.5rem;
  text-align: left;
}

.registro-section .cred-item {
  display: grid;
  grid-template-columns: minmax(100px, 140px) 1fr;
  gap: 0.4rem;
  align-items: baseline;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed #e7e7e7;
}

.registro-section .cred-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.registro-section .cred-item dt {
  color: #6e6e6e;
  font-weight: 600;
  font-size: 0.92rem;
}

.registro-section .cred-item dd {
  margin: 0;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.95rem;
}

.row-2,
.row-3 {
  display: grid;
  gap: 0.5rem;
  margin: 0.5rem auto 0;
  max-width: 1324px;
}

.row-2 {
  grid-template-columns: 1fr 1fr;
}

.row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.field {
  width: 100%;
  height: 53px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  color: var(--text-main);
  font-size: 1rem;
  background: #fff;
}

.field[readonly] {
  background: #f5f5f0;
  color: #888;
  cursor: not-allowed;
}

/* ═══ Estados de validación ═══ */
.field.is-invalid,
.select-like.is-invalid,
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.field.is-valid,
.form-control.is-valid,
.form-select.is-valid {
  border-color: var(--brand-green);
}

.invalid-feedback {
  display: none;
  font-size: 0.85rem;
  color: #dc3545;
  margin-top: 0.25rem;
  font-weight: 500;
}

.field.is-invalid~.invalid-feedback,
.select-like.is-invalid~.invalid-feedback,
.radio-wrap.is-invalid~.invalid-feedback,
.form-control.is-invalid~.invalid-feedback,
.form-select.is-invalid~.invalid-feedback {
  display: block;
}

/* Banner de errores global */
.error-banner {
  background: linear-gradient(135deg, #fdf0f0 0%, #fce4e4 100%);
  border: 1px solid #f5c6cb;
  border-radius: 12px;
  padding: 0.85rem 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #842029;
  font-weight: 600;
  font-size: 0.95rem;
}

.error-banner svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: #dc3545;
}

.field::placeholder {
  color: var(--text-main);
  font-weight: 700;
}

.select-like {
  font-weight: 700;
}

.field-label {
  display: block;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.doc-help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 0.8rem 0 1.2rem;
}

.doc-help-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--brand-green);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.doc-help-links a:hover {
  text-decoration: underline;
}

.radio-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 180ms ease;
  user-select: none;
}

.radio-option:hover {
  border-color: #c5d06a;
  background: #fcfdf5;
}

/* Ocultar radio nativo */
.radio-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  margin: 0;
  flex-shrink: 0;
  position: relative;
  transition: all 180ms ease;
}

.radio-option input[type="radio"]:checked {
  border-color: var(--brand-green);
  background: var(--brand-green);
}

.radio-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.radio-option:has(input:checked) {
  border-color: var(--brand-green);
  background: linear-gradient(135deg, #f7fae7 0%, #eef3d6 100%);
}

/* Checkbox de términos */
.check-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  text-align: left;
  line-height: 1.5;
  font-size: 0.93rem;
}

.check-inline input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 2px solid #ccc;
  border-radius: 6px;
  margin: 2px 0 0 0;
  cursor: pointer;
  position: relative;
  transition: all 180ms ease;
  flex-shrink: 0;
}

.check-inline input[type="checkbox"]:checked {
  border-color: var(--brand-green);
  background: var(--brand-green);
}

.check-inline input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.btn-primary-wide {
  width: 100%;
  min-height: 53px;
  border: 1px solid var(--brand-green);
  border-radius: 12px;
  background: var(--brand-green);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.check-inline {
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: flex-start;
  color: var(--text-main);
  font-size: 1rem;
}

.check-inline input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin: 0;
}

.check-small {
  margin-top: 0;
  align-self: center;
  justify-self: start;
  font-size: 0.92rem;
}

.radio-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
  font-size: 1rem;
}

.radio-wrap label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.terms {
  margin-top: 4.5rem;
  margin-bottom: 4.6rem;
}

.terms-check {
  align-items: flex-start;
  text-align: left;
  line-height: 1.25;
}

.registro-actions {
  max-width: 428px;
  margin: 1.25rem auto 0;
}

.btn-submit {
  border-radius: 14px;
}

.legal-note {
  margin: 4.5rem auto 1.8rem;
  max-width: 1100px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.access-btn {
  position: fixed;
  right: 0;
  top: 270px;
  width: 45px;
  height: 45px;
  border-radius: 10px 0 0 10px;
  background: #fff;
  box-shadow: 0 1px 2px #0000004d, 0 2px 6px #00000026;
  display: grid;
  place-items: center;
  z-index: 30;
}

.access-btn img {
  width: 28px;
  height: 28px;
}

@media (max-width: 1100px) {

  .row-2,
  .row-3 {
    grid-template-columns: 1fr;
  }

  .radio-wrap {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .registro-main {
    padding: calc(1.6rem + var(--progress-height)) 0.9rem 2rem;
  }

  .gen-title {
    font-size: 1.75rem;
  }

  .terms-check {
    font-size: 0.92rem;
  }

  .access-btn {
    display: none;
  }
}

/* ═══ Integración formularioDireccion (v2025) dentro de registro v2 ═══ */

.registro-section .form-control {
  height: 53px;
  border-radius: 12px;
  padding: 0 14px;
  color: var(--text-main);
  font-size: 1rem;
  background: #fff;
}

.registro-section .form-select {
  height: 53px;
  border-radius: 12px;
  padding: 0 14px;
  padding-right: 2.5rem;
  color: var(--text-main);
  font-size: 1rem;
  background-color: #fff;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

.registro-section .form-control:focus,
.registro-section .form-select:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(122, 138, 32, 0.12);
}

.registro-section .form-control[readonly] {
  background: #f5f5f0;
  color: #888;
}

.registro-section .form-label,
.registro-section label:not(.form-check-label):not(.check-inline):not(.radio-option) {
  display: block;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

/* Radio de residencia (México / Extranjero) — tarjetas seleccionables */
/* Ocultar label + radios originales del include dentro de #domicilio-actual */
#domicilio-actual>.row>.col-md-6>label,
#domicilio-actual>.row>.col-md-6>br,
#domicilio-actual>.row>.col-md-6>.form-check {
  display: none;
}

.registro-section .residencia-cards {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0 0.5rem;
}

.registro-section .residencia-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.8rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  transition: all 200ms ease;
  user-select: none;
}

/* Ocultar el radio nativo dentro de la tarjeta */
.registro-section .residencia-card input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-radius: 50%;
  margin: 0;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: all 200ms ease;
}

.registro-section .residencia-card:hover {
  border-color: #c5d06a;
  box-shadow: 0 4px 14px rgba(122, 138, 32, 0.12);
}

/* Estado activo vía :has(input:checked) — sin necesidad de JS */
.registro-section .residencia-card:has(input:checked) {
  border-color: var(--brand-green);
  background: linear-gradient(135deg, #f7fae7 0%, #eef3d6 100%);
  box-shadow: 0 4px 16px rgba(122, 138, 32, 0.2);
  transform: scale(1.02);
}

.registro-section .residencia-card:has(input:checked) input[type="radio"] {
  border-color: var(--brand-green);
  background: var(--brand-green);
}

.registro-section .residencia-card:has(input:checked) input[type="radio"]::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

/* Layout de código postal: input + botón lado a lado */
.cp-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  width: 100%;
  max-width: 680px;
  margin: 0.5rem auto;
}

/* Contenedores de CP: layout vertical (alert arriba, input+btn abajo) */
#mexicoFields,
#foreignPostalCodeContainer {
  display: none;
  flex-direction: column;
}

#mexicoFields[style*="block"],
#foreignPostalCodeContainer[style*="block"] {
  display: flex !important;
  flex-direction: column;
}

.cp-field {
  flex: 1;
  text-align: left;
}

.cp-field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.cp-action {
  flex-shrink: 0;
}

/* Botón validar del formulario dirección */
.registro-section .btn-outline-secondary {
  height: 53px;
  border-radius: 12px;
  border: 1px solid var(--brand-green);
  background: var(--brand-green);
  color: #fff;
  font-weight: 700;
  padding: 0 1.5rem;
  font-size: 1rem;
  transition: background 180ms ease;
}

.registro-section .btn-outline-secondary:hover {
  background: #6b7a18;
}

/* Alert info dentro del formulario */
.registro-section .alert-info {
  border-radius: 12px;
  border: 1px solid #d1e7dd;
  background: #f0faf4;
  color: #555;
  font-size: 0.95rem;
  text-align: left;
  padding: 0.75rem 1rem;
}

/* Inputs de archivos */
.registro-section input[type="file"].field {
  height: auto;
  padding: 0.6rem 14px;
}

/* Invalid-feedback visible */
.registro-section .invalid-feedback {
  text-align: left;
  font-size: 0.85rem;
}

.main-container {
  max-width: 1324px;
  margin: 0 auto;
  padding: calc(3.2rem + var(--progress-height)) 1rem 3.2rem;
}

.hero {
  text-align: center;
  margin-bottom: 1.7rem;
}

.hero-logo {
  width: min(613px, 86vw);
  height: auto;
}

.intro {
  max-width: 995px;
  margin: 1.05rem auto 1rem;
  text-align: center;
  line-height: 1.38;
}

.ghost-btns {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b8c45a;
  border-radius: 6px;
  background: #fff;
  color: #8f9936;
  padding: 0.45rem 1.25rem;
  font-size: 0.8rem;
  line-height: 1;
  min-width: 180px;
  min-height: 48px;
  flex: 1 1 auto;
  max-width: 260px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.ghost-btn:hover,
.ghost-btn:focus {
  border-color: #9aab2f;
  background: #f6f8e8;
  color: #7a8a1e;
}

.generation-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 1.2rem;
  padding: 1.7rem 1rem 1rem;
  background: var(--bg-band);
  text-align: center;
}

.generation-band h2 {
  color: var(--brand-green-dark);
  font-size: clamp(2rem, 3.4vw, 3.05rem);
  font-weight: 700;
  margin-bottom: 0.2rem;
  line-height: 1.05;
}

.generation-band p {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
  color: #6b6b6b;
  line-height: 1.1;
}

.band-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.band-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--brand-green-dark);
  text-decoration: underline;
  font-size: 0.96rem;
}

.tiny-links {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin: 0.85rem 0 1.7rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.tiny-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-soft);
  text-decoration: none;
}

.register-card {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.register-card h3 {
  color: var(--brand-green);
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
  font-weight: 700;
}

.register-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.register-card .title-note {
  color: #5c5b5b;
}

.form-control,
.form-check-input {
  border-color: var(--line);
}

.form-control {
  border-radius: 10px;
  height: 53px;
  font-size: 1rem;
}

.form-control::placeholder {
  font-weight: 700;
  color: #5c5b5b;
}

.text-uppercase::placeholder {
  text-transform: none;
}

.btn-brand {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #fff;
  border-radius: 10px;
  width: min(400px, 100%);
  height: 40px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.btn-brand:hover {
  background: #afc232;
  border-color: #afc232;
  color: #fff;
}

.checkbox-row {
  text-align: left;
  margin: 0.5rem auto;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.2;
}

.form-check-input {
  border-width: 2px;
  border-radius: 3px;
  width: 1.22em;
  height: 1.22em;
  margin-top: 0.1em;
}

.checkbox-row .form-check-label {
  font-size: 1rem;
}

.captcha-box {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 0.8rem;
  margin: 0.7rem auto 0.15rem;
  max-width: 760px;
}

.captcha-art {
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
}

.captcha-art img {
  width: 100%;
  max-width: 200px;
  object-fit: cover;
}

.help-section {
  max-width: 1144px;
  margin: 2.9rem auto 1.2rem;
  padding: 1.35rem 0 1.25rem;
  border-top: 1px solid #cbd28f;
  border-bottom: 1px solid #cbd28f;
  text-align: center;
}

.help-section h5 {
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  margin-bottom: 2rem;
  color: #5b5b5b;
  font-weight: 600;
}

.help-actions {
  display: flex;
  justify-content: center;
  gap: 0.72rem;
  flex-wrap: wrap;
}

.help-actions .btn {
  min-width: 300px;
}

.assist-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #b8c45a;
  color: #8f9936;
  background: #fff;
  height: 47px;
  font-size: 0.82rem;
  overflow: hidden;
  padding: 0 12px 0 50px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.assist-btn:hover,
.assist-btn:focus {
  border-color: #9aab2f;
  background: #f6f8e8;
  color: #7a8a1e;
}

.assist-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 47px;
  height: 47px;
  background: #b1c23f;
}

.assist-btn .assist-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
}

.legal {
  font-weight: 700;
  text-align: center;
  margin: 2.5rem auto 2rem;
  max-width: 1100px;
  font-size: 1rem;
}

.mini-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.tut-icon {
  width: 21px;
  height: 21px;
  object-fit: contain;
}



@media (max-width: 800px) {
  .captcha-box {
    grid-template-columns: 1fr;
  }

  .tiny-links {
    gap: 0.85rem;
  }

  .help-actions .btn {
    min-width: 240px;
  }

  .form-control::placeholder {
    font-size: 0.86rem;
  }

  .generation-band p {
    font-size: 1.35rem;
  }


}

/* ── Tarjeta de resultados CURP ── */

@keyframes curpCardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes curpCheckPop {
  0% {
    transform: scale(0);
  }

  60% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

.curp-result-card {
  max-width: 920px;
  border: 1px solid #d5ddaa;
  border-radius: 18px;
  background: linear-gradient(168deg, #fefef8 0%, #f8fbe5 100%);
  box-shadow: 0 8px 28px #7d8b2418, 0 2px 6px #0000000a;
  padding: 1.5rem 1.6rem 1.4rem;
  animation: curpCardIn 420ms ease-out both;
}

.curp-result-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #d5dda6;
}

.curp-check-circle {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b5c835 0%, #8fa72a 100%);
  box-shadow: 0 4px 12px #9da73d55;
  display: grid;
  place-items: center;
  animation: curpCheckPop 400ms 180ms ease-out both;
}

.curp-check-circle svg {
  width: 22px;
  height: 22px;
}

.curp-result-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: #5a6b14;
  margin: 0 0 0.15rem;
}

.curp-result-subtitle {
  font-size: 0.82rem;
  color: #8a9440;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.curp-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.curp-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.curp-field-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #8a9440;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.curp-field-value {
  background: #fff;
  border: 1px solid #e4eabd;
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  font-size: 0.96rem;
  font-weight: 600;
  color: #3d4520;
  min-height: 42px;
  display: flex;
  align-items: center;
  transition: border-color 200ms ease;
}

.curp-field-value:hover {
  border-color: #c1d13f;
}

/* ── Tarjeta de error CURP ── */

.curp-error-card {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.15rem;
  border-radius: 12px;
  border: 1px solid #f0c8a0;
  background: linear-gradient(168deg, #fffbf5 0%, #fff3e4 100%);
  box-shadow: 0 4px 14px #d9942218;
  color: #8a5a1f;
  font-size: 0.95rem;
  font-weight: 500;
  animation: curpCardIn 320ms ease-out both;
}

.curp-error-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: #d49236;
}

@media (max-width: 700px) {
  .curp-result-card {
    padding: 1.1rem 1rem 1rem;
  }

  .curp-result-grid {
    grid-template-columns: 1fr;
  }

  .curp-result-header {
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }

  .curp-check-circle {
    width: 36px;
    height: 36px;
  }

  .curp-check-circle svg {
    width: 18px;
    height: 18px;
  }

  .curp-result-title {
    font-size: 1.5rem;
  }
}

/* ── Spinner de carga ── */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spin {
  animation: spin 0.8s linear infinite;
}

/* ── Errores inline por campo ── */

.field-error {
  margin-top: 0.35rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: #b94040;
  background: #fdf0f0;
  border-left: 3px solid #e06060;
  border-radius: 0 6px 6px 0;
  animation: curpCardIn 250ms ease-out both;
}

/* ── Modal de confirmación CURP ── */

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  animation: modalFadeIn 280ms ease-out both;
}

.modal-content {
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 2.4rem);
  overflow-y: auto;
  animation: modalSlideUp 380ms 80ms ease-out both;
}

.modal-card {
  border: 1px solid #dfe0d4;
  border-radius: 20px;
  background: linear-gradient(170deg, #ffffff 0%, #fafaf5 100%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 1.6rem 1.5rem 1.4rem;
}

.modal-header-custom {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed #d5dda6;
}

.modal-instructions {
  background: #f4f7e3;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 1rem;
  color: #5a6520;
  line-height: 1.45;
  margin-bottom: 1.1rem;
  border: 1px solid #e4eabd;
}

.curp-field--full {
  grid-column: 1 / -1;
}

.curp-field-value--email {
  background: #fefef5;
  border-color: #d5d09a;
  font-style: italic;
  color: #555;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px dashed #d5dda6;
}

.btn-modal-confirm {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px #9da73d4d;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn-modal-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px #9da73d57;
}

.btn-modal-cancel {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #d4d4d4;
  background: #fff;
  color: #777;
  font-size: 0.88rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.btn-modal-cancel:hover {
  border-color: #aaa;
  background: #fafafa;
  color: #555;
}

.btn-modal-cancel svg {
  opacity: 0.6;
}

@media (max-width: 500px) {
  .modal-content {
    max-width: 100%;
  }

  .modal-card {
    padding: 1.2rem 1rem 1.1rem;
    border-radius: 16px;
  }

  .modal-instructions {
    font-size: 0.84rem;
  }
}

/* Estilos de sección compartidos */

.cerrado-main {
  max-width: 1324px;
  margin: 0 auto;
  padding: calc(2.8rem + var(--progress-height)) 1rem 2.4rem;
  text-align: center;
}

.cerrado-title {
  max-width: 652px;
  margin: 1.2rem auto 0;
}

.cerrado-title h1 {
  margin: 0;
  color: #5c5b5b;
  font-size: clamp(2.15rem, 4.4vw, 3.9rem);
  font-weight: 300;
  line-height: 1;
}

.cerrado-line {
  width: 100%;
  height: 1px;
  background: #9d9d9d;
  margin: 0.8rem auto;
}

.cerrado-title p {
  color: #5c5b5b;
  font-size: clamp(2rem, 4.2vw, 3.9rem);
  font-weight: 300;
  line-height: 1;
}

.cerrado-card {
  max-width: 1098px;
  margin: 3.2rem auto 0;
}

.cerrado-card h2 {
  color: var(--brand-green);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cerrado-card p {
  color: #5c5b5b;
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.cerrado-card a {
  color: #5c5b5b;
  text-decoration: underline;
}

.cerrado-actions {
  max-width: 428px;
  margin: 3rem auto 0;
}

.cerrado-main .btn-primary-wide {
  min-height: 53px;
  border-radius: 15px;
  font-size: 1.25rem;
}

.cerrado-main .legal-note {
  margin-top: 4rem;
}

.completado-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: calc(2.6rem + var(--progress-height)) 1rem 2.2rem;
  text-align: center;
}

.completado-main .hero-block--tight {
  margin-bottom: 0.9rem;
}

.completado-main .hero-logo {
  width: min(620px, 88vw);
}

.completado-main .hero-caption {
  margin: 0.25rem 0 0;
  color: #8a8a8a;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.completado-main .gen-title {
  margin-top: 0.1rem;
  font-size: clamp(2.2rem, 3.7vw, 3.2rem);
}

.completado-main .completado-section {
  max-width: 100%;
  margin: 0;
}

.completado-main .completado-section p {
  color: #737373;
  line-height: 1.45;
  margin-bottom: 0;
}

.completado-main .completado-card {
  margin: 0.8rem auto 0;
  border: 1px solid #e8e5d9;
  border-radius: 18px;
  padding: 1.35rem 1.2rem;
  background: linear-gradient(180deg, #fffef8 0%, #fffcf1 100%);
  box-shadow: 0 7px 20px #0000000a;
}

.completado-main .completado-card--success {
  background: linear-gradient(180deg, #fefef7 0%, #f9fce7 100%);
  border-color: #d8deaf;
}

.completado-main .completado-message-card {
  max-width: 920px;
  margin: 1rem auto 0;
  padding: 1.6rem 1.4rem;
}

.completado-main .section-kicker {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.completado-main .cred-card {
  margin: 1.2rem auto 1rem;
  width: min(560px, 100%);
  border: 1px solid #dbdbdb;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  background: #fff;
  display: grid;
  gap: 0.55rem;
  text-align: left;
}

.completado-main .cred-item {
  display: grid;
  grid-template-columns: minmax(120px, 170px) 1fr;
  gap: 0.45rem;
  align-items: baseline;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed #e7e7e7;
}

.completado-main .cred-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.completado-main .cred-item dt {
  color: #6e6e6e;
  font-weight: 600;
}

.completado-main .cred-item dd {
  margin: 0;
  color: #4f4f4f;
  font-weight: 700;
}

.completado-main .completado-actions {
  max-width: 430px;
  margin: 0.7rem auto 0;
}

.completado-main .btn-primary-wide {
  width: min(430px, 100%);
  min-height: 52px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 12px #9da73d4d;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.completado-main .btn-primary-wide:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px #9da73d57;
}

.completado-main .card-note {
  margin-top: 0.7rem;
}

.completado-main .btn-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.completado-main .btn-primary-wide .btn-icon-wrap {
  background: #ffffff36;
}

.completado-main .btn-outline-small .btn-icon-wrap {
  background: #edf0dc;
  color: #82901f;
}

.completado-main .btn-icon-svg {
  width: 17px;
  height: 17px;
}

.completado-main .completado-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.completado-main .mini-card {
  border: 1px solid #e8e5d9;
  border-radius: 16px;
  padding: 1.15rem;
  background: #fffef7;
  text-align: center;
}

.completado-main .mini-card-label {
  color: #6a6a6a;
  font-size: 0.96rem;
  margin-bottom: 0.4rem;
}

.completado-main .mini-card-note {
  color: #838383;
  font-size: 0.93rem;
}

.completado-main .date-highlight {
  margin: 0.1rem 0 0.2rem;
  color: var(--brand-green);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.1;
}

.completado-main .btn-outline-small {
  margin-top: 0.75rem;
  min-width: 286px;
  min-height: 47px;
  border: 1px solid #d7d7d7;
  border-radius: 11px;
  background: #f9f9f7;
  color: #5e5e5e;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.completado-main .success-line {
  color: #a5ba35;
  font-size: clamp(1.28rem, 2.1vw, 1.78rem);
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.completado-main .mt-gap {
  margin-top: 1.95rem;
}

.completado-main .mt-gap-sm {
  margin-top: 1.5rem;
}

.completado-main .mt-gap-lg {
  margin-top: 2.2rem;
}

.completado-main .legal-note {
  margin-top: 2.15rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .completado-main {
    padding-top: calc(1.8rem + var(--progress-height));
  }

  .completado-main .completado-message-card {
    padding: 1.1rem 0.9rem;
  }

  .completado-main .completado-card,
  .completado-main .mini-card {
    padding: 1rem 0.85rem;
  }

  .completado-main .completado-grid {
    grid-template-columns: 1fr;
  }

  .completado-main .cred-item {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .completado-main .date-highlight {
    font-size: 1.7rem;
  }

  .completado-main .btn-outline-small {
    min-width: 250px;
    width: 100%;
  }
}

.finalizado-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(2.4rem + var(--progress-height)) 1rem 2.2rem;
  text-align: center;
}

.finalizado-main .finalizado-hero {
  margin-bottom: 1rem;
}

.finalizado-main .hero-logo {
  width: min(620px, 88vw);
}

.finalizado-main .finalizado-card {
  max-width: 940px;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid #dfe4ba;
  background: linear-gradient(180deg, #fffef8 0%, #f9fce8 100%);
  box-shadow: 0 12px 30px #7d8b2421;
  padding: 1.8rem 1.55rem;
}

.finalizado-main .finalizado-pill {
  margin: 0 auto 0.85rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #eef3d6 0%, #dde6b4 100%);
  color: #5c6b12;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  box-shadow: 0 2px 8px rgba(125, 139, 36, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.finalizado-main .finalizado-title {
  margin: 0 0 0.85rem;
  color: #9cad33;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.08;
  font-weight: 800;
}

.finalizado-main .finalizado-card p {
  margin: 0;
  color: #666;
  font-size: 1.12rem;
  line-height: 1.6;
}

.finalizado-main .finalizado-card p+p {
  margin-top: 0.9rem;
}

.finalizado-main .finalizado-actions {
  margin: 1.5rem auto 0;
  max-width: 430px;
}

.finalizado-main .finalizado-variants {
  margin: 1.6rem auto 0;
  max-width: 1040px;
}

.finalizado-main .finalizado-variants h2 {
  margin: 0 0 0.85rem;
  color: #6b6b6b;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
}

.finalizado-main .finalizado-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  max-width: 940px;
  margin: 0 auto;
}

.finalizado-main .finalizado-grid .finalizado-card {
  max-width: 100%;
}

.finalizado-main .finalizado-grid .finalizado-card p {
  font-size: 1.12rem;
  line-height: 1.6;
}

.finalizado-main .finalizado-card--aviso {
  border-color: #7ca8e8;
  background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
}

.finalizado-main .finalizado-card--aviso .finalizado-pill {
  background: linear-gradient(135deg, #dde9ff 0%, #c4d8f9 100%);
  color: #2f5f9d;
  box-shadow: 0 2px 8px rgba(62, 120, 192, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.finalizado-main .finalizado-card--aviso .finalizado-title {
  color: #2a588f;
}

.finalizado-main .finalizado-card--aviso .btn-primary-wide {
  background: linear-gradient(135deg, #4a86cc 0%, #3469ac 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(62, 120, 192, 0.35);
}

.finalizado-main .finalizado-card--aviso .btn-primary-wide:hover {
  background: linear-gradient(135deg, #3d78be 0%, #2d5a96 100%);
  box-shadow: 0 8px 24px rgba(62, 120, 192, 0.45);
}

.finalizado-main .finalizado-card--error {
  border-color: #e4a1a1;
  background: linear-gradient(180deg, #fff9f9 0%, #ffecec 100%);
}

.finalizado-main .finalizado-card--error .finalizado-pill {
  background: linear-gradient(135deg, #ffe0e0 0%, #f5c3c3 100%);
  color: #a53434;
  box-shadow: 0 2px 8px rgba(201, 73, 73, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.finalizado-main .finalizado-card--error .finalizado-title {
  color: #9c2f2f;
}

.finalizado-main .finalizado-card--error .btn-primary-wide {
  background: linear-gradient(135deg, #d45252 0%, #b53f3f 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(201, 73, 73, 0.35);
}

.finalizado-main .finalizado-card--error .btn-primary-wide:hover {
  background: linear-gradient(135deg, #c44545 0%, #a33636 100%);
  box-shadow: 0 8px 24px rgba(201, 73, 73, 0.45);
}

.finalizado-main .finalizado-card--alerta {
  border-color: #e8cf8f;
  background: linear-gradient(180deg, #fffdf7 0%, #fff4dc 100%);
}

.finalizado-main .finalizado-card--alerta .finalizado-pill {
  background: linear-gradient(135deg, #ffefc1 0%, #f0dda8 100%);
  color: #8a681f;
  box-shadow: 0 2px 8px rgba(197, 148, 45, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.finalizado-main .finalizado-card--alerta .finalizado-title {
  color: #7d5e1a;
}

.finalizado-main .finalizado-card--alerta .btn-primary-wide {
  background: linear-gradient(135deg, #d4a232 0%, #b28425 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(197, 148, 45, 0.35);
}

.finalizado-main .finalizado-card--alerta .btn-primary-wide:hover {
  background: linear-gradient(135deg, #c5942d 0%, #9e7520 100%);
  box-shadow: 0 8px 24px rgba(197, 148, 45, 0.45);
}

.finalizado-main .finalizado-card--exito {
  border-color: #bfd69e;
  background: linear-gradient(180deg, #fafff3 0%, #eff9df 100%);
}

.finalizado-main .finalizado-card--exito .finalizado-pill {
  background: linear-gradient(135deg, #e2f3c7 0%, #cfe6a8 100%);
  color: #4f7b1c;
  box-shadow: 0 2px 8px rgba(134, 163, 47, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.finalizado-main .finalizado-card--exito .finalizado-title {
  color: #4a7119;
}

.finalizado-main .finalizado-card--exito .btn-primary-wide {
  background: linear-gradient(135deg, #92b035 0%, #748e27 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(134, 163, 47, 0.35);
}

.finalizado-main .finalizado-card--exito .btn-primary-wide:hover {
  background: linear-gradient(135deg, #86a32f 0%, #677e22 100%);
  box-shadow: 0 8px 24px rgba(134, 163, 47, 0.45);
}

.finalizado-main .btn-primary-wide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(430px, 100%);
  min-height: 54px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #a8b94a 0%, #8b9b2e 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(157, 167, 61, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  cursor: pointer;
}

.finalizado-main .btn-primary-wide:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(157, 167, 61, 0.45);
  color: #fff;
}

.finalizado-main .legal-note {
  margin-top: 2rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .finalizado-main {
    padding-top: calc(1.7rem + var(--progress-height));
  }

  .finalizado-main .finalizado-card {
    padding: 1.2rem 0.9rem;
  }

  .finalizado-main .finalizado-card p {
    font-size: 1.03rem;
  }
}

/* Progress dinámico reutilizable: usa data-progress en <body> */
.ui-page .progress-strip {
  overflow: visible;
}

.ui-page .progress-strip::before {
  width: clamp(0%, calc(var(--progress-value, 0) * 1%), 100%) !important;
  transition: width 220ms ease;
}

.ui-page .progress-percent {
  position: absolute;
  top: -28px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 22px;
  padding: 0 0.45rem;
  border-radius: 999px;
  border: 1px solid #cbd38d;
  background: #f7fae4;
  color: #78811f;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 3px 8px #00000024;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 900px) {
  .ui-page .progress-percent {
    top: -24px;
    height: 20px;
    min-width: 40px;
    font-size: 0.69rem;
  }
}

/* ═══ Tarjeta de aviso (convocatoria estatus) ═══ */
.square_aviso_gray {
  color: #888;
  border: .26rem solid #ccc;
  border-radius: 10px;
}

.square_aviso_gray p {
  font-size: 19px;
}

.icon_aviso_gray {
  color: #888;
  background-color: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 80px;
  font-size: 40px;
  padding: 10px;
  margin: auto;
  margin-top: -40px;
}

.btn-accion-gray {
  background-color: #999;
  border-color: #999;
  border-width: 1px;
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
}

.btn-accion-gray:hover {
  background-color: #777;
  color: #fff;
}

.btn-accion-gray span {
  vertical-align: -webkit-baseline-middle;
}

.iconor-gray {
  position: relative;
  float: right;
  vertical-align: middle;
  background-color: var(--bg-page);
  height: 38px;
  width: 38px;
  color: #999;
  padding: 8px;
  border-radius: 0 6px 6px 0;
}

.notice-link {
  color: #666;
  font-weight: 600;
  text-decoration: underline;
}

.notice-link:hover {
  color: #444;
}