@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --font-main: 'Inter', Arial, Helvetica, sans-serif;
}

html,
body,
* {
  font-family: var(--font-main) !important;
}

button,
input,
select,
textarea,
table,
th,
td,
label,
a {
  font-family: var(--font-main) !important;
}
:root{
  --bg:#071323;
  --bg-2:#0a1b2d;
  --panel:#0d1d31cc;
  --panel-2:#0c1a2beb;
  --border:#2a4868;
  --border-soft:#1c3855;
  --text:#f5f8ff;
  --muted:#9bb3d6;
  --blue:#1783e9;
  --cyan:#14c7bf;
  --green:#2be64f;
  --yellow:#ffc72e;
  --orange:#ff9f1a;
  --danger:#ff6c70;
  --shadow: 0 22px 60px rgba(0,0,0,.32);
  --radius:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 25% 0%, rgba(36,129,216,.20), transparent 35%),
    radial-gradient(circle at 90% 18%, rgba(20,199,191,.16), transparent 30%),
    linear-gradient(145deg,#06101d 0%,#0a1b2e 52%,#081424 100%);
  color:var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size:14px;
}
button,input,textarea,select{font-family:inherit;color:inherit}
.app-shell{min-height:100vh}
.topbar{
  min-height:104px;
  display:grid;
  grid-template-columns:auto minmax(320px, 1fr) auto;
  align-items:center;
  gap:18px;
  padding:14px 24px;
  background:linear-gradient(180deg,rgba(6,14,27,.98),rgba(8,22,37,.96));
  border-bottom:1px solid rgba(62,183,213,.28);
  box-shadow:0 18px 38px rgba(0,0,0,.35);
  position:sticky;
  top:0;
  z-index:20;
}
.brand-title{
  display:flex;
  align-items:flex-end;
  gap:16px;
  font-weight:900;
  line-height:.92;
  letter-spacing:-2.5px;
  font-size:48px;
  text-shadow:0 5px 15px rgba(0,0,0,.55);
  white-space:nowrap;
}
.brand-title strong,.side-title span,.hero-card h1 span{color:var(--yellow)}
.brand-title small{
  font-size:27px;
  letter-spacing:-1px;
  color:#d9e8ff;
  line-height:1;
  margin-bottom:5px;
}
.topbar-center{display:flex;justify-content:center;align-items:center}
.top-actions{display:flex;align-items:center;gap:16px;justify-self:end}
.free-pill{
  border:1px solid rgba(43,230,79,.55);
  color:#dfffe3;
  background:linear-gradient(90deg, rgba(35,215,86,.20) 0%, rgba(66,255,125,.55) 50%, rgba(35,215,86,.20) 100%);
  background-size:200% 100%;
  box-shadow:0 0 14px rgba(43,230,79,.20), inset 0 0 16px rgba(43,230,79,.12);
  border-radius:999px;
  padding:11px 28px;
  font-weight:800;
  font-size:16px;
  text-shadow:0 0 7px rgba(105,255,128,.45);
  white-space:nowrap;
  animation:pulseNotice 3.2s ease-in-out infinite;
}
@keyframes pulseNotice{
  0%{background-position:0% 50%; color:#dfffe3; box-shadow:0 0 10px rgba(43,230,79,.16), inset 0 0 10px rgba(43,230,79,.08); opacity:.9}
  50%{background-position:100% 50%; color:#7eff8d; box-shadow:0 0 26px rgba(43,230,79,.38), inset 0 0 18px rgba(43,230,79,.16); opacity:1}
  100%{background-position:0% 50%; color:#dfffe3; box-shadow:0 0 10px rgba(43,230,79,.16), inset 0 0 10px rgba(43,230,79,.08); opacity:.9}
}
.app-logo{
  object-fit:cover;
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 26px rgba(0,0,0,.45);
}
.top-logo{width:76px;height:76px;padding:5px}
.layout{
  display:grid;
  grid-template-columns:240px minmax(0,1fr);
  gap:18px;
  padding:18px 20px 40px;
}
.sidebar{
  background:linear-gradient(180deg,rgba(10,25,43,.98),rgba(8,18,31,.95));
  border:1px solid var(--border-soft);
  border-radius:22px;
  padding:18px;
  height:max-content;
  position:sticky;
  top:124px;
  box-shadow:var(--shadow);
}
.side-title{font-size:22px;font-weight:900;margin-bottom:14px}
.nav-item{
  display:block;
  color:#dcecff;
  text-decoration:none;
  padding:10px 12px;
  border-radius:999px;
  margin:6px 0;
  transition:.2s ease;
}
.nav-item:hover,.nav-item.active{background:linear-gradient(90deg,rgba(28,127,167,.45),rgba(20,199,191,.30));color:#fff}
.content{display:flex;flex-direction:column;gap:16px;min-width:0}
.glass-card,.panel-card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:linear-gradient(135deg,rgba(17,42,72,.86),rgba(9,30,44,.70));
  box-shadow:var(--shadow);
}
.hero-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:148px;
  padding:24px 28px;
}
.hero-left{display:flex;align-items:center;gap:18px;min-width:0}
.hero-logo{width:70px;height:70px;padding:4px;border-radius:16px;flex:0 0 auto}
.eyebrow{font-size:13px;letter-spacing:2px;color:#5bb9ff;font-weight:900;margin-bottom:7px}
.hero-card h1{font-size:28px;margin:0 0 10px;font-weight:900}.hero-card h1 em{font-style:normal;color:#b9d3f8;font-weight:800}.hero-card p{margin:0;color:#d4e4ff;line-height:1.55;max-width:820px}
.status-badge{
  min-width:142px;
  min-height:76px;
  border-radius:22px;
  display:grid;
  place-items:center;
  padding:12px 16px;
  background:linear-gradient(135deg,#0e78e9,#16bca8);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 12px 22px rgba(0,0,0,.25);
  text-align:center;
}
.status-badge strong{font-size:24px}.status-badge small{font-size:13px}.status-badge.done{background:linear-gradient(135deg,#13a854,#12b7b3)}
.panel-card{padding:18px 18px 14px;background:linear-gradient(135deg,rgba(13,29,49,.95),rgba(12,26,43,.92))}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.section-head.compact{margin:0 0 12px}.section-head h2,.section-head h3{margin:0;font-weight:900}.section-head h2{font-size:22px}.section-head h3{font-size:18px}.button-row{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.btn{
  border:1px solid #294966;
  border-radius:14px;
  background:#112842;
  color:#fff;
  padding:9px 14px;
  font-weight:800;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 8px 16px rgba(0,0,0,.2);
  transition:.18s ease;
}
.btn:hover{transform:translateY(-1px);filter:brightness(1.08)}.btn:disabled{opacity:.45;cursor:not-allowed;transform:none}.btn-dark{background:linear-gradient(180deg,#152d4d,#0e2138)}.btn-accent{border-color:#18b6c1;background:linear-gradient(135deg,#1686ec,#16c1af)}.btn-danger{border-color:#704051;background:linear-gradient(135deg,#4c2135,#2b1d2b);color:#ffb2b6}.file-label{display:inline-flex;align-items:center}
.grid{display:grid;gap:12px}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:7px}.field span{font-weight:900}.field small{color:#b6c8e7;font-size:11px;line-height:1.35}input,select,textarea{
  width:100%;
  border:1px solid #2d4a6b;
  background:#071829;
  color:#fff;
  border-radius:14px;
  padding:12px 14px;
  outline:none;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.01);
}
input:focus,select:focus,textarea:focus{border-color:#2aa6ff;box-shadow:0 0 0 3px rgba(42,166,255,.14)}
textarea{min-height:92px;resize:vertical;line-height:1.35}.column-card{margin-top:16px;border:1px solid #27445f;border-radius:18px;padding:12px;background:rgba(5,19,34,.42)}.column-grid{display:grid;grid-template-columns:1fr 2.3fr 1.15fr 1.15fr;gap:10px}.area-field textarea{min-height:110px;font-family:Consolas,monospace;color:#a9c8f7}
.table-wrap{overflow:auto;margin-top:14px;border:1px solid var(--border-soft);border-radius:16px}table{border-collapse:collapse;width:100%;min-width:1180px}th,td{border-bottom:1px solid #203955;border-right:1px solid #203955;padding:10px 12px;text-align:left;vertical-align:middle}th{background:linear-gradient(180deg,#173052,#0d223d);font-size:13px;color:#f0f7ff;white-space:nowrap}td{background:#071929d4}td input,td select,td textarea{border-radius:10px;padding:8px 10px;font-size:13px}td textarea{min-height:48px}.crit-pill{display:inline-flex;justify-content:center;min-width:72px;padding:7px 10px;border-radius:999px;font-weight:900;font-size:12px}.crit-critica{background:rgba(255,71,89,.25);color:#ff9da6}.crit-alta{background:rgba(255,159,26,.22);color:#ffd083}.crit-media{background:rgba(42,166,255,.20);color:#9ad0ff}.crit-baja{background:rgba(43,230,79,.18);color:#8bff9b}.actions{white-space:nowrap}.icon-btn{width:36px;height:34px;border-radius:10px;border:1px solid #2d4b70;margin:2px;cursor:pointer;color:white;font-weight:900}.icon-btn.edit{background:#103b65}.icon-btn.delete{background:#4a1f32;border-color:#71445a;color:#ffb3b3}.table-footer{display:flex;justify-content:space-between;align-items:center;margin-top:12px;color:var(--muted)}.pager{display:flex;gap:8px;align-items:center}.pager span{display:inline-grid;place-items:center;width:38px;height:36px;border-radius:9px;background:#0f74df;font-weight:900;color:white}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.kpi{border:1px solid var(--border-soft);border-radius:18px;padding:16px;background:linear-gradient(135deg,rgba(17,45,77,.75),rgba(8,28,47,.75))}.kpi span{display:block;color:#aac1e1;margin-bottom:8px}.kpi strong{font-size:28px}.helper-note{color:#cfdef5;line-height:1.55;margin:14px 0 0}.insight-box,.summary-box{margin-top:14px;border:1px solid #274a69;border-radius:16px;background:#07192a;padding:14px;color:#d6e7ff;line-height:1.55}.summary-box{min-height:100px;white-space:pre-line}.matrix{position:relative;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:10px;min-height:360px;padding:18px 18px 34px 50px}.quadrant{border:1px solid #315272;border-radius:18px;padding:20px;background:rgba(9,26,45,.85);position:relative}.quadrant strong{display:block;font-size:19px;margin-bottom:8px}.quadrant small{color:#c2d7f4}.q1{background:linear-gradient(135deg,rgba(135,37,53,.38),rgba(14,39,62,.85))}.q2{background:linear-gradient(135deg,rgba(255,159,26,.19),rgba(14,39,62,.85))}.q3{background:linear-gradient(135deg,rgba(21,112,189,.22),rgba(14,39,62,.85))}.q4{background:linear-gradient(135deg,rgba(42,166,255,.10),rgba(14,39,62,.85))}.axis-y{position:absolute;left:8px;top:44%;writing-mode:vertical-rl;transform:rotate(180deg);color:#8fb7dd;font-weight:900}.axis-x{position:absolute;bottom:6px;left:52%;color:#8fb7dd;font-weight:900}canvas{display:block;width:100%;height:310px;border:1px solid #274a69;border-radius:18px;background:linear-gradient(180deg,#071929,#091e33)}
@media(max-width:1100px){.layout{grid-template-columns:1fr}.sidebar{position:relative;top:auto}.topbar{min-height:auto;grid-template-columns:1fr;align-items:flex-start;gap:14px}.brand-title{font-size:36px}.brand-title small{font-size:20px}.topbar-center{justify-content:flex-start;width:100%}.top-actions{flex-wrap:wrap;justify-content:flex-end;justify-self:start}.grid-3,.column-grid,.kpi-grid{grid-template-columns:1fr}.hero-card{align-items:flex-start;gap:16px;flex-direction:column}.status-badge{align-self:flex-start}.free-pill{font-size:13px;white-space:normal;text-align:center}.top-logo{width:64px;height:64px}}
@media print{.topbar,.sidebar,.button-row,.table-footer,.file-label,.icon-btn{display:none!important}.layout{display:block;padding:0}.panel-card,.glass-card{box-shadow:none;border:1px solid #888;background:white;color:#111}.app-logo{display:none}body{background:white;color:#111}input,select,textarea{border:none;color:#111;background:white}.summary-box,.insight-box{color:#111;background:white}}

/* Ajustes Bad Actors-R v2: el análisis parte de un conjunto de equipos, no de un TAG único */
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.scope-note{
  border:1px solid rgba(20,199,191,.35);
  background:linear-gradient(135deg,rgba(20,199,191,.12),rgba(23,131,233,.08));
  color:#d9ebff;
  border-radius:16px;
  padding:12px 14px;
  margin:2px 0 14px;
  line-height:1.45;
}
.scope-note strong{color:#ffffff}
.scope-fields{margin-bottom:6px}
.badactors-columns{grid-template-columns:.7fr 1fr 1.45fr 2.1fr .85fr .95fr}
.badactors-columns .xwide textarea{min-height:110px}
.badactors-columns .small-col textarea{min-height:110px}
.center{text-align:center}.center input{width:18px;height:18px}
#eventsTable{min-width:1680px}
#eventsTable th:nth-child(5),#eventsTable td:nth-child(5){min-width:260px}
#eventsTable th:nth-child(10),#eventsTable td:nth-child(10){min-width:230px}
@media(max-width:1300px){.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.badactors-columns{grid-template-columns:1fr 1fr}.brand-title{font-size:40px}.brand-title small{font-size:22px}}
@media(max-width:760px){.grid-4,.badactors-columns{grid-template-columns:1fr}}

/* Ajustes Bad Actors-R v3 */
.brand-title .brand-name{
  display:inline-flex;
  align-items:flex-end;
  gap:0;
  white-space:nowrap;
}
.brand-title .brand-name strong{
  margin-left:0;
  padding-left:0;
}
.brand-title{gap:18px}
.badactors-columns{
  grid-template-columns:.55fr 1.05fr 1fr 1.15fr 1.45fr .85fr 2.1fr .78fr .9fr;
  align-items:stretch;
}
.badactors-columns textarea{min-height:112px}
.badactors-columns .tiny-col textarea,
.badactors-columns .small-col textarea,
.badactors-columns .criticality-col textarea,
.badactors-columns .date-col textarea{min-height:112px}
.criticality-select{margin-bottom:6px;min-width:92px}
.table-crit-preview{width:100%;min-width:0;text-align:center}
#eventsTable{min-width:1980px}
#eventsTable th:nth-child(4),#eventsTable td:nth-child(4){min-width:178px}
#eventsTable th:nth-child(5),#eventsTable td:nth-child(5){min-width:230px}
#eventsTable th:nth-child(7),#eventsTable td:nth-child(7){min-width:280px}
#eventsTable th:nth-child(11),#eventsTable td:nth-child(11){min-width:230px}
#eventsTable input[readonly]{
  background:#0b2239;
  color:#9fd7ff;
  cursor:not-allowed;
}
@media(max-width:1500px){.badactors-columns{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.badactors-columns{grid-template-columns:1fr}.brand-title{gap:10px}}

/* Ajustes Bad Actors-R v4 */
.matrix-point{
  position:absolute;
  z-index:5;
  transform:translate(-50%,-50%);
  min-width:96px;
  max-width:150px;
  padding:8px 10px;
  border-radius:14px;
  border:1px solid rgba(88,190,255,.55);
  background:linear-gradient(135deg,rgba(16,116,215,.94),rgba(20,199,191,.88));
  color:#fff;
  text-align:center;
  box-shadow:0 10px 20px rgba(0,0,0,.32),0 0 18px rgba(32,166,255,.24);
  pointer-events:auto;
}
.matrix-point strong{display:block;font-size:12px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.matrix-point small{display:block;margin-top:3px;font-size:10px;color:#e9f7ff}
.matrix-point.top{background:linear-gradient(135deg,#ffd84a,#f07800);border-color:rgba(255,231,111,.75);color:#061423;box-shadow:0 12px 24px rgba(0,0,0,.38),0 0 22px rgba(255,178,42,.36)}
.matrix-point.top small{color:#071929}
.matrix-empty{
  position:absolute;
  z-index:5;
  left:50%;top:50%;
  transform:translate(-50%,-50%);
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(154,195,232,.25);
  background:rgba(7,25,42,.82);
  color:#cfe2ff;
  text-align:center;
}

/* Ajustes Bad Actors-R v5: matriz ejecutiva Frecuencia × Impacto */
.priority-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:4px 0 16px;
}
.priority-pill{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:58px;
  border-radius:16px;
  padding:12px 16px;
  border:1px solid rgba(88,190,255,.35);
  background:linear-gradient(135deg,rgba(12,33,54,.92),rgba(9,24,41,.92));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 10px 18px rgba(0,0,0,.22);
}
.priority-pill strong{font-size:15px;line-height:1.15;flex:1;color:#f4f8ff}
.priority-pill b{font-size:26px;color:#fff;line-height:1}
.pill-icon{
  width:32px;height:32px;display:inline-grid;place-items:center;
  border-radius:12px;font-weight:900;font-size:18px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16);
}
.pill-immediate{border-color:rgba(255,159,26,.72);background:linear-gradient(135deg,rgba(88,55,12,.55),rgba(12,33,54,.85))}.pill-immediate .pill-icon{background:linear-gradient(135deg,#ffd84a,#f07800);color:#071929}
.pill-high{border-color:rgba(255,71,89,.62);background:linear-gradient(135deg,rgba(86,23,47,.58),rgba(12,33,54,.85))}.pill-high .pill-icon{background:linear-gradient(135deg,#ff6d7b,#a52245);color:#fff}
.pill-control{border-color:rgba(20,199,191,.62);background:linear-gradient(135deg,rgba(13,85,76,.50),rgba(12,33,54,.85))}.pill-control .pill-icon{background:linear-gradient(135deg,#28eed0,#008f96);color:#04202b}
.pill-watch{border-color:rgba(42,166,255,.72);background:linear-gradient(135deg,rgba(18,67,115,.52),rgba(12,33,54,.85))}.pill-watch .pill-icon{background:linear-gradient(135deg,#68d4ff,#0f74df);color:#071929}
.priority-matrix{
  position:relative;
  min-height:520px;
  padding:8px 18px 54px 68px;
  border:1px solid rgba(88,190,255,.18);
  border-radius:22px;
  background:linear-gradient(135deg,rgba(6,19,33,.78),rgba(10,31,51,.58));
  overflow:hidden;
}
.priority-matrix:before{
  content:"";
  position:absolute;left:68px;right:18px;top:8px;bottom:54px;
  background:
    linear-gradient(90deg,transparent calc(50% - .5px),rgba(154,195,232,.20) calc(50% - .5px),rgba(154,195,232,.20) calc(50% + .5px),transparent calc(50% + .5px)),
    linear-gradient(180deg,transparent calc(50% - .5px),rgba(154,195,232,.20) calc(50% - .5px),rgba(154,195,232,.20) calc(50% + .5px),transparent calc(50% + .5px));
  pointer-events:none;
}
.priority-grid{
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-template-rows:1fr 1fr;
  gap:12px;
  min-height:442px;
  z-index:1;
}
.priority-quadrant{
  border:1px solid rgba(154,195,232,.28);
  border-radius:18px;
  padding:18px 20px 16px;
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:0;
  background:linear-gradient(135deg,rgba(9,26,45,.88),rgba(7,20,34,.74));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.priority-quadrant.immediate-priority{border-color:rgba(255,159,26,.75);background:linear-gradient(135deg,rgba(92,59,14,.55),rgba(10,28,48,.84))}
.priority-quadrant.high-priority{border-color:rgba(255,71,89,.55);background:linear-gradient(135deg,rgba(74,21,48,.55),rgba(10,28,48,.84))}
.priority-quadrant.control-priority{border-color:rgba(20,199,191,.56);background:linear-gradient(135deg,rgba(13,76,75,.58),rgba(10,28,48,.84))}
.priority-quadrant.watch-priority{border-color:rgba(42,166,255,.55);background:linear-gradient(135deg,rgba(17,68,118,.55),rgba(10,28,48,.84))}
.quadrant-head{display:flex;align-items:center;gap:14px}
.quadrant-head strong{display:block;font-size:21px;font-weight:900;color:#fff;line-height:1.1}
.quadrant-head small{display:block;margin-top:5px;color:#c5daf7;font-size:13px;font-weight:700}
.quadrant-icon{
  width:44px;height:44px;display:inline-grid;place-items:center;flex:0 0 auto;
  border-radius:15px;font-size:24px;font-weight:900;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 8px 16px rgba(0,0,0,.24);
}
.immediate-priority .quadrant-icon{background:linear-gradient(135deg,#ffd84a,#f07800);color:#071929}
.high-priority .quadrant-icon{background:linear-gradient(135deg,#ff687a,#a72548);color:#fff}
.control-priority .quadrant-icon{background:linear-gradient(135deg,#28eed0,#008f96);color:#04202b}
.watch-priority .quadrant-icon{background:linear-gradient(135deg,#68d4ff,#0f74df);color:#071929}
.quadrant-list{display:flex;flex-direction:column;gap:8px;min-height:88px}
.priority-row{
  display:grid;
  grid-template-columns:34px minmax(140px,1fr) 92px minmax(120px,.8fr);
  align-items:center;
  gap:12px;
  border-radius:12px;
  padding:8px 10px;
  border:1px solid rgba(154,195,232,.18);
  background:rgba(8,28,47,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.priority-row .rank{
  display:inline-grid;place-items:center;width:28px;height:28px;border-radius:9px;
  font-weight:900;background:rgba(42,166,255,.22);color:#fff;
}
.priority-row strong{font-size:15px;font-weight:900;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.priority-row em{font-style:normal;font-size:14px;font-weight:900;color:#58d8ff;text-align:center;white-space:nowrap}
.priority-row small{font-size:13px;color:#b9cdec;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right}
.immediate-priority .priority-row{border-color:rgba(255,159,26,.35);background:linear-gradient(135deg,rgba(255,159,26,.24),rgba(83,49,12,.40))}.immediate-priority .priority-row .rank{background:linear-gradient(135deg,#ffd84a,#f07800);color:#071929}.immediate-priority .priority-row em{color:#ffbd41}
.high-priority .priority-row{border-color:rgba(255,71,89,.32);background:linear-gradient(135deg,rgba(255,71,89,.18),rgba(74,21,48,.35))}.high-priority .priority-row .rank{background:linear-gradient(135deg,#ff687a,#a72548)}.high-priority .priority-row em{color:#ff9da6}
.control-priority .priority-row{border-color:rgba(20,199,191,.32);background:linear-gradient(135deg,rgba(20,199,191,.18),rgba(13,76,75,.35))}.control-priority .priority-row .rank{background:linear-gradient(135deg,#28eed0,#008f96);color:#04202b}.control-priority .priority-row em{color:#31e8da}
.watch-priority .priority-row{border-color:rgba(42,166,255,.32);background:linear-gradient(135deg,rgba(42,166,255,.18),rgba(17,68,118,.35))}.watch-priority .priority-row .rank{background:linear-gradient(135deg,#68d4ff,#0f74df);color:#071929}
.priority-empty{
  display:grid;place-items:center;min-height:70px;border-radius:12px;
  border:1px dashed rgba(154,195,232,.25);color:#c5daf7;background:rgba(7,25,42,.34);
  font-size:14px;text-align:center;padding:12px;
}
.impact-axis{position:absolute;left:16px;top:14px;bottom:60px;width:48px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;color:#8fc8f4;z-index:2}
.impact-axis:before{content:"";position:absolute;left:50%;transform:translateX(-50%);top:34px;bottom:34px;width:3px;border-radius:999px;background:linear-gradient(180deg,#18d6ff,#0f74df);box-shadow:0 0 14px rgba(24,214,255,.48)}
.impact-axis strong{writing-mode:vertical-rl;transform:rotate(180deg);font-size:24px;letter-spacing:.5px;color:#b8d6f7;background:#071929;padding:10px 4px;z-index:1;position:relative;border-radius:10px}.impact-axis span{font-weight:900;color:#9fd7ff;background:#071929;padding:4px 6px;z-index:1;position:relative;border-radius:8px}
.frequency-axis{position:absolute;left:86px;right:34px;bottom:16px;display:flex;align-items:center;justify-content:space-between;color:#8fc8f4;z-index:2}
.frequency-axis:before{content:"";position:absolute;left:52px;right:52px;top:50%;height:3px;border-radius:999px;background:linear-gradient(90deg,#0f74df,#18d6ff);box-shadow:0 0 14px rgba(24,214,255,.48)}
.frequency-axis strong{font-size:24px;letter-spacing:.5px;color:#b8d6f7;background:#071929;padding:0 18px;z-index:1}.frequency-axis span{font-weight:900;color:#9fd7ff;background:#071929;padding:0 4px;z-index:1}
@media(max-width:1350px){.priority-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.priority-row{grid-template-columns:30px minmax(110px,1fr) 78px}.priority-row small{display:none}}
@media(max-width:900px){.priority-summary,.priority-grid{grid-template-columns:1fr}.priority-grid{grid-template-rows:auto}.priority-matrix{padding:8px 12px 54px}.impact-axis{display:none}.frequency-axis{left:20px;right:20px}.priority-matrix:before{display:none}.priority-row{grid-template-columns:30px minmax(100px,1fr) 78px}}

/* Ajustes Bad Actors-R v6: simetría y proporción en carga por columnas */
.column-card{
  padding:18px 20px 20px;
  border-radius:22px;
  background:linear-gradient(135deg,rgba(6,22,38,.72),rgba(8,28,47,.64));
}
.column-card .section-head.compact{
  align-items:center;
  margin-bottom:20px;
}
.column-card .section-head.compact h3{
  font-size:24px;
  letter-spacing:-.3px;
}
.column-card .section-head.compact .button-row{
  gap:12px;
}
.column-card .section-head.compact .btn{
  min-width:148px;
  justify-content:center;
  text-align:center;
}
.badactors-columns{
  display:grid;
  grid-template-columns:.62fr 1.18fr 1.05fr 1.16fr 1.58fr .95fr 2.18fr .86fr .9fr;
  gap:0 18px;
  align-items:stretch;
}
.badactors-columns .area-field{
  display:grid;
  grid-template-rows:30px 48px 1fr;
  gap:7px;
  min-width:0;
}
.badactors-columns .area-field span{
  display:flex;
  align-items:flex-end;
  min-height:30px;
  font-size:15px;
  line-height:1.1;
  white-space:nowrap;
}
.badactors-columns .area-field small{
  display:block;
  min-height:42px;
  max-height:48px;
  overflow:hidden;
  font-size:11px;
  line-height:1.35;
  color:#c2d4ee;
}
.badactors-columns textarea,
.badactors-columns .tiny-col textarea,
.badactors-columns .small-col textarea,
.badactors-columns .criticality-col textarea,
.badactors-columns .date-col textarea,
.badactors-columns .xwide textarea{
  min-height:132px;
  height:132px;
  resize:vertical;
  border-radius:14px;
  padding:12px 13px;
  background:linear-gradient(180deg,#071929,#061524);
  border-color:#385a7e;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.015);
}
.badactors-columns textarea:focus{
  border-color:#23a8ff;
  box-shadow:0 0 0 3px rgba(35,168,255,.14), inset 0 0 0 1px rgba(255,255,255,.02);
}
@media(max-width:1700px){
  .badactors-columns{
    grid-template-columns:.7fr 1.15fr 1.05fr 1.15fr 1.45fr .95fr 1.9fr .85fr .9fr;
    gap:0 14px;
  }
  .badactors-columns .area-field span{font-size:14px}
}
@media(max-width:1500px){
  .badactors-columns{
    grid-template-columns:repeat(3,minmax(0,1fr));
    row-gap:16px;
  }
  .badactors-columns .area-field{grid-template-rows:26px 38px 1fr}
}
@media(max-width:900px){
  .column-card .section-head.compact{align-items:flex-start;flex-direction:column}
  .column-card .section-head.compact .button-row{width:100%;justify-content:flex-start}
  .badactors-columns{grid-template-columns:1fr;row-gap:14px}
}


/* Ajustes Bad Actors-R v8: placeholders y eje de impacto */
.badactors-columns textarea::placeholder{color:rgba(190,210,235,.52);text-shadow:0 0 10px rgba(120,170,220,.10);opacity:1}
.badactors-columns textarea{white-space:pre-wrap}


/* Ajustes Bad Actors-R v10 */
.priority-help{
  margin-top:14px;
  display:flex;
  flex-wrap:wrap;
  gap:12px 18px;
  align-items:center;
  padding:12px 16px;
  border-radius:16px;
  border:1px solid rgba(88,190,255,.22);
  background:linear-gradient(135deg,rgba(8,28,47,.72),rgba(6,19,33,.64));
  color:#d8e9ff;
  font-size:13px;
  line-height:1.45;
}
.priority-help strong{color:#ffffff}
.priority-help b{color:#58d8ff}
@media(max-width:900px){.priority-help{flex-direction:column;align-items:flex-start}}


/* Ajustes Bad Actors-R v14: periodo de análisis simplificado */
.period-card{
  margin-top:18px;
  margin-bottom:18px;
  padding:18px 20px 20px;
  border-radius:22px;
  border:1px solid rgba(88,190,255,.20);
  background:linear-gradient(135deg,rgba(6,22,38,.72),rgba(8,28,47,.64));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.period-card .section-head.compact{align-items:center;margin-bottom:16px}
.period-card .section-head.compact h3{font-size:24px;letter-spacing:-.3px}
.period-inline{display:grid;grid-template-columns:repeat(2,minmax(180px,240px));gap:16px;align-items:end}
.period-inline-item{display:flex;flex-direction:column;gap:6px}
.period-inline-item span{font-size:12px;font-weight:900;color:#dbeaff;padding-left:2px}
.period-inline-item input{
  width:100%;
  min-height:42px;
  padding:8px 10px;
  background:linear-gradient(180deg,#071929,#061524);
  color:#f5fbff;
  border:1px solid #385a7e;
  border-radius:12px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.015);
  color-scheme:dark;
  font-weight:700;
}
.period-inline-item input:focus{
  outline:none;
  border-color:#23a8ff;
  box-shadow:0 0 0 3px rgba(35,168,255,.14), inset 0 0 0 1px rgba(255,255,255,.02);
}
.period-inline-item input::-webkit-calendar-picker-indicator{
  cursor:pointer;
  filter:none;
  opacity:1;
  background:#eef7ff;
  border:1px solid rgba(255,255,255,.86);
  border-radius:8px;
  padding:4px;
  box-shadow:0 2px 8px rgba(0,0,0,.22);
}
.period-status{
  margin-top:12px;
  padding:10px 13px;
  border-radius:14px;
  border:1px solid rgba(20,199,191,.52);
  background:rgba(7,25,42,.62);
  color:#8fffdc;
  font-size:13px;
  font-weight:700;
  box-shadow:0 0 18px rgba(20,199,191,.12);
}
.period-status.active{color:#8fffdc;border-color:rgba(20,199,191,.52);box-shadow:0 0 18px rgba(20,199,191,.12)}
@media(max-width:1100px){.period-inline,.grid-4{grid-template-columns:1fr}.period-card .section-head.compact{align-items:flex-start;flex-direction:column}}


/* Ajustes Bad Actors-R v15: estructura de informes similar a RCA-R */
.report-panel{padding-bottom:18px}
.report-offer-wrap{
  margin-top:6px;
  border:1px solid rgba(68,196,148,.24);
  border-radius:24px;
  padding:14px 14px 12px;
  background:linear-gradient(180deg,rgba(9,27,46,.96),rgba(14,34,56,.92));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025);
}
.report-banner-title{
  color:#ffb31d;
  font-weight:900;
  font-size:14px;
  letter-spacing:.35px;
  margin-bottom:10px;
  text-transform:uppercase;
}
.report-hero-card{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(280px,.9fr);
  gap:18px;
  padding:22px 16px;
  border-radius:20px;
  border:1px solid rgba(80,188,129,.26);
  background:radial-gradient(circle at top left,rgba(255,255,255,.03),transparent 45%), linear-gradient(135deg,rgba(38,55,84,.75),rgba(29,41,64,.72));
}
.report-hero-copy h3{
  font-size:22px;
  margin:0 0 8px;
  line-height:1.25;
}
.report-hero-copy h3 span{color:#38a7ff}
.report-hero-copy p{margin:0;color:#d6e4f6;line-height:1.55}
.report-pill,.report-plan-badge,.report-hero-aside-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(123,220,143,.35);
  background:rgba(56,103,78,.55);
  color:#eefcf0;
  font-size:12px;
  font-weight:900;
  letter-spacing:.3px;
}
.report-hero-aside{
  align-self:center;
  padding:18px 20px;
  border-radius:22px;
  border:1px solid rgba(120,205,128,.28);
  background:linear-gradient(135deg,rgba(63,87,87,.88),rgba(74,105,92,.78));
  color:#f7ffff;
  transform:rotate(-3deg);
  box-shadow:0 16px 28px rgba(0,0,0,.16);
}
.report-hero-aside strong{display:block;font-size:26px;line-height:1.02;margin:12px 0 8px}
.report-hero-aside p{margin:0 0 12px;color:#eef7ff;font-weight:700}
.report-cta{width:100%;font-size:14px}
.report-plan-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:14px;
}
.report-plan-card{
  min-height:100%;
  padding:16px 16px 14px;
  border-radius:20px;
  border:1px solid rgba(72,195,131,.34);
  background:linear-gradient(135deg,rgba(32,81,78,.38),rgba(25,47,73,.62));
}
.report-plan-card.pro{background:linear-gradient(135deg,rgba(31,88,84,.44),rgba(20,55,77,.68))}
.report-price-row{display:flex;align-items:baseline;gap:10px;margin:10px 0 8px}
.report-price-row strong{font-size:28px;color:#ffffff;letter-spacing:-.5px}
.report-price-row span{color:#d2e0ef;font-weight:700}
.report-plan-card ul{margin:0;padding-left:18px;color:#e6f0fb;line-height:1.65}
.report-plan-card li{margin:4px 0}
.report-card-btn{width:100%;margin-top:14px}
.report-pro-note{
  margin-top:14px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:#d6e5f8;
  line-height:1.5;
}
.report-preview-box{
  margin-top:16px;
}
.report-preview-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.report-preview-head h3{margin:0;font-size:18px}
.report-preview-head small{color:#b9cae1}
@media(max-width:1200px){
  .report-hero-card{grid-template-columns:1fr}
  .report-hero-aside{transform:none}
}
@media(max-width:900px){
  .report-plan-grid{grid-template-columns:1fr}
  .report-preview-head{flex-direction:column;align-items:flex-start}
}


/* Ajustes Bad Actors-R v16: configuración informe Pro */
.pro-config-box{
  margin-top:14px;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
}
.pro-field{margin-bottom:10px}
.pro-field:last-of-type{margin-bottom:6px}
.pro-field input[type="file"]{
  padding:8px 10px;
  min-height:44px;
  background:rgba(255,255,255,.9);
  color:#14283d;
}
.pro-field input[type="file"]::file-selector-button{
  margin-right:10px;
  border:none;
  border-radius:8px;
  padding:8px 12px;
  background:#f1f4f8;
  color:#0d2034;
  font-weight:700;
  cursor:pointer;
}
.pro-logo-status{
  font-size:12px;
  color:#cfe0f4;
  font-weight:700;
  margin-top:4px;
}


/* Ajustes Bad Actors-R v17 */
.hidden-summary{display:none!important}

/* Ajustes Bad Actors-R v23: importación robusta Excel / CSV / Clipboard */
.hidden{display:none!important}
.import-status{
  margin:10px 0 16px;
  padding:10px 13px;
  border-radius:14px;
  border:1px solid rgba(76,139,190,.42);
  background:rgba(7,25,42,.62);
  color:#cfe1f8;
  font-size:13px;
  font-weight:700;
}
.import-status.active{
  color:#8fffdc;
  border-color:rgba(20,199,191,.52);
  box-shadow:0 0 18px rgba(20,199,191,.12);
}
.clipboard-fallback{
  margin:10px 0 14px;
  padding:14px;
  border:1px solid rgba(35,168,255,.36);
  border-radius:16px;
  background:linear-gradient(180deg,rgba(7,25,42,.86),rgba(8,28,47,.74));
}
.clipboard-fallback p{
  margin:0 0 10px;
  color:#d8e8ff;
  font-size:13px;
  font-weight:700;
}
.clipboard-fallback textarea{
  width:100%;
  min-height:110px;
  resize:vertical;
  margin-bottom:10px;
  font-family:Consolas,monospace;
  font-size:12px;
}


/* Ajuste v32: claridad de contenido por tipo de informe */
.report-deliverable-title{
  margin:10px 0 8px;
  color:#eaf5ff;
  font-size:14px;
  font-weight:900;
  letter-spacing:.2px;
}
.report-plan-card.standard .report-deliverable-title{color:#dbeaff}
.report-plan-card.pro .report-deliverable-title{color:#dfffea}
.report-plan-card ul{padding-right:6px}




.header-logo-frame,
.logo-container,
.logo-box,
.brand-logo-box {
  width: 106px !important;
  height: 106px !important;
  min-width: 106px !important;
  max-width: 106px !important;
  min-height: 106px !important;
  max-height: 106px !important;

  background: #050b12 !important;
  border: 1px solid #1d2733 !important;
  border-radius: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  box-shadow: none !important;
}

/* Imagen del logo sin distorsión */
.header-logo,
.header-logo-frame img,
.logo-container img,
.logo-box img,
.brand-logo-box img,
img[src*="bad-actors-r-logo"] {
  width: auto !important;
  height: 96px !important;
  max-width: 96px !important;
  max-height: 96px !important;

  object-fit: contain !important;
  object-position: center center !important;

  background: #050b12 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;

  display: block !important;
  aspect-ratio: auto !important;
}

/* Elimina fondos blancos heredados alrededor del logo */
.header-logo-frame *,
.logo-container *,
.logo-box *,
.brand-logo-box * {
  background-color: transparent !important;
}

/* Responsive */
@media (max-width: 768px) {
  .header-logo-frame,
  .logo-container,
  .logo-box,
  .brand-logo-box {
    width: 86px !important;
    height: 86px !important;
    min-width: 86px !important;
    max-width: 86px !important;
    min-height: 86px !important;
    max-height: 86px !important;
    border-radius: 16px !important;
  }

  .header-logo,
  .header-logo-frame img,
  .logo-container img,
  .logo-box img,
  .brand-logo-box img,
  img[src*="bad-actors-r-logo"] {
    height: 78px !important;
    max-width: 78px !important;
    max-height: 78px !important;
  }
}

/* R-tools v20260616: acceso directo profesional al dashboard */
.btn-dashboard{
  border-color:rgba(22,169,230,.58)!important;
  background:linear-gradient(135deg,#0d64d8,#16a9e6)!important;
  color:#ffffff!important;
  text-decoration:none!important;
  min-height:42px;
  align-items:center;
}
.btn-dashboard:hover{filter:brightness(1.08);transform:translateY(-1px);}
@media(max-width:760px){
  .top-actions{gap:8px;flex-wrap:wrap;justify-content:flex-end}
  .btn-dashboard{font-size:12px;padding:8px 11px}
}


/* R-tools v20260617 | Plan PRO + Excel editable */
.report-plan-card.pro-excel,
.report-plan-card.report-plan-excel,
.pricing-card.pro-excel{
  position:relative;
  border-color:rgba(22,169,230,.45)!important;
  box-shadow:0 18px 42px rgba(13,100,216,.14)!important;
}
.report-plan-card.pro-excel::before,
.report-plan-card.report-plan-excel::before,
.pricing-card.pro-excel::before{
  content:"PRO + EXCEL";
  position:absolute;
  top:14px;
  right:14px;
  padding:6px 10px;
  border-radius:999px;
  background:linear-gradient(135deg,#0d64d8,#16a9e6);
  color:#fff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
}
@media(min-width:1100px){
  .report-plan-grid,
  .pricing-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}


/* R-tools v20260617 | Cards de precios simétricas en una sola fila + PRO Excel branding */
@media (min-width: 1024px){
  .report-plan-grid,
  .pricing-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:clamp(14px,1.6vw,22px)!important;
    align-items:stretch!important;
    width:100%!important;
  }
}
.report-plan-grid > *,
.pricing-grid > *{
  min-width:0!important;
}
.report-plan-card,
.pricing-card{
  height:100%!important;
  display:flex!important;
  flex-direction:column!important;
}
.report-plan-card ul,
.pricing-card ul{
  flex:1 1 auto!important;
}
.report-card-btn,
.report-generate-btn,
.pricing-btn{
  margin-top:auto!important;
  width:100%!important;
}
.report-plan-card.pro-excel,
.report-plan-card.report-plan-excel,
.pricing-card.pro-excel{
  position:relative;
  border-color:rgba(22,169,230,.50)!important;
  background:
    radial-gradient(circle at 80% 0%,rgba(22,169,230,.14),transparent 42%),
    linear-gradient(180deg,rgba(255,255,255,.98),rgba(247,251,255,.96))!important;
  box-shadow:0 18px 44px rgba(13,100,216,.16)!important;
}
.pro-excel-config{
  margin:12px 0 14px!important;
  padding:12px!important;
  border:1px solid rgba(13,100,216,.18)!important;
  border-radius:16px!important;
  background:rgba(13,100,216,.055)!important;
  display:grid!important;
  gap:9px!important;
}
.pro-excel-config label{
  display:grid!important;
  gap:6px!important;
  margin:0!important;
  font-size:12px!important;
  font-weight:850!important;
  color:inherit!important;
}
.pro-excel-config input[type="text"],
.pro-excel-config input:not([type]),
.pro-excel-config input[type="file"]{
  width:100%!important;
  max-width:100%!important;
  min-height:36px!important;
  border-radius:11px!important;
}
.pro-excel-config small,
.pro-excel-config .pro-logo-status,
.pro-excel-config .premium-logo-status{
  display:block!important;
  font-size:11px!important;
  line-height:1.35!important;
  color:rgba(82,103,122,.95)!important;
  font-weight:750!important;
}
@media (max-width: 1023px){
  .report-plan-grid,
  .pricing-grid{
    grid-template-columns:1fr!important;
  }
}


/* R-tools v20260617 | FIX definitivo: planes en 3 columnas y PRO + Excel sin fondo blanco */
@media (min-width: 1024px){
  .report-plan-grid,
  .pricing-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:clamp(14px,1.5vw,22px)!important;
    align-items:stretch!important;
    width:100%!important;
  }
  .report-plan-grid > article,
  .pricing-grid > article{
    grid-column:auto!important;
    grid-row:auto!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    align-self:stretch!important;
  }
}
.report-plan-card.pro-excel,
.report-plan-card.report-plan-excel,
.pricing-card.pro-excel{
  color:#f2f8ff!important;
}
.report-plan-card.pro-excel,
.report-plan-card.report-plan-excel{
  background:linear-gradient(135deg,rgba(31,88,84,.44),rgba(20,55,77,.68))!important;
  border-color:rgba(72,195,131,.38)!important;
}
.pricing-card.pro-excel{
  background:linear-gradient(180deg,rgba(7,29,54,.96),rgba(11,59,102,.92))!important;
  border-color:rgba(22,169,230,.40)!important;
}
.report-plan-card.pro-excel *,
.report-plan-card.report-plan-excel *,
.pricing-card.pro-excel *{
  color:inherit;
}
.report-plan-card.pro-excel h4,
.report-plan-card.pro-excel h5,
.report-plan-card.pro-excel strong,
.report-plan-card.report-plan-excel h4,
.report-plan-card.report-plan-excel h5,
.report-plan-card.report-plan-excel strong,
.pricing-card.pro-excel .price,
.pricing-card.pro-excel .price strong{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
.report-plan-card.pro-excel li,
.report-plan-card.report-plan-excel li,
.pricing-card.pro-excel li{
  color:#e6f0fb!important;
  -webkit-text-fill-color:#e6f0fb!important;
}
.report-plan-card.pro-excel .report-price-row span,
.report-plan-card.report-plan-excel .report-price-row span,
.pricing-card.pro-excel .price small{
  color:#d2e0ef!important;
  -webkit-text-fill-color:#d2e0ef!important;
}
.report-plan-card.pro-excel .pro-excel-config,
.report-plan-card.report-plan-excel .pro-excel-config,
.pricing-card.pro-excel .pro-excel-config{
  background:rgba(255,255,255,.055)!important;
  border:1px solid rgba(255,255,255,.12)!important;
}
.report-plan-card.pro-excel .pro-excel-config label,
.report-plan-card.report-plan-excel .pro-excel-config label,
.pricing-card.pro-excel .pro-excel-config label{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
.report-plan-card.pro-excel .pro-excel-config small,
.report-plan-card.pro-excel .pro-excel-config .pro-logo-status,
.report-plan-card.report-plan-excel .pro-excel-config small,
.report-plan-card.report-plan-excel .pro-excel-config .pro-logo-status,
.pricing-card.pro-excel .pro-excel-config small,
.pricing-card.pro-excel .pro-excel-config .premium-logo-status{
  color:#d7e6f7!important;
  -webkit-text-fill-color:#d7e6f7!important;
}
.report-plan-card.pro-excel input,
.report-plan-card.report-plan-excel input,
.pricing-card.pro-excel input{
  color:#0d1f33!important;
  -webkit-text-fill-color:#0d1f33!important;
  background:#ffffff!important;
}
@media (max-width:1023px){
  .report-plan-grid,
  .pricing-grid{
    grid-template-columns:1fr!important;
  }
}



/* R-tools v20260617 | Uniformidad visual tarjetas Estándar / PRO / PRO + Excel */
@media (min-width:1024px){
  .report-plan-grid,
  .pricing-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:clamp(14px,1.5vw,22px)!important;
    align-items:stretch!important;
    width:100%!important;
  }
  .report-plan-grid > article,
  .pricing-grid > article{
    grid-column:auto!important;
    grid-row:auto!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    align-self:stretch!important;
  }
}
.report-plan-card,
.pricing-card{
  position:relative!important;
  height:100%!important;
  min-height:clamp(500px,42vw,620px)!important;
  display:flex!important;
  flex-direction:column!important;
  padding:16px!important;
  border-radius:20px!important;
  border:1px solid rgba(72,195,131,.34)!important;
  background:linear-gradient(135deg,rgba(32,81,78,.38),rgba(25,47,73,.62))!important;
  box-shadow:0 16px 34px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.04)!important;
  color:#eaf4ff!important;
  overflow:hidden!important;
}
.report-plan-card.pro,
.report-plan-card.report-plan-pro,
.report-plan-card.pro-excel,
.report-plan-card.report-plan-excel,
.pricing-card.premium,
.pricing-card.pro-excel{
  background:linear-gradient(135deg,rgba(31,88,84,.44),rgba(20,55,77,.68))!important;
  border-color:rgba(72,195,131,.38)!important;
}
.report-plan-badge,
.report-plan-pill,
.plan-tag{
  width:100%!important;
  min-height:28px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:7px 12px!important;
  margin:0 0 12px!important;
  border-radius:999px!important;
  border:1px solid rgba(123,220,143,.35)!important;
  background:rgba(56,103,78,.55)!important;
  color:#eefcf0!important;
  -webkit-text-fill-color:#eefcf0!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:.25px!important;
  text-align:center!important;
  text-transform:uppercase!important;
}
.report-plan-card.pro-excel::before,
.report-plan-card.report-plan-excel::before,
.pricing-card.pro-excel::before{
  display:none!important;
  content:none!important;
}
.report-price-row,
.pricing-card .price,
.report-plan-card h4{
  margin:8px 0 12px!important;
  min-height:36px!important;
  display:flex!important;
  align-items:baseline!important;
  gap:10px!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
.report-price-row strong,
.pricing-card .price,
.pricing-card .price strong,
.report-plan-card h4 strong{
  font-size:28px!important;
  line-height:1.05!important;
  font-weight:950!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  letter-spacing:-.5px!important;
}
.report-price-row span,
.pricing-card .price small,
.report-plan-card h4 small{
  font-size:13px!important;
  line-height:1.3!important;
  font-weight:850!important;
  color:#d2e0ef!important;
  -webkit-text-fill-color:#d2e0ef!important;
}
.report-deliverable-title,
.report-plan-card h5{
  margin:2px 0 8px!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  font-size:13px!important;
  line-height:1.25!important;
  font-weight:950!important;
}
.report-plan-card ul,
.pricing-card ul{
  flex:1 1 auto!important;
  margin:0 0 14px!important;
  padding-left:18px!important;
  color:#e6f0fb!important;
  -webkit-text-fill-color:#e6f0fb!important;
  line-height:1.55!important;
  font-size:13px!important;
}
.report-plan-card li,
.pricing-card li{
  color:#e6f0fb!important;
  -webkit-text-fill-color:#e6f0fb!important;
  margin:4px 0!important;
}
.pro-config-box,
.report-pro-fields,
.premium-config,
.pro-excel-config{
  margin:12px 0 14px!important;
  padding:12px!important;
  border-radius:16px!important;
  border:1px solid rgba(255,255,255,.10)!important;
  background:rgba(255,255,255,.055)!important;
  display:grid!important;
  gap:9px!important;
  color:#ffffff!important;
}
.pro-config-box label,
.report-pro-fields label,
.premium-config label,
.pro-excel-config label,
.pro-field{
  display:grid!important;
  gap:6px!important;
  margin:0!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:900!important;
}
.pro-config-box input,
.report-pro-fields input,
.premium-config input,
.pro-excel-config input{
  width:100%!important;
  max-width:100%!important;
  min-height:38px!important;
  border-radius:12px!important;
  border:1px solid rgba(64,169,255,.32)!important;
  background:#071729!important;
  color:#eaf4ff!important;
  -webkit-text-fill-color:#eaf4ff!important;
  padding:9px 12px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
.pro-config-box input[type="file"],
.report-pro-fields input[type="file"],
.premium-config input[type="file"],
.pro-excel-config input[type="file"]{
  background:#eef3f8!important;
  color:#0d1f33!important;
  -webkit-text-fill-color:#0d1f33!important;
  padding:8px!important;
}
.pro-logo-status,
.premium-logo-status,
.report-pro-fields small,
.pro-excel-config small{
  display:block!important;
  margin-top:0!important;
  color:#d7e6f7!important;
  -webkit-text-fill-color:#d7e6f7!important;
  font-size:11px!important;
  line-height:1.35!important;
  font-weight:800!important;
}
.report-card-btn,
.report-generate-btn,
.pricing-btn{
  margin-top:auto!important;
  width:100%!important;
  min-height:40px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:12px!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  font-weight:950!important;
  box-shadow:0 10px 20px rgba(0,0,0,.18)!important;
}
@media (max-width:1023px){
  .report-plan-grid,
  .pricing-grid{
    grid-template-columns:1fr!important;
  }
  .report-plan-card,
  .pricing-card{
    min-height:auto!important;
  }
}



/* R-tools v20260617 | Ajuste fino PRO + Excel: inputs oscuros y simetría */
.report-plan-card.pro-excel #proExcelAnalystName,
.report-plan-card.report-plan-excel #proExcelAnalystName,
#proExcelAnalystName{
  background:#071729!important;
  color:#eaf4ff!important;
  -webkit-text-fill-color:#eaf4ff!important;
  border:1px solid rgba(64,169,255,.34)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
.report-plan-card.pro-excel #proExcelAnalystName::placeholder,
.report-plan-card.report-plan-excel #proExcelAnalystName::placeholder,
#proExcelAnalystName::placeholder{
  color:rgba(234,244,255,.54)!important;
  -webkit-text-fill-color:rgba(234,244,255,.54)!important;
}
.report-plan-card.pro-excel .pro-excel-config,
.report-plan-card.report-plan-excel .pro-excel-config{
  background:rgba(255,255,255,.055)!important;
  border:1px solid rgba(255,255,255,.10)!important;
  border-radius:16px!important;
}
.report-plan-card.pro-excel .pro-excel-config label,
.report-plan-card.report-plan-excel .pro-excel-config label{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
.report-plan-card.pro-excel .pro-excel-config input[type="file"],
.report-plan-card.report-plan-excel .pro-excel-config input[type="file"]{
  background:#eef3f8!important;
  color:#0d1f33!important;
  -webkit-text-fill-color:#0d1f33!important;
  border:1px solid rgba(64,169,255,.26)!important;
}
.report-plan-card.pro-excel .pro-logo-status,
.report-plan-card.report-plan-excel .pro-logo-status,
.report-plan-card.report-plan-excel small{
  color:#d7e6f7!important;
  -webkit-text-fill-color:#d7e6f7!important;
}


/* R-tools v20260617 | Bad Actors-R y RCA-R igualados visualmente a Weibull-R */
.report-plan-card,
.pricing-card{
  min-height:clamp(500px,42vw,620px)!important;
}
.report-plan-grid > article,
.pricing-grid > article{
  align-self:stretch!important;
}
.report-plan-card ul,
.pricing-card ul{
  flex:1 1 auto!important;
  margin:0 0 14px!important;
  padding-left:18px!important;
  line-height:1.55!important;
  font-size:13px!important;
}
.report-plan-card li,
.pricing-card li{
  margin:4px 0!important;
}
.report-plan-badge,
.plan-tag,
.report-plan-pill{
  width:100%!important;
  min-height:28px!important;
  margin:0 0 12px!important;
  padding:7px 12px!important;
}
.report-price-row,
.pricing-card .price,
.report-plan-card h4{
  margin:8px 0 12px!important;
  min-height:36px!important;
}
.pro-config-box,
.report-pro-fields,
.premium-config,
.pro-excel-config{
  margin:12px 0 14px!important;
  padding:12px!important;
  border-radius:16px!important;
  border:1px solid rgba(255,255,255,.10)!important;
  background:rgba(255,255,255,.055)!important;
  display:grid!important;
  gap:9px!important;
}
.pro-config-box label,
.report-pro-fields label,
.premium-config label,
.pro-excel-config label,
.pro-field{
  display:grid!important;
  gap:6px!important;
  margin:0!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:900!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
}
.pro-config-box input,
.report-pro-fields input,
.premium-config input,
.pro-excel-config input{
  width:100%!important;
  max-width:100%!important;
  min-height:38px!important;
  padding:9px 12px!important;
  border-radius:12px!important;
  border:1px solid rgba(64,169,255,.32)!important;
  background:#071729!important;
  color:#eaf4ff!important;
  -webkit-text-fill-color:#eaf4ff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
}
.pro-config-box input::placeholder,
.report-pro-fields input::placeholder,
.premium-config input::placeholder,
.pro-excel-config input::placeholder{
  color:rgba(234,244,255,.54)!important;
  -webkit-text-fill-color:rgba(234,244,255,.54)!important;
}
.pro-config-box input[type="file"],
.report-pro-fields input[type="file"],
.premium-config input[type="file"],
.pro-excel-config input[type="file"]{
  background:#eef3f8!important;
  color:#0d1f33!important;
  -webkit-text-fill-color:#0d1f33!important;
  padding:8px!important;
}
.pro-logo-status,
.premium-logo-status,
.report-pro-fields small,
.pro-excel-config small{
  display:block!important;
  margin-top:0!important;
  color:#d7e6f7!important;
  -webkit-text-fill-color:#d7e6f7!important;
  font-size:11px!important;
  line-height:1.35!important;
  font-weight:800!important;
}
.report-card-btn,
.report-generate-btn,
.pricing-btn{
  margin-top:auto!important;
  min-height:40px!important;
  width:100%!important;
}
/* Forzar que las tarjetas PRO+Excel de Bad Actors y RCA-R mantengan exactamente la caja oscura del modelo Weibull */
.report-plan-card.pro-excel .pro-excel-config,
.pricing-card.pro-excel .pro-excel-config,
.pricing-card.pro-excel .premium-config{
  background:rgba(255,255,255,.055)!important;
  border:1px solid rgba(255,255,255,.10)!important;
}
.report-plan-card.pro-excel #proExcelAnalystName,
.pricing-card.pro-excel #premiumExcelAnalystName{
  background:#071729!important;
  color:#eaf4ff!important;
  -webkit-text-fill-color:#eaf4ff!important;
  border:1px solid rgba(64,169,255,.32)!important;
}
.report-plan-card.pro-excel #proExcelAnalystName::placeholder,
.pricing-card.pro-excel #premiumExcelAnalystName::placeholder{
  color:rgba(234,244,255,.54)!important;
  -webkit-text-fill-color:rgba(234,244,255,.54)!important;
}
