/* InmaLink */
:root {
  --blue: #0055a4;
  --blue-deep: #003d78;
  --blue-soft: #e8f1fa;
  --yellow: #ffd200;
  --ink: #0f172a;
  --muted: #5b6b7c;
  --surface: #fff;
  --line: rgba(0, 85, 164, 0.14);
  --shadow: 0 14px 40px rgba(0, 61, 120, 0.14);
  --radius: 18px;
  --font: "Outfit", system-ui, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(165deg, #eef5fc 0%, #f7fafc 45%, #e8f0f8 100%);
  line-height: 1.5;
  position: relative;
}

/* Marca de agua InmaLink */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/image/InmaLinkLogo-fab.png");
  background-repeat: no-repeat;
  background-position: center 42%;
  background-size: min(72vw, 340px);
  opacity: 0.07;
  filter: grayscale(0.15);
}

body > * {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.55rem 0.9rem;
  z-index: 50;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
}

.btn--accent {
  background: var(--yellow);
  color: var(--blue-deep);
}

.btn--ghost {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.btn--google {
  width: 100%;
  background: #1a73e8;
  color: #fff;
  padding: 0.85rem 1rem;
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
}

.il-screen {
  min-height: 100dvh;
}

.il-screen[hidden],
[hidden] {
  display: none !important;
}

.il-boot {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  min-height: 100dvh;
}

.il-boot__card {
  width: min(100%, 340px);
  text-align: center;
  padding: 1.5rem 1.2rem;
}

.il-boot__logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 61, 120, 0.22));
  animation: ilBootPulse 1.4s ease-in-out infinite;
}

.il-boot__eyebrow {
  margin: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.il-boot__title {
  display: block;
  margin: 0.35rem 0 0.25rem;
  color: var(--blue-deep);
  font-size: 1.35rem;
}

.il-boot__lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.il-boot__spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(0, 85, 164, 0.18);
  border-top-color: var(--blue);
  animation: ilBootSpin 0.7s linear infinite;
}

@keyframes ilBootSpin {
  to { transform: rotate(360deg); }
}

@keyframes ilBootPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .il-boot__logo,
  .il-boot__spinner {
    animation: none;
  }
}

.il-login {
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.il-login__card {
  width: min(100%, 420px);
  background: var(--surface);
  border-radius: 24px;
  padding: 1.75rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.il-login__logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.85rem;
  border: 3px solid var(--blue-soft);
}

.il-login__eyebrow {
  margin: 0;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
}

.il-login h1 {
  margin: 0.2rem 0 0.4rem;
  font-size: 2rem;
  color: var(--blue-deep);
}

.il-login__lead {
  margin: 0 0 1rem;
  color: var(--muted);
}

.il-rules {
  text-align: left;
  margin: 0 0 1.1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #fff8e8;
  border: 1.5px solid rgba(230, 184, 0, 0.55);
  box-shadow: 0 6px 16px rgba(230, 184, 0, 0.12);
}

.il-rules__title {
  display: block;
  margin: 0 0 0.3rem;
  color: var(--blue-deep);
  font-size: 0.88rem;
  font-weight: 800;
}

.il-rules strong {
  color: var(--blue-deep);
  font-weight: 800;
}

.il-rules p {
  margin: 0;
  font-size: 0.82rem;
  color: #5c4a1a;
  line-height: 1.45;
  font-weight: 550;
  text-wrap: pretty;
}

.il-rules--feed {
  margin: 0 0 0.85rem;
  background: linear-gradient(135deg, #fff8e8, #fff);
}

.il-rules__inline {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #fff8e8;
  border: 1px solid rgba(230, 184, 0, 0.45);
  font-size: 0.8rem;
  color: #5c4a1a;
  font-weight: 550;
}

.il-back {
  display: inline-block;
  margin-top: 1rem;
  color: var(--blue);
  font-weight: 650;
  font-size: 0.9rem;
}

.il-onboarding {
  padding: 1rem 1rem 2rem;
  position: relative;
  overflow-x: hidden;
}

.ob {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  z-index: 1;
}

.ob__glow {
  position: absolute;
  inset: -20% -30% auto;
  height: 280px;
  background:
    radial-gradient(circle at 20% 40%, rgba(255, 210, 0, 0.35), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(0, 85, 164, 0.28), transparent 50%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
  animation: obFloat 8s ease-in-out infinite alternate;
}

@keyframes obFloat {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(18px) scale(1.05); }
}

.ob__header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  animation: obIn 0.45s ease both;
}

.ob__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 8px 20px rgba(0, 61, 120, 0.18);
}

