/* Infomedik — Valoración integral de caso */
.vi-page { background: #f1f5f9; color: #0f172a; }
.vi-page * { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif; }

.vi-hero {
  position: relative; min-height: 380px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background-color: #0B2C4A;
  color: #fff; padding: 3.4rem 1rem 2.8rem;
}
.vi-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: 18% 40%;
}
.vi-hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 28, 48, 0.28) 0%, rgba(11, 44, 74, 0.48) 38%, rgba(11, 44, 74, 0.82) 100%);
}
.vi-hero-inner {
  position: relative; z-index: 2; width: 100%; max-width: 960px; margin: 0 auto; text-align: center;
}
.vi-hero-split {
  min-height: min(72vh, 620px);
  align-items: stretch;
}
.vi-hero-split-inner {
  position: relative; z-index: 2;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.4rem 0 3rem;
  display: grid;
  grid-template-columns: minmax(196px, 280px) minmax(0, 1fr);
  grid-template-areas: "video content";
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: center;
}
.vi-hero-content { grid-area: content; text-align: left; }
.vi-hero-split .vi-hero-content p { margin: 0; max-width: 38rem; }
.vi-hero-video-card {
  grid-area: video;
  position: relative; margin: 0; width: auto;
  height: min(520px, 68vh); max-width: 280px; justify-self: start;
  aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden;
  background: #020617 center / cover no-repeat;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .18),
    0 22px 48px rgba(2, 6, 23, .42),
    0 0 36px rgba(62, 111, 146, .28);
}
.vi-hero-video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .vi-hero-split-inner {
    grid-template-columns: 1fr;
    grid-template-areas: "content" "video";
    justify-items: center;
    text-align: center;
  }
  .vi-hero-content { text-align: center; }
  .vi-hero-split .vi-hero-content p { margin: 0 auto; }
  .vi-hero-video-card { justify-self: center; height: min(380px, 52vh); }
}
.vi-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; padding: .35rem .75rem; margin-bottom: .85rem; color: #dbeafe;
}
.vi-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.55rem); font-weight: 800; margin: 0 0 .65rem; letter-spacing: -.02em;
}
.vi-hero p {
  max-width: 42rem; margin: 0 auto; line-height: 1.55; opacity: .95; font-size: 1.05rem;
}
@media (max-width: 640px) {
  .vi-hero { min-height: 300px; padding: 2.6rem 1rem 2.1rem; }
}

.vi-wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.15rem 3rem; }

