.fnm-portfolio {
  --portfolio-ink: #112e48;
  --portfolio-muted: #476079;
  --portfolio-line: #d7e4ef;
  --product-light: #bbddfa;
  --product-dark: #143c61;
  --product-night: #092641;
  --product-accent: #2871a7;
}
.fnm-portfolio [data-theme="vet"] {
  --product-light: #a9f1df;
  --product-dark: #146459;
  --product-night: #07342f;
  --product-accent: #147c68;
}
.fnm-portfolio [data-theme="fisio"] {
  --product-light: #d6ef9d;
  --product-dark: #4c6233;
  --product-night: #293b1c;
  --product-accent: #527125;
}
.fnm-portfolio [data-theme="cuidado"] {
  --product-light: #ffd8ab;
  --product-dark: #884b36;
  --product-night: #4e2a25;
  --product-accent: #9a4e2b;
}
.fnm-portfolio [data-theme="odonto"] {
  --product-light: #e0d4ff;
  --product-dark: #5b438a;
  --product-night: #312450;
  --product-accent: #6c49a4;
}
.fnm-portfolio [data-theme="lab"] {
  --product-light: #c1e5ff;
  --product-dark: #245f95;
  --product-night: #15365f;
  --product-accent: #256eb0;
}
.fnm-portfolio .fnm-product-hero[data-fnm-product-hero] {
  --fnm-hero-night: var(--product-night);
  background: radial-gradient(ellipse at 87% 28%, var(--product-dark), transparent 62%), var(--product-night);
}
.fnm-portfolio .fnm-product-hero[data-fnm-product-hero] .fnm-product-kicker {
  color: var(--product-light);
  margin-bottom: 12px;
}
.fnm-portfolio .fnm-product-hero[data-fnm-product-hero] .fnm-product-copy h1 {
  font-size: clamp(2.65rem, 7vw, 5rem);
  margin-block: 10px 12px;
  text-wrap: initial;
}
.fnm-portfolio .fnm-product-hero[data-fnm-product-hero] .fnm-product-copy > h2 {
  color: #fff;
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  letter-spacing: -.022em;
  line-height: 1.2;
  margin: 0 0 16px;
}
.fnm-portfolio .fnm-product-hero[data-fnm-product-hero] .fnm-product-actions .btn-primary {
  color: #112b3e;
  background: var(--product-light);
}
.fnm-portfolio .fnm-product-hero[data-fnm-product-hero] .fnm-product-actions .btn-primary:hover {
  background: #fff;
}
.fnm-portfolio .portfolio-audience {
  border: 1px solid #ffffff42;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(140deg, #ffffff20, #ffffff08 70%);
  box-shadow: 0 26px 65px #0003;
  isolation: isolate;
}
.portfolio-audience .portfolio-audience-copy {
  position: relative;
  z-index: 1;
  padding: clamp(20px, 4vw, 48px);
}
.portfolio-audience-copy h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.1;
}
.portfolio-audience-copy > p { color: #fafbff; }
.portfolio-audience ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 8px;
}
.portfolio-audience li {
  padding: 11px 12px;
  border-radius: 11px;
  background: var(--product-night);
  color: #fff;
  font-size: .93rem;
  line-height: 1.4;
}
.portfolio-audience li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--product-light);
  vertical-align: 2px;
}
.portfolio-art {
  height: clamp(90px, 14vw, 185px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #ffffff30;
  background: radial-gradient(ellipse at 65% 120%, var(--product-light), transparent 67%), var(--product-dark);
}
.portfolio-art span, .portfolio-art::before, .portfolio-art::after {
  content: "";
  position: absolute;
  width: 52%;
  aspect-ratio: 1;
  border: 1px solid #ffffff70;
  border-radius: 42%;
  transform: rotate(var(--art-turn, -30deg));
}
.portfolio-art::before { top: -68%; left: 9%; }
.portfolio-art span { top: -47%; left: 25%; }
.portfolio-art::after { top: -28%; left: 41%; }
[data-theme="fisio"] .portfolio-art { --art-turn: 52deg; }
[data-theme="cuidado"] .portfolio-art { --art-turn: 25deg; }
[data-theme="odonto"] .portfolio-art { --art-turn: -52deg; }
[data-theme="lab"] .portfolio-art { --art-turn: -18deg; }

.fnm-portfolio .portfolio-section, .fnm-portfolio .portfolio-intro {
  padding-block: clamp(46px, 7vw, 88px);
}
.fnm-portfolio .portfolio-wrap {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}
.portfolio-intro { background: #eaf4fb; }
.portfolio-breadcrumb {
  margin: 0 0 21px;
  font-size: .91rem;
}
.portfolio-breadcrumb a { color: #174f7c; text-decoration: underline; }
.fnm-product-hero .portfolio-breadcrumb a { color: var(--product-light); }
.fnm-portfolio .portfolio-heading {
  color: var(--portfolio-ink);
  max-width: 24ch;
  font-size: clamp(1.85rem, 4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -.04em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.fnm-portfolio .portfolio-intro .portfolio-heading { max-width: 30ch; }
.fnm-portfolio .portfolio-lead { max-width: 65ch; color: var(--portfolio-muted); margin: 0 0 28px; }
.portfolio-grid, .portfolio-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 248px), 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.portfolio-card, .portfolio-plans li {
  min-width: 0;
  border: 1px solid var(--portfolio-line);
  border-radius: 18px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 8px 25px #164d7710;
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-top: 3px solid var(--product-accent);
}
.portfolio-card h3, .portfolio-plans h3 {
  color: var(--portfolio-ink);
  font-size: 1.24rem;
  line-height: 1.25;
  margin: 0 0 10px;
}
.portfolio-card p, .portfolio-plans p { color: var(--portfolio-muted); margin: 0 0 14px; }
.portfolio-plans li p:last-child { margin-bottom: 0; }
.portfolio-card .portfolio-segment {
  color: var(--product-accent);
  font-weight: 750;
  font-size: .86rem;
  margin: 0 0 10px;
}
.portfolio-card .portfolio-status {
  padding: 4px 9px;
  border-radius: 99px;
  font-size: .79rem;
  font-weight: 750;
  margin-bottom: 12px;
  background: #edf5fb;
  color: #244762;
}
.portfolio-card img {
  width: 118px;
  height: 56px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 12px;
}
.portfolio-card a {
  color: #155584;
  font-weight: 750;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: .22em;
}
.portfolio-card a:hover { color: #0a3152; }
.portfolio-plans li { border-inline-start: 3px solid var(--product-accent); }
.portfolio-soft { background: #f1f7fb; }
.portfolio-faq-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  align-items: start;
  gap: 12px 20px;
}
.portfolio-faq-list details {
  padding: 0 17px;
  border: 1px solid var(--portfolio-line);
  border-radius: 14px;
  background: #fff;
}
.portfolio-faq-list summary {
  min-height: 48px;
  padding: 13px 0;
  color: var(--portfolio-ink);
  font-weight: 750;
  cursor: pointer;
}
.portfolio-faq-list summary::marker { color: var(--product-accent); }
.portfolio-faq-list details p { color: var(--portfolio-muted); margin: 0 0 16px; }
.portfolio-cta {
  background: var(--product-night);
  color: #fff;
}
.fnm-portfolio .portfolio-cta .portfolio-heading,
.fnm-portfolio .portfolio-cta .portfolio-lead { color: #fff; }
.portfolio-cta .btn-primary {
  color: #112b3e;
  background: var(--product-light);
}
.fnm-portfolio .portfolio-contact {
  white-space: normal;
  max-width: 100%;
  text-align: center;
  min-height: 48px;
  line-height: 1.35;
}
.portfolio-home-links { margin-top: 24px; scroll-margin-top: 90px; }
.portfolio-home-links .btn { white-space: normal; }
.portfolio-home-links .portfolio-grid { margin-block: 12px 24px; }
.portfolio-home-links .portfolio-card h4 { margin: 0 0 8px; }
.portfolio-home-links .portfolio-card { box-shadow: none; }
.fnm-portfolio :is(a, summary):focus-visible { outline: 2px solid #157bb0; outline-offset: 3px; }
.fnm-portfolio :is(.fnm-product-hero, .portfolio-cta) a:focus-visible { outline-color: #fff; }
.fnm-portfolio [id] { scroll-margin-top: 86px; }

@media (max-width: 560px) {
  .fnm-portfolio .fnm-product-hero[data-fnm-product-hero] > .fnm-product-grid { width: calc(100% - 32px); }
  .fnm-portfolio .fnm-product-hero[data-fnm-product-hero] .fnm-product-copy h1 { font-size: clamp(2.4rem, 10vw, 3rem); }
}

.portfolio-whatsapp {
  position: fixed;
  z-index: 650;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 24px;
  background: #146349;
  color: #fff;
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 5px 14px #15364440;
}
.portfolio-whatsapp:hover,
.portfolio-whatsapp:focus-visible {
  background: #0b4d37;
  color: #fff;
}

@media (max-width: 790px) {
  [data-fnm-portfolio-page] .site-header .nav-right { display: none; }
}
