@layer components {
  .about-page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
  .about-page .site-navigation, .about-page .site-footer { flex-shrink: 0; }
  .about-page .editorial-navigation a[aria-current="page"] { background: var(--ink); color: var(--surface); text-decoration: none; }
  .about-us { --team-paper: color-mix(in srgb, var(--neutral-surface) 66%, var(--surface)); --team-soft: color-mix(in srgb, var(--muted-surface) 35%, var(--surface)); flex: 1; min-width: 0; }
  .team-kicker { font: 500 .61rem/1.5 var(--font); letter-spacing: .045em; }
  .team-intro { padding-block: clamp(1rem, 2vw, 2rem) 0; }
  /* Fotografía de fondo aportada por el usuario. */
  .team-intro-paper { min-height: max(180px, calc((100vw - 2 * var(--gutter)) * .204225)); padding: clamp(1.25rem, 2vw, 2rem) clamp(1.25rem, 3vw, 3rem) 0; background-color: var(--surface); background-image: url('../assets/images/about-us/foto-nosotros-1440.webp'); background-image: image-set(url('../assets/images/about-us/foto-nosotros-1440.webp') 1x, url('../assets/images/about-us/foto-nosotros-2880.webp') 2x); color: var(--solid-ink); background-size: cover; background-position: center top; background-repeat: no-repeat; border-radius: clamp(14px, 1.5vw, 22px); text-align: center; }
  .team-intro h1 { max-width: none; margin-top: .3rem; font: 500 clamp(1.25rem, 2.4vw, 2.25rem)/1.08 var(--font); letter-spacing: -.045em; }
  .team-story-lead { max-width: 64rem; margin-inline: auto; padding-block: clamp(2rem, 4.5vw, 4.5rem) 0; text-align: center; }
  .team-story-lead h2 { font: 500 clamp(1.6rem, 3vw, 3rem)/1.17 var(--font); letter-spacing: -.055em; }
  .team-outro { padding-block: clamp(1rem, 2vw, 2rem) 0; }
  .team-outro-paper { position: relative; isolation: isolate; display: grid; justify-items: center; max-width: 1280px; min-height: 0; aspect-ratio: 1536 / 952; margin-inline: auto; padding: 0; background: transparent; text-align: center; }
  .team-outro-art { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
  .team-outro-art img { width: 100%; height: auto; }
  .team-outro-art .outro-face-detail { position: absolute; top: 0; left: 0; width: 100%; height: auto; pointer-events: none; }
  .team-outro-content { display: grid; align-content: start; justify-items: center; gap: 1rem; width: min(44%, 32rem); padding-top: clamp(5rem, 12vw, 10rem); }
  .team-outro h2 { position: relative; top: 12px; max-width: 100%; font: 500 clamp(1.75rem, 3.6vw, 3.6rem)/1.12 var(--font); letter-spacing: -.055em; text-wrap: balance; }
  .team-outro-copy { max-width: 32rem; font-size: clamp(.8rem, 1vw, .9rem); line-height: 1.75; color: var(--ink); text-wrap: pretty; }
  .team-outro-link { display: inline-flex; justify-self: center; align-items: center; gap: .6rem; min-height: 44px; margin-top: -.3rem; padding-block: .4rem; border-bottom: 1px solid var(--brand-deep); font-size: .68rem; text-decoration: none; }
  .team-outro-link > span { font-size: 1.1rem; }
  .team-outro-link:hover { color: var(--brand-deep); }
  .team-outro-ornaments, .team-outro-characters { display: none; pointer-events: none; }
  /* Ventanas del mismo recurso transparente: no se recortan los archivos. */
  .team-outro-sprite { position: relative; display: block; overflow: hidden; aspect-ratio: var(--crop-width) / var(--crop-height); }
  .team-outro-sprite :is(img, .outro-face-detail) { position: absolute; width: calc(100% * 1536 / var(--crop-width)); max-width: none; height: auto; left: calc(-100% * var(--crop-x) / var(--crop-width)); top: calc(-100% * var(--crop-y) / var(--crop-height)); }
  .outro-icons-left { --crop-x: 35; --crop-y: 75; --crop-width: 500; --crop-height: 540; }
  .outro-icons-right { --crop-x: 960; --crop-y: 75; --crop-width: 550; --crop-height: 480; }
  .outro-dogs { --crop-x: 40; --crop-y: 750; --crop-width: 400; --crop-height: 210; flex: 1.4; }
  .outro-thinker { --crop-x: 430; --crop-y: 665; --crop-width: 285; --crop-height: 295; flex: 1; }
  .outro-seated { --crop-x: 1160; --crop-y: 670; --crop-width: 280; --crop-height: 290; flex: 1; }
  @media (max-width: 1050px) {
    .team-outro-paper { aspect-ratio: auto; }
    .team-outro-art { display: none; }
    .team-outro-ornaments { position: absolute; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: flex-start; height: 100px; }
    .team-outro-ornaments > span { width: clamp(64px, 10vw, 92px); }
    .team-outro-content { width: min(calc(100% - 1rem), 36rem); padding-top: 100px; gap: 1rem; }
    .team-outro-copy { max-width: 100%; font-size: .85rem; }
    .team-outro-characters { position: relative; display: flex; align-items: flex-end; gap: clamp(.25rem, 1vw, .7rem); width: min(100%, 700px); margin-top: 1.25rem; }
    .team-outro-characters::after { content: ''; position: absolute; right: 0; left: 0; bottom: clamp(6px, 1vw, 12px); height: 1px; background: var(--ink); }
  }
  .team-timeline { padding-block: clamp(3.5rem, 7vw, 7rem); }
  .team-timeline-inner { position: relative; isolation: isolate; max-width: 1200px; margin-inline: auto; }
  .team-member { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); align-items: center; gap: clamp(3rem, 10vw, 10rem); padding-block: 1.5rem; margin-bottom: clamp(5rem, 10vw, 10rem); }
  .team-connector { position: absolute; z-index: 0; top: 50%; right: 45%; left: 29%; height: 2px; background: var(--line); pointer-events: none; }
  .team-timeline-inner[data-lines-ready] .team-connector { display: none; }
  .team-timeline-lines { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .team-wire-base, .team-wire-trace { fill: none; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
  .team-wire-base { stroke: var(--line); }
  .team-wire-trace { stroke: var(--brand); opacity: 0; }
  .team-profile-wrap { position: relative; z-index: 1; justify-self: start; width: min(100%, 360px); }
  .member-card { position: relative; width: 100%; padding: 11px; border: 1px solid var(--solid-ink); border-radius: 33px; background: var(--team-paper); box-shadow: 0 18px 38px -20px color-mix(in srgb, var(--ink) 34%, transparent); }
  .member-visual { overflow: hidden; border-radius: 24px; background: var(--team-soft); }
  .member-heading { min-height: 113px; padding: 24px 12px 18px; text-align: center; }
  .member-heading h2 { font: 500 clamp(1.2rem, 1.8vw, 1.75rem)/1.17 var(--font); letter-spacing: -.055em; }
  .member-heading p { margin-top: .6rem; font-size: .65rem; line-height: 1.55; }
  .member-photo { display: block; width: 100%; height: 310px; object-fit: cover; object-position: center; }
  .member-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 70px; padding: 12px 5px 2px; }
  .team-agustina .member-footer, .team-agustin .member-footer { justify-content: center; gap: 24px; }
  .team-agustina .member-connect, .team-agustin .member-connect { padding: .4rem .65rem; border-radius: 8px; font-size: .64rem; gap: .4rem; }
  .team-agustina .member-connect > span, .team-agustin .member-connect > span { font-size: .8rem; }
  .member-social-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
  .member-social { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-size: .64rem; line-height: 1.5; text-decoration: none; }
  .member-linkedin { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border: 1px solid currentColor; border-radius: 2px; font: 900 9px/1 Arial, sans-serif; letter-spacing: -.05em; }
  .member-connect { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: .65rem; min-height: 44px; padding: .65rem .9rem; border-radius: 10px; background: var(--solid-ink); color: var(--surface); font-size: .68rem; line-height: 1.5; text-decoration: none; transition: background-color .18s; }
  .member-connect > span { font-size: 1rem; line-height: 1; }
  .member-connect:hover { background: var(--brand-deep); }
  .member-social:hover { text-decoration: underline; }
  .team-footer-landscape { flex-shrink: 0; width: 100%; aspect-ratio: 4768 / 896; }
  .team-footer-landscape img { display: block; width: 100%; height: auto; }
  .team-agustina .team-profile-wrap { margin-bottom: 80px; }
  .team-companion { position: absolute; z-index: 2; top: calc(100% + 12px); right: -66px; width: 100px; height: 127px; margin: 0; padding: 7px; border-radius: 18px; background: var(--team-paper); box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--ink) 30%, transparent); transform: rotate(5deg); }
  .team-companion img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; border-radius: 12px; }
  .team-education { position: relative; z-index: 1; max-width: 32rem; padding: .7rem 0 .7rem 1rem; background: var(--surface); }
  .team-education-birds { position: absolute; right: 1rem; bottom: calc(100% + .25rem); width: clamp(160px, 18vw, 240px); height: auto; pointer-events: none; }
  .team-education > h3 { margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); color: var(--ink); font: 500 .95rem/1.4 var(--font); letter-spacing: -.025em; }
  .team-education ul { list-style: none; }
  .team-education li { padding-block: .45rem; }
  .team-education li > p { font-size: .82rem; line-height: 1.5; }
  .team-education li > span { display: block; margin-top: .25rem; color: color-mix(in srgb, var(--ink) 70%, var(--surface)); font-size: .72rem; line-height: 1.5; }
  .team-agustin .team-profile-wrap { grid-column: 2; grid-row: 1; justify-self: end; transform: rotate(3deg); }
  .team-agustin .team-education { grid-column: 1; grid-row: 1; padding-left: 0; padding-right: 1rem; }
  .team-agustin .team-connector { left: 44%; right: 29%; }
  .team-future { margin-bottom: clamp(3rem, 5vw, 5rem); }
  .team-future .team-profile-wrap { width: min(100%, 300px); }
  .member-card-future .member-heading { min-height: 100px; }
  .member-card-future .member-heading h2 { font-size: 1.4rem; }
  .member-photo-empty { display: grid; place-items: center; height: 230px; background: color-mix(in srgb, var(--brand) 19%, var(--surface)); }
  .member-photo-empty > span { display: grid; place-items: center; width: 76px; height: 76px; border: 1px solid var(--line); border-radius: 50%; color: var(--brand-deep); font-size: 2.5rem; font-weight: 500; line-height: 1; }
  .member-future-label { font-size: .65rem; line-height: 1.5; }
  .team-future-copy { position: relative; z-index: 1; padding-block: 1rem; background: var(--surface); }
  .team-future-copy h2 { margin-top: 1.5rem; font: 500 clamp(1.8rem, 3.1vw, 3rem)/1.16 var(--font); letter-spacing: -.055em; }
  .team-future-copy > p:not(.team-kicker) { max-width: 29rem; margin-top: 1.5rem; color: var(--brand-deep); font-size: .83rem; line-height: 1.75; }
  .team-form-arrow { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-top: 1.4rem; color: var(--ink); }
  .team-form-arrow svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: translate .5s cubic-bezier(.22,1,.36,1); }
  .team-join { padding: clamp(1.5rem, 3.5vw, 3.5rem); border-radius: clamp(14px, 1.5vw, 22px); background: var(--team-paper); }
  .team-join-heading { margin-bottom: 2rem; }
  .team-join-heading h2 { margin-top: 1rem; font: 500 clamp(1.75rem, 3vw, 2.8rem)/1.18 var(--font); letter-spacing: -.055em; }
  .team-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.4rem; }
  .team-join-form label { display: grid; align-content: start; gap: .5rem; min-width: 0; margin: 0; font-size: .7rem; line-height: 1.5; }
  .team-join-form input, .team-join-form select, .team-join-form textarea { width: 100%; min-width: 0; min-height: 45px; margin: 0; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 500 .77rem/1.5 var(--font); }
  .team-join-form input, .team-join-form select { height: 48px; }
  .team-join-form textarea { min-height: 126px; resize: vertical; }
  .team-join-form input::placeholder, .team-join-form textarea::placeholder { color: var(--brand-deep); opacity: .8; }
  .team-form-full { grid-column: 1 / -1; }
  .team-field-help { display: block; max-width: 48rem; color: var(--brand-deep); font-size: .65rem; line-height: 1.65; }
  .team-form-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.5rem; }
  .team-submit { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.3rem; min-height: 48px; padding: .85rem 1.1rem; border: 0; border-radius: 30px; background: var(--solid-ink); color: var(--surface); font: 500 .75rem/1.5 var(--font); }
  .team-submit:not(:disabled):hover { background: var(--brand-deep); }
  .team-submit:disabled { background: var(--brand-deep); opacity: .55; cursor: default; }
  .team-form-actions > p { max-width: 26rem; color: var(--brand-deep); font-size: .66rem; line-height: 1.6; }
  .team-join-draft { margin-top: 1.25rem; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow-wrap: anywhere; }
  .team-join-draft > p, .team-nojs-help { font-size: .73rem; line-height: 1.7; }
  .team-draft-link { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; margin-top: .5rem; font-size: .75rem; }
  .team-nojs-help { margin-top: 1.5rem; overflow-wrap: anywhere; }
  .about-us a:focus-visible, .team-join-form :is(input,select,textarea,button):focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 5px; }
  .member-card, .team-companion { transition: translate .65s cubic-bezier(.22,1,.36,1); }
  @media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .team-profile-wrap:is(:hover,:focus-within) .member-card { translate: 0 -4px; }
    .team-profile-wrap:is(:hover,:focus-within) .team-companion { translate: 0 -7px; }
    .team-form-arrow:is(:hover,:focus-visible) svg { translate: 0 5px; }
  }
  @media (max-width: 1050px) {
    .team-member { gap: 5vw; }
    .team-profile-wrap { width: min(100%, 330px); }
    .member-heading h2 { font-size: 1.4rem; }
    .member-photo { height: 285px; }
    .team-companion { right: -31px; width: 85px; height: 110px; }
  }
  @media (max-width: 760px) {
    .team-intro-paper { padding-inline: 1rem; }
    .team-kicker { font-size: .56rem; }
    .team-member { grid-template-columns: minmax(0, 1fr); gap: 3rem; padding-block: 0; margin-bottom: 4rem; }
    .team-connector { display: none; }
    .team-profile-wrap { justify-self: center; width: min(calc(100% - 35px), 360px); }
    .team-agustina .team-profile-wrap { margin-bottom: 90px; }
    .team-companion { right: -27px; width: 81px; height: 103px; }
    .member-heading { min-height: 107px; }
    .member-heading h2 { font-size: 1.5rem; }
    .member-heading p { font-size: .62rem; }
    .member-photo { height: auto; aspect-ratio: 1 / 1; }
    .member-card { border-radius: 28px; padding: 9px; }
    .member-visual { border-radius: 21px; }
    .member-footer { padding-inline: 1px; gap: 5px; }
    .member-social-row { gap: 4px; }
    .member-social { gap: 4px; font-size: .59rem; }
    .team-agustina .member-connect, .team-agustin .member-connect { font-size: .59rem; }
    .member-linkedin { width: 12px; height: 12px; font-size: 8px; }
    .member-connect { padding-inline: .7rem; font-size: .64rem; gap: .4rem; }
    .team-education { justify-self: center; width: 100%; max-width: 32rem; padding: 0; }
    .team-education-birds { position: static; display: block; width: min(160px, 55%); margin: 0 0 1.25rem auto; }
    .team-agustin .team-profile-wrap { grid-column: 1; grid-row: auto; justify-self: center; transform: rotate(0); }
    .team-agustin .team-education { grid-column: 1; grid-row: auto; padding: 0; }
    .team-future .team-profile-wrap { width: min(100%, 300px); }
    .member-photo-empty { height: 230px; aspect-ratio: auto; }
    .team-future-copy { padding: 0; text-align: center; }
    .team-future-copy > p:not(.team-kicker) { margin-inline: auto; }
    .team-future-copy h2 { font-size: 2rem; }
    .team-form-grid { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
    .team-form-actions { align-items: start; flex-direction: column; gap: .8rem; }
  }
  @media (prefers-reduced-motion: reduce) {
    .member-connect, .member-card, .team-companion, .team-form-arrow svg { transition: none; }
  }
  @media print {
    .team-intro, .team-timeline { padding: 1rem; }
    .team-connector, .team-timeline-lines, .team-companion, .team-join { display: none; }
    .team-member { break-inside: avoid; }
    .team-agustin .team-profile-wrap { transform: none; }
  }
}

@layer components {
  @media (max-width: 760px) {
    .team-intro-paper { background-image: url('../assets/images/about-us/foto-nosotros-768.webp'); background-image: image-set(url('../assets/images/about-us/foto-nosotros-768.webp') 1x, url('../assets/images/about-us/foto-nosotros-1536.webp') 2x); }
  }
}