.vi-progress {
  position: sticky; top: 72px; z-index: 20;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15,23,42,.08);
  padding: .7rem .95rem .8rem; margin: 0 0 1.1rem;
}
.vi-progress-top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .75rem; margin-bottom: .45rem;
}
.vi-progress h4 {
  margin: 0; font-size: .72rem; color: #64748b;
  text-transform: uppercase; letter-spacing: .04em; font-weight: 700;
}
.vi-progress-meta { display: flex; align-items: baseline; gap: .55rem; }
.vi-progress .pct { font-weight: 800; color: #0B2C4A; font-size: .95rem; }
.vi-progress .sec { font-size: .75rem; color: #64748b; }
.vi-progress-track {
  height: 10px; background: #e2e8f0; border-radius: 999px; overflow: hidden;
}
.vi-progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #0B2C4A 0%, #3E7092 100%);
  border-radius: 999px; transition: width .25s ease;
}
@media (max-width: 820px) {
  .vi-progress { top: 8px; }
}

.vi-disclaimer {
  margin: 0 0 1.15rem; padding: .85rem 1rem; border-radius: 12px;
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  font-size: .88rem; line-height: 1.5;
}
.vi-disclaimer-end {
  margin: 1.4rem 0 0; background: #f8fafc; border: 1px solid #e2e8f0; color: #475569;
}
.vi-hint-strong {
  color: #334155; font-size: .92rem; background: #f0f7fb;
  border: 1px solid #c5d8e6; border-radius: 12px; padding: .85rem 1rem;
}

.vi-steps {
  display: grid; gap: .75rem; margin: 0 0 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .vi-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.vi-step {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: .95rem 1rem; box-shadow: 0 6px 18px rgba(15,23,42,.04);
}
.vi-step strong {
  display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: #0f766e; margin-bottom: .35rem;
}
.vi-step p { margin: 0; font-size: .9rem; line-height: 1.45; color: #334155; }

.vi-panel {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15,23,42,.05); padding: 1.15rem 1.15rem 1.3rem;
  margin-bottom: 1.15rem;
}
.vi-panel h2 {
  font-size: 1.08rem; font-weight: 800; color: #0f172a; margin: 0 0 .25rem;
}
.vi-hint { font-size: .84rem; color: #64748b; margin: 0 0 1rem; line-height: 1.45; }

.vi-grid {
  display: grid; gap: .85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 860px) {
  .vi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.vi-span-2 { grid-column: span 2; }
.vi-span-all { grid-column: 1 / -1; }
@media (max-width: 639px) {
  .vi-grid { grid-template-columns: 1fr; }
  .vi-span-2, .vi-span-all { grid-column: auto; }
}

.vi-field { display: flex; flex-direction: column; gap: .3rem; }
.vi-field label, .vi-check-title {
  font-size: .78rem; font-weight: 700; color: #475569;
}
.vi-field input[type="text"],
.vi-field input[type="number"],
.vi-field select,
.vi-field textarea {
  border: 1px solid #cbd5e1; border-radius: 10px; padding: .65rem .75rem;
  font-size: .95rem; color: #0f172a; background: #fff; width: 100%;
}
.vi-field textarea { min-height: 6.2rem; resize: vertical; line-height: 1.45; }
.vi-field textarea.vi-tall { min-height: 8.2rem; }
.vi-field textarea.vi-short { min-height: 3.6rem; }
.vi-field input:focus,
.vi-field select:focus,
.vi-field textarea:focus {
  outline: 2px solid #99f6e4; border-color: #0f766e;
}

.vi-checks {
  display: grid; gap: .55rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .vi-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.vi-check {
  display: flex; align-items: flex-start; gap: .55rem;
  border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 12px;
  padding: .7rem .8rem; cursor: pointer; font-size: .88rem; line-height: 1.4; color: #334155;
}
.vi-check:has(input:checked) {
  background: #ecfdf5; border-color: #5eead4; color: #115e59;
}
.vi-check input { margin-top: .15rem; flex-shrink: 0; }

.vi-actions {
  display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .35rem;
}
.vi-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border-radius: 12px; font-weight: 800; font-size: .92rem;
  padding: .75rem 1.15rem; border: 0; cursor: pointer; text-decoration: none;
}
.vi-btn-primary { background: #0f766e; color: #fff; }
.vi-btn-primary:hover { background: #115e59; }
.vi-btn-secondary { background: #0B2C4A; color: #fff; }
.vi-btn-secondary:hover { background: #071e33; }
.vi-btn-ghost { background: #fff; color: #334155; border: 1px solid #cbd5e1; }
.vi-btn[disabled] { opacity: .55; cursor: not-allowed; }

.vi-errors {
  margin-top: .9rem; padding: .75rem .9rem; border-radius: 10px;
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; font-size: .88rem;
}
.vi-warn {
  margin-top: .9rem; padding: .75rem .9rem; border-radius: 10px;
  background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; font-size: .88rem;
}
.vi-ok {
  margin-top: .65rem; font-size: .86rem; color: #166534; font-weight: 700;
}

.vi-prompt {
  width: 100%; min-height: 22rem; border: 1px solid #cbd5e1; border-radius: 12px;
  padding: .9rem 1rem; font-size: .86rem; line-height: 1.5; color: #0f172a;
  background: #f8fafc; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.vi-prompt-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem;
  margin: .55rem 0 0; font-size: .8rem; color: #64748b;
}

.vi-destinos {
  display: grid; gap: .65rem; margin-top: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .vi-destinos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.vi-destino {
  display: flex; flex-direction: column; gap: .2rem;
  border: 1px solid #e2e8f0; border-radius: 12px; padding: .8rem .9rem;
  text-decoration: none; color: inherit; background: #fff;
}
.vi-destino:hover { border-color: #5eead4; background: #f0fdfa; }
.vi-destino strong { color: #0f766e; font-size: .92rem; }
.vi-destino span { font-size: .8rem; color: #64748b; }

.vi-field-chips { margin-bottom: .85rem; }
.vi-chips-multi { margin-top: .4rem; }
.vi-chips-multi .vi-chip {
  font-size: .8rem; padding: .42rem .85rem; border-radius: 10px;
  background: #fff; color: #0B2C4A; border: 1.5px solid #3E7092; font-weight: 700;
}
.vi-chips-multi .vi-chip:hover { background: #f4f8fb; }
.vi-chips-multi .vi-chip[aria-pressed="true"] {
  background: #3E7092; border-color: #3E7092; color: #fff;
}

.vi-tipo {
  display: grid; gap: .75rem; grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .vi-tipo { grid-template-columns: 1fr 1fr; }
}
.vi-tipo-card {
  text-align: left; border: 1.5px solid #3E7092; background: #fff; color: #0B2C4A;
  border-radius: 16px; padding: 1.05rem 1.1rem; cursor: pointer;
}
.vi-tipo-card strong { display: block; font-size: .98rem; margin-bottom: .3rem; }
.vi-tipo-card span { display: block; font-size: .82rem; line-height: 1.4; color: #475569; font-weight: 600; }
.vi-tipo-card:hover { background: #f4f8fb; }
.vi-tipo-card[aria-pressed="true"] {
  background: #0B2C4A; color: #fff; border-color: #3E7092;
}
.vi-tipo-card[aria-pressed="true"] span { color: rgba(255,255,255,.88); }
.vi-req { color: #b91c1c; }

.vi-labs {
  display: grid; gap: .7rem .65rem; margin: 0 0 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 720px) {
  .vi-labs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .vi-labs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.vi-labs .vi-field { position: relative; }
.vi-labs .vi-field label { font-size: .72rem; }
.vi-labs .vi-field input {
  padding: .55rem .7rem .35rem; font-weight: 700; letter-spacing: .01em;
}
.vi-unit {
  display: block; margin-top: .15rem; font-size: .68rem; font-weight: 700;
  color: #94a3b8; letter-spacing: .02em;
}

.vi-launch {
  display: grid; gap: .65rem; margin-top: .35rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .vi-launch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.vi-launch-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .35rem; min-height: 132px; text-align: center;
  border-radius: 18px; padding: 1.1rem 1rem 1rem; text-decoration: none; color: #fff;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.vi-launch-ico {
  width: 3rem; height: 3rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.16); margin-bottom: .15rem;
}
.vi-launch-ico svg { width: 1.7rem; height: 1.7rem; display: block; }
.vi-launch-btn strong { font-size: 1.12rem; font-weight: 800; letter-spacing: .01em; }
.vi-launch-btn > span:not(.vi-launch-ico) { font-size: .75rem; font-weight: 700; opacity: .88; }
.vi-launch-btn:hover { transform: translateY(-3px); }
.vi-launch-btn:focus-visible { outline: 3px solid #0B2C4A; outline-offset: 3px; }
.vi-launch-gpt {
  background: #10a37f;
  box-shadow: 0 10px 22px rgba(16, 163, 127, .3);
}
.vi-launch-gpt:hover { background: #0d8c6c; box-shadow: 0 14px 26px rgba(16, 163, 127, .4); }
.vi-launch-gemini {
  background: radial-gradient(circle at 30% 20%, #3d4cff 0%, #0b1224 62%);
  box-shadow: 0 10px 22px rgba(61, 76, 255, .28);
}
.vi-launch-gemini:hover { filter: brightness(1.1); box-shadow: 0 14px 26px rgba(61, 76, 255, .38); }
.vi-launch-claude {
  background: #c9642a;
  box-shadow: 0 10px 22px rgba(201, 100, 42, .32);
}
.vi-launch-claude:hover { background: #b35522; box-shadow: 0 14px 26px rgba(201, 100, 42, .42); }
.vi-launch-note {
  margin: .75rem 0 0; font-size: .8rem; color: #64748b;
}
.vi-launch-note a { color: #0f766e; font-weight: 700; }

.vi-related {
  display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .35rem;
}
.vi-related a {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid #cbd5e1; border-radius: 999px; padding: .4rem .8rem;
  font-size: .82rem; font-weight: 700; color: #334155; text-decoration: none; background: #fff;
}
.vi-related a:hover { border-color: #0f766e; color: #0f766e; }

.vi-panel-refine {
  border-color: #99f6e4;
  background: linear-gradient(180deg, #f0fdfa 0%, #fff 42%);
}
.vi-q {
  display: grid; grid-template-columns: 2rem 1fr; gap: .65rem .75rem;
  padding: .85rem 0; border-top: 1px solid #ccfbf1;
}
.vi-q:first-of-type { border-top: 0; padding-top: 0; }
.vi-q-n {
  width: 1.85rem; height: 1.85rem; margin: .15rem 0 0;
  border-radius: 999px; background: #0f766e; color: #fff;
  font-size: .78rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.vi-q label, .vi-q .vi-q-label {
  display: block; font-size: .86rem; font-weight: 700; color: #134e4a; margin-bottom: .4rem;
}
.vi-q textarea, .vi-q input[type="text"] {
  border: 1px solid #99f6e4; border-radius: 10px; padding: .6rem .75rem;
  font-size: .95rem; color: #0f172a; background: #fff; width: 100%;
  min-height: 4.4rem; resize: vertical;
}
.vi-q input[type="text"] { min-height: 0; }
.vi-q textarea:focus, .vi-q input[type="text"]:focus {
  outline: 2px solid #99f6e4; border-color: #0f766e;
}
.vi-chips {
  display: flex; flex-wrap: wrap; gap: .45rem;
}
.vi-chip {
  border: 1px solid #99f6e4; background: #fff; color: #115e59;
  font-weight: 700; font-size: .82rem; border-radius: 999px;
  padding: .45rem .8rem; cursor: pointer;
}
.vi-chip:hover { background: #ecfdf5; }
.vi-chip[aria-pressed="true"] {
  background: #0f766e; border-color: #0f766e; color: #fff;
}
.vi-improve-mount .vi-q:first-of-type { padding-top: .15rem; }

.vi-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
}
.vi-modal[hidden] { display: none !important; }
.vi-modal-backdrop {
  position: absolute; inset: 0; background: rgba(8, 18, 32, .55);
}
.vi-modal-card {
  position: relative; z-index: 1;
  width: min(640px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  background: #0B2C4A;
  color: #fff;
  border: 1.5px solid #3E7092;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(8, 18, 32, .35);
  padding: 1.35rem 1.35rem 1.2rem;
}
.vi-modal-x {
  position: absolute; top: .55rem; right: .7rem;
  width: 2rem; height: 2rem; border: 0; background: transparent;
  color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.vi-modal-card h2 {
  margin: 0 2rem .85rem 0; font-size: 1.2rem; font-weight: 800; line-height: 1.3;
  color: #fff;
}
.vi-modal-body p {
  margin: 0 0 .85rem; font-size: .95rem; line-height: 1.55; color: #e8eef4;
}
.vi-modal-body p:last-child { margin-bottom: 0; }
.vi-modal-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem; margin-top: 1.1rem; padding-top: .9rem;
  border-top: 1px solid rgba(62, 112, 146, .55);
}
.vi-modal-check {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .86rem; font-weight: 600; color: #dbe7f0; cursor: pointer;
}
.vi-btn-modal {
  background: #fff; color: #0B2C4A; border: 1.5px solid #3E7092;
}
.vi-btn-modal:hover { background: #e8eef4; }