.ob__eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}

.ob__header h1 {
  margin: 0.1rem 0 0;
  font-size: 1.45rem;
  color: var(--blue-deep);
  line-height: 1.2;
}

.ob__progress {
  position: relative;
  margin-bottom: 0.9rem;
  animation: obIn 0.5s ease 0.05s both;
}

.ob__progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 85, 164, 0.12);
  overflow: hidden;
  margin-bottom: 0.55rem;
}

.ob__progress-fill {
  display: block;
  height: 100%;
  width: 33%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #2f7fd4 55%, var(--yellow));
  transition: width 0.35s ease;
}

.ob__steps {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.ob__step.is-active {
  color: var(--blue-deep);
}

.ob__step.is-done {
  color: var(--blue);
}

.ob__preview {
  position: relative;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 85, 164, 0.12);
  box-shadow: 0 10px 28px rgba(0, 61, 120, 0.08);
  animation: obIn 0.55s ease 0.08s both;
}

.ob__preview-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.ob__preview-chip {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.ob__preview-chip.is-pulse {
  animation: obChip 0.35s ease;
}

@keyframes obChip {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes obIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes obPane {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.ob-step-error {
  margin: -0.35rem 0 0.75rem;
  text-align: center;
}
  border-radius: 22px;
  padding: 1.2rem 1.1rem 1.15rem;
  border: 1px solid rgba(0, 85, 164, 0.1);
  box-shadow: 0 16px 40px rgba(0, 61, 120, 0.1);
  animation: obPane 0.35s ease both;
}

.ob-pane[hidden] {
  display: none !important;
}

.ob-pane__title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  color: var(--blue-deep);
}

.ob-pane__sub {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.ob-field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue-deep);
}

.ob-field input,
.ob-field select {
  width: 100%;
  border: 1.5px solid rgba(0, 85, 164, 0.16);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  background: #f7fbff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ob-field input:focus,
.ob-field select:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 85, 164, 0.12);
}

.ob-foto {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  margin-bottom: 0.35rem;
}

.ob-foto__preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--blue-soft);
  border: 2px solid rgba(0, 85, 164, 0.14);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  cursor: default;
}

.ob-foto__preview[data-avatar-zoom] {
  cursor: zoom-in;
}

.ob-foto__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ob-foto__fallback {
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.ob-foto__fallback[hidden] {
  display: none !important;
}

.ob-foto__field {
  margin-bottom: 0;
}

.il-post__who,
.il-comment__who {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.il-avatar-btn {
  display: inline-grid;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: 50%;
  flex-shrink: 0;
  line-height: 0;
}

.il-avatar-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.il-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--blue-soft);
  border: 2px solid rgba(0, 85, 164, 0.12);
  display: block;
}

.il-avatar-btn--sm .il-avatar,
.il-avatar--sm {
  width: 34px;
  height: 34px;
}

.il-avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  border: none;
}

.il-avatar--fallback[hidden] {
  display: none !important;
}

.il-avatar-btn--sm .il-avatar--fallback,
.il-avatar--sm.il-avatar--fallback {
  font-size: 0.7rem;
}

.il-avatar-zoom {
  border: none;
  padding: 0;
  background: transparent;
  max-width: calc(100vw - 1.5rem);
  z-index: 10000;
}

.il-avatar-zoom::backdrop {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
}

.il-avatar-zoom__card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 1rem 1rem 0.85rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  max-width: min(92vw, 420px);
}

