/* ============================================================
   INSIGHTS y NOTA — Diseño de Claude Design (Insights.dc.html)
   Las notas son las de Lunes Enfocados (js/notas.js).
   ============================================================ */

@keyframes isRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.is { background: var(--ec-white); color: var(--ec-ink); }
.is-rise { animation: isRise .7s var(--ease-out) both; }
.is .eyebrow.is-rise { animation-duration: .6s; }
.is-title.is-rise { animation-delay: .08s; }
.is-lead.is-rise { animation-delay: .16s; }
.is-sus-wrap.is-rise { animation-delay: .24s; }

/* ---------- Título y suscripción ---------- */
.is-top { padding: calc(80px + clamp(48px, 7vw, 96px)) 0 clamp(48px, 6vw, 72px); }
.is-top__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 40px 64px; align-items: end; }
.is-title {
  margin-top: 16px;
  font-family: var(--fh); font-weight: 700;
  font-size: clamp(38px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -.028em;
  color: var(--ec-navy); text-wrap: balance;
}
.is-lead { margin-top: 24px; max-width: 520px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; }

.is-sus { display: flex; flex-direction: column; gap: 10px; }
.is-sus label { font-size: 13px; font-weight: 600; color: var(--ec-navy); }
.is-sus__fila { display: flex; gap: 10px; flex-wrap: wrap; }
.is-sus input[type="email"] {
  flex: 1 1 240px; min-width: 0; height: 52px; padding: 0 16px;
  border: 1px solid var(--ec-border); border-radius: 8px;
  font-family: var(--font-body); font-size: 16px; color: var(--ec-navy); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.is-sus input[type="email"]:focus { border-color: var(--ec-blue); box-shadow: 0 0 0 3px rgba(28,128,189,.18); }
.is-sus.is-error input[type="email"] { border-color: #B42318; }
.is-sus .btn { height: 52px; }
.is-sus__trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.is-sus__error { font-size: 12px; color: #B42318; }
.is-sus-ok {
  display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 8px; background: var(--ec-card);
  font-size: 15px; line-height: 1.5; color: var(--ec-navy);
  animation: isRise .5s var(--ease-out) both;
}
.is-sus-ok__check { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ec-blue); display: flex; align-items: center; justify-content: center; }
.is-sus-ok__check span { width: 13px; height: 7px; border-left: 2.5px solid var(--ec-white); border-bottom: 2.5px solid var(--ec-white); transform: translateY(-2px) rotate(-45deg); }

/* ---------- Radiografía ---------- */
.is-radio-sec { padding: 0 0 clamp(48px, 6vw, 72px); }
.is-radio {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px 48px; align-items: center;
  padding: clamp(28px, 4vw, 56px); border-radius: 12px; background: var(--ec-navy); color: var(--ec-white);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.is-radio:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(20,24,44,.25); color: var(--ec-white); }
.is-radio__blob {
  position: absolute; right: -15%; top: -60%; width: 60%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(28,128,189,.55), rgba(28,128,189,0));
  animation: ecDriftA 20s ease-in-out infinite; pointer-events: none;
}
.is-radio__txt { position: relative; }
.is-radio__eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--ec-blue-soft); }
.is-radio__title { display: block; margin-top: 14px; font-family: var(--fh); font-weight: 700; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.02em; }
.is-radio__lead { display: block; margin-top: 12px; max-width: 480px; font-size: 17px; line-height: 1.55; color: var(--ec-on-navy-dim); }
.is-radio__btn {
  position: relative; justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 14px; background: var(--ec-blue);
  font-size: 15px; font-weight: 600; color: var(--ec-white);
}

/* ---------- Notas ---------- */
.is-notas-sec { padding: 0 0 clamp(72px, 10vw, 120px); }
.is-notas__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 28px; border-top: 2px solid var(--ec-navy);
}
.is-notas__head h2 { font-family: var(--fh); font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); color: var(--ec-navy); }
.is-temas { display: flex; flex-wrap: wrap; gap: 8px; }
.is-temas button {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--ec-border);
  background: var(--ec-white); color: var(--ec-navy);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.is-temas button:hover { border-color: var(--ec-blue); }
.is-temas button[aria-pressed="true"] { border-color: var(--ec-navy); background: var(--ec-navy); color: var(--ec-white); }
.is-temas button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(28,128,189,.35); }
.is-notas__pend { margin-top: 14px; font-size: 13px; color: var(--ec-muted); }
.is-notas { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 40px; }
.is-nota {
  display: flex; flex-direction: column; gap: 12px; padding: 28px 0;
  border-bottom: 1px solid var(--ec-border); color: var(--ec-navy);
  animation: isRise .5s var(--ease-out) var(--d, 0ms) both;
  transition: padding .3s var(--ease-out);
}
.is-nota:hover { padding-left: 10px; color: var(--ec-navy); }
.is-nota__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--ec-blue); }
.is-nota__min { color: var(--ec-muted); letter-spacing: 1px; }
.is-nota__t { font-family: var(--fh); font-weight: 700; font-size: clamp(20px, 1.9vw, 24px); line-height: 1.25; text-wrap: pretty; }
.is-nota__x { font-size: 15px; line-height: 1.55; color: var(--ec-muted); }
.is-notas__vacio { padding: 28px 0; font-size: 16px; color: var(--ec-muted); }

/* ---------- Página de una nota ---------- */
.nt { background: var(--ec-white); color: var(--ec-ink); }
.nt-sec { padding: calc(80px + clamp(40px, 6vw, 80px)) 0 clamp(72px, 10vw, 120px); }
.nt-wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
.nt-volver { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ec-muted); }
.nt-volver:hover { color: var(--ec-navy); }
.nt-meta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--ec-blue); }
.nt-meta span + span { color: var(--ec-muted); letter-spacing: 1px; }
.nt-title {
  margin-top: 16px;
  font-family: var(--fh); font-weight: 700;
  font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -.02em;
  color: var(--ec-navy); text-wrap: balance;
}
.nt-autor { margin-top: 20px; font-size: 15px; color: var(--ec-muted); }
.nt-rule { width: 32px; height: 3px; margin-top: 28px; background: var(--ec-blue); }
.nt-cuerpo { margin-top: 32px; }
.nt-cuerpo p { margin-top: 20px; font-size: 18px; line-height: 1.7; }
.nt-cuerpo p:first-child { margin-top: 0; }
.nt-cuerpo h2 { margin-top: 40px; font-family: var(--fh); font-weight: 700; font-size: clamp(22px, 2.2vw, 26px); line-height: 1.25; color: var(--ec-navy); }
.nt-cuerpo ul, .nt-cuerpo ol { margin: 20px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.nt-cuerpo li { font-size: 18px; line-height: 1.6; padding-left: 4px; }
.nt-cuerpo li::marker { color: var(--ec-blue); font-weight: 700; }
.nt-sus { margin-top: 56px; padding: 28px; border-radius: 12px; background: var(--ec-card); }
.nt-sus h2 { font-family: var(--fh); font-weight: 700; font-size: 22px; color: var(--ec-navy); }
.nt-sus .is-sus { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  .is-rise, .is-nota, .is-sus-ok, .is-radio__blob { animation: none; }
}
