@charset "utf-8";
@import url('https://fonts.googleapis.com/css?family=Lato:300,400,700,900');

*{box-sizing:border-box;margin:0;padding:0}
html,body{min-height:100%;font-family:'Lato',sans-serif;background:#f4f7fa;color:#34495e;font-size:14px}
body{min-height:100vh}
a{text-decoration:none}

.recovery-shell{min-height:100vh;display:flex;flex-direction:column}

/* HEADER HELP DESK */
.recovery-header{height:76px;padding:0 40px;background:#fff;color:#243447;border-top:1px solid #dce4eb;border-bottom:1px solid #dce4eb}
.recovery-header-inner{width:100%;height:100%;display:flex;align-items:center;justify-content:space-between;gap:24px}
.recovery-brand{height:100%;display:flex;align-items:center;gap:17px;min-width:0}
.recovery-logo-wrap{width:245px;min-height:48px;display:flex;align-items:center;justify-content:flex-start}
.recovery-logo{display:block;width:112px;height:48px;max-width:112px;max-height:48px;object-fit:contain;object-position:left center}
.recovery-brand-divider{width:1px;height:40px;background:#d9e2ea}
.recovery-brand-copy{display:flex;flex-direction:column;justify-content:center}
.recovery-brand-title{font-size:18px;line-height:1.15;font-weight:900;color:#243447}
.recovery-brand-subtitle{font-size:11px;line-height:1.2;color:#8b9aac;margin-top:5px}
.recovery-header-tools{display:flex;align-items:center;gap:10px}
.theme-toggle{width:48px;height:42px;border:1px solid #d8e2eb;border-radius:12px;background:#fff;color:#ff6b35;display:grid;place-items:center;font-size:19px;cursor:pointer;transition:.2s ease}
.theme-toggle:hover{background:#f4f7fa;border-color:#c8d4df}
.recovery-header-link{height:42px;padding:0 16px;border:1px solid crimson;border-radius:8px;background:crimson;color:#fff;display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;transition:.18s ease}
.recovery-header-link:hover{background:#b51032;border-color:#b51032}

/* CARD */
.recovery-main{width:100%;max-width:820px;margin:0 auto;padding:48px 28px;flex:1;display:flex;align-items:flex-start}
.recovery-card{width:100%;background:#fff;border:1px solid #e0e6eb;border-radius:12px;box-shadow:0 10px 28px rgba(44,62,80,.08);overflow:hidden}
.recovery-card-head{display:flex;align-items:center;gap:18px;padding:28px 32px;border-bottom:1px solid #e6ebef;background:linear-gradient(180deg,#fff 0%,#fbfcfd 100%)}
.recovery-icon{width:48px;height:48px;min-width:48px;border-radius:9px;background:#34495e;color:#fff;display:grid;place-items:center;font-size:21px;box-shadow:inset 0 -3px 0 rgba(0,0,0,.08)}
.recovery-eyebrow{font-size:10px;color:#82909d;letter-spacing:2px;font-weight:700;margin-bottom:5px}
.recovery-card-head h1{font-size:24px;line-height:1.2;font-weight:700;color:#34495e;margin:0 0 6px}
.recovery-card-head p{font-size:13px;color:#7b8792;line-height:1.5}
.recovery-content{padding:30px 32px 32px}

.field-label{display:block;font-size:11px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:#607080;margin-bottom:9px}
.field-label span{color:crimson}
.field-wrap{position:relative}
.field-icon{position:absolute;left:15px;top:50%;transform:translateY(-50%);color:#82909d;font-size:16px;z-index:2}
.input03{width:100%;height:48px;padding:0 16px 0 44px;border:1px solid #d5dde5;border-radius:7px;background:#fff;color:#34495e;font-family:'Lato',sans-serif;font-size:13px;outline:none;transition:.2s ease}
.input03:focus{border-color:#34495e;box-shadow:0 0 0 3px rgba(52,73,94,.10)}
.input03.has-error{border-color:crimson;box-shadow:0 0 0 3px rgba(220,20,60,.08)}
.input03::placeholder{color:#a8b2bb}

.recovery-help{margin-top:24px;border:1px solid #e1e7ec;border-radius:8px;background:#f8fafb;padding:18px 20px}
.help-item{display:flex;align-items:flex-start;gap:14px}
.help-icon{width:36px;height:36px;min-width:36px;border-radius:7px;background:#e9eef2;color:#34495e;display:grid;place-items:center;font-size:15px}
.help-item strong{display:block;color:#43586b;font-size:12px;margin-bottom:4px}
.help-item p{color:#7c8994;font-size:11px;line-height:1.55}

/* BOTÓN VERDE */
.recovery-actions{display:flex;justify-content:flex-end;margin-top:26px;margin-right:18px;margin-bottom:20px}
.btn-recover{position:relative;overflow:hidden;isolation:isolate;min-width:225px;height:46px;padding:0 18px;border:1px solid #0b755f;border-radius:7px;background:#0f8a72;color:#fff;display:flex;align-items:center;justify-content:center;gap:10px;font-family:'Lato',sans-serif;font-size:12px;font-weight:700;letter-spacing:.6px;cursor:pointer;box-shadow:0 4px 12px rgba(15,138,114,.24);transition:.2s ease}
.btn-recover:hover{background:#0b755f;border-color:#086451;transform:translateY(-1px)}
.btn-recover:disabled,.btn-recover.is-loading{cursor:wait;opacity:.94;transform:none}
.btn-main-icon{font-size:14px}
.btn-arrow{font-size:18px;margin-left:4px}
.btn-spinner{display:none;width:16px;height:16px;border:2px solid rgba(255,255,255,.38);border-top-color:#fff;border-radius:50%;animation:hdaSpin .7s linear infinite}
.btn-recover.is-loading .btn-spinner{display:inline-block}
.btn-recover.is-loading .btn-main-icon,.btn-recover.is-loading .btn-arrow{display:none}
.btn-recover::after{content:"";position:absolute;top:-30%;left:-48px;width:28px;height:160%;pointer-events:none;z-index:0;transform:skewX(-14deg);background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.12) 20%,rgba(255,255,255,.85) 50%,rgba(255,255,255,.12) 80%,transparent 100%);box-shadow:0 0 12px rgba(255,255,255,.35);animation:hdaButtonShine 2.4s ease-in-out infinite alternate}
.btn-recover > *{position:relative;z-index:1}
.btn-recover.is-loading::after,.btn-recover:disabled::after{animation:none;opacity:0}

.recovery-links{margin-top:28px;padding-top:21px;border-top:1px solid #e7ebef;display:flex;align-items:center;justify-content:center;gap:18px;color:#87929c;font-size:11px;text-align:center}
.recovery-links span{width:1px;height:14px;background:#d8dee3}
.recovery-links a{color:#7a8792}
.recovery-links a:hover{color:#34495e}
.recovery-links strong{color:#34495e}
.recovery-footer{text-align:center;color:#9aa4ad;font-size:10px;letter-spacing:1.3px;padding:0 20px 24px}

/* OVERLAY NEGRO 0.6 */
.hda-overlay{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.60);display:none;align-items:center;justify-content:center;padding:20px}
.hda-overlay.is-visible{display:flex}
.hda-overlay.is-processing{cursor:wait}
.hda-overlay-box{width:min(430px,94vw);background:#111;color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:10px;padding:27px 28px;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.hda-overlay-icon{width:42px;height:42px;border:1px solid rgba(255,255,255,.45);border-radius:50%;display:grid;place-items:center;margin:0 auto 13px;font-size:20px;font-weight:700}
.hda-overlay-spinner{display:none;width:42px;height:42px;margin:0 auto 15px;border:3px solid rgba(255,255,255,.28);border-top-color:#fff;border-radius:50%;animation:hdaSpin .75s linear infinite}
.hda-overlay-title{font-size:17px;font-weight:700;letter-spacing:.5px;margin-bottom:9px}
.hda-overlay-text{font-size:12px;line-height:1.6;color:#e3e3e3}
.hda-overlay-btn{margin-top:20px;border:1px solid rgba(255,255,255,.45);background:#fff;color:#222;border-radius:5px;padding:9px 24px;font-weight:700;cursor:pointer}
.is-waiting,.is-waiting body,.is-waiting *{cursor:wait !important}

@keyframes hdaSpin{to{transform:rotate(360deg)}}
@keyframes hdaButtonShine{from{left:-48px}to{left:calc(100% + 48px)}}

/* OSCURO */
.dark-mode body{background:#17212b;color:#dfe7ee}
.dark-mode .recovery-header{background:#202d39;border-color:#334555;color:#fff}
.dark-mode .recovery-brand-divider{background:#405364}
.dark-mode .recovery-brand-title{color:#fff}
.dark-mode .recovery-brand-subtitle{color:#aebdca}
.dark-mode .theme-toggle{background:#263746;border-color:#405364;color:#dce7ef}
.dark-mode .recovery-card{background:#202d39;border-color:#3a4b5a}
.dark-mode .recovery-card-head{background:#202d39;border-color:#3a4b5a}
.dark-mode .recovery-card-head h1{color:#eef4f8}
.dark-mode .recovery-card-head p,.dark-mode .recovery-eyebrow{color:#b7c5d0}
.dark-mode .field-label{color:#c2ced7}
.dark-mode .input03{background:#263746;border-color:#405364;color:#eef4f8}
.dark-mode .field-icon{color:#aebdca}
.dark-mode .recovery-help{background:#263746;border-color:#3a4b5a}
.dark-mode .help-icon{background:#314454;color:#e4edf3}
.dark-mode .help-item strong{color:#eef4f8}
.dark-mode .help-item p{color:#b7c5d0}
.dark-mode .recovery-links{border-color:#3a4b5a}
.dark-mode .recovery-links a{color:#b7c5d0}
.dark-mode .recovery-links strong{color:#fff}
.dark-mode .recovery-footer{color:#91a3b1}

@media(max-width:767px){
    .recovery-header{padding:10px 14px;min-height:70px;height:auto}
    .recovery-header-inner{gap:10px}
    .recovery-logo-wrap{width:auto;min-width:76px;min-height:38px}
    .recovery-logo{width:76px;height:38px;max-width:76px;max-height:38px}
    .recovery-brand-divider{height:34px}
    .recovery-brand{gap:10px}
    .recovery-brand-title{font-size:13px}
    .recovery-brand-subtitle{font-size:9px}
    .theme-toggle{width:40px;height:38px;border-radius:9px}
    .recovery-header-link{width:40px;height:38px;padding:0;justify-content:center}
    .recovery-header-link span:last-child{display:none}

    .recovery-main{padding:20px 12px 30px}
    .recovery-card{border-radius:8px}
    .recovery-card-head{align-items:flex-start;padding:22px 18px;gap:13px}
    .recovery-icon{width:42px;height:42px;min-width:42px}
    .recovery-card-head h1{font-size:19px}
    .recovery-card-head p{font-size:12px}
    .recovery-content{padding:22px 16px 24px}
    .recovery-actions{margin-top:22px;margin-right:0;margin-bottom:18px}
    .btn-recover{width:100%;min-width:0}
    .recovery-links{flex-direction:column;gap:10px}
    .recovery-links span{display:none}
}


/* ==========================================================
   HEADER | MISMO DISEÑO DE /security/cuenta-existente/
   ========================================================== */
.site-header{
  height:78px;
  background:#1f2f3c;
  border-top:2px solid #d9e0e5;
  border-bottom:1px solid #40515f;
  color:#fff;
  position:sticky;
  top:0;
  z-index:100;
}
.header-inner{
  width:100%;
  height:100%;
  padding:0 38px 0 44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.header-left,.header-actions{display:flex;align-items:center}
.header-left{gap:17px}
.header-actions{gap:10px}
.brand-link{display:inline-flex;align-items:center}
.brand-logo{width:auto;height:42px;max-width:150px;object-fit:contain}
.header-divider{width:1px;height:40px;margin-left:15px;background:#455664}
.header-title{display:flex;flex-direction:column;justify-content:center;gap:4px}
.header-title strong{color:#fff;font-size:18px;line-height:1.05;font-weight:700}
.header-title span{color:#c9d3da;font-size:11px;line-height:1.1}
.site-header .theme-toggle{
  width:48px;height:42px;border:1px solid #405463;border-radius:11px;
  background:#263a49;color:#fff;box-shadow:none;
}
.site-header .theme-toggle:hover{
  background:#2c4353;border-color:#587080;transform:translateY(-1px);
  box-shadow:0 5px 12px rgba(0,0,0,.14);
}
.theme-icon{font-size:18px;color:#fff}
.header-back{
  min-width:90px;height:42px;padding:0 20px;border:0;border-radius:9px;
  background:#dc143c;color:#fff!important;font-size:12px;font-weight:700;
  cursor:pointer;display:inline-flex;align-items:center;justify-content:center;
  transition:background .18s ease,transform .18s ease,box-shadow .18s ease;
}
.header-back:hover{
  background:#bd1033;transform:translateY(-1px);
  box-shadow:0 7px 17px rgba(220,20,60,.25);
}

/* ==========================================================
   RECUPERAR DATOS | MISMO EFECTO DE INICIAR SESIÓN
   ========================================================== */
.btn-recover{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:#0f8a72;
  border-color:#0b755f;
  color:#fff;
  box-shadow:0 4px 12px rgba(15,138,114,.24);
  transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.btn-recover .btn-sweep{
  position:absolute;
  z-index:-1;
  inset:0;
  background:steelblue;
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .34s cubic-bezier(.4,0,.2,1);
}
.btn-recover::after{
  content:"";
  position:absolute;
  z-index:0;
  top:-35%;
  left:-45%;
  width:26%;
  height:170%;
  pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.58),transparent);
  transform:skewX(-20deg);
  animation:hdaButtonShine 2.6s ease-in-out infinite alternate;
}
.btn-recover > *{position:relative;z-index:2}
.btn-recover:hover{
  background:#0f8a72;
  border-color:steelblue;
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(70,130,180,.28);
}
.btn-recover:hover::after{animation:none;opacity:0}
.btn-recover:hover .btn-sweep{transform:scaleX(1)}
.btn-recover:hover .btn-arrow{transform:translateX(4px)}
.btn-arrow{transition:transform .18s ease}
.btn-recover.is-loading::after,.btn-recover:disabled::after{animation:none;opacity:0}
.btn-recover.is-loading .btn-sweep,.btn-recover:disabled .btn-sweep{transform:scaleX(0)}

@keyframes hdaButtonShine{
  0%{left:-45%}
  100%{left:120%}
}

@media(max-width:700px){
  .site-header{height:70px}
  .header-inner{padding:0 14px}
  .brand-logo{height:34px;max-width:118px}
  .header-left{gap:10px}
  .header-divider{height:34px;margin-left:5px}
  .header-title strong{font-size:14px}
  .header-title span{font-size:9px}
  .header-actions{gap:7px}
  .site-header .theme-toggle{width:38px;height:38px;border-radius:9px}
  .header-back{min-width:72px;height:38px;padding:0 12px;font-size:11px}
}
@media(max-width:460px){
  .header-title,.header-divider{display:none}
}


/* ==========================================================
   /olvide-datos/confirmacion.php
   ========================================================== */
.recovery-confirm-main{
  width:min(760px,calc(100% - 32px));
  margin:0 auto;
  padding:52px 0 38px;
}
.recovery-confirm-card{
  background:#fff;
  border:1px solid #dfe6eb;
  border-radius:12px;
  box-shadow:0 12px 34px rgba(44,62,80,.10);
  padding:40px 42px 36px;
  text-align:center;
}
.confirm-success-icon{
  width:64px;height:64px;margin:0 auto 17px;border-radius:50%;
  display:grid;place-items:center;
  background:#0f8a72;color:#fff;
  font-size:30px;font-weight:900;
  box-shadow:0 8px 20px rgba(15,138,114,.22);
}
.confirm-eyebrow{
  color:#82909d;font-size:10px;font-weight:700;
  letter-spacing:2px;margin-bottom:8px;
}
.recovery-confirm-card h1{
  color:#34495e;font-size:28px;line-height:1.2;margin-bottom:10px;
}
.confirm-lead{
  max-width:560px;margin:0 auto;color:#75838e;
  font-size:13px;line-height:1.65;
}
.confirm-mail-box{
  margin:27px 0 18px;padding:16px 17px;
  border:1px solid #dfe7ec;border-radius:9px;
  background:#f8fafb;
  display:grid;grid-template-columns:42px minmax(0,1fr) 30px;
  gap:13px;align-items:center;text-align:left;
}
.confirm-mail-icon{
  width:42px;height:42px;border-radius:8px;
  background:#34495e;color:#fff;
  display:grid;place-items:center;font-size:18px;font-weight:900;
}
.confirm-mail-copy{min-width:0;display:flex;flex-direction:column;gap:4px}
.confirm-mail-copy span{
  color:#8794a0;font-size:10px;text-transform:uppercase;letter-spacing:1.2px;
}
.confirm-mail-copy strong{
  color:#34495e;font-size:13px;word-break:break-all;
}
.confirm-mail-check{
  width:28px;height:28px;border-radius:50%;
  background:#0f8a72;color:#fff;
  display:grid;place-items:center;font-size:13px;font-weight:900;
}
.confirm-instructions{
  border:1px solid #e1e7ec;border-radius:9px;
  overflow:hidden;text-align:left;
}
.confirm-instruction{
  display:grid;grid-template-columns:30px minmax(0,1fr);
  gap:12px;align-items:start;padding:14px 16px;
  background:#fff;border-bottom:1px solid #e7ecef;
}
.confirm-instruction:last-child{border-bottom:0}
.instruction-number{
  width:26px;height:26px;border-radius:50%;
  background:#e9eef2;color:#34495e;
  display:grid;place-items:center;
  font-size:11px;font-weight:900;
}
.confirm-instruction strong{
  display:block;color:#43586b;font-size:12px;margin:2px 0 3px;
}
.confirm-instruction p{
  color:#7c8994;font-size:11px;line-height:1.5;
}
.confirm-help{
  margin-top:15px;padding:12px 15px;
  border-left:3px solid steelblue;
  border-radius:0 7px 7px 0;
  background:#f7f9fb;color:#74818c;
  font-size:11px;line-height:1.55;text-align:left;
}
.confirm-actions{
  margin-top:27px;padding-top:23px;
  border-top:1px solid #e6ebef;
  display:flex;justify-content:center;
}

/* Iniciar sesión: verde + destello; hover SteelBlue */
.btn-confirm-login{
  position:relative;isolation:isolate;overflow:hidden;
  min-width:210px;height:46px;padding:0 22px;
  border:1px solid #0b755f;border-radius:8px;
  background:#0f8a72;color:#fff;
  font:700 12px 'Lato',sans-serif;letter-spacing:.4px;
  cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:13px;
  box-shadow:0 4px 12px rgba(15,138,114,.24);
  transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.btn-confirm-login .btn-sweep{
  position:absolute;z-index:0;inset:0;
  background:steelblue;
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform .34s cubic-bezier(.4,0,.2,1);
}
.btn-confirm-login::after{
  content:"";position:absolute;z-index:1;
  top:-35%;left:-45%;width:26%;height:170%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.58),transparent);
  transform:skewX(-20deg);
  animation:olvideConfirmShine 2.6s ease-in-out infinite alternate;
  pointer-events:none;
}
.btn-confirm-login>*{position:relative;z-index:2}
.btn-confirm-login:hover{
  border-color:steelblue;
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(70,130,180,.28);
}
.btn-confirm-login:hover::after{animation:none;opacity:0}
.btn-confirm-login:hover .btn-sweep{transform:scaleX(1)}
.btn-confirm-login .btn-arrow{font-size:17px;transition:transform .18s ease}
.btn-confirm-login:hover .btn-arrow{transform:translateX(4px)}

@keyframes olvideConfirmShine{
  0%{left:-45%}
  100%{left:120%}
}

/* Modo oscuro */
.dark-mode .recovery-confirm-card{
  background:#202d39;border-color:#3a4b5a;
}
.dark-mode .recovery-confirm-card h1,
.dark-mode .confirm-mail-copy strong,
.dark-mode .confirm-instruction strong{color:#eef4f8}
.dark-mode .confirm-lead,
.dark-mode .confirm-instruction p,
.dark-mode .confirm-help{color:#b7c5d0}
.dark-mode .confirm-mail-box{
  background:#263746;border-color:#3a4b5a;
}
.dark-mode .confirm-mail-copy span{color:#aebdca}
.dark-mode .confirm-instructions{border-color:#3a4b5a}
.dark-mode .confirm-instruction{
  background:#202d39;border-color:#3a4b5a;
}
.dark-mode .instruction-number{
  background:#314454;color:#e4edf3;
}
.dark-mode .confirm-help{background:#263746}
.dark-mode .confirm-actions{border-color:#3a4b5a}

@media(max-width:700px){
  .recovery-confirm-main{
    width:calc(100% - 24px);
    padding:22px 0;
  }
  .recovery-confirm-card{padding:30px 19px 26px}
  .recovery-confirm-card h1{font-size:23px}
  .btn-confirm-login{width:100%}
}
@media(max-width:460px){
  .confirm-mail-box{grid-template-columns:42px minmax(0,1fr)}
  .confirm-mail-check{display:none}
}


/* ==========================================================
   BLOQUEO DE REGRESO | confirmacion.php
   ========================================================== */
.back-overlay{
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(0,0,0,.60);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease,visibility .18s ease;
}
.back-overlay.is-visible{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.back-dialog{
  width:min(440px,100%);
  background:#111;
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  border-radius:10px;
  padding:28px 28px 24px;
  text-align:center;
  box-shadow:0 20px 60px rgba(0,0,0,.38);
}
.back-dialog-icon{
  width:46px;
  height:46px;
  margin:0 auto 14px;
  border:1px solid rgba(255,255,255,.45);
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:21px;
  font-weight:900;
}
.back-dialog h2{
  margin:0 0 9px;
  color:#fff;
  font-size:18px;
  font-weight:700;
}
.back-dialog p{
  margin:0 auto 20px;
  max-width:350px;
  color:#e5e5e5;
  font-size:12px;
  line-height:1.65;
}
.back-dialog button{
  min-width:110px;
  height:40px;
  padding:0 24px;
  border:1px solid #0b755f;
  border-radius:7px;
  background:#0f8a72;
  color:#fff;
  font:700 12px 'Lato',sans-serif;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
.back-dialog button:hover{
  background:steelblue;
  border-color:steelblue;
  transform:translateY(-1px);
}


/* Mientras está visible el aviso de navegación, bloquear el fondo */
html.back-message-open,
html.back-message-open body{
  overflow:hidden !important;
}

/* Aviso al intentar regresar después de completar la recuperación */
#hdaOverlayBtn{
  min-width:110px;height:40px;padding:0 24px;border:1px solid #0b755f;
  border-radius:7px;background:#0f8a72;color:#fff;font-weight:700;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
#hdaOverlayBtn:hover{
  background:steelblue;border-color:steelblue;transform:translateY(-1px);
}