.il-avatar-zoom__close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.08);
  color: var(--blue-deep);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.il-avatar-zoom__img {
  display: block;
  width: min(72vw, 340px);
  height: min(72vw, 340px);
  max-width: 100%;
  object-fit: cover;
  border-radius: 50%;
  margin: 0.5rem auto 0.65rem;
  background: var(--blue-soft);
}

.il-avatar-zoom__name {
  margin: 0;
  text-align: center;
  font-weight: 700;
  color: var(--blue-deep);
  font-size: 0.95rem;
}

.il-avatar-zoom__email {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  word-break: break-all;
  letter-spacing: 0.01em;
  opacity: 0.85;
}

.il-avatar-zoom__email[hidden] {
  display: none !important;
}

.ob-roles {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.ob-role {
  display: block;
  cursor: pointer;
}

.ob-role input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ob-role__card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1.5px solid rgba(0, 85, 164, 0.14);
  background: #f8fbfe;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.ob-role__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--yellow), #ffe566);
  color: var(--blue-deep);
  flex-shrink: 0;
}

.ob-role__icon svg {
  width: 24px;
  height: 24px;
}

.ob-role__text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.ob-role__text strong {
  color: var(--blue-deep);
  font-size: 0.98rem;
}

.ob-role__text small {
  color: var(--muted);
  font-size: 0.8rem;
}

.ob-role input:checked + .ob-role__card {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 85, 164, 0.16);
  transform: translateY(-2px);
}

.ob-role input:focus-visible + .ob-role__card {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.ob-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.ob-nav .btn--primary,
.ob-nav .btn--accent {
  flex: 1;
}

.ob-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
}

.ob-chip {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.ob-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ob-chip span {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1.5px solid rgba(0, 85, 164, 0.16);
  background: #f7fbff;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--blue-deep);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ob-chip input:checked + span {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.ob-parentesco {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.ob-pill {
  display: block;
  cursor: pointer;
}

.ob-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ob-pill span {
  display: grid;
  place-items: center;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 85, 164, 0.16);
  background: #f7fbff;
  font-weight: 750;
  color: var(--blue-deep);
  transition: all 0.18s ease;
}

.ob-pill input:checked + span {
  background: var(--yellow);
  border-color: #e6b800;
  box-shadow: 0 8px 18px rgba(230, 184, 0, 0.25);
}

.il-panel {
  width: min(100%, 560px);
  margin: 0 auto;
  background: var(--surface);
  border-radius: 22px;
  padding: 1.35rem 1.2rem 1.4rem;
  box-shadow: var(--shadow);
}

.il-panel h1 {
  margin: 0 0 0.25rem;
  color: var(--blue-deep);
  font-size: 1.55rem;
}

.il-lead {
  margin: 0 0 1rem;
  color: var(--muted);
}

.il-form,
.il-modal__form {
  display: grid;
  gap: 0.85rem;
}

.il-form label,
.il-modal__form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--blue-deep);
}

.il-form label.il-radio,
.il-form label.il-check,
.il-modal__form label.il-radio,
.il-modal__form label.il-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  font-weight: 550;
  color: var(--ink);
  margin: 0.2rem 0;
}

.il-form label.il-radio input,
.il-form label.il-check input {
  width: auto;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--blue);
}

.il-form input,
.il-form select,
.il-form textarea,
.il-modal__form input,
.il-modal__form select,
.il-modal__form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: #fff;
}

.il-fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  margin: 0;
}

.il-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 750;
  color: var(--blue-deep);
}

.il-radio,
.il-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  font-weight: 550;
  margin: 0.35rem 0;
  color: var(--ink);
}

.il-checks {
  display: grid;
  gap: 0.15rem;
  max-height: 200px;
  overflow: auto;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbfe;
}

.il-hint {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}

