:root{
  --s5-bg: #070D1A;
  --s5-card: #0B1324;
  --s5-card-2: #0E1A33;
  --s5-stroke: rgba(255,255,255,.10);
  --s5-stroke-2: rgba(255,255,255,.18);

  --s5-text: #FFFFFF;
  --s5-muted: rgba(255,255,255,.75);
  --s5-muted-2: rgba(255,255,255,.55);

  --s5-orange: #FF7A00;
  --s5-orange-hover: #E86F00;
}

/* WRAPPER */
.s5-ioc-wrap{
  width: 100%;
  background: var(--s5-bg);
  padding: 32px 0;
}

/* CARD */
.s5-ioc-wrap .ioc-card{
  max-width: 1120px;
  margin: 0 auto;
  background: var(--s5-card);
  border: 1px solid var(--s5-stroke);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
}

/* HEADER */
.s5-ioc-wrap .ioc-header{ margin-bottom: 26px; }
.s5-ioc-wrap .ioc-title{
  font-size: 34px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 10px;
}
.s5-ioc-wrap .ioc-subtitle{
  margin: 0;
  font-size: 15px;
  color: var(--s5-muted);
}

/* GRID */
.s5-ioc-wrap .ioc-grid{
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
}
@media (max-width: 900px){
  .s5-ioc-wrap .ioc-grid{ grid-template-columns: 1fr; }
}

/* SECTIONS */
.s5-ioc-wrap .ioc-section{
  border: 1px solid var(--s5-stroke);
  border-radius: 18px;
  padding: 22px;
}

/* TITLES */
.s5-ioc-wrap .ioc-h3{
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
}
.s5-ioc-wrap .ioc-h4{
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}

/* FIELDS */
.s5-ioc-wrap .ioc-field{ margin-bottom: 14px; }
.s5-ioc-wrap .ioc-field label{
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--s5-muted);
}
.s5-ioc-wrap .ioc-input{
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--s5-stroke-2);
  background: var(--s5-card-2);
  color: var(--s5-text);
  padding: 12px 14px;
  font-size: 14px;
}
.s5-ioc-wrap .ioc-input::placeholder{ color: var(--s5-muted-2); }
.s5-ioc-wrap .ioc-input:focus{
  outline: none;
  border-color: var(--s5-orange);
  box-shadow: 0 0 0 3px rgba(255,122,0,.20);
}

/* HELP / DIVIDER */
.s5-ioc-wrap .ioc-help,
.s5-ioc-wrap .ioc-footnote{
  font-size: 12px;
  color: var(--s5-muted-2);
}
.s5-ioc-wrap .ioc-divider{
  border: none;
  height: 1px;
  background: var(--s5-stroke);
  margin: 18px 0;
}

/* BUTTONS */
.s5-ioc-wrap .ioc-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.s5-ioc-wrap .ioc-btn{
  border-radius: 999px;
  border: none;
  padding: 12px 20px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  background: var(--s5-orange);
  color: #121212;
  box-shadow: 0 10px 26px rgba(255,122,0,.22);
  transition: all .2s ease;
}
.s5-ioc-wrap .ioc-btn:hover{
  background: var(--s5-orange-hover);
  transform: translateY(-1px);
}
.s5-ioc-wrap .ioc-btn--ghost{
  background: transparent;
  border: 1px solid rgba(255,255,255,.35);
  color: var(--s5-text);
  box-shadow: none;
}
.s5-ioc-wrap .ioc-btn--ghost:hover{
  background: rgba(255,255,255,.06);
  transform: none;
}
.s5-ioc-wrap .ioc-btn--accent{ width: 100%; }
.s5-ioc-wrap .ioc-btn--mini{ padding: 9px 14px; font-size: 13px; }

/* RESULTS */
.s5-ioc-wrap .ioc-resultHero{
  border: 1px solid var(--s5-stroke);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  transition: transform .18s ease;
}
.s5-ioc-wrap .ioc-kicker{
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--s5-muted-2);
}
.s5-ioc-wrap .ioc-money{
  font-size: 30px;
  font-weight: 900;
  color: var(--s5-orange);
}

