/* Observatorio: contexto y límites. Solo presentación del bloque aprobado. */
.op-proposal .om-context {
  --om-white: #f5f7fc;
  --om-muted: #c2d2e8;
  --om-copper: #ffbd83;
  --om-orange: #ff7900;
  --om-line: #83b9e454;
  position: relative;
  isolation: isolate;
  color: var(--om-white);
  padding: clamp(58px, 6vw, 88px) 0 clamp(58px, 6vw, 84px);
  background:
    radial-gradient(ellipse at 94% 6%, #1464a84d, transparent 40%),
    radial-gradient(ellipse at 1% 95%, #bb5a2229, transparent 32%),
    linear-gradient(115deg, #091425, #091a31 62%, #07162a);
  scroll-margin-top: 120px;
}

.op-proposal .om-context > .om-layout {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: start;
  gap: clamp(36px, 4.2vw, 64px);
  max-width: 1360px;
}

.op-proposal .om-context .om-intro,
.op-proposal .om-context .om-panel {
  min-width: 0;
}

.op-proposal .om-context .om-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  color: var(--om-copper);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.op-proposal .om-context .om-kicker::before {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin: 0;
  background: var(--om-orange);
}

.op-proposal .om-context .om-heading {
  margin: 0 0 23px;
  max-width: 490px;
  color: var(--om-white);
  font-size: clamp(42px, 4.1vw, 57px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 700;
}

.op-proposal .om-context .om-heading > span {
  display: block;
}

.op-proposal .om-context .om-heading-accent {
  color: var(--om-copper);
}

.op-proposal .om-context .om-lead {
  max-width: 470px;
  margin: 0;
  color: var(--om-muted);
  font-size: 17px;
  line-height: 1.7;
}

.op-proposal .om-context .om-art {
  display: block;
  width: min(78%, 310px);
  height: auto;
  margin: 22px 0 17px 14px;
  object-fit: contain;
}

.op-proposal .om-context .om-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 16px 25px;
  border: 1px solid #ffc17b;
  border-radius: 14px;
  background: linear-gradient(115deg, #ff8b16, var(--om-orange));
  box-shadow: inset 0 1px #fff4, 0 14px 35px -24px #ff790090;
  color: #07142e;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, box-shadow .18s ease;
}

.op-proposal .om-context .om-action:hover {
  transform: none;
  background: #ff962d;
  color: #07142e;
  box-shadow: inset 0 1px #fff5, 0 14px 35px -22px #ff790080;
}

.op-proposal .om-context .om-action > span {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
}

.op-proposal .om-context .om-caption {
  margin: 11px 0 0;
  color: var(--om-muted);
  font-size: 13px;
  line-height: 1.6;
}

.op-proposal .om-context .om-panel {
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 28px;
  background:
    linear-gradient(135deg, #10243aee, #0d2139eb 75%, #13263bea) padding-box,
    linear-gradient(145deg, #5487b6b3, #c4f2ff 27%, #4b89b67a 45%, #45719580 82%, #ffbd83 99%) border-box;
  box-shadow: inset 0 1px #e1f5ff14, 0 18px 55px -35px #020913;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.op-proposal .om-context .om-item {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--om-white);
}

.op-proposal .om-context .om-item + .om-item {
  border-top: 1px solid var(--om-line);
}

.op-proposal .om-context .om-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--om-copper), var(--om-orange), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.op-proposal .om-context .om-item[open]::before {
  opacity: 1;
}

.op-proposal .om-context .om-item > summary {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 17px;
  min-height: 82px;
  margin: 0;
  padding: 22px 14px 22px 21px;
  border-radius: 11px;
  color: var(--om-white);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -.02em;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: #87ceff26;
  transition: background-color .18s ease;
}

.op-proposal .om-context .om-item > summary::-webkit-details-marker {
  display: none;
}

.op-proposal .om-context .om-item > summary::marker {
  content: "";
}

.op-proposal .om-context .om-item > summary:hover {
  background: #8ecbff0a;
}

.op-proposal .om-context .om-icon {
  display: block;
  width: 27px;
  height: 27px;
  color: #deedff;
  flex-shrink: 0;
}

.op-proposal .om-context .om-question {
  min-width: 0;
  overflow-wrap: break-word;
}

.op-proposal .om-context .om-toggle {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.op-proposal .om-context .om-toggle::before,
.op-proposal .om-context .om-toggle::after {
  content: "";
  position: absolute;
  inset: 8px 0 auto;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.op-proposal .om-context .om-toggle::after {
  transform: rotate(90deg);
  transition: transform .18s ease, opacity .18s ease;
}

.op-proposal .om-context .om-item[open] .om-toggle::after {
  transform: rotate(0deg);
  opacity: 0;
}

.op-proposal .om-context .om-answer {
  padding: 0 18px 26px 67px;
}

.op-proposal .om-context .om-answer p {
  margin: 0 0 15px;
  color: var(--om-muted);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.op-proposal .om-context .om-answer p:last-child {
  margin-bottom: 0;
}

.op-proposal .om-context .om-item[open] > .om-answer {
  animation: om-answer-enter .2s ease-out;
}

.op-proposal .om-context :is(summary, .om-action):focus-visible {
  outline: 3px solid #97d9ff;
  outline-offset: 4px;
}

@keyframes om-answer-enter {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Native disclosure stays functional without this progressive enhancement. */
@supports (interpolate-size: allow-keywords) and (transition-behavior: allow-discrete) {
  .op-proposal .om-context .om-item {
    interpolate-size: allow-keywords;
  }
  .op-proposal .om-context .om-item::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size .24s ease, content-visibility .24s allow-discrete;
  }
  .op-proposal .om-context .om-item[open]::details-content {
    block-size: auto;
  }
}

@media (max-width: 1100px) {
  .op-proposal .om-context > .om-layout { gap: 32px; }
  .op-proposal .om-context .om-panel { padding-inline: 12px; }
  .op-proposal .om-context .om-item > summary { gap: 12px; padding-inline: 17px 9px; }
  .op-proposal .om-context .om-answer { padding-left: 58px; padding-right: 10px; }
}

@media (max-width: 900px) {
  .op-proposal .om-context > .om-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }
  .op-proposal .om-context .om-intro { max-width: 620px; }
  .op-proposal .om-context .om-heading { font-size: clamp(35px, 6vw, 50px); max-width: 590px; }
  .op-proposal .om-context .om-lead { max-width: 570px; }
  .op-proposal .om-context .om-art { width: 250px; margin-block: 17px; }
  .op-proposal .om-context .om-panel { padding-inline: 18px; }
  .op-proposal .om-context .om-item > summary { font-size: 19px; gap: 17px; padding-inline: 21px 14px; }
  .op-proposal .om-context .om-answer { padding-left: 67px; padding-right: 18px; }
}

@media (max-width: 540px) {
  .op-proposal .om-context { padding-block: 48px; }
  .op-proposal .om-context > .om-layout { padding-inline: 20px; gap: 30px; }
  .op-proposal .om-context .om-kicker { font-size: 13px; margin-bottom: 20px; }
  .op-proposal .om-context .om-heading { font-size: clamp(31px, 8.2vw, 40px); line-height: 1.12; margin-bottom: 20px; }
  .op-proposal .om-context .om-lead { font-size: 16px; line-height: 1.7; }
  .op-proposal .om-context .om-art { width: min(64%, 210px); margin-left: 0; }
  .op-proposal .om-context .om-action { gap: 16px; padding: 15px 18px; font-size: 15px; min-height: 55px; }
  .op-proposal .om-context .om-panel { padding: 5px 10px; border-radius: 22px; }
  .op-proposal .om-context .om-item > summary {
    grid-template-columns: 23px minmax(0, 1fr) 16px;
    gap: 11px;
    min-height: 78px;
    padding: 20px 8px 20px 11px;
    font-size: 16px;
    line-height: 1.5;
  }
  .op-proposal .om-context .om-icon { width: 23px; height: 23px; }
  .op-proposal .om-context .om-toggle { width: 16px; height: 16px; }
  .op-proposal .om-context .om-answer { padding: 0 11px 23px; }
  .op-proposal .om-context .om-answer p { font-size: 16px; line-height: 1.7; }
  .op-proposal .om-context .om-item::before { left: -5px; top: 18px; bottom: 18px; width: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .op-proposal .om-context *,
  .op-proposal .om-context *::before,
  .op-proposal .om-context *::after,
  .op-proposal .om-context .om-item::details-content {
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .op-proposal .om-context,
  .op-proposal .om-context .om-panel { background: Canvas; color: CanvasText; }
  .op-proposal .om-context .om-panel,
  .op-proposal .om-context .om-item + .om-item { border-color: CanvasText; }
  .op-proposal .om-context .om-item::before { background: Highlight; }
  .op-proposal .om-context .om-action { background: ButtonFace; color: ButtonText; border-color: ButtonText; }
  .op-proposal .om-context :is(summary, .om-action):focus-visible { outline-color: Highlight; }
}

@media print {
  .op-proposal .om-context { background: #fff; color: #111; padding-block: 24px; }
  .op-proposal .om-context > .om-layout { display: block; }
  .op-proposal .om-context .om-art,
  .op-proposal .om-context .om-toggle { display: none; }
  .op-proposal .om-context .om-panel { margin-top: 25px; background: #fff; box-shadow: none; border-color: #777; backdrop-filter: none; }
  .op-proposal .om-context :is(.om-heading, .om-heading-accent, .om-kicker, .om-lead, .om-caption, .om-question, .om-icon, .om-answer p) { color: #111; }
  .op-proposal .om-context .om-item { break-inside: avoid; }
  .op-proposal .om-context .om-item > .om-answer { display: block !important; }
  .op-proposal .om-context .om-item::details-content { display: block; block-size: auto; content-visibility: visible; overflow: visible; }
}