.il-help {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.il-error {
  margin: 0;
  color: #b42318;
  font-weight: 650;
  font-size: 0.9rem;
}

.il-hijo-row {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  margin-bottom: 0.55rem;
}

.il-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.il-top__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.il-top__brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.il-top__brand strong {
  display: block;
  color: var(--blue-deep);
  font-size: 1.05rem;
}

.il-top__brand span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 48vw;
}

.il-top__email {
  font-size: 0.7rem !important;
  opacity: 0.9;
}

.il-top__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

.il-signout {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.2rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.il-signout:hover,
.il-signout:focus-visible {
  color: var(--blue-deep);
}

.il-main {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 1rem 1rem calc(1.5rem + var(--safe-bottom));
}

.il-compose {
  background: var(--surface);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}

.il-compose__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.il-compose__avatar {
  flex-shrink: 0;
}

.il-compose__meta {
  min-width: 0;
}

.il-compose__who {
  margin: 0 0 0.2rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--blue-deep);
}

.il-link {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.il-link:hover {
  color: var(--blue-deep);
}

.il-modal__lead {
  margin: -0.25rem 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.il-feed {
  display: grid;
  gap: 1.15rem;
}

/* Publicaciones — tarjeta 3D (estilo red social estudiantil) */
.il-post {
  --post-lift: 6px;
  position: relative;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-radius: 22px;
  padding: 1rem 1rem 0.95rem;
  border: 1.5px solid rgba(0, 85, 164, 0.12);
  box-shadow:
    0 var(--post-lift) 0 0 #003d78,
    0 calc(var(--post-lift) + 10px) 28px rgba(0, 61, 120, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.9) inset;
  transform: translateY(0);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  overflow: hidden;
  isolation: isolate;
}

.il-post::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--yellow) 55%, var(--blue-deep) 100%);
  z-index: 1;
}

.il-post::after {
  content: "";
  position: absolute;
  right: -18%;
  top: -30%;
  width: 55%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 0, 0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.il-post > * {
  position: relative;
  z-index: 1;
}

.il-post:hover {
  --post-lift: 8px;
  transform: translateY(-2px);
  border-color: rgba(0, 85, 164, 0.22);
  box-shadow:
    0 var(--post-lift) 0 0 #003d78,
    0 calc(var(--post-lift) + 14px) 34px rgba(0, 61, 120, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.95) inset;
}

.il-post:active {
  --post-lift: 3px;
  transform: translateY(3px);
  box-shadow:
    0 var(--post-lift) 0 0 #003d78,
    0 8px 18px rgba(0, 61, 120, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.il-post__head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0.35rem 0 0.7rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed rgba(0, 85, 164, 0.14);
}

.il-post__who {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.il-post__who > div {
  min-width: 0;
}

.il-post__author {
  display: block;
  color: var(--blue-deep);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: normal;
}

.il-post__owner {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.il-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 85, 164, 0.14);
  background: linear-gradient(180deg, #fff 0%, #eef5fc 100%);
  color: var(--blue-deep);
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 85, 164, 0.14);
  transition: transform 0.12s ease, box-shadow 0.12s ease, color 0.12s ease, background 0.12s ease;
}

.il-icon-btn svg {
  width: 1.05rem;
  height: 1.05rem;
  display: block;
}

.il-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 rgba(0, 85, 164, 0.16);
}

.il-icon-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 85, 164, 0.14);
}

.il-icon-btn--danger {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.18);
  background: linear-gradient(180deg, #fff 0%, #fff1f1 100%);
  box-shadow: 0 3px 0 rgba(185, 28, 28, 0.16);
}

.il-icon-btn--danger:hover {
  box-shadow: 0 4px 0 rgba(185, 28, 28, 0.18);
}

.il-post__date,
.il-comment__date {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
}

.il-post__date-time,
.il-comment__date .il-post__date-time {
  font-size: 0.66rem;
  font-weight: 600;
  opacity: 0.88;
}

.il-comment__edited {
  font-size: 0.66rem;
  color: var(--muted);
  font-weight: 600;
}

.il-post__title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--blue-deep);
  letter-spacing: -0.02em;
}