/* OBSTACULO DESTACADO */
.s5-ioc-wrap .ioc-heroObstaculo{
  border: 1px solid var(--s5-stroke);
  border-radius: 18px;
  padding: 16px;
  margin: 0 0 14px;
  transition: transform .18s ease;
}
.s5-ioc-wrap .ioc-obstaculoText{
  font-size: 18px;
  font-weight: 800;
  color: var(--s5-orange);
  line-height: 1.25;
}

/* BREAKDOWN */
.s5-ioc-wrap .ioc-breakdown{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
@media (max-width: 520px){
  .s5-ioc-wrap .ioc-breakdown{ grid-template-columns: 1fr; }
}
.s5-ioc-wrap .ioc-pill{
  border: 1px solid var(--s5-stroke);
  border-radius: 16px;
  padding: 14px;
}
.s5-ioc-wrap .ioc-pillLabel{
  display: block;
  font-size: 12px;
  color: var(--s5-muted-2);
  margin-bottom: 6px;
}
.s5-ioc-wrap .ioc-pill strong{
  font-size: 16px;
  color: var(--s5-text);
}

/* CTA BOX */
.s5-ioc-wrap .ioc-ctaBox{
  border: 1px solid var(--s5-stroke);
  border-radius: 18px;
  padding: 18px;
}
.s5-ioc-wrap .ioc-ctaText{
  font-size: 13px;
  color: var(--s5-muted);
  margin: 0 0 14px;
}

/* COPY/PASTE BOX */
.s5-ioc-wrap .ioc-copyWrap{
  margin-top: 14px;
  border: 1px solid var(--s5-stroke);
  border-radius: 18px;
  padding: 14px;
}
.s5-ioc-wrap .ioc-copyHeader{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.s5-ioc-wrap .ioc-copyHeader strong{
  color: #ffffff !important; /* FIX del título que te quedaba negro */
  font-weight: 800;
}
.s5-ioc-wrap .ioc-copyBox{
  width: 100%;
  min-height: 140px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid var(--s5-stroke-2);
  background: var(--s5-card-2);
  color: var(--s5-text);
  padding: 12px;
  font-size: 13px;
  line-height: 1.4;
}
.s5-ioc-wrap .ioc-copyBox:focus{
  outline: none;
  border-color: var(--s5-orange);
  box-shadow: 0 0 0 3px rgba(255,122,0,.20);
}

/* =========================================
   NEXT LEVEL UI
========================================= */

/* Chip/semáforo */
.s5-ioc-wrap .ioc-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  font-weight: 800;
  font-size: 13px;
}

/* Estado del chip */
.s5-ioc-wrap .ioc-chip.is-low{
  border-color: rgba(255,255,255,.22);
}
.s5-ioc-wrap .ioc-chip.is-medium{
  border-color: rgba(255,122,0,.55);
  box-shadow: 0 0 0 3px rgba(255,122,0,.12);
}
.s5-ioc-wrap .ioc-chip.is-high{
  border-color: rgba(255,122,0,.85);
  box-shadow: 0 0 0 3px rgba(255,122,0,.18);
}
.s5-ioc-wrap .ioc-chip.is-critical{
  border-color: rgba(255,122,0,1);
  box-shadow: 0 0 0 4px rgba(255,122,0,.22);
}

/* Checklist */
.s5-ioc-wrap .ioc-nextSteps{
  margin: 12px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 1.45;
}
.s5-ioc-wrap .ioc-nextSteps li{
  margin: 6px 0;
}

/* Sutil pop cuando se actualiza */
.s5-ioc-wrap .is-updated{
  transform: translateY(-1px);
}

/* =========================================================
   FIX QUIRÚRGICO: SOLO TITULOS EN BLANCO
   (No toca inputs ni backgrounds)
========================================================= */
.s5-ioc-wrap .ioc-title,
.s5-ioc-wrap .ioc-h3,
.s5-ioc-wrap .ioc-h4,
.s5-ioc-wrap h1,
.s5-ioc-wrap h2,
.s5-ioc-wrap h3,
.s5-ioc-wrap h4{
  color: #ffffff !important;
}
}