/* ==========================================================================
   Tecloure IT Solutions — Portfólio institucional (/portfolio/)
   Página autónoma: não carrega styles.css. Tokens no :root (mesmos nomes da
   landing page + os tons escuros próprios deste design). Classes com prefixo
   pfo- para não colidir com a landing page.
   ========================================================================== */

:root {
  --ink-990: #0e0a1f;
  --ink-960: #17112e;
  --ink-950: #160f2e;
  --ink-940: #1b1338;
  --blue-700: #1f4e9e;
  --blue-600: #2f66c4;
  --blue-500: #5089e0;
  --blue-400: #5b95ee;
  --blue-300: #8fb4f2;
  --blue-100: #c9daf5;
  --blue-50: #eaf1fd;

  --text: #1f1a2b;
  --text-strong: #2b2738;
  --text-2: #4a4458;
  --text-3: #5a5368;
  --on-dark: #dcd6ea;
  --on-dark-2: #c9c2de;
  --footer-text: #b9b1cf;

  --white: #ffffff;
  --surface-alt: #f5f3f9;
  --border: #e3deec;
  --border-soft: #ece8f3;
  --border-strong: #d6cfe3;
  --line-dark: rgba(143, 180, 242, 0.14);
  --line-dark-2: rgba(143, 180, 242, 0.2);
  --line-dark-3: rgba(143, 180, 242, 0.4);

  --font-display: "Archivo", "Open Sans", sans-serif;
  --font-body: "Open Sans", "Segoe UI", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 73px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  background: var(--ink-990);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: var(--blue-400);
}
a:hover {
  color: var(--blue-300);
}
:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
}
button {
  font: inherit;
}
.pfo-xd {
  font-family: var(--font-display);
  font-stretch: 118%;
}
.pfo-mono {
  font-family: var(--font-mono);
}
.pfo-grid-bg {
  background-image:
    linear-gradient(rgba(143, 180, 242, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 180, 242, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
}
.pfo-wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.pfo-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink-950);
  font-weight: 700;
}
.pfo-skip:focus {
  top: 12px;
}

/* ---------- Header ---------- */
.pfo-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 10, 31, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.pfo-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.pfo-brand {
  display: inline-flex;
  color: var(--white);
  --wm-accent: var(--blue-500);
}
.pfo-brand svg {
  display: block;
  height: 46px;
  width: auto;
}
.pfo-nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 600;
}
.pfo-nav a {
  color: var(--on-dark-2);
  text-decoration: none;
  transition: color 200ms var(--ease);
}
.pfo-nav a:hover {
  color: var(--white);
}
.pfo-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pfo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.pfo-btn:hover {
  color: var(--white);
}
.pfo-btn-outline {
  border: 1px solid var(--line-dark-3);
}
.pfo-btn-outline:hover {
  border-color: var(--blue-300);
}
.pfo-btn-blue {
  padding: 0 18px;
  background: var(--blue-600);
  font-weight: 700;
}
.pfo-btn-blue:hover {
  background: var(--blue-700);
}

