/* Lote 3 (25/11/2026): Todo lo que incluye. Portada (claro) y /planes/ (oscuro). Prefijo oi-. */
.oi { font-family: "Plus Jakarta Sans", Jakarta, Arial, sans-serif; margin: clamp(28px, 4vw, 52px) 0; padding: 0; color: #F4F8FF; line-height: 1.4; -webkit-font-smoothing: antialiased; text-align: left; }
.oi *, .oi *::before, .oi *::after { box-sizing: border-box; }
.oi .oi-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0 24px; border-radius: 24px; padding: clamp(20px, 3vw, 40px);
  background: radial-gradient(110% 70% at 100% 0%, rgba(23, 184, 246, .16), transparent 55%), linear-gradient(165deg, #0B1B33 0%, #061429 100%);
  border: 1px solid rgba(111, 224, 255, .16); box-shadow: 0 28px 60px -34px rgba(6, 20, 41, .6); overflow: clip; }
.oi.oi-oscuro .oi-panel { box-shadow: none; }
.oi .oi-panel::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, #6FE0FF, transparent) -40% 0 / 40% 100% no-repeat; animation: oi-brillo 7s linear infinite; }
@keyframes oi-brillo { to { background-position: 140% 0; } }
.oi.oi-fuera .oi-panel::after { animation-play-state: paused; }

.oi .oi-cab { grid-column: 1; min-width: 0; }
.oi .oi-titulo { margin: 0; padding: 0; font-family: inherit; font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; color: #F4F8FF; max-width: none; }
.oi .oi-linea { margin: 8px 0 0; font-size: 17px; color: rgba(244, 248, 255, .72); max-width: none; }

/* Selector de plan con resalte que se desliza */
.oi .oi-sel { grid-column: 2; position: relative; display: inline-flex; gap: 4px; padding: 5px; margin: 0; border-radius: 999px; background: rgba(244, 248, 255, .06); border: 1px solid rgba(244, 248, 255, .1); }
.oi .oi-sel button { appearance: none; -webkit-appearance: none; position: relative; z-index: 1; margin: 0; border: 0; background: transparent; color: #F4F8FF; font: inherit; cursor: pointer; border-radius: 999px;
  padding: 9px 18px; min-width: 116px; display: flex; flex-direction: column; align-items: center; line-height: 1.15; transition: background .25s, color .25s; box-shadow: none; text-transform: none; letter-spacing: 0; }
.oi .oi-sel button b { font-size: 16px; font-weight: 800; }
.oi .oi-sel button span { font-size: 12px; font-weight: 500; opacity: .72; margin-top: 3px; white-space: nowrap; }
.oi .oi-sel button[aria-checked="true"] { background: #0B64F0; }
.oi.oi-js .oi-sel button[aria-checked="true"] { background: transparent; }
.oi .oi-sel button:focus-visible { outline: 2px solid #6FE0FF; outline-offset: 2px; }
.oi .oi-sel button:hover { color: #fff; }
.oi .oi-pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: #0B64F0; box-shadow: 0 8px 22px -8px rgba(11, 100, 240, .9); }
.oi .oi-pill.oi-lista { transition: transform .4s cubic-bezier(.3, .7, .2, 1), width .4s cubic-bezier(.3, .7, .2, 1); }

.oi .oi-total { grid-column: 1 / -1; margin: 22px 0 16px; font-size: 15px; color: rgba(244, 248, 255, .72); }
.oi .oi-total b { font-size: 28px; font-weight: 800; color: #6FE0FF; margin-right: 6px; font-variant-numeric: tabular-nums; }

/* Etapas */
.oi .oi-etapas { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.oi .oi-etapa { position: relative; min-width: 0; margin: 0; padding: 14px 12px 12px; border-radius: 16px; background: rgba(244, 248, 255, .035); border: 1px solid rgba(244, 248, 255, .08); }
.oi .oi-etapa-cab { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ico tit tit" "bar bar cuenta"; align-items: center; gap: 10px 10px; padding: 0 4px 12px; margin: 0; max-width: none; border: 0; }
.oi .oi-ico { grid-area: ico; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(13, 142, 242, .18); color: #6FE0FF; }
.oi .oi-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.oi .oi-etapa-tit { grid-area: tit; margin: 0; padding: 0; font-family: inherit; font-size: 17px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: #F4F8FF; }
.oi .oi-cuenta { grid-area: cuenta; font-size: 13px; color: rgba(244, 248, 255, .6); white-space: nowrap; }
.oi .oi-cuenta b { color: #F4F8FF; font-weight: 800; font-variant-numeric: tabular-nums; }
.oi .oi-barra { grid-area: bar; display: block; height: 4px; border-radius: 4px; background: rgba(244, 248, 255, .08); overflow: hidden; }
.oi .oi-barra i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0B64F0, #17B8F6); transform-origin: left center;
  transform: scaleX(var(--i)); transition: transform .7s cubic-bezier(.3, .7, .2, 1); }
.oi[data-plan="radar"] .oi-barra i { transform: scaleX(var(--r)); }
.oi[data-plan="presentacion"] .oi-barra i { transform: scaleX(var(--p)); }
.oi.oi-espera .oi-barra i { transform: scaleX(0); }

.oi .oi-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.oi .oi-fila { list-style: none; margin: 0; display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-areas: "mk nom" ". desde"; gap: 4px 10px; align-items: start;
  padding: 10px; border-radius: 12px; background: rgba(13, 142, 242, .11); border: 1px solid rgba(23, 184, 246, .18);
  transition: opacity .35s ease, background-color .35s ease, border-color .35s ease, transform .5s ease; }
.oi .oi-fila::before, .oi .oi-fila::marker { content: none; display: none; }
.oi.oi-visto .oi-fila { transition: opacity .5s ease calc(var(--d, 0) * 28ms), transform .5s ease calc(var(--d, 0) * 28ms), background-color .35s ease, border-color .35s ease; }
.oi.oi-espera .oi-fila { opacity: 0; transform: translateY(10px); }
.oi .oi-mk { grid-area: mk; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: #0D8EF2; box-shadow: 0 0 0 4px rgba(13, 142, 242, .2); transition: background-color .3s, box-shadow .3s; }
.oi .oi-mk svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: opacity .3s; }
.oi .oi-nom { grid-area: nom; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.oi .oi-nom b { font-size: 14.5px; font-weight: 700; line-height: 1.25; color: #F4F8FF; }
.oi .oi-txt { font-size: 13px; line-height: 1.3; color: rgba(244, 248, 255, .68); }
.oi .oi-desde { grid-area: desde; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; line-height: 1.2; }
.oi .oi-desde::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.oi .oi-desde.oi-radar { color: #6FE0FF; }
.oi .oi-desde.oi-ia { color: #17B8F6; }
.oi .oi-desde.oi-presentacion { color: #F4F8FF; }

/* Lo que el plan elegido no incluye */
.oi[data-plan="radar"] .oi-fila:not([data-desde="radar"]), .oi[data-plan="ia"] .oi-fila[data-desde="presentacion"] { background-color: transparent; border-color: rgba(244, 248, 255, .07); opacity: .48; }
.oi[data-plan="radar"] .oi-fila:not([data-desde="radar"]) .oi-mk, .oi[data-plan="ia"] .oi-fila[data-desde="presentacion"] .oi-mk { background-color: transparent; box-shadow: inset 0 0 0 1.5px rgba(244, 248, 255, .38); }
.oi[data-plan="radar"] .oi-fila:not([data-desde="radar"]) .oi-mk svg, .oi[data-plan="ia"] .oi-fila[data-desde="presentacion"] .oi-mk svg { opacity: 0; }

/* Lo que se enciende al cambiar de plan */
.oi .oi-fila.oi-nueva { animation: oi-luz 1s ease calc(var(--k, 0) * 45ms) both; }
.oi .oi-fila.oi-nueva .oi-mk { animation: oi-pop .5s cubic-bezier(.3, .7, .2, 1.4) calc(var(--k, 0) * 45ms) both; }
@keyframes oi-luz { 0% { background-color: rgba(23, 184, 246, .38); border-color: rgba(111, 224, 255, .7); } 100% { background-color: rgba(13, 142, 242, .11); border-color: rgba(23, 184, 246, .18); } }
@keyframes oi-pop { 0% { transform: scale(.3); } 65% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* Siguiente paso del plan elegido */
.oi .oi-pie { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 22px; }
.oi .oi-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 12px; background: #0B64F0; color: #fff; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; border: 0; transition: background-color .2s, transform .2s; }
.oi .oi-cta:hover { background: #0D8EF2; color: #fff; transform: translateY(-1px); }
.oi .oi-cta:focus-visible, .oi .oi-ver:focus-visible { outline: 2px solid #6FE0FF; outline-offset: 3px; }
.oi[data-plan="radar"] .oi-cta:not([data-p="radar"]), .oi[data-plan="ia"] .oi-cta:not([data-p="ia"]), .oi[data-plan="presentacion"] .oi-cta:not([data-p="presentacion"]) { display: none; }
.oi .oi-ver { color: #6FE0FF; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Comparación completa */
.oi .oi-detalle { margin: 18px 0 0; padding: 0; border: 0; scroll-margin-top: 96px; }
.oi .oi-detalle > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-radius: 16px; font-size: 17px; font-weight: 800; }
.oi .oi-detalle > summary::-webkit-details-marker { display: none; }
.oi .oi-detalle > summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .25s; }
.oi .oi-detalle[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.oi .oi-detalle > summary:focus-visible { outline: 2px solid #0D8EF2; outline-offset: 3px; }
.oi .oi-tabla-caja { margin-top: 8px; border-radius: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.oi .oi-tabla { width: 100%; border-collapse: collapse; margin: 0; font-size: 15px; line-height: 1.35; }
.oi .oi-tabla th, .oi .oi-tabla td { padding: 12px 16px; text-align: center; vertical-align: middle; border: 0; border-bottom: 1px solid var(--oi-linea); background: transparent; }
.oi .oi-tabla thead th { font-size: 14px; font-weight: 800; }
.oi .oi-tabla thead th:not(:first-child) { width: 17%; }
.oi .oi-tabla thead th:first-child, .oi .oi-tabla tbody th[scope="row"] { text-align: left; }
.oi .oi-tabla tbody th[scope="row"] { font-weight: 500; }
.oi .oi-tabla .oi-grupo th { padding-top: 22px; text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--oi-grupo); }
.oi .oi-si { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #0D8EF2; color: #fff; font-size: 13px; font-weight: 900; line-height: 1; }
.oi .oi-no { color: var(--oi-tenue); }
.oi .oi-n { font-weight: 800; }
.oi .oi-puntos { display: none; }
.oi .oi-solo-lector { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.oi.oi-claro { --oi-linea: #E3EAF5; --oi-grupo: #0B64F0; --oi-tenue: #9AA7BA; }
.oi.oi-claro .oi-detalle > summary { background: #fff; color: #0B1B33; border: 1px solid #E3EAF5; box-shadow: 0 18px 40px -30px rgba(11, 27, 51, .35); }
.oi.oi-claro .oi-tabla-caja { background: #fff; border: 1px solid #E3EAF5; }
.oi.oi-claro .oi-tabla { color: #0B1B33; }
.oi.oi-oscuro { --oi-linea: rgba(244, 248, 255, .09); --oi-grupo: #6FE0FF; --oi-tenue: rgba(244, 248, 255, .4); }
.oi.oi-oscuro .oi-detalle > summary { background: #0B1B33; color: #F4F8FF; border: 1px solid #1d4669; }
.oi.oi-oscuro .oi-tabla-caja { background: #0B1B33; border: 1px solid #1d4669; }
.oi.oi-oscuro .oi-tabla { color: #F4F8FF; }

@media (max-width: 1180px) {
  .oi .oi-etapas { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 860px) {
  .oi .oi-panel { grid-template-columns: minmax(0, 1fr); }
  .oi .oi-sel { grid-column: 1; margin-top: 18px; display: flex; }
  .oi .oi-sel button { flex: 1 1 0; min-width: 0; padding: 8px 4px; }
}
@media (max-width: 640px) {
  .oi .oi-panel { border-radius: 20px; padding: 20px 14px; }
  .oi .oi-linea { font-size: 16px; }
  .oi .oi-sel button b { font-size: 15px; }
  .oi .oi-sel button span { font-size: 11.5px; }
  .oi .oi-iva { display: none; }
  .oi .oi-total { margin: 18px 0 12px; }
  .oi .oi-etapas { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -14px; padding: 0 14px 4px; scroll-padding: 0 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .oi .oi-etapas::-webkit-scrollbar { display: none; }
  .oi .oi-etapa { flex: 0 0 86%; scroll-snap-align: start; }
  .oi .oi-puntos { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .oi .oi-puntos button { appearance: none; -webkit-appearance: none; width: 8px; height: 8px; padding: 0; margin: 0; border: 0; border-radius: 8px; background: rgba(244, 248, 255, .28); cursor: pointer; transition: width .3s, background-color .3s; }
  .oi .oi-puntos button[aria-current="true"] { width: 22px; background: #17B8F6; }
  .oi .oi-pie { flex-direction: column; align-items: stretch; text-align: center; }
  .oi .oi-tabla { font-size: 14px; }
  .oi .oi-tabla th, .oi .oi-tabla td { padding: 10px 8px; }
  .oi .oi-tabla thead th { font-size: 12px; }
  .oi .oi-tabla thead th:not(:first-child) { width: 20%; }
  .oi .oi-detalle > summary { padding: 16px 18px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .oi *, .oi *::before, .oi *::after { animation: none !important; transition: none !important; }
}
