/* E-Valua360 | css/style.css | Fitness24Seven Colombia */
:root {
  --navy: #0f172a;
  --navy-md: #1e293b;
  --navy-lt: #334155;
  --orange: #FF6B00;
  --orange-lt: rgba(255,107,0,0.15);
  --white: #ffffff;
  --slate: #94a3b8;
  --slate-lt: #e2e8f0;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{font-size:16px;scroll-behavior:smooth;}
body{font-family:'Inter',sans-serif;background:var(--navy);color:var(--slate-lt);min-height:100vh;}

/* ── LOGIN ── */
.login-page{display:flex;align-items:center;justify-content:center;min-height:100vh;}
.login-bg{position:relative;width:100%;min-height:100vh;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#0f172a 0%,#1e293b 50%,#0f172a 100%);}
.login-bg::before{content:'';position:absolute;inset:0;
  background:radial-gradient(ellipse at 20% 50%,rgba(255,107,0,0.08) 0%,transparent 60%),
             radial-gradient(ellipse at 80% 20%,rgba(255,107,0,0.05) 0%,transparent 50%);pointer-events:none;}
.login-overlay{display:none;}
.login-card{position:relative;background:rgba(30,41,59,0.85);backdrop-filter:blur(20px);
  border:1px solid rgba(255,107,0,0.15);border-radius:var(--radius);padding:2.5rem;
  width:100%;max-width:440px;box-shadow:var(--shadow);}
.brand-logo{display:flex;align-items:center;gap:.85rem;margin-bottom:2rem;}
.logo-icon{width:52px;height:52px;flex-shrink:0;}
.logo-icon svg{width:100%;height:100%;}
.brand-text{display:flex;flex-direction:column;}
.brand-main{font-size:1.5rem;font-weight:800;color:var(--white);line-height:1;}
.brand-accent{color:var(--orange);}
.brand-sub{font-size:.72rem;color:var(--slate);margin-top:.2rem;text-transform:uppercase;letter-spacing:.05em;}
.login-header{margin-bottom:1.75rem;}
.login-header h1{font-size:1.4rem;font-weight:700;color:var(--white);margin-bottom:.4rem;}
.login-header p{font-size:.875rem;color:var(--slate);line-height:1.6;}
.alert{display:flex;align-items:flex-start;gap:.65rem;padding:.85rem 1rem;border-radius:10px;
  font-size:.85rem;margin-bottom:1.25rem;}
.alert svg{width:18px;height:18px;flex-shrink:0;margin-top:1px;}
.alert-error{background:rgba(239,68,68,0.12);border:1px solid rgba(239,68,68,0.3);color:#fca5a5;}
.form-group{margin-bottom:1.25rem;}
.form-group label{display:block;font-size:.82rem;font-weight:600;color:var(--slate-lt);margin-bottom:.5rem;
  text-transform:uppercase;letter-spacing:.04em;}
.input-wrapper{position:relative;}
.input-icon{position:absolute;left:.85rem;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--slate);}
.input-wrapper input{width:100%;padding:.85rem 1rem .85rem 2.75rem;
  background:rgba(15,23,42,0.6);border:1px solid var(--navy-lt);border-radius:10px;
  color:var(--white);font-size:1rem;font-family:'Inter',sans-serif;transition:border-color .2s,box-shadow .2s;}
.input-wrapper input:focus{outline:none;border-color:var(--orange);box-shadow:0 0 0 3px rgba(255,107,0,0.15);}
.input-wrapper input::placeholder{color:var(--slate);}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.75rem 1.5rem;border:none;border-radius:10px;font-size:.9rem;font-weight:600;
  font-family:'Inter',sans-serif;cursor:pointer;transition:all .2s;text-decoration:none;}
.btn svg{width:18px;height:18px;}
.btn-primary{background:var(--orange);color:var(--white);}
.btn-primary:hover:not(:disabled){background:#e55d00;transform:translateY(-1px);box-shadow:0 4px 20px rgba(255,107,0,0.4);}
.btn-primary:disabled{opacity:.5;cursor:not-allowed;transform:none;}
.btn-secondary{background:var(--navy-md);color:var(--slate-lt);border:1px solid var(--navy-lt);}
.btn-secondary:hover{background:var(--navy-lt);}
.btn-ghost{background:transparent;color:var(--slate);border:1px solid var(--navy-lt);}
.btn-ghost:hover:not(:disabled){background:var(--navy-md);color:var(--slate-lt);}
.btn-ghost:disabled{opacity:.35;cursor:not-allowed;}
.btn-success{background:#16a34a;color:#fff;}
.btn-success:hover:not(:disabled){background:#15803d;transform:translateY(-1px);}
.btn-full{width:100%;}
.btn-lg{padding:.9rem 2rem;font-size:1rem;}
.login-footer{margin-top:1.75rem;text-align:center;font-size:.78rem;color:var(--slate);}
.login-footer strong{color:var(--slate-lt);}
.disclaimer{margin-top:.3rem;font-size:.72rem;color:var(--navy-lt);}

/* ── TOP BAR ── */
.top-bar{display:flex;align-items:center;justify-content:space-between;
  padding:.85rem 1.5rem;background:rgba(15,23,42,0.95);backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,107,0,0.15);position:sticky;top:0;z-index:100;}
.brand-inline{display:flex;align-items:center;gap:.6rem;}
.logo-icon-sm{width:36px;height:36px;flex-shrink:0;}
.logo-icon-sm svg{width:100%;height:100%;}
.brand-main-sm{font-size:1.15rem;font-weight:800;color:var(--white);}
.user-badge{display:flex;align-items:center;gap:.5rem;font-size:.82rem;color:var(--slate);
  background:var(--navy-md);border:1px solid var(--navy-lt);border-radius:8px;padding:.4rem .85rem;}
.user-badge svg{width:16px;height:16px;}

/* ── CONSENT PAGE ── */
.consent-page{background:var(--navy);}
.page-container{min-height:100vh;display:flex;flex-direction:column;}
.consent-main{flex:1;display:flex;align-items:flex-start;justify-content:center;padding:2rem 1rem;}
.step-card{background:rgba(30,41,59,0.7);border:1px solid rgba(255,107,0,0.15);border-radius:var(--radius);
  padding:2rem;width:100%;max-width:820px;display:none;animation:fadeIn .35s ease;}
.step-card.active{display:block;}
@keyframes fadeIn{from{opacity:0;transform:translateY(12px);}to{opacity:1;transform:translateY(0);}}
.step-indicator{display:flex;align-items:center;gap:.75rem;margin-bottom:1.5rem;}
.step-num{width:34px;height:34px;border-radius:50%;background:var(--orange);color:#fff;
  font-weight:700;font-size:.9rem;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.step-label{font-size:.85rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--orange);}
.consent-body h2{font-size:1.3rem;color:var(--white);margin-bottom:.35rem;}
.consent-subtitle{font-size:.85rem;color:var(--slate);margin-bottom:1.25rem;}
.legal-scroll-box{height:340px;overflow-y:auto;background:rgba(15,23,42,0.6);
  border:1px solid var(--navy-lt);border-radius:10px;padding:1.25rem;font-size:.85rem;
  line-height:1.75;color:var(--slate-lt);scrollbar-width:thin;scrollbar-color:var(--orange) var(--navy-md);}
.legal-scroll-box h3{color:var(--orange);margin:1rem 0 .4rem;font-size:.9rem;}
.legal-scroll-box p,.legal-scroll-box li{margin-bottom:.5rem;}
.legal-scroll-box ul{padding-left:1.2rem;}
.consent-actions{margin-top:1rem;}
.checkbox-wrapper{display:flex;align-items:flex-start;gap:.75rem;cursor:pointer;padding:.85rem;
  background:rgba(15,23,42,0.4);border:1px solid var(--navy-lt);border-radius:10px;}
.checkbox-wrapper input[type=checkbox]{width:18px;height:18px;accent-color:var(--orange);flex-shrink:0;margin-top:2px;}
.check-label{font-size:.82rem;color:var(--slate-lt);line-height:1.6;}
.scroll-hint{font-size:.78rem;color:var(--slate);text-align:center;margin-top:.6rem;}
.step-footer{display:flex;justify-content:flex-end;margin-top:1.5rem;}
.camera-footer{gap:1rem;}

/* Camera */
.camera-body h2{font-size:1.2rem;color:var(--white);margin-bottom:.4rem;}
.camera-body p{font-size:.875rem;color:var(--slate);line-height:1.6;margin-bottom:1.25rem;}
.camera-container{position:relative;width:100%;max-width:480px;margin:0 auto 1.25rem;
  border-radius:12px;overflow:hidden;background:var(--navy);aspect-ratio:4/3;
  border:2px solid var(--navy-lt);}
.camera-container video{width:100%;height:100%;object-fit:cover;}
.camera-overlay{position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:.75rem;background:rgba(15,23,42,0.85);}
.camera-icon-wrap svg{width:56px;height:56px;color:var(--slate);}
.camera-overlay p{font-size:.85rem;color:var(--slate);}
.camera-active-indicator{position:absolute;top:10px;right:10px;display:flex;align-items:center;
  gap:.4rem;background:rgba(15,23,42,0.8);padding:.3rem .7rem;border-radius:20px;font-size:.75rem;}
.dot-pulse{width:8px;height:8px;border-radius:50%;background:var(--green);
  animation:pulse 1.4s infinite;}
@keyframes pulse{0%,100%{opacity:1;}50%{opacity:.4;}}
.status-item{display:flex;align-items:center;gap:.5rem;font-size:.85rem;padding:.6rem .85rem;
  border-radius:8px;width:fit-content;}
.status-item svg{width:16px;height:16px;}
.status-pending{background:rgba(239,68,68,0.1);color:#fca5a5;}
.status-ok{background:rgba(34,197,94,0.1);color:#86efac;}

/* ── EXAM PAGE ── */
.exam-page{display:flex;flex-direction:column;min-height:100vh;user-select:none;}
.exam-header{display:flex;align-items:center;justify-content:space-between;
  padding:.6rem 1.25rem;background:rgba(15,23,42,0.97);border-bottom:1px solid rgba(255,107,0,0.2);
  position:sticky;top:0;z-index:100;gap:1rem;}
.exam-info-bar{display:flex;align-items:center;gap:.5rem;font-size:.82rem;color:var(--slate);}
.exam-name{font-weight:600;color:var(--slate-lt);}
.exam-sede{color:var(--slate);}
.exam-controls{display:flex;align-items:center;gap:1rem;}
.timer-box{display:flex;align-items:center;gap:.4rem;background:var(--navy-md);
  border:1px solid var(--navy-lt);border-radius:8px;padding:.4rem .85rem;font-size:.9rem;font-weight:700;}
.timer-box svg{width:16px;height:16px;color:var(--slate);}
.timer-warning{border-color:var(--red)!important;color:var(--red)!important;animation:blink 1s infinite;}
@keyframes blink{0%,100%{opacity:1;}50%{opacity:.5;}}
.cam-indicator-sm{display:flex;align-items:center;gap:.35rem;font-size:.75rem;color:var(--slate);}
.dot-pulse-sm{width:6px;height:6px;border-radius:50%;background:var(--green);animation:pulse 1.4s infinite;}

/* Progress */
.progress-bar-container{height:5px;background:var(--navy-md);position:relative;}
.progress-bar-inner{height:100%;background:var(--orange);transition:width .4s ease;}
.progress-labels{display:flex;justify-content:space-between;
  padding:.3rem 1.25rem;font-size:.75rem;color:var(--slate);background:rgba(15,23,42,0.6);}

/* Exam split */
.exam-main{display:grid;grid-template-columns:1fr 1fr;flex:1;gap:0;min-height:calc(100vh - 100px);}
.context-panel{background:rgba(15,23,42,0.7);border-right:1px solid var(--navy-lt);
  display:flex;flex-direction:column;overflow:hidden;}
.context-header{display:flex;align-items:center;gap:.5rem;padding:.85rem 1.25rem;
  background:rgba(30,41,59,0.5);border-bottom:1px solid var(--navy-lt);}
.context-header svg{width:18px;height:18px;color:var(--orange);}
.context-header h3{font-size:.85rem;font-weight:600;color:var(--slate-lt);text-transform:uppercase;letter-spacing:.05em;}
.context-body{flex:1;overflow-y:auto;padding:1.5rem;font-size:.9rem;line-height:1.85;color:var(--slate-lt);}
.context-placeholder{color:var(--slate);font-style:italic;font-size:.875rem;}
.unselectable{user-select:none;-webkit-user-select:none;}

/* Question panel */
.question-panel{padding:1.5rem;display:flex;align-items:flex-start;justify-content:center;overflow-y:auto;}
.question-card{width:100%;max-width:580px;}
.question-module-tag{display:inline-block;background:var(--orange-lt);color:var(--orange);
  font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;
  padding:.25rem .7rem;border-radius:20px;margin-bottom:.5rem;}
.question-counter{font-size:.78rem;color:var(--slate);margin-bottom:.75rem;}
.question-text{font-size:1.05rem;font-weight:600;color:var(--white);line-height:1.65;margin-bottom:1.25rem;}
.options-list{display:flex;flex-direction:column;gap:.6rem;margin-bottom:1.25rem;}
.option-item{display:flex;align-items:flex-start;gap:.85rem;padding:.85rem 1rem;
  background:rgba(30,41,59,0.6);border:1.5px solid var(--navy-lt);border-radius:10px;
  cursor:pointer;transition:all .18s;position:relative;}
.option-item:hover{border-color:rgba(255,107,0,0.4);background:rgba(255,107,0,0.06);}
.option-item.selected{border-color:var(--orange);background:var(--orange-lt);}
.option-key{width:28px;height:28px;border-radius:50%;background:var(--navy);color:var(--slate);
  font-size:.8rem;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.option-item.selected .option-key{background:var(--orange);color:#fff;}
.option-text{font-size:.875rem;line-height:1.55;color:var(--slate-lt);flex:1;}
.option-check{width:20px;height:20px;opacity:0;color:var(--orange);flex-shrink:0;}
.option-check svg{width:100%;height:100%;}
.option-item.selected .option-check{opacity:1;}
.read-timer{display:flex;align-items:center;gap:.4rem;font-size:.78rem;color:var(--slate);margin-bottom:1.25rem;}
.read-timer svg{width:14px;height:14px;}
.question-nav{display:flex;justify-content:space-between;align-items:center;}
.nav-left,.nav-right{display:flex;gap:.5rem;}

/* Module transition banner */
.module-transition-banner{grid-column:1/-1;background:linear-gradient(135deg,rgba(255,107,0,0.15),rgba(15,23,42,0.9));
  border-top:2px solid var(--orange);border-bottom:2px solid var(--orange);
  padding:1.25rem;text-align:center;animation:slideDown .4s ease;}
@keyframes slideDown{from{transform:translateY(-20px);opacity:0;}to{transform:translateY(0);opacity:1;}}
.mtb-inner .mtb-icon{font-size:2rem;margin-bottom:.5rem;}
.mtb-inner h3{color:var(--white);font-size:1rem;margin-bottom:.3rem;}
.mtb-inner p{font-size:.85rem;color:var(--slate);line-height:1.6;}

/* Anti-fraud modal */
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.8);backdrop-filter:blur(8px);
  display:flex;align-items:center;justify-content:center;z-index:9999;}
.modal-box{background:var(--navy-md);border:1px solid rgba(239,68,68,0.3);border-radius:var(--radius);
  padding:2rem;max-width:420px;width:90%;text-align:center;box-shadow:var(--shadow);}
.modal-icon{font-size:3rem;margin-bottom:1rem;}
.modal-box h3{color:#fca5a5;font-size:1.15rem;margin-bottom:.6rem;}
.modal-box p{color:var(--slate);font-size:.875rem;line-height:1.6;margin-bottom:1rem;}
.modal-meta{color:#fca5a5;font-size:.9rem;margin-bottom:1.25rem;}
.warning-modal{border-color:rgba(239,68,68,0.4);}

/* ── RESULTS PAGE ── */
.results-page{background:var(--navy);min-height:100vh;}
.results-container{max-width:1100px;margin:0 auto;padding:0 1rem 3rem;}
.results-header{display:flex;align-items:center;justify-content:space-between;
  padding:.85rem 0;border-bottom:1px solid var(--navy-lt);margin-bottom:2rem;}
.rh-brand{display:flex;align-items:center;gap:.6rem;font-size:1.15rem;font-weight:800;color:var(--white);}
.rh-meta{font-size:.82rem;color:var(--slate);display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;}
.sep{color:var(--navy-lt);}
.result-hero{display:flex;align-items:center;gap:3rem;background:rgba(30,41,59,0.6);
  border:1px solid rgba(255,107,0,0.15);border-radius:var(--radius);padding:2rem 2.5rem;
  margin-bottom:2rem;}
.hero-score-ring{flex-shrink:0;}
.ring-svg{width:160px;height:160px;}
.hero-info{flex:1;}
.hero-info h1{font-size:1.4rem;color:var(--white);margin-bottom:.3rem;}
.hero-name{font-size:1rem;font-weight:600;color:var(--slate-lt);margin-bottom:.15rem;}
.hero-sede{font-size:.85rem;color:var(--slate);margin-bottom:.85rem;}
.nivel-badge{display:inline-flex;align-items:center;gap:.4rem;font-size:.82rem;font-weight:600;
  padding:.35rem .85rem;border-radius:20px;border-width:1px;border-style:solid;margin-bottom:1rem;}
.hero-stats{display:flex;gap:2rem;flex-wrap:wrap;}
.hstat{display:flex;flex-direction:column;gap:.2rem;}
.hstat-val{font-size:1.4rem;font-weight:800;color:var(--white);}
.hstat-label{font-size:.75rem;color:var(--slate);text-transform:uppercase;letter-spacing:.04em;}
.results-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem;}
.card{background:rgba(30,41,59,0.6);border:1px solid rgba(255,255,255,0.06);border-radius:var(--radius);padding:1.75rem;}
.results-card{animation:fadeIn .4s ease;}
.card-header{margin-bottom:1.25rem;}
.card-header h2{font-size:1.05rem;color:var(--white);margin-bottom:.2rem;}
.card-header p{font-size:.8rem;color:var(--slate);}
.radar-card,.action-card,.analysis-card{grid-column:1/-1;}
.radar-wrapper{display:flex;justify-content:center;}
.modules-list{display:flex;flex-direction:column;gap:.85rem;}
.module-row{display:grid;grid-template-columns:180px 1fr 80px;align-items:center;gap:.75rem;}
.module-row-info{display:flex;align-items:center;gap:.5rem;}
.module-row-info small{display:block;font-size:.73rem;color:var(--slate);}
.module-row-info strong{font-size:.875rem;color:var(--slate-lt);}
.module-row-info .module-row-icon{font-size:1rem;}
.bar-track{height:8px;background:var(--navy-md);border-radius:4px;overflow:hidden;flex:1;}
.bar-fill{height:100%;border-radius:4px;transition:width .6s ease;}
.module-row-bar{display:flex;align-items:center;gap:.6rem;}
.bar-label{font-weight:700;font-size:.9rem;min-width:38px;text-align:right;}
.module-row-detail small{font-size:.75rem;color:var(--slate);}
.action-block{background:rgba(15,23,42,0.5);border-radius:10px;padding:1rem 1.25rem;margin-bottom:.85rem;}
.action-block-header{display:flex;align-items:center;gap:.75rem;margin-bottom:.65rem;}
.action-module-tag{background:var(--orange-lt);color:var(--orange);font-size:.75rem;
  font-weight:700;padding:.2rem .65rem;border-radius:20px;}
.action-label{font-size:.78rem;color:var(--slate);}
.action-list{list-style:none;display:flex;flex-direction:column;gap:.4rem;}
.action-list li{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:var(--slate-lt);}
.action-list li svg{width:14px;height:14px;flex-shrink:0;}
.analysis-section{margin-bottom:1rem;padding:.85rem;background:rgba(15,23,42,0.4);border-radius:10px;}
.analysis-section h4{font-size:.85rem;font-weight:700;color:var(--orange);margin-bottom:.4rem;text-transform:uppercase;letter-spacing:.04em;}
.analysis-section p{font-size:.875rem;color:var(--slate-lt);line-height:1.7;}
.highlight-section{border:1px solid rgba(255,107,0,0.2);background:rgba(255,107,0,0.05);}
.pdf-card{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;}
.pdf-promo{display:flex;align-items:center;gap:1rem;}
.pdf-icon{font-size:2.5rem;}
.pdf-promo h3{color:var(--white);font-size:1rem;margin-bottom:.25rem;}
.pdf-promo p{font-size:.82rem;color:var(--slate);max-width:420px;line-height:1.55;}
.results-footer{text-align:center;font-size:.78rem;color:var(--slate);margin-top:2rem;line-height:1.8;}
.results-footer strong{color:var(--slate-lt);}

@media(max-width:768px){
  .exam-main{grid-template-columns:1fr;grid-template-rows:auto 1fr;}
  .context-panel{max-height:220px;}
  .results-grid{grid-template-columns:1fr;}
  .radar-card,.action-card,.analysis-card,.pdf-card{grid-column:1/-1;}
  .result-hero{flex-direction:column;text-align:center;}
  .module-row{grid-template-columns:140px 1fr 60px;}
}