/* ---------- Capa ---------- */
.pfo-cover {
  position: relative;
  overflow: hidden;
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 540px;
  display: flex;
  flex-direction: column;
  background: var(--ink-990);
}
.pfo-cover-photo {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 60%;
  overflow: hidden;
}
.pfo-cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.pfo-cover-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 10, 31, 0.55) 0%, rgba(14, 10, 31, 0) 45%),
    linear-gradient(0deg, rgba(14, 10, 31, 0.85) 0%, rgba(14, 10, 31, 0) 35%);
}
.pfo-cover-blue {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 66%;
  background: var(--blue-600);
  clip-path: polygon(0 0, 100% 0, 72% 100%, 0 100%);
}
.pfo-cover-panel {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 62%;
  background-color: var(--ink-940);
  clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
}
.pfo-cover-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: clamp(14px, 2.6vh, 28px);
}
.pfo-cover-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--on-dark);
}
.pfo-pulse {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-400);
  animation: pfo-pulse 2.4s ease-out infinite;
}
.pfo-cover-count {
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(14, 10, 31, 0.75);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}
.pfo-cover-body {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  padding-top: clamp(12px, 3vh, 48px);
  padding-bottom: clamp(16px, 4vh, 48px);
}
.pfo-cover-copy {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 3.4vh, 34px);
}
.pfo-biglogo {
  margin: 0;
  align-self: flex-start;
  width: clamp(260px, min(44vw, 58vh), 700px);
  color: var(--white);
  --wm-accent: var(--blue-500);
}
.pfo-biglogo svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.pfo-cover-title {
  margin: 0;
  max-width: 620px;
  font-weight: 700;
  font-size: clamp(19px, min(2.4vw, 3.5vh), 34px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.pfo-cover-title span {
  color: var(--blue-300);
}
.pfo-cover-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pfo-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: clamp(46px, 6.4vh, 58px);
  padding: 0 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 200ms var(--ease), background 200ms var(--ease);
}
.pfo-cta-white {
  background: var(--white);
  color: var(--ink-950);
  box-shadow: 0 14px 36px rgba(5, 3, 18, 0.45);
}
.pfo-cta-white:hover {
  color: var(--ink-950);
  transform: translateY(-2px);
}
.pfo-cta-white svg {
  fill: currentColor;
}
.pfo-cta-ghost {
  padding: 0 24px;
  border: 1px solid rgba(201, 194, 222, 0.5);
  color: var(--white);
  font-weight: 600;
}
.pfo-cta-ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.pfo-facts {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(16px, 4vh, 48px);
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 340px;
  border-radius: 14px;
  border: 1px solid rgba(143, 180, 242, 0.3);
  background: rgba(14, 10, 31, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.pfo-facts div {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding: clamp(10px, 1.8vh, 18px) 20px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.pfo-facts dt {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--on-dark-2);
}
.pfo-facts dd {
  margin: 0;
  font-weight: 800;
  font-size: clamp(24px, 3.6vh, 34px);
  line-height: 1;
}
.pfo-deck {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-dark-2);
  background: rgba(14, 10, 31, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.pfo-deck ol {
  list-style: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.pfo-deck li {
  min-width: 0;
}
.pfo-deck a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: -1px;
  padding: clamp(10px, 1.8vh, 16px) 16px clamp(10px, 1.8vh, 16px) 0;
  border-top: 2px solid rgba(143, 180, 242, 0.22);
  color: var(--white);
  text-decoration: none;
}
.pfo-deck a.is-current {
  border-top-color: var(--blue-400);
}
.pfo-deck a span:first-child {
  font-size: 11.5px;
  color: var(--blue-300);
}
.pfo-deck a span:last-child {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--on-dark);
  white-space: nowrap;
  transition: color 200ms var(--ease);
}
.pfo-deck a:hover span:last-child {
  color: var(--white);
}

/* ---------- Secções (comum) ---------- */
.pfo-section > .pfo-wrap {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  display: flex;
  flex-direction: column;
}
.pfo-stack-72 { gap: 72px; }
.pfo-stack-48 { gap: 48px; }
.pfo-stack-44 { gap: 44px; }
.pfo-stack-40 { gap: 40px; }
.pfo-light {
  background: var(--white);
  color: var(--text);
}
.pfo-alt {
  background: var(--surface-alt);
  color: var(--text);
}
.pfo-dark {
  background-color: var(--ink-990);
}
.pfo-eyebrow {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--blue-300);
}
.pfo-light .pfo-eyebrow,
.pfo-alt .pfo-eyebrow {
  color: var(--blue-600);
}
.pfo-h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(32px, 3.8vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.pfo-light .pfo-h2,
.pfo-alt .pfo-h2 {
  color: var(--ink-950);
}
.pfo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 56px;
}
.pfo-head-title {
  flex: 1 1 520px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pfo-head-aside {
  flex: 1 1 340px;
  margin: 0;
  max-width: 420px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--on-dark-2);
}
.pfo-alt .pfo-head-aside {
  color: var(--text-2);
}
.pfo-head-sub {
  margin: 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--on-dark-2);
}

/* ---------- 01 Quem somos ---------- */
.pfo-about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 72px;
}
.pfo-about-copy {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.pfo-about-copy p:not(.pfo-eyebrow) {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
}
.pfo-about-copy .pfo-lead {
  font-size: 18px;
}
.pfo-about-copy strong {
  color: var(--ink-950);
}
.pfo-about-photo {
  flex: 1 1 460px;
  min-width: 0;
  margin: 0;
  position: relative;
  padding: 0 0 26px 26px;
}
.pfo-about-frame {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58%;
  height: 72%;
  border: 2px solid var(--blue-500);
}
.pfo-about-photo img {
  position: relative;
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 6px;
}
.pfo-about-photo figcaption {
  position: absolute;
  right: 16px;
  bottom: 42px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(14, 10, 31, 0.85);
  font-size: 12px;
  color: var(--white);
}
.pfo-mvv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border-top: 2px solid var(--ink-950);
}
.pfo-mvv article {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 32px 8px 0;
}
.pfo-mvv span {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
}
.pfo-mvv h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink-950);
}
.pfo-mvv p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}

