/* ═══════════════════════════════════════════════════
   ESTADO DE TRÁMITE PÚBLICO — estado-publico.css (prefijo ep-)
   Resultado de /admin/default/estado tras confirmar la identidad. El formulario usa .dv-* y el
   selector de fecha (public/css/gui/fecha-expiracion.css); la página, el diseño de login.css.
   ═══════════════════════════════════════════════════ */
.ep-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.ep-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: #f1f5f9;
    font-size: 12px; font-weight: 600; color: #475569;
}
.ep-pill b { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 14px; font-weight: 800; color: #082528; font-variant-numeric: tabular-nums; }
.ep-pill--tipo { background: #ecfdf5; color: #047857; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ep-pill--ok { background: #dcfce7; color: #15803d; font-size: 11px; font-weight: 700; }

/* Recorrido de 4 etapas (vertical, como en el celular de la consulta interna) */
.ep-steps { position: relative; margin: 18px 0 0; padding: 0; list-style: none; }
.ep-step { position: relative; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px; padding-bottom: 14px; }
.ep-step:last-child { padding-bottom: 0; }
.ep-step::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 2px; border-radius: 2px; background: #e2e8f0; }
.ep-step:last-child::before { display: none; }
.ep-step.is-hecho::before { background: #16a34a; }
.ep-dot {
    position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 2px solid #e2e8f0; color: #94a3b8; font-size: 12px;
}
.ep-step.is-hecho .ep-dot { background: #16a34a; border-color: #16a34a; color: #fff; }
.ep-step.is-actual .ep-dot { background: #0d3b40; border-color: #0d3b40; color: #fff; box-shadow: 0 0 0 5px rgba(13,59,64,.12); }
.ep-steps--atrasado .ep-step.is-actual .ep-dot { background: #dc2626; border-color: #dc2626; box-shadow: 0 0 0 5px rgba(220,38,38,.12); }
.ep-step-t { font-size: 14px; font-weight: 700; color: #334155; }
.ep-step.is-pendiente .ep-step-t { font-weight: 600; color: #94a3b8; }
.ep-step-t em {
    margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(13,59,64,.08); font-style: normal;
    font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #0d3b40; vertical-align: 2px;
}
.ep-step-f { font-size: 12px; font-weight: 600; color: #64748b; white-space: nowrap; font-variant-numeric: tabular-nums; }

.ep-plazo { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; background: #f8fafc; border: 1px solid #f1f5f9; font-size: 13px; color: #0d3b40; }
.ep-plazo.is-late { background: #fff7f7; border-color: #fecaca; color: #b91c1c; }

.ep-acts { display: grid; gap: 10px; margin-top: 20px; }
.ep-dl { display: flex; align-items: center; justify-content: center; gap: 8px; background: #16a34a; text-decoration: none; }
.ep-dl:hover { background: #15803d; color: #fff; text-decoration: none; }
.ep-otro { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; color: #0f5664; text-decoration: none; }
.ep-otro:hover { color: #082528; text-decoration: underline; text-underline-offset: 3px; }

.lx-auth-inner .fx-promo { margin-top: 22px; }

@media (max-width: 560px) {
    .ep-step { grid-template-columns: 32px 1fr; }
    .ep-step-f { grid-column: 2; margin-top: -8px; }
}

/* ── Consulta con aviso de identificación ── */
.ep-pill--tercero { background: #fef3c7; color: #92400e; font-size: 11px; font-weight: 700; cursor: help; }
.ep-nota { display: flex; gap: 8px; margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: #64748b; }
.ep-nota .fa { margin-top: 2px; color: #0f5664; }
#ep-num-wrap.is-err, .ep-datos .portal-auth-input-wrap.is-err { border-color: #f43f5e; box-shadow: 0 0 0 3px rgba(244,63,94,.12); }
#ep-form-msg { margin-top: 10px; }
.ep-datos { display: grid; gap: 8px; }
.ep-datos .portal-auth-input-wrap { height: 44px; }
.ep-datos .reg-exp-hint { margin-top: -2px; }
.et-modal .et-fin-ops.is-err .et-fin-op { border-color: #fecaca; }
.et-modal .dv-msg { margin: 0 0 10px; }

/* ── Asistente de 2 pasos del aviso público ── */
.ep-wz { flex-shrink: 0; display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 20px; list-style: none; border-bottom: 1px solid #f1f5f9; background: #fff; }
.ep-wz-paso { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #94a3b8; }
.ep-wz-n {
    position: relative; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 2px solid #e2e8f0; background: #fff; font-size: 12px; color: #94a3b8; transition: background .2s, border-color .2s, color .2s;
}
.ep-wz-n .fa { display: none; font-size: 11px; }
.ep-wz-paso.is-actual { color: #082528; }
.ep-wz-paso.is-actual .ep-wz-n { border-color: #0d3b40; background: #0d3b40; color: #fff; box-shadow: 0 0 0 4px rgba(13,59,64,.12); }
.ep-wz-paso.is-hecho { color: #15803d; }
.ep-wz-paso.is-hecho .ep-wz-n { border-color: #16a34a; background: #16a34a; color: #fff; }
.ep-wz-paso.is-hecho .ep-wz-n b { display: none; }
.ep-wz-paso.is-hecho .ep-wz-n .fa { display: block; animation: et-pop .3s cubic-bezier(.3,1.6,.5,1) both; }
.ep-wz-linea { flex: 1; height: 2px; border-radius: 2px; background: #e2e8f0; transition: background .3s; }
.ep-wz-linea.is-hecha { background: #16a34a; }

.ep-panel { animation: et-in .25s ease-out; }
.ep-panel-t { margin: 0 0 3px; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 15px; font-weight: 800; color: #082528; }
.ep-panel-d { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; color: #64748b; }
.ep-panel-d b { color: #082528; }
.ep-panel .ep-datos { margin-bottom: 10px; }
.ep-panel .et-modal-ok { margin-bottom: 4px; }
.ep-ok-ico { margin-left: auto; color: #16a34a; font-size: 16px; }
.ep-ley { margin-top: 14px; }

.ep-hola { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; }
.ep-hola-ico { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #16a34a; color: #fff; font-size: 13px; animation: et-pop .35s cubic-bezier(.3,1.6,.5,1) both; }
.ep-hola-t { margin: 0 0 2px; font-size: 14px; font-weight: 800; color: #14532d; }
.ep-hola-d { margin: 0; font-size: 12.5px; line-height: 1.5; color: #166534; }
#ep-motivo .et-fin { margin-bottom: 12px; }
@media (max-width: 480px) { .ep-wz { padding: 10px 18px; } }

/* ── Asistente v2: pensado para personas con poca experiencia digital ── */
.ep-label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14px; font-weight: 800; color: #082528; }
.ep-label-n { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e6f0f1; color: #0d3b40; font-size: 11.5px; font-weight: 800; }
.ep-ayuda { margin: 6px 2px 16px; font-size: 12px; line-height: 1.5; color: #64748b; }
.ep-campo { height: 50px; }
.ep-campo .portal-auth-input { font-size: 16px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }

/* Dónde está la fecha: recorte del reverso siempre visible */
.ep-reverso { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 8px; border-radius: 12px; background: #f8fafc; border: 1px solid #f1f5f9; }
.ep-reverso-img {
    flex-shrink: 0; width: 132px; height: 60px; border-radius: 8px; border: 1px solid #e2e8f0;
    background-color: #e9eedf; background-repeat: no-repeat; background-size: 560px auto; background-position: -8px -166px;
}
.ep-reverso-txt { font-size: 12px; line-height: 1.45; color: #475569; }
.ep-reverso-txt b { color: #082528; }

/* Año / Mes / Día: selectores nativos grandes (en el celular abren la rueda del teléfono) */
.ep-fecha { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 8px; margin-bottom: 12px; }
.ep-sel { position: relative; display: block; margin: 0; font-weight: 400; }
.ep-sel span { position: absolute; left: 12px; top: 6px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; pointer-events: none; }
.ep-sel select {
    width: 100%; height: 54px; padding: 16px 28px 0 11px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff;
    font-family: inherit; font-size: 15px; font-weight: 700; color: #082528; cursor: pointer; outline: none;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center;
    transition: border-color .15s, box-shadow .15s;
}
.ep-sel select:focus { border-color: #0d3b40; box-shadow: 0 0 0 3px rgba(13,59,64,.12); }
.ep-sel select:invalid, .ep-sel select option[value=""] { color: #94a3b8; }
.ep-fecha.is-err .ep-sel select { border-color: #f43f5e; box-shadow: 0 0 0 3px rgba(244,63,94,.12); }

/* Barra fija de botones del asistente */
.ep-pie { flex-shrink: 0; display: flex; gap: 10px; padding: 12px 20px; border-top: 1px solid #f1f5f9; background: #fff; }
.ep-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 16px; border-radius: 12px;
    font-family: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer; transition: background .15s, border-color .15s, opacity .15s, transform .15s;
}
.ep-btn--sec { flex: 0 0 auto; border: 1.5px solid #e2e8f0; background: #fff; color: #475569; }
.ep-btn--sec:hover { border-color: #94a3b8; color: #082528; }
.ep-btn--pri { flex: 1; border: 0; background: #0d3b40; color: #fff; box-shadow: 0 10px 20px -12px rgba(13,59,64,.8); }
.ep-btn--pri:hover:not([disabled]) { background: #082528; transform: translateY(-1px); }
.ep-btn--pri[disabled]:not(.is-loading) { opacity: .4; cursor: not-allowed; box-shadow: none; }
.ep-btn--pri.is-loading { cursor: progress; }
.ep-btn--pri.is-loading .et-btn-spin { display: inline-block; }
.ep-btn--pri.is-loading .fa { display: none; }
.ep-chk { margin-top: 4px; }
@media (max-width: 480px) {
    .ep-pie { padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); }
    .ep-fecha { grid-template-columns: 1fr 1.4fr .9fr; gap: 6px; }
    .ep-sel select { padding-left: 9px; font-size: 14px; }
    .ep-reverso-img { width: 110px; height: 52px; background-size: 470px auto; background-position: -7px -139px; }
}

/* ── Asistente v3: aviso legal arriba y pasos con ícono (sin números que se confundan) ── */
.et-modal-box > .ep-ley { flex-shrink: 0; margin: 12px 20px 0; }
.et-modal-box > .ep-ley .et-ley-mas { max-height: 160px; overflow-y: auto; }
.ep-wz { flex-shrink: 0; display: block; margin: 0; padding: 12px 20px 12px; border-bottom: 1px solid #f1f5f9; background: #fff; }
.ep-wz-cap { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.ep-wz-cap b { color: #0d3b40; }
.ep-wz-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ep-wz-paso {
    position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 10px 12px; border-radius: 10px;
    background: #f8fafc; font-size: 13px; font-weight: 700; color: #94a3b8; overflow: hidden;
}
.ep-wz-paso::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #e2e8f0; transition: background .3s; }
.ep-wz-ico { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #e2e8f0; color: #94a3b8; font-size: 12px; }
.ep-wz-ico .fa-check { display: none; }
.ep-wz-paso.is-actual { background: rgba(13,59,64,.06); color: #082528; }
.ep-wz-paso.is-actual::after { background: #0d3b40; }
.ep-wz-paso.is-actual .ep-wz-ico { background: #0d3b40; color: #fff; }
.ep-wz-paso.is-hecho { background: #f0fdf4; color: #15803d; }
.ep-wz-paso.is-hecho::after { background: #16a34a; }
.ep-wz-paso.is-hecho .ep-wz-ico { background: #16a34a; color: #fff; }
.ep-wz-paso.is-hecho .ep-wz-ico .fa:not(.fa-check) { display: none; }
.ep-wz-paso.is-hecho .ep-wz-ico .fa-check { display: block; animation: et-pop .3s cubic-bezier(.3,1.6,.5,1) both; }
.ep-label-n { font-size: 11px; }
@media (max-width: 480px) {
    .et-modal-box > .ep-ley { margin: 10px 18px 0; }
    .ep-wz { padding: 10px 18px; }
}

/* ── Asistente v4: encabezado de paso (reemplaza las pestañas de v3) ── */
.ep-wz {
    position: relative; flex-shrink: 0; display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 20px 16px;
    border-bottom: 1px solid #f1f5f9; background: #fff;
}
.ep-wz-ico {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: #e6f0f1; color: #0d3b40; font-size: 18px; transition: background .3s, color .3s;
}
.ep-wz-txt { flex: 1; min-width: 0; }
.ep-wz-de { margin: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; }
.ep-wz-de b { color: #0d3b40; }
.ep-wz-t { margin: 1px 0 1px; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 16px; font-weight: 800; line-height: 1.25; color: #082528; animation: et-in .3s ease-out; }
.ep-wz-sig { margin: 0; font-size: 12px; color: #64748b; }
.ep-wz[data-paso="2"] .ep-wz-sig { color: #15803d; font-weight: 700; }
.ep-wz-dots { display: flex; gap: 5px; }
.ep-wz-dots i { width: 8px; height: 8px; border-radius: 999px; background: #e2e8f0; transition: width .3s, background .3s; }
.ep-wz[data-paso="1"] .ep-wz-dots i:first-child,
.ep-wz[data-paso="2"] .ep-wz-dots i:last-child { width: 22px; background: #0d3b40; }
.ep-wz[data-paso="2"] .ep-wz-dots i:first-child { background: #16a34a; }
.ep-wz-barra { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: #f1f5f9; }
.ep-wz-barra span { display: block; width: 50%; height: 100%; border-radius: 0 3px 3px 0; background: #0d3b40; transition: width .5s cubic-bezier(.2,.8,.2,1); }
.ep-wz[data-paso="2"] .ep-wz-barra span { width: 100%; border-radius: 0; background: linear-gradient(90deg, #16a34a, #0d3b40); }
@media (max-width: 480px) { .ep-wz { padding: 12px 18px 14px; } .ep-wz-ico { width: 38px; height: 38px; font-size: 16px; } }

/* Consulta abierta: aviso bajo "Descargar documentos" */
.ep-nota--dl { justify-content: center; margin: 2px 0 0; text-align: center; }
button.ep-dl { width: 100%; border: 0; cursor: pointer; }