.il-post__body {
  margin: 0 0 0.75rem;
  white-space: pre-wrap;
  color: #1e293b;
  font-size: 0.95rem;
}

.il-post__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 85, 164, 0.1);
}

.il-post__actions .btn--ghost {
  border: 1.5px solid rgba(0, 85, 164, 0.14);
  background: #fff;
  box-shadow: 0 3px 0 rgba(0, 85, 164, 0.12);
  border-radius: 999px;
  font-weight: 750;
}

.il-post__actions .btn--ghost:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(0, 85, 164, 0.12);
}

.il-react {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1.5px solid rgba(0, 85, 164, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #eef5fc 100%);
  color: var(--blue-deep);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font-weight: 750;
  cursor: pointer;
  font-size: 0.82rem;
  box-shadow:
    0 4px 0 rgba(0, 85, 164, 0.16),
    0 8px 16px rgba(0, 61, 120, 0.08);
  transform: translateY(0);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}

.il-react:hover {
  transform: translateY(-1px);
  box-shadow:
    0 5px 0 rgba(0, 85, 164, 0.18),
    0 10px 18px rgba(0, 61, 120, 0.1);
}

.il-react:active {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 rgba(0, 85, 164, 0.16),
    0 4px 10px rgba(0, 61, 120, 0.08);
}

.il-react__icon {
  font-size: 1rem;
  line-height: 1;
}

.il-react__count {
  min-width: 1ch;
  font-variant-numeric: tabular-nums;
}

.il-like.is-active {
  background: linear-gradient(180deg, #fff1f1 0%, #ffe0e0 100%);
  color: #c62828;
  border-color: rgba(198, 40, 40, 0.2);
  box-shadow:
    0 4px 0 rgba(198, 40, 40, 0.22),
    0 8px 16px rgba(198, 40, 40, 0.1);
}

.il-dislike.is-active {
  background: linear-gradient(180deg, #eef2f7 0%, #e2e8f0 100%);
  color: #334155;
  border-color: rgba(51, 65, 85, 0.18);
  box-shadow:
    0 4px 0 rgba(51, 65, 85, 0.18),
    0 8px 16px rgba(15, 23, 42, 0.08);
}

.il-post .il-media {
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(0, 85, 164, 0.08),
    0 10px 24px rgba(0, 61, 120, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .il-post,
  .il-react,
  .il-post__actions .btn--ghost {
    transition: none;
  }

  .il-post:hover,
  .il-post:active,
  .il-react:hover,
  .il-react:active {
    transform: none;
  }
}

.il-empty {
  text-align: center;
  color: var(--muted);
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 14px;
}

.il-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  margin-top: 0.5rem;
}

.il-media--portrait {
  width: min(100%, 20rem);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
}

.il-media iframe,
.il-media img,
.il-drive-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* Imagen Drive: se ve completa, sin recortar */
.il-media--image {
  aspect-ratio: auto;
  height: auto;
  background: #f0f6fc;
  border: 1px solid var(--line);
}

.il-media--image img {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  max-height: min(70vh, 520px);
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
}

.il-drive-video {
  object-fit: contain;
  background: #000;
}

.il-drive-loading,
.il-drive-fail {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.65rem;
  padding: 1rem;
  background: #0f172a;
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.il-media--drive.is-playing:has(iframe) {
  aspect-ratio: auto;
  height: min(58vh, 420px);
}

.il-drive-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.il-drive-poster {
  position: absolute;
  inset: 0;
  border: 0;
  cursor: pointer;
  background: #1a2332;
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
}

.il-drive-poster__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.il-drive-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.42) 100%);
  pointer-events: none;
}

.il-drive-poster__play {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--blue-deep);
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.il-drive-poster__label {
  position: absolute;
  bottom: 0.65rem;
  left: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.il-modal {
  border: none;
  border-radius: 20px;
  padding: 0;
  width: min(96vw, 520px);
  background: transparent;
}

.il-modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.il-modal__form {
  background: #fff;
  padding: 1.2rem;
  border-radius: 20px;
}

.il-modal__form h2 {
  margin: 0 0 0.35rem;
  color: var(--blue-deep);
}

.il-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.il-modal--comments {
  width: min(96vw, 560px);
}

.il-modal--perfil {
  width: min(96vw, 540px);
  max-height: min(92vh, 820px);
}

.il-modal--perfil .il-modal__form {
  max-height: min(92vh, 820px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.ob-roles--compact {
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.ob-roles--compact .ob-role__card {
  padding: 0.65rem 0.7rem;
  min-height: 100%;
}

.ob-roles--compact .ob-role__text strong {
  font-size: 0.88rem;
}

.il-cfilters {
  display: grid;
  gap: 0.55rem;
  margin: 0.35rem 0 0.75rem;
  padding: 0.75rem;
  border-radius: 14px;
  background: #f4f8fc;
  border: 1px solid var(--line);
}

.il-cfilters--feed {
  margin: 0 0 1rem;
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(0, 61, 120, 0.05);
}

.il-cfilters__label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.il-cfilters__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.il-cchip {
  border: 1.5px solid rgba(0, 85, 164, 0.16);
  background: #fff;
  color: var(--blue-deep);
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.il-cchip.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.il-cfilters__row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.5rem;
}

@media (max-width: 420px) {
  .il-cfilters__row {
    grid-template-columns: 1fr;
  }
}

.il-cfilters__field {
  display: grid;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-deep);
}

.il-cfilters__field input,
.il-cfilters__field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  background: #fff;
  font-weight: 550;
}

.il-cfilters__meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 650;
}

.il-comments {
  display: grid;
  gap: 0.75rem;
  max-height: min(48vh, 380px);
  overflow: auto;
  margin: 0.35rem 0 0.85rem;
  padding-right: 0.15rem;
}

.il-comment p {
  margin: 0.25rem 0;
}

.il-comment time,
.il-comment__date {
  font-size: 0.75rem;
  color: var(--muted);
}

.il-post__owner,
.il-comment__owner {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.il-comment__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.il-comment__meta {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.il-comment__when {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem;
}

.il-comment__author {
  display: block;
  color: var(--blue-deep);
  font-size: 0.88rem;
  line-height: 1.25;
}

.il-comment__who time {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.il-comment__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
  align-items: center;
}

.il-comment__edit {
  display: grid;
  gap: 0.45rem;
  margin: 0.35rem 0 0.15rem;
}

.il-comment__edit[hidden] {
  display: none !important;
}

.il-comment__edit textarea {
  width: 100%;
  border: 1.5px solid rgba(0, 85, 164, 0.18);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  resize: vertical;
  min-height: 4.5rem;
  font: inherit;
}

.il-comment__edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.il-comment__text[hidden] {
  display: none !important;
}

.il-react--sm {
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
}

.il-react--sm .il-react__icon {
  font-size: 0.85rem;
}

.il-thread {
  display: grid;
  gap: 0.45rem;
}

.il-thread__replies {
  display: grid;
  gap: 0.45rem;
  margin-left: 1.15rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(0, 85, 164, 0.16);
}

.il-comment {
  background: #f7fbff;
  border-radius: 14px;
  padding: 0.75rem;
  border: 1px solid rgba(0, 85, 164, 0.08);
}

.il-comment--reply {
  background: #fff;
  padding: 0.65rem 0.7rem;
}

.il-comment--reply .il-comment__actions {
  margin-top: 0.4rem;
}

.il-comment--reply .il-react__label:empty {
  display: none;
}

.il-comment__reply-to {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.il-comment__reply-to strong {
  color: var(--blue-deep);
  font-weight: 700;
}

.il-reply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: var(--blue-soft);
  border: 1px solid rgba(0, 85, 164, 0.12);
}

.il-reply-banner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--blue-deep);
}

.il-reply-banner[hidden] {
  display: none !important;
}

.il-comment-form {
  display: grid;
  gap: 0.65rem;
}
