:root {
  --bio-page-bg: #f4f6fb;
  --bio-surface: #ffffff;
  --bio-text: #0d1529;
  --bio-muted: rgba(13, 21, 41, 0.66);
  --bio-border: rgba(13, 21, 41, 0.12);
  --bio-accent: #4099b2;
  --bio-accent-contrast: #ffffff;
  --bio-accent-soft: rgba(64, 153, 178, 0.18);
  --bio-hero-gradient: linear-gradient(135deg, #0d1529 0%, #102044 55%, #143055 100%);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body.bio-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Roboto", sans-serif;
  color: var(--bio-text);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.85), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 32%),
    var(--bio-page-bg);
}

.bio-shell,
.bio-home-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.bio-home-shell {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 18px;
  max-width: 720px;
}

.bio-shell--feed {
  width: min(1320px, calc(100% - 24px));
}

.bio-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bio-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--bio-accent) 22%, white);
  background: var(--bio-accent-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bio-accent);
}

.bio-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.bio-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.bio-brand__copy {
  display: grid;
  gap: 8px;
}

.bio-brand__copy strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: rgba(240, 249, 255, 0.9);
}

.bio-body--home .bio-brand__copy strong {
  color: var(--bio-text);
}

.bio-body--home .bio-brand__mark {
  border-color: rgba(13, 21, 41, 0.12);
  background: #ffffff;
  color: var(--bio-text);
}

.bio-home-shell h1,
.bio-profile-brand__copy h1,
.bio-feed-header h2,
.bio-empty h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.bio-home-shell h1,
.bio-profile-brand__copy h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.bio-home-shell p,
.bio-empty p,
.bio-profile-brand__copy p,
.bio-feed-header p,
.bio-footer p {
  margin: 0;
  line-height: 1.65;
}

.bio-profile-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bio-hero-gradient);
  color: #f4fbff;
  box-shadow: 0 30px 60px rgba(9, 19, 35, 0.16);
}

.bio-profile-hero__main,
.bio-profile-brand,
.bio-profile-brand__copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.bio-profile-brand {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.bio-profile-brand__logo,
.bio-profile-brand__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(84px, 10vw, 112px);
  min-height: clamp(84px, 10vw, 112px);
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.bio-profile-brand__logo img {
  width: 100%;
  height: auto;
  max-height: 76px;
  object-fit: contain;
}

.bio-profile-brand__fallback {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: #ffffff;
}

.bio-profile-brand__subtitle {
  font-size: 1.04rem;
  font-weight: 700;
  color: rgba(240, 249, 255, 0.94);
}

.bio-profile-brand__copy > p:last-child {
  color: rgba(240, 249, 255, 0.84);
  max-width: 58ch;
}

.bio-stat {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.bio-stat__label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 249, 255, 0.7);
}

.bio-stat__value {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  color: #ffffff;
}

.bio-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.bio-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--bio-border);
  background: rgba(255, 255, 255, 0.76);
  color: var(--bio-text);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.bio-social-link i {
  font-size: 1.05rem;
}

.bio-social-link:hover,
.bio-social-link:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--bio-accent) 46%, white);
  box-shadow: 0 16px 28px rgba(9, 19, 35, 0.1);
  outline: none;
}

.bio-social-link--whatsapp {
  background: var(--bio-accent);
  border-color: var(--bio-accent);
  color: var(--bio-accent-contrast);
  box-shadow: 0 18px 30px color-mix(in srgb, var(--bio-accent) 24%, transparent);
}

.bio-feed-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 18px;
}

.bio-feed-header h2 {
  color: var(--bio-text);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

.bio-feed-header p {
  max-width: 30rem;
  color: var(--bio-muted);
}

.bio-feed {
  display: block;
}

.bio-posts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.bio-post {
  display: block;
  width: 100%;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, opacity 220ms ease;
}

.bio-post--new {
  animation: bio-card-enter 420ms ease both;
}

.bio-post__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bio-surface);
  border: 1px solid var(--bio-border);
  box-shadow: 0 18px 42px rgba(9, 19, 35, 0.08);
}

.bio-post img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: var(--bio-surface);
  transition: transform 240ms ease;
}

.bio-post__caption {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 6px;
  padding: 18px 16px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 17, 31, 0.04) 6%, rgba(8, 17, 31, 0.86) 100%);
  color: #f4fbff;
}

.bio-post__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 251, 255, 0.72);
}

.bio-post__caption strong {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  line-height: 1.35;
}

.bio-post:hover img,
.bio-post:focus-visible img {
  transform: scale(1.02);
}

.bio-post:hover,
.bio-post:focus-visible {
  outline: none;
}

.bio-feed__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  margin-top: 8px;
}

.bio-feed__load {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--bio-border);
  background: var(--bio-text);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.bio-feed__load:hover,
.bio-feed__load:focus-visible {
  transform: translateY(-1px);
  background: var(--bio-accent);
  outline: none;
}

.bio-feed__load:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.bio-feed__status {
  color: var(--bio-muted);
  font-size: 0.92rem;
}

.bio-feed__sentinel {
  height: 1px;
}

@keyframes bio-card-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bio-empty {
  display: grid;
  gap: 10px;
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--bio-border);
}

.bio-footer {
  display: grid;
  gap: 18px;
  margin-top: 30px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--bio-border);
}

.bio-footer__intro {
  display: flex;
  gap: 14px;
  align-items: center;
}

.bio-footer__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  min-height: 42px;
  padding: 0 14px;
  background: var(--bio-text);
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.bio-footer__brand strong {
  display: block;
  margin-bottom: 4px;
  color: var(--bio-text);
}

.bio-footer__intro strong {
  display: block;
  margin-bottom: 4px;
  color: var(--bio-text);
}

.bio-footer__services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.bio-footer__service {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--bio-border);
}

.bio-footer__service span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bio-accent);
  font-weight: 700;
}

.bio-footer__service strong {
  color: var(--bio-text);
  font-family: "Manrope", sans-serif;
}

.bio-footer__service p {
  color: var(--bio-muted);
}

.bio-footer__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 44px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--bio-border);
  color: var(--bio-text);
  text-decoration: none;
  text-transform: lowercase;
}

.bio-home-shell {
  padding-top: 48px;
  padding-bottom: 48px;
}

.bio-home-tip {
  display: inline-grid;
  gap: 4px;
  width: fit-content;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid var(--bio-border);
}

.bio-home-tip span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bio-muted);
}

.bio-home-tip strong,
code {
  font-family: "Manrope", sans-serif;
  color: var(--bio-text);
}

code {
  padding: 0.2rem 0.45rem;
  background: rgba(64, 153, 178, 0.12);
  font-size: 0.96em;
}

@media (max-width: 1080px) {
  .bio-posts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .bio-feed-header,
  .bio-footer__intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .bio-footer__services {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bio-shell,
  .bio-home-shell {
    width: min(100% - 20px, 720px);
    padding: 20px 0 36px;
  }

  .bio-profile-hero,
  .bio-empty,
  .bio-footer {
    padding: 18px;
  }

  .bio-profile-brand {
    grid-template-columns: 1fr;
  }

  .bio-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bio-socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .bio-social-link {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .bio-posts {
    grid-template-columns: 1fr;
  }

  .bio-socials {
    grid-template-columns: 1fr;
  }
}
