
.aid-page{padding-bottom:60px}
.aid-breadcrumb{padding:22px 0 18px;display:flex;gap:9px;color:#66756f;font-size:.86rem}
.aid-breadcrumb a{color:#176c57;text-decoration:none}
.aid-heading{display:flex;gap:16px;align-items:center;padding:8px 0 24px}
.aid-icon{width:64px;height:64px;display:grid;place-items:center;border-radius:16px;background:#eef4fb;font-size:2rem;flex:0 0 auto}
.aid-heading h1{margin:0;font-size:clamp(2rem,5vw,3rem)}
.aid-heading p{margin:7px 0 0;color:#66756f;line-height:1.55}
.aid-workspace{display:grid;grid-template-columns:minmax(0,1.9fr) 300px;border:1px solid #dde4e1;border-radius:20px;background:#fff;overflow:hidden}
.aid-main{padding:20px;border-right:1px solid #dde4e1}
.aid-card{padding:18px;border:1px solid #dde4e1;border-radius:14px;margin-bottom:16px;background:#fff}
.aid-card h2{margin:0 0 5px;font-size:1.05rem}
.aid-card-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:12px}
.aid-card-head p{margin:3px 0 0;color:#6b7974;font-size:.76rem}
#textInput{width:100%;min-height:320px;resize:vertical;border:1px solid #cfd9d5;border-radius:12px;padding:15px;font:inherit;line-height:1.65;background:#fbfdfc;outline:none}
#textInput:focus{border-color:#176c57;box-shadow:0 0 0 3px rgba(23,108,87,.08)}
.text-stats{display:flex;gap:16px;flex-wrap:wrap;padding:9px 2px;color:#6b7974;font-size:.72rem}
.text-stats strong{color:#20312b}
.aid-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.aid-options label{display:grid;gap:5px;font-size:.7rem;font-weight:800}
.aid-options select{padding:11px;border:1px solid #d5dedb;border-radius:9px;background:#fff}
.notice{margin-top:12px;padding:10px 12px;background:#fff8df;border:1px solid #eedc9c;border-radius:9px;color:#6d5a1c;font-size:.71rem;line-height:1.5}
.aid-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.aid-actions button,.ghost-btn{border:0;border-radius:9px;padding:10px 14px;background:#176c57;color:#fff;font-weight:800;cursor:pointer}
.secondary-btn,.ghost-btn{border:1px solid #d5dedb!important;background:#fff!important;color:#334!important}
.aid-actions button:disabled{opacity:.5;cursor:not-allowed}
.aid-sidebar{padding:22px}
.aid-sidebar>p{color:#66756f;font-size:.75rem;line-height:1.55}
.privacy-box,.model-box{display:flex;gap:10px;align-items:center;padding:12px;border-radius:10px;margin:14px 0}
.privacy-box{background:#edf8f3}.model-box{background:#eef4fb}
.privacy-box>span,.model-box>span{font-size:1.3rem}
.privacy-box strong,.privacy-box small,.model-box strong,.model-box small{display:block}
.privacy-box small,.model-box small{margin-top:2px;color:#66756f;font-size:.68rem;line-height:1.35}
.sidebar-note{margin-top:18px;padding-top:16px;border-top:1px solid #dde4e1}
.sidebar-note p{color:#66756f;font-size:.72rem;line-height:1.55}
.message{margin-top:14px;padding:10px 12px;border-radius:8px;font-size:.72rem}
.message.error{background:#fff1f1;color:#963939}.message.success{background:#edf8f3;color:#176c57}
.loader-row{display:flex;gap:14px;align-items:center}
.loader-row p{margin:4px 0 0;color:#66756f;font-size:.72rem;line-height:1.5}
.spinner{width:32px;height:32px;border:4px solid #dce7e3;border-top-color:#176c57;border-radius:50%;animation:spin .85s linear infinite;flex:0 0 auto}
@keyframes spin{to{transform:rotate(360deg)}}
.progress-line{height:9px;border-radius:999px;background:#e4ece9;overflow:hidden;margin-top:14px}
#progressBar{height:100%;width:0;background:#176c57;transition:width .2s}
#progressLabel{display:block;margin-top:7px;color:#66756f}
.score-layout{display:grid;grid-template-columns:180px 1fr;gap:22px;align-items:center;margin-top:14px}
.gauge{--score:0deg;width:168px;height:168px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#176c57 var(--score),#e6eeeb 0)}
.gauge-inner{width:126px;height:126px;border-radius:50%;background:#fff;display:grid;place-content:center;text-align:center}
.gauge-inner strong{font-size:2rem;line-height:1}.gauge-inner span{margin-top:6px;color:#66756f;font-size:.68rem}
.result-badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eef4fb;font-size:.68rem;font-weight:800}
.score-copy h3{margin:9px 0 5px;font-size:1.25rem}
.score-copy p{margin:0;color:#66756f;line-height:1.6}
.score-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:18px}
.score-grid article{padding:12px;border:1px solid #dde4e1;border-radius:9px;background:#fafcfb}
.score-grid span,.score-grid strong{display:block}.score-grid span{font-size:.65rem;color:#66756f}.score-grid strong{margin-top:5px;font-size:.92rem}
.interpretation{margin-top:16px;padding:14px;border-radius:10px;background:#f7faf9}
.interpretation h3{font-size:.85rem;margin:0 0 5px}.interpretation p{margin:0;color:#66756f;font-size:.74rem;line-height:1.55}
.segments{display:grid;gap:10px}
.segment{padding:13px;border:1px solid #dde4e1;border-radius:10px}
.segment-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:7px}
.segment-score{font-weight:900;font-size:.77rem}.segment p{margin:0;color:#44534e;font-size:.76rem;line-height:1.55}
.segment-bar{height:6px;border-radius:999px;background:#e6eeeb;overflow:hidden;margin-top:9px}.segment-bar div{height:100%;background:#176c57}
.yr-info-standard,.yr-related-tools{margin-top:34px}
.yr-kicker{font-size:.7rem;font-weight:900;letter-spacing:.12em;color:#176c57;margin-bottom:7px}
.yr-info-standard>h2,.yr-related-head h2{margin:0 0 10px}
.yr-info-standard>p{color:#66756f;line-height:1.7}
.yr-how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:22px 0}
.yr-how-grid article,.yr-related-grid article{border:1px solid #dde4e1;border-radius:14px;padding:16px;background:#fff}
.yr-how-grid span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#edf8f3;color:#176c57;font-weight:900}
.yr-how-grid h3,.yr-related-grid h3{margin:10px 0 6px}.yr-how-grid p,.yr-related-grid p{margin:0;color:#66756f;line-height:1.55;font-size:.8rem}
.yr-benefits-faq{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:24px}
.yr-benefits-faq h2{font-size:1.15rem}.yr-benefits-faq ul{padding-left:18px;color:#53625d;line-height:1.65}
.yr-benefits-faq details{border-top:1px solid #dde4e1;padding:10px 0}.yr-benefits-faq summary{cursor:pointer;font-weight:800}.yr-benefits-faq details p{color:#66756f;line-height:1.55}
.yr-related-terms{padding:14px 0;border-top:1px solid #dde4e1;margin-top:22px!important}
.yr-related-head{display:flex;justify-content:space-between;gap:14px;align-items:center}.yr-related-head a,.yr-related-grid a{color:#176c57;text-decoration:none;font-weight:800}
.yr-related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:12px}
@media(max-width:900px){
  .aid-workspace{grid-template-columns:1fr}.aid-main{border-right:0}
  .score-grid{grid-template-columns:1fr 1fr}.yr-benefits-faq{grid-template-columns:1fr}
}
@media(max-width:650px){
  .aid-options,.yr-how-grid,.yr-related-grid{grid-template-columns:1fr}
  .score-layout{grid-template-columns:1fr}.gauge{margin:auto}
  .score-grid{grid-template-columns:1fr 1fr}
  .aid-card-head{flex-direction:column}
  .aid-actions{flex-direction:column}.aid-actions button{width:100%}
}


/* ===== V2: entrada por texto o archivo ===== */
.input-tabs{
  display:flex;
  gap:8px;
  padding:5px;
  background:#f3f7f5;
  border:1px solid #dde4e1;
  border-radius:11px;
  margin-bottom:12px;
}
.input-tab{
  flex:1;
  border:0;
  border-radius:8px;
  padding:10px 12px;
  background:transparent;
  color:#56655f;
  font-weight:800;
  cursor:pointer;
}
.input-tab.active{
  background:#fff;
  color:#176c57;
  box-shadow:0 1px 4px rgba(30,60,50,.08);
}
.input-panel[hidden]{display:none!important}

.file-drop{
  min-height:220px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:2px dashed #b8cec6;
  border-radius:14px;
  background:#f8fbfa;
  padding:24px;
  text-align:center;
  cursor:pointer;
  transition:.15s;
}
.file-drop.drag{
  border-color:#176c57;
  background:#edf8f3;
}
.file-drop input{display:none}
.file-drop-icon{font-size:2.4rem}
.file-drop small{color:#66756f}
.file-drop #fileName{
  margin-top:5px;
  font-size:.75rem;
  color:#33453f;
  word-break:break-word;
}

.file-info{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  margin-top:12px;
}
.file-info>div{
  padding:10px;
  border:1px solid #dde4e1;
  border-radius:9px;
  background:#fafcfb;
}
.file-info span,.file-info strong{display:block}
.file-info span{font-size:.62rem;color:#66756f}
.file-info strong{margin-top:4px;font-size:.78rem;word-break:break-word}

.success-notice{
  background:#edf8f3!important;
  border-color:#cbe6dc!important;
  color:#176c57!important;
}

.analysis-options{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}
.check-option{
  display:flex;
  align-items:flex-start;
  gap:9px;
  padding:11px;
  border:1px solid #dde4e1;
  border-radius:10px;
  background:#fafcfb;
  cursor:pointer;
}
.check-option input{
  margin-top:3px;
  accent-color:#176c57;
}
.check-option span{display:block}
.check-option strong{display:block;font-size:.74rem}
.check-option small{display:block;margin-top:3px;color:#66756f;font-size:.65rem;line-height:1.4}

@media(max-width:720px){
  .analysis-options,.file-info{grid-template-columns:1fr}
}
