/* Institutional pages: Sobre SmartGym, author profiles */
:root {
  --void: #05091A;
  --ink: #0D1B4B;
  --ink-soft: #46537F;
  --sky: #4A90D9;
  --sky-bright: #6CA0FF;
  --paper: #fff;
  --mist: #F4F7FC;
  --line: #E6ECF7;
  --maxw: 1180px;
  --prose: 720px;
  --r: 20px;
  --shadow: 0 24px 48px -28px rgba(5, 9, 26, 0.45);
  --shadow-sm: 0 12px 32px -18px rgba(13, 27, 75, 0.35);
  --disp: "Century Gothic", "Jost", system-ui, sans-serif;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

.inst-page {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.inst-page section.inst-hero,
.inst-page section.inst-body {
  padding-left: 0;
  padding-right: 0;
}

.inst-page a:not(.btn):not(.inst-chip):not(.nav-login):not(.brand) {
  color: var(--sky);
  font-weight: 600;
  text-decoration: none;
}

.inst-page a:not(.btn):not(.inst-chip):not(.nav-login):not(.brand):hover {
  color: var(--sky-bright);
}

/* Nav CTA: no heredar estilos de enlaces del cuerpo */
.inst-page header.nav a.btn-primary {
  color: #fff;
}

.inst-page header.nav a.btn-primary:hover {
  color: #fff;
}

.inst-wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 28px);
}

.inst-prose {
  max-width: var(--prose);
}

/* Sobre SmartGym: contenido al ancho del sitio (como index) */
.inst-page--wide .inst-wrap {
  max-width: var(--maxw);
  padding: 0 24px;
}

.inst-page--wide .inst-hero .inst-lead {
  max-width: 40rem;
}

.inst-page--wide .inst-def {
  max-width: none;
}

@media (min-width: 900px) {
  .inst-page--wide .inst-features {
    grid-template-columns: repeat(3, 1fr);
  }

  .inst-page--wide .inst-team-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

.inst-eyebrow {
  font: 600 11px / 1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-bright);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.inst-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--sky);
  border-radius: 1px;
}

.inst-eyebrow--dark {
  color: var(--sky);
}

.inst-eyebrow--dark::before {
  background: var(--sky);
}

/* Hero */
.inst-hero {
  background: var(--void);
  color: #fff;
  padding: clamp(120px, 18vw, 152px) 0 clamp(48px, 8vw, 72px);
  position: relative;
  overflow: hidden;
}

.inst-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 85% -15%, rgba(74, 144, 217, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(74, 144, 217, 0.12), transparent 50%);
  pointer-events: none;
}

.inst-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
  pointer-events: none;
}

.inst-hero .inst-wrap {
  position: relative;
  z-index: 1;
}

.inst-hero h1 {
  font-family: var(--disp);
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 16px 0 14px;
}

.inst-hero .inst-lead {
  color: #b8c5e8;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  max-width: 36rem;
  line-height: 1.65;
}

.inst-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--sky-bright) !important;
  margin-bottom: 20px;
}

.inst-back:hover {
  color: #fff !important;
}

/* Profile hero layout */
.inst-hero-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.inst-hero-profile .inst-photo {
  width: min(100%, 280px);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .inst-hero-profile {
    grid-template-columns: auto 1fr;
    gap: 40px;
  }

  .inst-hero-profile .inst-photo {
    width: 220px;
    margin: 0;
  }
}

.inst-photo {
  aspect-ratio: 1;
  border-radius: var(--r);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.inst-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.inst-photo--sm {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border-width: 2px;
  flex: 0 0 auto;
}

.inst-photo--sm img {
  object-position: center 15%;
}

/* Body sections */
.inst-body {
  padding: clamp(48px, 8vw, 80px) 0 clamp(64px, 10vw, 96px);
}

.inst-body h2 {
  font-family: var(--disp);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink);
}

.inst-body h2:not(:first-child) {
  margin-top: clamp(36px, 6vw, 52px);
}

.inst-body p,
.inst-body li {
  font-size: clamp(15px, 1.8vw, 16.5px);
  color: #3a4568;
  margin-bottom: 14px;
}

.inst-def {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-soft);
  padding: 20px 22px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r);
  border-left: 4px solid var(--sky);
  margin-bottom: 8px;
}

/* Feature grid */
.inst-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 20px 0 8px;
  padding: 0;
  list-style: none;
}

@media (min-width: 600px) {
  .inst-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.inst-features li {
  margin: 0;
  padding: 14px 16px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.inst-features li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--sky);
  flex-shrink: 0;
}

/* Metrics */
.inst-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 22px 0 0;
}

@media (min-width: 520px) {
  .inst-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

.inst-metric {
  padding: 22px 24px;
  background: linear-gradient(145deg, #fff 0%, var(--mist) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.inst-metric dt {
  font: 600 10.5px / 1.35 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.inst-metric dd {
  font-family: var(--disp);
  font-size: clamp(1.75rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.1;
}

.inst-metrics-note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding: 16px 18px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 14px;
  margin-top: 14px;
}

/* Team card */
.inst-team-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.inst-team {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.inst-team:hover {
  border-color: rgba(74, 144, 217, 0.35);
  box-shadow: var(--shadow);
}

@media (min-width: 560px) {
  .inst-team {
    flex-direction: row;
    align-items: center;
    padding: 24px 28px;
    gap: 22px;
  }
}

.inst-team h3 {
  font-family: var(--disp);
  font-size: 1.25rem;
  margin: 0 0 6px;
  color: var(--ink);
}

.inst-team h3 a {
  color: var(--ink);
}

.inst-team h3 a:hover {
  color: var(--sky);
}

.inst-team .inst-team-role {
  font: 600 11px / 1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 8px;
}

.inst-team p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.inst-team .inst-cta-link {
  display: inline-flex;
  margin-top: 12px;
  font-size: 14px;
}

/* Contact chips */
.inst-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.inst-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink) !important;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.inst-chip:hover {
  background: #fff;
  border-color: var(--sky);
  color: var(--sky) !important;
}

.inst-chip--primary {
  background: var(--sky);
  border-color: var(--sky);
  color: #fff !important;
}

.inst-chip--primary:hover {
  background: var(--sky-bright);
  border-color: var(--sky-bright);
  color: #fff !important;
}

/* Author profile body */
.inst-profile-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 768px) {
  .inst-profile-grid {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }

  .inst-profile-aside {
    position: sticky;
    top: 100px;
  }
}

.inst-card {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
}

.inst-card h2 {
  font-family: var(--disp);
  font-size: 1.15rem;
  margin: 0 0 10px !important;
}

.inst-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
}

.inst-role-tag {
  font: 600 11px / 1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-bright);
  margin-bottom: 8px;
}
