@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}

.terms-shell{min-height:100vh;display:flex;flex-direction:column}
.terms-header{height:76px;background:#34495e;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,4vw,58px);box-shadow:0 3px 14px rgba(20,35,50,.16)}
.terms-brand{display:flex;align-items:center;gap:12px}
.terms-brand-mark{width:42px;height:42px;border:1px solid rgba(255,255,255,.45);border-radius:9px;display:grid;place-items:center;font-weight:900;letter-spacing:1px;background:rgba(255,255,255,.08)}
.terms-brand-title{font-size:15px;font-weight:900;letter-spacing:2px}
.terms-brand-subtitle{font-size:10px;letter-spacing:3px;color:#cdd6df;margin-top:3px}
.terms-header-copy{font-size:11px;letter-spacing:2px;color:#dce4eb}

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

.legal-section{border:1px solid #e1e7ec;border-radius:8px;overflow:hidden;margin-bottom:20px;background:#fff}
.legal-section-head{height:50px;display:flex;align-items:center;background:#f7f9fb;border-bottom:1px solid #e1e7ec}
.legal-number{height:100%;width:54px;display:grid;place-items:center;background:#34495e;color:#fff;font-size:11px;font-weight:700;letter-spacing:1px}
.legal-section h2{font-size:13px;color:#43586b;letter-spacing:.7px;font-weight:700;padding-left:17px;text-transform:uppercase}
.txta_notes{display:block;width:100%;height:210px;border:0;resize:vertical;outline:0;padding:20px 22px;background:#fff;color:#5d6873;font-family:'Lato',sans-serif;font-size:12px;line-height:1.7;text-align:justify;scrollbar-color:#aeb8c1 #eef2f5}
.txta_notes:focus{box-shadow:inset 0 0 0 2px rgba(52,73,94,.10)}

.accept-card{border:1px solid #d9e1e7;border-radius:8px;background:#f8fafb;padding:18px 20px;transition:.2s ease}
.accept-card.has-error{border-color:crimson;background:#fff7f8;box-shadow:0 0 0 3px rgba(220,20,60,.07)}
.accept-label{display:flex;align-items:flex-start;gap:13px;cursor:pointer;line-height:1.55;color:#5f6c77}
.accept-label input{position:absolute;opacity:0;pointer-events:none}
.custom-check{width:21px;height:21px;min-width:21px;border:2px solid #9eabb6;border-radius:4px;background:#fff;position:relative;margin-top:1px;transition:.2s ease}
.accept-label input:checked + .custom-check{background:#34495e;border-color:#34495e}
.accept-label input:checked + .custom-check:after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:13px;font-weight:900}
.accept-label input:focus + .custom-check{box-shadow:0 0 0 3px rgba(52,73,94,.15)}
.accept-copy{font-size:12px;letter-spacing:.1px}.accept-copy strong{color:#34495e}
.terms-actions{display:flex;justify-content:flex-end;margin-top:20px}
.btn01{border:0;border-radius:6px;background:#34495e;color:#fff;min-width:205px;height:44px;padding:0 18px;display:flex;align-items:center;justify-content:center;gap:20px;font-family:'Lato',sans-serif;font-size:12px;font-weight:700;letter-spacing:.7px;cursor:pointer;box-shadow:0 4px 10px rgba(52,73,94,.18);transition:.2s ease}
.btn01:hover{background:#263a4d;transform:translateY(-1px)}
.btn-arrow{font-size:18px;font-weight:300}
.terms-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}
.terms-links span{width:1px;height:14px;background:#d8dee3}.terms-links a{color:#7a8792}.terms-links a:hover{color:#34495e}.terms-links strong{color:#34495e}
.terms-footer{text-align:center;color:#9aa4ad;font-size:10px;letter-spacing:1.3px;padding:0 20px 24px}

.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-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-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}
.loader{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.60)}

@media(max-width:767px){
 .terms-header{height:auto;min-height:70px;padding:14px 18px}.terms-header-copy{display:none}.terms-brand-mark{width:38px;height:38px}
 .terms-main{padding:18px 12px 28px}.terms-card{border-radius:8px}.terms-card-head{align-items:flex-start;padding:21px 18px;gap:13px}.terms-icon{width:42px;height:42px;min-width:42px}.terms-card-head h1{font-size:19px}.terms-card-head p{font-size:12px}
 .terms-content{padding:18px 14px 22px}.legal-section{margin-bottom:14px}.legal-section-head{height:46px}.legal-number{width:46px}.legal-section h2{font-size:11px;padding-left:12px}.txta_notes{height:250px;padding:16px 15px;font-size:12px;text-align:left}
 .accept-card{padding:15px}.accept-copy{font-size:11px}.terms-actions{justify-content:stretch}.btn01{width:100%}.terms-links{flex-direction:column;gap:10px;text-align:center}.terms-links span{display:none}
}


/* =========================================================
   HELP DESK | TERMINOS Y CONDICIONES | PANEL HEADER + LOADERS
   ========================================================= */
.terms-header{height:72px;padding:0 28px;background:#34495e;border-bottom:4px solid #2f4356;box-shadow:0 3px 12px rgba(20,35,50,.18)}
.terms-header-inner{width:100%;max-width:1440px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:24px}
.terms-brand{gap:13px;min-width:0}.terms-brand-mark{width:42px;height:42px;min-width:42px;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.08);border-radius:7px;font-size:20px}
.terms-brand-copy{min-width:0}.terms-brand-title{font-size:14px;line-height:1.1;font-weight:900;letter-spacing:1.5px;color:#fff}.terms-brand-title span{font-weight:400;color:#d9e2e9}
.terms-brand-subtitle{font-size:9px;line-height:1.2;letter-spacing:2px;color:#bfcbd5;margin-top:5px}
.terms-header-tools{display:flex;align-items:center;gap:12px}.terms-version{height:34px;display:flex;align-items:center;gap:6px;padding:0 12px;border:1px solid rgba(255,255,255,.16);border-radius:5px;color:#cbd5dd;font-size:9px;letter-spacing:1px;background:rgba(0,0,0,.08)}.terms-version strong{color:#fff;font-weight:700}
.terms-header-link{height:36px;padding:0 14px;border:1px solid rgba(255,255,255,.30);border-radius:5px;color:#fff;display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;letter-spacing:.4px;transition:.18s ease}.terms-header-link:hover{background:#fff;color:#34495e}

/* Acción primaria deliberadamente distinta al color institucional */
.btn01{background:#0f8a72;border:1px solid #0b755f;min-width:225px;gap:10px;box-shadow:0 4px 12px rgba(15,138,114,.24)}
.btn01:hover{background:#0b755f;border-color:#086451}.btn01:disabled{cursor:wait;opacity:.92;transform:none}.btn01.is-loading{cursor:wait}.btn-arrow{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}.btn01.is-loading .btn-spinner{display:inline-block}.btn01.is-loading .btn-arrow{display:none}

/* Overlay de proceso / validación */
.hda-overlay{background:rgba(0,0,0,.60);cursor:default}.hda-overlay.is-processing{cursor:wait}.hda-overlay-box{background:#111;color:#fff}.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}.is-waiting,.is-waiting body,.is-waiting *{cursor:wait !important}
@keyframes hdaSpin{to{transform:rotate(360deg)}}

@media(max-width:767px){
 .terms-header{min-height:68px;height:auto;padding:11px 14px}.terms-header-inner{gap:10px}.terms-brand-mark{width:38px;height:38px;min-width:38px}.terms-brand-title{font-size:12px}.terms-brand-subtitle{font-size:8px;letter-spacing:1.2px}.terms-version{display:none}.terms-header-link{width:38px;padding:0;justify-content:center}.terms-header-link span:last-child{display:none}.terms-header-tools{gap:6px}
 .btn01{width:100%;min-width:0}
}


/* =========================================================
   HELP DESK | HEADER PANEL DE CONTROL
   ========================================================= */
.terms-header{height:76px;padding:0 40px;background:#fff;color:#243447;border-top:1px solid #dce4eb;border-bottom:1px solid #dce4eb;box-shadow:none}
.terms-header-inner{max-width:none}
.terms-brand{height:100%;gap:17px}
.terms-logo-wrap{width:245px;display:flex;align-items:center;justify-content:flex-start}
.terms-logo{display:block;max-width:132px;max-height:48px;width:auto;height:auto;object-fit:contain}
.terms-brand-divider{width:1px;height:40px;background:#d9e2ea}
.terms-brand-copy{display:flex;flex-direction:column;justify-content:center}
.terms-brand-title{font-size:18px;line-height:1.15;font-weight:900;letter-spacing:0;color:#243447;text-transform:none}
.terms-brand-subtitle{font-size:11px;line-height:1.2;letter-spacing:0;color:#8b9aac;margin-top:5px;text-transform:none}
.terms-header-tools{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:18px;cursor:pointer;transition:.2s ease}
.theme-toggle:hover{background:#f4f7fa;border-color:#c8d4df}
.terms-header-link{height:42px;padding:0 16px;border:1px solid crimson;border-radius:8px;background:crimson;color:#fff}
.terms-header-link:hover{background:#b51032;border-color:#b51032;color:#fff}

/* Modo oscuro: un solo control cambia icono y conserva la preferencia */
.dark-mode body{background:#17212b;color:#dfe7ee}
.dark-mode .terms-header{background:#202d39;border-color:#334555;color:#fff}
.dark-mode .terms-brand-divider{background:#405364}
.dark-mode .terms-brand-title{color:#fff}
.dark-mode .terms-brand-subtitle{color:#aebdca}
.dark-mode .theme-toggle{background:#263746;border-color:#405364;color:#dce7ef}
.dark-mode .terms-card,.dark-mode .legal-section,.dark-mode .txta_notes{background:#202d39;color:#d6e0e8;border-color:#3a4b5a}
.dark-mode .terms-card-head,.dark-mode .legal-section-head,.dark-mode .accept-card{background:#263746;border-color:#3a4b5a}
.dark-mode .terms-card-head h1,.dark-mode .legal-section h2,.dark-mode .accept-copy strong{color:#eef4f8}
.dark-mode .terms-card-head p,.dark-mode .terms-eyebrow,.dark-mode .accept-copy{color:#b7c5d0}
.dark-mode .terms-links{border-color:#3a4b5a}.dark-mode .terms-links a{color:#b7c5d0}.dark-mode .terms-links strong{color:#fff}
.dark-mode .terms-footer{color:#91a3b1}

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


/* =========================================================
   BOTON CONTINUAR REGISTRO | DESTELLO + SEPARACION
   ========================================================= */
.terms-actions{
    margin-top:24px;
    margin-right:18px;
    margin-bottom:20px;
}

.btn01{
    position:relative;
    overflow:hidden;
    isolation:isolate;
}

.btn01::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;
}

.btn01 > *{
    position:relative;
    z-index:1;
}

.btn01.is-loading::after,
.btn01:disabled::after{
    animation:none;
    opacity:0;
}

@keyframes hdaButtonShine{
    from{left:-48px;}
    to{left:calc(100% + 48px);}
}

@media(max-width:767px){
    .terms-actions{
        margin-top:22px;
        margin-right:0;
        margin-bottom:18px;
    }
}


/* ==========================================================
   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);
}

/* ==========================================================
   CONTINUAR REGISTRO | MISMO EFECTO DE INICIAR SESIÓN
   ========================================================== */
.btn01{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:#0f8a72;
  border:1px solid #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;
}
.btn01 .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);
}
.btn01::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:termsButtonShine 2.6s ease-in-out infinite alternate;
}
.btn01 > *{position:relative;z-index:2}
.btn01:hover{
  background:#0f8a72;
  border-color:steelblue;
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(70,130,180,.28);
}
.btn01:hover::after{animation:none;opacity:0}
.btn01:hover .btn-sweep{transform:scaleX(1)}
.btn01:hover .btn-arrow{transform:translateX(4px)}
.btn01 .btn-arrow{transition:transform .18s ease}
.btn01.is-loading::after,.btn01:disabled::after{animation:none;opacity:0}
.btn01.is-loading .btn-sweep,.btn01:disabled .btn-sweep{transform:scaleX(0)}

@keyframes termsButtonShine{
  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}
}
