/* =====================================================================
   SiceiWeb 2.0 - Vistas de acceso (login y registro)
   Estilos propios con prefijo .sw- para no afectar el resto del sistema.
   Se cargan después de Materialize, por eso algunas reglas usan !important
   para anular los estilos globales de input/select/label.
   ===================================================================== */

:root {
    --sw-azul-900: #0D47A1;
    --sw-azul-700: #1565C0;
    --sw-azul-600: #1976D2;
    --sw-azul-100: #EAF2FF;
    --sw-verde: #2E7D32;
    --sw-verde-claro: #43A047;
    --sw-rojo: #D32F2F;
    --sw-texto: #172033;
    --sw-texto-2: #5A6B7E;
    --sw-texto-3: #8A99AA;
    --sw-fondo: #F4F7FB;
    --sw-borde: #D8E2EE;
    --sw-campo: #F8FAFD;
    --sw-sombra: 0 18px 50px rgba(18, 52, 90, .16);
    --sw-radio: 12px;
}

html, body.sw-acceso {
    height: auto;
    min-height: 100%;
}

body.sw-acceso {
    margin: 0;
    background: var(--sw-fondo);
    color: var(--sw-texto);
    font-family: "Roboto", "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

.sw-acceso *, .sw-acceso *::before, .sw-acceso *::after { box-sizing: border-box; }

/* ---------- Marca ---------- */
.sw-marca { display: flex; align-items: center; gap: 14px; }
.sw-marca__logo {
    width: 56px; height: 56px; flex: 0 0 56px;
    background: #fff; border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.sw-marca__logo img { width: 44px; height: 44px; display: block; }
.sw-marca__nombre { font-size: 22px; font-weight: 700; letter-spacing: 1px; line-height: 1.1; }
.sw-marca__lema { font-size: 12px; letter-spacing: .4px; text-transform: uppercase; line-height: 1.35; margin-top: 3px; }

/* ---------- Campos ---------- */
.sw-campo { margin-bottom: 18px; position: relative; }
.sw-campo > label {
    display: block !important;
    position: static !important;
    transform: none !important;
    font-size: 13px !important;
    font-weight: 700;
    color: #34465A !important;
    margin: 0 0 7px 0;
    cursor: default;
}
.sw-campo > label .sw-opcional { font-weight: 400; color: var(--sw-texto-3); }

.sw-control { position: relative; display: flex; align-items: center; }
.sw-control__icono {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; color: #7890AA; pointer-events: none;
}
.sw-control__icono svg { width: 20px; height: 20px; display: block; }

.sw-acceso .sw-control input[type=text],
.sw-acceso .sw-control input[type=password],
.sw-acceso .sw-control select {
    width: 100% !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 14px 0 46px !important;
    background: var(--sw-campo) !important;
    border: 1.5px solid var(--sw-borde) !important;
    border-radius: var(--sw-radio) !important;
    box-shadow: none !important;
    color: var(--sw-texto) !important;
    font-size: 15px !important;
    font-family: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.sw-acceso .sw-control select {
    display: block !important;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    padding-right: 40px !important;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237890AA' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
}
.sw-acceso .sw-control--sin-icono input[type=text],
.sw-acceso .sw-control--sin-icono input[type=password],
.sw-acceso .sw-control--sin-icono select { padding-left: 14px !important; }

.sw-acceso .sw-control input::placeholder { color: #9AA8B8; opacity: 1; }

.sw-acceso .sw-control input:focus,
.sw-acceso .sw-control select:focus {
    border-color: var(--sw-azul-600) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(25, 118, 210, .12) !important;
}
.sw-acceso .sw-control input[readonly] {
    background-color: #EEF2F7 !important;
    color: #4A5B6E !important;
    cursor: not-allowed;
}
.sw-acceso .sw-campo.is-error .sw-control input,
.sw-acceso .sw-campo.is-error .sw-control select {
    border-color: #E53935 !important;
    box-shadow: 0 0 0 4px rgba(229, 57, 53, .10) !important;
}
.sw-campo__error {
    display: none; color: var(--sw-rojo); font-size: 12.5px; margin-top: 6px;
}
.sw-campo.is-error .sw-campo__error { display: block; }
.sw-campo__ayuda { display: block; color: var(--sw-texto-3); font-size: 12px; margin-top: 6px; }

.sw-ver-clave {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border: 0; border-radius: 10px;
    background: transparent; color: #7890AA; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.sw-ver-clave:hover, .sw-ver-clave:focus { background: var(--sw-azul-100); color: var(--sw-azul-700); outline: none; }
.sw-ver-clave svg { width: 20px; height: 20px; }
.sw-control--clave input { padding-right: 52px !important; }

/* ---------- Botones ---------- */
.sw-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px; padding: 0 24px; border-radius: 13px; border: 0;
    font-size: 15px; font-weight: 700; letter-spacing: .4px;
    text-decoration: none; cursor: pointer; user-select: none;
    transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
}
.sw-btn svg { width: 18px; height: 18px; }
.sw-btn--primario {
    color: #fff !important;
    background: linear-gradient(90deg, var(--sw-azul-900), var(--sw-azul-600));
    box-shadow: 0 10px 22px rgba(13, 71, 161, .25);
}
.sw-btn--primario:hover, .sw-btn--primario:focus { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(13, 71, 161, .32); outline: none; }
.sw-btn--secundario {
    color: #4A5B6E !important; background: #fff; border: 1.5px solid #CBD7E5;
}
.sw-btn--secundario:hover, .sw-btn--secundario:focus { background: #F4F7FB; outline: none; }
.sw-btn--exito {
    color: #fff !important;
    background: linear-gradient(90deg, #1B5E20, var(--sw-verde-claro));
    box-shadow: 0 10px 22px rgba(46, 125, 50, .25);
}
.sw-btn--bloque { width: 100%; }
.sw-btn.is-loading { pointer-events: none; opacity: .85; }
.sw-btn.is-loading .sw-btn__texto,
.sw-btn.is-loading .sw-btn__icono { display: none; }
.sw-btn__spinner {
    display: none; width: 22px; height: 22px; border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff;
    animation: sw-giro .8s linear infinite;
}
.sw-btn.is-loading .sw-btn__spinner { display: inline-block; }
@keyframes sw-giro { to { transform: rotate(360deg); } }

.sw-enlace { color: var(--sw-azul-700) !important; font-weight: 700; text-decoration: none; }
.sw-enlace:hover { text-decoration: underline; }

/* =====================================================================
   LOGIN
   ===================================================================== */
.sw-login { display: flex; min-height: 100vh; }

.sw-login__panel {
    position: relative; overflow: hidden;
    flex: 1 1 55%;
    color: #fff;
    background: linear-gradient(135deg, var(--sw-azul-900) 0%, var(--sw-azul-700) 100%);
    padding: 56px 72px 48px;
    display: flex; flex-direction: column;
}
.sw-login__panel::before {
    content: ""; position: absolute; right: -120px; top: -150px;
    width: 480px; height: 480px; border-radius: 50%; background: rgba(255, 255, 255, .05);
}
.sw-login__panel::after {
    content: ""; position: absolute; left: -230px; bottom: -260px;
    width: 600px; height: 600px; border-radius: 50%; background: rgba(66, 165, 245, .12);
}
.sw-login__panel > * { position: relative; z-index: 1; }
.sw-login__panel .sw-marca__lema { color: #B9D5FA; max-width: 360px; }

.sw-login__mensaje { margin-top: auto; padding-top: 48px; }
.sw-chip {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 8px 16px; border-radius: 20px;
    background: rgba(255, 255, 255, .13); color: #E9F3FF; font-size: 14px;
}
.sw-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #66BB6A; }
.sw-login__titulo {
    font-size: 48px; line-height: 1.15; font-weight: 700; margin: 22px 0 16px; color: #fff;
}
.sw-login__texto { font-size: 18px; line-height: 1.6; color: #D6E7FC; max-width: 520px; margin: 0; }

/* Slider */
.sw-slider { margin-top: 44px; max-width: 590px; position: relative; padding: 0 22px 18px 0; margin-bottom: auto; }
.sw-slider::before {
    content: ""; position: absolute; left: 22px; top: 16px; right: 0; bottom: 0;
    border-radius: 22px; background: rgba(255, 255, 255, .20);
}
.sw-slider__tarjeta {
    position: relative; background: #fff; color: var(--sw-texto);
    border-radius: 22px; box-shadow: var(--sw-sombra);
    padding: 24px; overflow: hidden; outline: none;
}
.sw-slider__tarjeta:focus-visible { box-shadow: var(--sw-sombra), 0 0 0 4px rgba(255, 255, 255, .5); }
.sw-slider__pista { position: relative; min-height: 172px; }
.sw-slide {
    position: absolute; inset: 0;
    display: flex; gap: 26px; align-items: stretch;
    opacity: 0; visibility: hidden; transform: translateX(24px);
    transition: opacity .45s ease, transform .45s ease, visibility .45s;
}
.sw-slide.is-activo { opacity: 1; visibility: visible; transform: none; position: relative; }
.sw-slide__icono {
    flex: 0 0 150px; border-radius: 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    background: var(--sw-slide-suave);
}
.sw-slide__circulo {
    width: 84px; height: 84px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--sw-slide-degradado); color: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .12);
}
.sw-slide__circulo svg { width: 38px; height: 38px; }
.sw-slide__modulo { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--sw-slide-color); }
.sw-slide__cuerpo { flex: 1; padding: 8px 0; }
.sw-slide__etiqueta { font-size: 12px; letter-spacing: 1.5px; color: #60758E; text-transform: uppercase; }
.sw-slide__titulo { font-size: 27px; font-weight: 700; margin: 10px 0 12px; color: var(--sw-texto); line-height: 1.2; }
.sw-slide__texto { font-size: 15.5px; line-height: 1.55; color: var(--sw-texto-2); margin: 0; }

.sw-slide--verde   { --sw-slide-color: #2E7D32; --sw-slide-suave: #E8F5E9; --sw-slide-degradado: linear-gradient(135deg, #43A047, #66BB6A); }
.sw-slide--azul    { --sw-slide-color: #1565C0; --sw-slide-suave: #E3F2FD; --sw-slide-degradado: linear-gradient(135deg, #1565C0, #42A5F5); }
.sw-slide--naranja { --sw-slide-color: #E65100; --sw-slide-suave: #FFF3E0; --sw-slide-degradado: linear-gradient(135deg, #E65100, #FF9800); }
.sw-slide--morado  { --sw-slide-color: #6A1B9A; --sw-slide-suave: #F3E5F5; --sw-slide-degradado: linear-gradient(135deg, #6A1B9A, #AB47BC); }

.sw-slider__controles {
    display: flex; align-items: center; gap: 16px;
    margin-top: 18px; padding-left: 176px;
}
.sw-slider__puntos { display: flex; align-items: center; gap: 8px; }
.sw-slider__punto {
    width: 9px; height: 9px; padding: 0; border: 0; border-radius: 5px;
    background: #CFDBEA; cursor: pointer; transition: width .3s, background .3s;
}
.sw-slider__punto.is-activo { width: 30px; background: var(--sw-azul-700); }
.sw-slider__contador { font-size: 13px; font-weight: 700; color: var(--sw-azul-700); }
.sw-slider__contador span { color: #9AA8B8; }
.sw-slider__flechas { margin-left: auto; display: flex; gap: 10px; }
.sw-slider__flecha {
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid #D6E1EE; background: #fff; color: #60758E;
    transition: background .2s, color .2s;
}
.sw-slider__flecha svg { width: 16px; height: 16px; }
.sw-slider__flecha--sig { background: var(--sw-azul-700); border-color: var(--sw-azul-700); color: #fff; }
.sw-slider__flecha:hover, .sw-slider__flecha:focus { outline: none; box-shadow: 0 0 0 3px rgba(21, 101, 192, .18); }
.sw-slider__progreso { margin: 14px 0 0 176px; height: 4px; border-radius: 2px; background: #E6EDF5; overflow: hidden; }
.sw-slider__barra { height: 100%; width: 0; background: var(--sw-slide-color, #43A047); border-radius: 2px; }
.sw-slider__barra.is-corriendo { animation: sw-progreso linear forwards; }
.sw-slider.is-pausado .sw-slider__barra { animation-play-state: paused; }
@keyframes sw-progreso { from { width: 0; } to { width: 100%; } }

.sw-login__pie-panel { margin-top: 40px; font-size: 12.5px; color: #A9C7EE; }

/* Tarjeta de acceso */
.sw-login__acceso {
    flex: 0 0 45%; display: flex; align-items: center; justify-content: center;
    padding: 40px 32px;
}
.sw-tarjeta-acceso {
    width: 100%; max-width: 470px;
    background: #fff; border-radius: 28px; box-shadow: var(--sw-sombra);
    padding: 44px 48px 38px;
}
.sw-tarjeta-acceso__logo {
    width: 96px; height: 96px; border-radius: 50%; margin: 0 auto;
    background: var(--sw-azul-100);
    display: flex; align-items: center; justify-content: center;
}
.sw-tarjeta-acceso__logo img { width: 70px; height: 70px; display: block; }
.sw-tarjeta-acceso h1 {
    text-align: center; font-size: 30px; font-weight: 700; color: var(--sw-texto);
    margin: 22px 0 8px; line-height: 1.2;
}
.sw-tarjeta-acceso__sub { text-align: center; font-size: 15px; color: #6F7F92; margin: 0 0 32px; }
.sw-tarjeta-acceso__fila {
    display: flex; justify-content: flex-end; margin: -4px 0 24px; font-size: 13.5px;
}
.sw-separador {
    display: flex; align-items: center; gap: 14px;
    margin: 30px 0 14px; color: #94A3B5; font-size: 12px; letter-spacing: .5px;
}
.sw-separador::before, .sw-separador::after { content: ""; flex: 1; height: 1px; background: #E0E7F0; }
.sw-tarjeta-acceso__registro { text-align: center; font-size: 14.5px; margin: 0; }
.sw-login__copy { text-align: center; color: var(--sw-texto-3); font-size: 12px; margin-top: 26px; }

/* Responsivo login */
@media (max-width: 1200px) {
    .sw-login__panel { padding: 48px 44px; }
    .sw-login__titulo { font-size: 40px; }
    .sw-tarjeta-acceso { padding: 38px 34px 32px; }
}
@media (max-width: 992px) {
    .sw-login { flex-direction: column; }
    .sw-login__panel { flex: none; padding: 28px 24px 34px; }
    .sw-login__mensaje { padding-top: 26px; }
    .sw-login__titulo { font-size: 30px; margin: 16px 0 10px; }
    .sw-login__texto { font-size: 15.5px; }
    .sw-slider, .sw-login__pie-panel { display: none; }
    .sw-login__acceso { flex: none; padding: 0 16px 36px; margin-top: -18px; }
    .sw-tarjeta-acceso { position: relative; z-index: 2; }
}
@media (max-width: 480px) {
    .sw-tarjeta-acceso { padding: 30px 22px 26px; border-radius: 22px; }
    .sw-marca__lema { font-size: 10.5px; }
}

/* =====================================================================
   REGISTRO
   ===================================================================== */
.sw-barra {
    background: #fff; border-bottom: 1px solid #E3EAF2;
    padding: 12px 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.sw-barra .sw-marca__logo { background: var(--sw-azul-100); box-shadow: none; width: 50px; height: 50px; flex-basis: 50px; }
.sw-barra .sw-marca__logo img { width: 40px; height: 40px; }
.sw-barra .sw-marca__nombre { color: var(--sw-texto); font-size: 20px; }
.sw-barra .sw-marca__lema { color: #6F7F92; font-size: 11px; }
.sw-barra__accion { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #60758E; white-space: nowrap; }
.sw-barra__accion .sw-btn { height: 40px; padding: 0 18px; border-radius: 10px; font-size: 13px; background: var(--sw-azul-100); color: var(--sw-azul-900) !important; }

.sw-registro { max-width: 1260px; margin: 0 auto; padding: 36px 32px 48px; }
.sw-registro__titulo { font-size: 32px; font-weight: 700; margin: 0 0 8px; color: var(--sw-texto); line-height: 1.2; }
.sw-registro__sub { font-size: 16px; color: #6F7F92; margin: 0 0 30px; }

/* Indicador de pasos */
.sw-pasos {
    --pad: 40px; --avance: 0;
    list-style: none; display: flex; margin: 0 0 30px; padding: 0 var(--pad); position: relative;
}
/* La línea va del centro del primer círculo al centro del último. */
.sw-pasos::before {
    content: ""; position: absolute; top: 26px; height: 4px; background: #D8E4F1; border-radius: 2px;
    left: calc(var(--pad) + (100% - 2 * var(--pad)) / 6);
    right: calc(var(--pad) + (100% - 2 * var(--pad)) / 6);
}
.sw-pasos__linea {
    position: absolute; top: 26px; height: 4px; background: var(--sw-azul-600); border-radius: 2px;
    left: calc(var(--pad) + (100% - 2 * var(--pad)) / 6);
    width: calc((100% - 2 * var(--pad)) * 2 / 3 * var(--avance));
    transition: width .35s ease;
}
.sw-paso { flex: 1; text-align: center; position: relative; }
.sw-paso__circulo {
    width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 3px solid #CAD7E5; color: #91A0B1;
    font-size: 19px; font-weight: 700; position: relative; z-index: 1;
    transition: background .3s, border-color .3s, color .3s;
}
.sw-paso__circulo svg { width: 24px; height: 24px; display: none; }
.sw-paso__nombre { font-size: 14px; font-weight: 700; color: #60758E; }
.sw-paso__estado { font-size: 12px; color: #91A0B1; margin-top: 3px; }
.sw-paso.is-actual .sw-paso__circulo { background: var(--sw-azul-600); border-color: var(--sw-azul-600); color: #fff; box-shadow: 0 0 0 6px rgba(25, 118, 210, .15); }
.sw-paso.is-actual .sw-paso__nombre { color: var(--sw-azul-900); }
.sw-paso.is-actual .sw-paso__estado { color: var(--sw-azul-600); }
.sw-paso.is-hecho .sw-paso__circulo { background: var(--sw-azul-600); border-color: var(--sw-azul-600); color: #fff; }
.sw-paso.is-hecho .sw-paso__circulo span { display: none; }
.sw-paso.is-hecho .sw-paso__circulo svg { display: block; }
.sw-paso.is-hecho .sw-paso__nombre { color: var(--sw-azul-900); }

/* Tarjeta principal */
.sw-registro__tarjeta {
    display: flex; background: #fff; border-radius: 24px; box-shadow: var(--sw-sombra); overflow: hidden;
}
.sw-registro__lateral {
    flex: 0 0 330px; position: relative; overflow: hidden;
    color: #fff; padding: 44px 36px;
    background: linear-gradient(135deg, var(--sw-azul-900), var(--sw-azul-600));
}
.sw-registro__lateral::before {
    content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
    border-radius: 50%; background: rgba(255, 255, 255, .06);
}
.sw-registro__lateral::after {
    content: ""; position: absolute; left: -80px; bottom: -90px; width: 270px; height: 270px;
    border-radius: 50%; background: rgba(66, 165, 245, .14);
}
.sw-registro__lateral > * { position: relative; z-index: 1; }
.sw-lateral { display: none; }
.sw-lateral.is-activo { display: block; animation: sw-aparecer .35s ease; }
.sw-lateral__icono {
    width: 66px; height: 66px; border-radius: 50%; background: rgba(255, 255, 255, .16);
    display: flex; align-items: center; justify-content: center; margin-bottom: 26px;
}
.sw-lateral__icono svg { width: 30px; height: 30px; }
.sw-lateral h3 { font-size: 24px; font-weight: 700; line-height: 1.25; margin: 0 0 14px; color: #fff; }
.sw-lateral p { font-size: 15px; line-height: 1.6; color: #D5E7FC; margin: 0 0 30px; }
.sw-lista-check { list-style: none; margin: 0; padding: 0; }
.sw-lista-check li { display: flex; align-items: center; gap: 12px; font-size: 14px; margin-bottom: 16px; color: #fff; }
.sw-lista-check li::before {
    content: ""; flex: 0 0 26px; height: 26px; border-radius: 50%;
    background: #66BB6A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.sw-registro__formulario { flex: 1; padding: 42px 52px 38px; min-width: 0; }
.sw-etapa { display: none; }
.sw-etapa.is-activa { display: block; animation: sw-aparecer .35s ease; }
@keyframes sw-aparecer { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sw-etapa__titulo { font-size: 23px; font-weight: 700; margin: 0 0 6px; color: var(--sw-texto); }
.sw-etapa__sub { font-size: 14.5px; color: #74869A; margin: 0 0 26px; }
.sw-subtitulo {
    font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    color: var(--sw-azul-700); margin: 6px 0 16px; display: flex; align-items: center; gap: 10px;
}
.sw-subtitulo::after { content: ""; flex: 1; height: 1px; background: #E3EAF2; }

.sw-rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.sw-rejilla--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sw-rejilla .sw-completo { grid-column: 1 / -1; }

.sw-aviso {
    display: flex; gap: 12px; align-items: flex-start;
    background: #EFF6FF; color: #416487; border-radius: 12px;
    padding: 13px 16px; font-size: 13.5px; line-height: 1.5; margin: 4px 0 22px;
}
.sw-aviso svg { flex: 0 0 20px; width: 20px; height: 20px; color: var(--sw-azul-600); margin-top: 1px; }

/* Fortaleza de la contraseña */
.sw-fuerza { margin-top: 10px; }
.sw-fuerza__barras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sw-fuerza__barras span { height: 5px; border-radius: 3px; background: #E3EAF2; transition: background .25s; }
.sw-fuerza__texto { font-size: 12px; color: var(--sw-texto-3); margin-top: 6px; }
.sw-fuerza[data-nivel="1"] .sw-fuerza__barras span:nth-child(-n+1) { background: #E53935; }
.sw-fuerza[data-nivel="2"] .sw-fuerza__barras span:nth-child(-n+2) { background: #FB8C00; }
.sw-fuerza[data-nivel="3"] .sw-fuerza__barras span:nth-child(-n+3) { background: #FDD835; }
.sw-fuerza[data-nivel="4"] .sw-fuerza__barras span:nth-child(-n+4) { background: #43A047; }

.sw-requisitos { list-style: none; padding: 0; margin: 4px 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.sw-requisitos li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #74869A; }
.sw-requisitos li::before {
    content: ""; flex: 0 0 18px; height: 18px; border-radius: 50%; border: 2px solid #CAD7E5; background: #fff;
    transition: background .2s, border-color .2s;
}
.sw-requisitos li.is-ok { color: var(--sw-verde); }
.sw-requisitos li.is-ok::before {
    border-color: #43A047;
    background: #43A047 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Resumen */
.sw-resumen { background: #F7F9FC; border: 1px solid #E3EAF2; border-radius: 14px; padding: 18px 20px; margin-bottom: 24px; }
.sw-resumen__titulo { font-size: 13px; font-weight: 700; color: #34465A; margin: 0 0 12px; }
.sw-resumen dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: 13.5px; }
.sw-resumen dt { color: #74869A; }
.sw-resumen dd { margin: 0; color: var(--sw-texto); font-weight: 600; word-break: break-word; }

.sw-etapa__acciones { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; padding-top: 22px; border-top: 1px solid #EEF2F7; }
.sw-etapa__acciones .sw-btn { min-width: 150px; }
.sw-etapa__acciones .sw-espacio { flex: 1; }

.sw-registro__pie { text-align: center; color: var(--sw-texto-3); font-size: 12px; margin-top: 26px; }

/* Responsivo registro */
@media (max-width: 1100px) {
    .sw-registro__lateral { flex-basis: 270px; padding: 36px 28px; }
    .sw-registro__formulario { padding: 36px 34px 32px; }
    .sw-rejilla--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .sw-registro__tarjeta { flex-direction: column; }
    .sw-registro__lateral { flex: none; padding: 26px 26px 6px; }
    .sw-lateral p { margin-bottom: 18px; }
    .sw-lista-check { display: none; }
    .sw-lateral__icono { width: 52px; height: 52px; margin-bottom: 16px; }
}
@media (max-width: 680px) {
    .sw-barra { padding: 10px 16px; }
    .sw-barra .sw-marca__lema, .sw-barra__accion > span { display: none; }
    .sw-registro { padding: 24px 14px 36px; }
    .sw-registro__titulo { font-size: 25px; }
    .sw-pasos { --pad: 0px; }
    .sw-paso__estado { display: none; }
    .sw-paso__nombre { font-size: 12px; }
    .sw-paso__circulo { width: 46px; height: 46px; font-size: 17px; }
    .sw-pasos::before, .sw-pasos__linea { top: 22px; }
    .sw-registro__formulario { padding: 26px 20px 24px; }
    .sw-rejilla, .sw-rejilla--3, .sw-requisitos { grid-template-columns: 1fr; }
    .sw-etapa__acciones .sw-btn { min-width: 0; flex: 1; padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .sw-acceso *, .sw-acceso *::before, .sw-acceso *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   OLVIDÉ MI CONTRASEÑA
   Reutiliza el diseño del login (.sw-login) y agrega la guía de pasos,
   los mensajes en línea y el estado de "correo enviado".
   ===================================================================== */
.sw-guia {
    margin-top: 40px; margin-bottom: auto; max-width: 560px;
    background: #fff; color: var(--sw-texto);
    border-radius: 22px; box-shadow: var(--sw-sombra);
    padding: 26px 28px;
}
.sw-guia__titulo { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #60758E; margin: 0 0 18px; }
.sw-guia ol { list-style: none; margin: 0; padding: 0; }
.sw-guia li { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; }
.sw-guia li + li { border-top: 1px solid #EEF2F7; }
.sw-guia__num {
    flex: 0 0 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--sw-azul-100); color: var(--sw-azul-700); font-weight: 700; font-size: 15px;
}
.sw-guia strong { display: block; font-size: 15.5px; color: var(--sw-texto); margin-bottom: 3px; }
.sw-guia span { font-size: 14px; color: var(--sw-texto-2); line-height: 1.5; }

.sw-alerta {
    display: none; gap: 10px; align-items: flex-start;
    border-radius: 12px; padding: 12px 14px; margin: 0 0 18px;
    font-size: 13.5px; line-height: 1.5;
}
.sw-alerta.is-visible { display: flex; }
.sw-alerta svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
.sw-alerta--error { background: #FDECEC; color: #B3261E; }
.sw-alerta--aviso { background: #FFF4E5; color: #8A4B00; }

.sw-exito { display: none; text-align: center; }
.sw-exito.is-visible { display: block; animation: sw-aparecer .35s ease; }
.sw-exito__icono {
    width: 84px; height: 84px; margin: 0 auto 6px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #E8F5E9; color: var(--sw-verde);
}
.sw-exito__icono svg { width: 40px; height: 40px; }
.sw-exito__correo { font-weight: 700; color: var(--sw-texto); word-break: break-all; }
.sw-exito__nota { font-size: 13px; color: var(--sw-texto-3); margin: 0 0 26px; }
.sw-btn-texto {
    background: none; border: 0; padding: 0; margin-top: 18px; cursor: pointer;
    font: inherit; font-size: 14px; font-weight: 700; color: var(--sw-azul-700);
}
.sw-btn-texto:hover, .sw-btn-texto:focus { text-decoration: underline; outline: none; }

@media (max-width: 992px) {
    .sw-guia { display: none; }
}

/* =====================================================================
   RESTABLECER CONTRASEÑA
   ===================================================================== */
.sw-exito__icono--error { background: #FDECEC; color: #C62828; }
.sw-tarjeta-acceso .sw-requisitos { grid-template-columns: 1fr; gap: 7px; margin: 0 0 22px; }
.sw-tarjeta-acceso .sw-fuerza { margin-top: 8px; }