/* ---------- 02 Serviços (bento) ---------- */
.pfo-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 230px;
  gap: 14px;
}
.pfo-bento h3 {
  margin: 0;
}
.pfo-bento p {
  margin: 0;
}
.pfo-bento-photo {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--ink-960);
  grid-column: span 2;
}
.pfo-bento-big {
  grid-row: span 2;
}
.pfo-bento-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.pfo-bento-photo:hover img {
  transform: scale(1.05);
}
.pfo-bento-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 30px;
  background: linear-gradient(180deg, rgba(14, 10, 31, 0.1) 20%, rgba(14, 10, 31, 0.94) 100%);
}
.pfo-bento-overlay > span {
  font-size: 12px;
  color: var(--blue-300);
}
.pfo-bento-big h3 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
}
.pfo-bento-big p {
  max-width: 460px;
  font-size: 15px;
  color: var(--on-dark);
}
.pfo-bento-store img {
  object-position: center 40%;
}
.pfo-bento-store .pfo-bento-overlay {
  justify-content: center;
  gap: 8px;
  padding: 28px;
  background: linear-gradient(90deg, rgba(14, 10, 31, 0.95) 0%, rgba(14, 10, 31, 0.75) 55%, rgba(14, 10, 31, 0.2) 100%);
}
.pfo-bento-store h3 {
  max-width: 360px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}
.pfo-bento-store p {
  font-size: 12.5px;
  color: var(--on-dark);
}
.pfo-bento-small {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid rgba(143, 180, 242, 0.18);
  background: var(--ink-960);
}
.pfo-bento-small-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pfo-bento-small-top .pfo-mono {
  font-size: 12px;
  color: var(--blue-300);
}
.pfo-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(91, 149, 238, 0.14);
  color: var(--blue-400);
}
.pfo-bento-small h3 {
  margin-top: 6px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.15;
}
.pfo-bento-small p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--on-dark-2);
}
.pfo-bento-support {
  grid-column: span 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  padding: 28px;
  border-radius: 14px;
  background: var(--blue-600);
}
.pfo-bento-support > div {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pfo-bento-support .pfo-mono {
  font-size: 12px;
  color: var(--blue-50);
}
.pfo-bento-support h3 {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}
.pfo-bento-support p {
  font-size: 15px;
  color: var(--blue-50);
}

/* ---------- 03 Projectos ---------- */
.pfo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pfo-chip {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(143, 180, 242, 0.35);
  background: transparent;
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.pfo-chip:hover {
  border-color: var(--blue-400);
}
.pfo-chip[aria-pressed="true"] {
  border-color: var(--blue-400);
  background: var(--blue-600);
  color: var(--white);
}
.pfo-chip span {
  opacity: 0.7;
}
.pfo-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 18px;
}
.pfo-cards li {
  min-width: 0;
}
.pfo-cards li[hidden] {
  display: none;
}
.pfo-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 1px solid var(--line-dark-2);
  border-radius: 14px;
  background: var(--ink-960);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 200ms, transform 200ms;
}
.pfo-card:hover {
  border-color: var(--blue-400);
  transform: translateY(-3px);
}
.pfo-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.pfo-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.pfo-card:hover .pfo-card-media img {
  transform: scale(1.05);
}
.pfo-card-cat,
.pfo-card-n {
  position: absolute;
  top: 14px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--white);
}
.pfo-card-cat {
  left: 14px;
  background: rgba(14, 10, 31, 0.85);
  text-transform: uppercase;
}
.pfo-card-n {
  right: 14px;
  background: var(--blue-600);
}
.pfo-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  padding: 20px 22px 22px;
}
.pfo-card-meta {
  font-size: 12px;
  color: var(--blue-300);
}
.pfo-card-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
}
.pfo-card-service {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--on-dark-2);
}
.pfo-card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-300);
  transition: color 200ms;
}
.pfo-card:hover .pfo-card-more {
  color: var(--white);
}

/* Ficha do projecto (dialog) */
.pfo-modal {
  width: calc(100% - 2 * clamp(12px, 3vw, 40px));
  max-width: 1120px;
  max-height: calc(100% - 2 * clamp(12px, 3vw, 40px));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pfo-modal::backdrop {
  background: rgba(8, 5, 20, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.pfo-sheet {
  display: flex;
  flex-wrap: wrap;
}
.pfo-sheet[hidden] {
  display: none;
}
.pfo-sheet-media {
  position: relative;
  flex: 1 1 460px;
  min-width: 0;
  min-height: 320px;
  background: var(--ink-950);
}
.pfo-sheet-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pfo-sheet-media span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(14, 10, 31, 0.88);
  font-size: 12px;
  color: var(--white);
}
.pfo-sheet-body {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(26px, 3.5vw, 44px);
}
.pfo-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.pfo-sheet-head > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pfo-sheet-cat {
  font-size: 12px;
  color: var(--blue-600);
  text-transform: uppercase;
}
.pfo-sheet-head h3 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink-950);
}
.pfo-sheet-close {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-950);
  cursor: pointer;
}
.pfo-sheet-close:hover {
  background: var(--surface-alt);
}
.pfo-sheet-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
}
.pfo-sheet-facts div {
  padding: 12px 14px;
  background: var(--surface-alt);
}
.pfo-sheet-facts dt {
  font-size: 11px;
  color: var(--text-3);
}
.pfo-sheet-facts dd {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-950);
}
.pfo-sheet-desc {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pfo-sheet-desc h4 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-600);
}
.pfo-sheet-desc p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}
.pfo-sheet-scope {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pfo-sheet-scope li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-strong);
}
.pfo-sheet-scope svg {
  flex: none;
  margin-top: 1px;
  color: var(--blue-600);
}
.pfo-sheet-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 10px;
  background: var(--blue-50);
}
.pfo-sheet-result span {
  font-size: 11px;
  color: var(--blue-700);
}
.pfo-sheet-result strong {
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-950);
}
.pfo-sheet-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--blue-600);
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 200ms var(--ease);
}
.pfo-sheet-cta:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}
.pfo-sheet-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
}
.pfo-sheet-nav button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 200ms var(--ease);
}
.pfo-sheet-prev {
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--ink-950);
}
.pfo-sheet-prev:hover {
  background: var(--surface-alt);
}
.pfo-sheet-next {
  border: 0;
  background: var(--blue-600);
  color: var(--white);
}
.pfo-sheet-next:hover {
  background: var(--blue-700);
}
body.pfo-modal-open {
  overflow: hidden;
}

/* ---------- 04 Clientes e sectores ---------- */
.pfo-sectors {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink-950);
}
.pfo-sectors li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 8px 24px;
  padding: 26px 16px;
  border-bottom: 1px solid var(--border-strong);
  transition: background 200ms;
}
.pfo-sectors li:hover {
  background: var(--white);
}
.pfo-sector-n {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
}
.pfo-sectors strong {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink-950);
}
.pfo-sector-clients {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.pfo-logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.pfo-logos li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 10px 16px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
}
.pfo-logo-tile {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-image: url("../img/clientes-logos.jpg");
  background-size: 1800% 100%;
  background-repeat: no-repeat;
  background-position: var(--logo-pos, 0%) 0%;
  box-shadow: 0 0 0 2px var(--blue-100);
}
.pfo-logos li > span:last-child {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: var(--text-2);
}

/* ---------- 05 Contactos ---------- */
.pfo-contact {
  position: relative;
  overflow: hidden;
  background: var(--ink-990);
}
.pfo-contact-glow {
  position: absolute;
  left: -240px;
  bottom: -300px;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 102, 196, 0.36) 0%, rgba(47, 102, 196, 0) 65%);
  pointer-events: none;
}
.pfo-contact-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: clamp(80px, 10vw, 140px);
  padding-bottom: clamp(56px, 6vw, 80px);
}
.pfo-contact-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1080px;
}
.pfo-contact-head h2 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(44px, 6.6vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.pfo-contact-head p:last-child {
  margin: 0;
  max-width: 620px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--on-dark-2);
}
.pfo-contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.pfo-contacts a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  border-radius: 12px;
  border: 1px solid var(--line-dark-2);
  background: var(--ink-960);
  color: var(--white);
  text-decoration: none;
  transition: border-color 200ms var(--ease);
}
.pfo-contacts a:hover {
  border-color: var(--blue-400);
  color: var(--white);
}
.pfo-contacts .pfo-mono {
  font-size: 12px;
  color: var(--blue-300);
  text-transform: uppercase;
}
.pfo-contacts span:last-child {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}
.pfo-contact-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 28px 30px;
  border-radius: 14px;
  background: var(--blue-600);
  color: var(--white);
  text-decoration: none;
  transition: background 200ms var(--ease);
}
.pfo-contact-cta:hover {
  background: var(--blue-700);
  color: var(--white);
}
.pfo-contact-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pfo-contact-cta-copy .pfo-mono {
  font-size: 12px;
  color: var(--blue-50);
}
.pfo-contact-cta-copy .pfo-xd {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.2;
}
.pfo-contact-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink-950);
  font-weight: 700;
  font-size: 15px;
}
.pfo-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 22px 24px;
  border-radius: 12px;
  border: 1px dashed var(--line-dark-3);
}
.pfo-share > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pfo-share .pfo-mono {
  font-size: 12px;
  color: var(--blue-300);
}
.pfo-share-url {
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.pfo-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pfo-share-actions a,
.pfo-share-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line-dark-3);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.pfo-share-actions a:hover {
  border-color: var(--blue-300);
  color: var(--white);
}
.pfo-share-copy {
  border: 0;
  background: var(--white);
  color: var(--ink-950);
  font-weight: 700;
  cursor: pointer;
}
.pfo-footer {
  position: relative;
  border-top: 1px solid var(--line-dark);
}
.pfo-footer .pfo-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  padding-bottom: 22px;
  font-size: 12px;
  color: var(--footer-text);
}
.pfo-footer a {
  color: inherit;
  text-decoration: none;
}
.pfo-footer a:hover {
  color: var(--white);
}

/* ---------- Animações ---------- */
.pfo-kb {
  transform-origin: 60% 40%;
  animation: pfo-kb 26s ease-in-out infinite alternate;
}
.pfo-biglogo .wm-frame {
  animation: pfo-frame 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes pfo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(91, 149, 238, 0.6); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(91, 149, 238, 0); }
}
@keyframes pfo-kb {
  from { transform: scale(1.02); }
  to { transform: scale(1.14) translate(-2%, -1%); }
}
@keyframes pfo-frame {
  from { clip-path: inset(0 100% 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pfo-kb,
  .pfo-biglogo .wm-frame,
  .pfo-pulse {
    animation: none;
  }
  .pfo-card,
  .pfo-card-media img,
  .pfo-bento-photo img,
  .pfo-cta {
    transition: none;
  }
  .pfo-card:hover,
  .pfo-card:hover .pfo-card-media img,
  .pfo-bento-photo:hover img,
  .pfo-cta-white:hover {
    transform: none;
  }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .pfo-nav {
    gap: 20px;
  }
}
@media (max-width: 820px) {
  :root {
    --header-h: 65px;
  }
  .pfo-header-inner {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .pfo-nav,
  .pfo-hide-m {
    display: none !important;
  }
  .pfo-cover {
    height: auto;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
  }
  .pfo-cover-photo {
    width: 100%;
  }
  .pfo-cover-blue {
    display: none;
  }
  .pfo-cover-panel {
    width: 100%;
    clip-path: none;
    background-color: rgba(27, 19, 56, 0.86);
  }
  .pfo-deck {
    overflow-x: auto;
  }
  .pfo-deck ol {
    grid-template-columns: repeat(5, minmax(130px, 1fr));
  }
  .pfo-bento {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: minmax(220px, auto);
  }
  .pfo-bento > * {
    grid-column: auto;
    grid-row: auto;
  }
  .pfo-bento-big {
    min-height: 320px;
  }
  .pfo-about-photo img {
    height: 300px;
  }
  .pfo-sectors li {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 8px;
  }
  .pfo-logos {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  .pfo-sheet-media {
    flex-basis: 100%;
    min-height: 220px;
  }
  .pfo-sheet-body {
    flex-basis: 100%;
  }
}
@media (max-width: 480px) {
  .pfo-sheet-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .pfo-sheet-nav button {
    padding: 0 12px;
  }
  .pfo-cta {
    width: 100%;
    justify-content: center;
  }
}
