/* Colabora con nosotros / Partner with Us. Same tokens as the corporate site. */
:root {
  --red: #d50100;
  --red-dark: #aa0000;
  --ink: #1c1c1c;
  --body: #4a4a4a;
  --muted: #6f6f6f;
  --border: #e0e0e0;
  --off-white: #f6f5f3;
  --white: #ffffff;
  --nav-h: 72px;
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --serif: "DM Serif Display", Georgia, serif;
  --display: "DM Sans", system-ui, sans-serif;
  --text: "Inter", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--text); color: var(--body); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: var(--white); padding: .75rem 1rem; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Navigation: the same structure as the home page */
.nav { position: sticky; top: 0; z-index: 100; height: var(--nav-h); background: rgba(255,255,255,.95); backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid var(--border); }
.nav__row { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; font-family: var(--display); font-size: 1.2rem; color: var(--ink); flex: none; }
.brand__thin { font-weight: 300; } .brand__bold { font-weight: 800; }
.nav__links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav__links a { font-size: .8125rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--body); text-decoration: none; white-space: nowrap; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current] { color: var(--red); border-color: var(--red); }
.nav__right { display: flex; align-items: center; gap: .75rem; flex: none; }
.lang { display: flex; border: 1px solid var(--border); border-radius: 2px; overflow: hidden; }
.lang button { min-width: 40px; min-height: 36px; font-family: var(--display); font-size: .75rem; font-weight: 600; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--red); color: var(--white); }
.nav__contact { font-family: var(--display); font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--red); padding: .5rem 1.1rem; border: 1.5px solid var(--red); border-radius: 2px; text-decoration: none; white-space: nowrap; transition: background .2s var(--ease), color .2s var(--ease); }
.nav__contact:hover { background: var(--red); color: var(--white); }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .2s var(--ease), top .2s var(--ease); }
.burger span:nth-child(1) { top: 17px; } .burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.mobile-menu { position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: .5rem var(--gutter) 1rem; }
.mobile-menu a { display: block; padding: .85rem 0; font-family: var(--display); font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border: 0; }
.mobile-menu a[aria-current] { color: var(--red); }
@media (min-width: 1081px) { .mobile-menu { display: none !important; } }
@media (max-width: 1080px) { .nav__links, .nav__contact { display: none; } .burger { display: block; } }


  .nav-login {
    font-family: 'DM Sans', sans-serif; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em;
    color: #fff; background: #D50100; border: 1.5px solid #D50100; border-radius: 2px;
    padding: 0.5rem 1rem; white-space: nowrap; min-height: 36px; display: inline-flex; align-items: center;
    text-decoration: none; transition: background 0.2s;
  }
  .nav-login:hover { background: #AA0000; border-color: #AA0000; }
  @media (max-width: 420px) {
    .brand > span { display: none !important; }
    .nav-login { padding: 0.5rem 0.7rem; }
  }
/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.5rem; font-family: var(--display); font-size: .9375rem; font-weight: 600; border-radius: 2px; text-decoration: none; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); }
.btn--line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }

/* Hero: the puzzle is the page */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: clamp(2.6rem, 5.6vw, 4.75rem); line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }
.hero__lead { margin: 1.75rem 0 2.25rem; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); max-width: 56ch; }
.puzzle { width: 100%; max-width: 520px; justify-self: end; overflow: visible; }
.puzzle a { text-decoration: none; outline: none; }
.puzzle path { fill: #ebe9e5; stroke: var(--white); stroke-width: 4; stroke-linejoin: round; transition: fill .2s var(--ease); }
.puzzle text { font-family: var(--display); font-size: 19px; font-weight: 600; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; pointer-events: none; transition: fill .2s var(--ease); }
.puzzle a.is-lead path { fill: var(--red); }
.puzzle a.is-lead text { fill: var(--white); }
.puzzle a:hover path, .puzzle a:focus-visible path { fill: var(--red); }
.puzzle a:hover text, .puzzle a:focus-visible text { fill: var(--white); }
.puzzle a:focus-visible path { stroke: var(--ink); }
.puzzle a:nth-child(1) { --dx: -22px; --dy: -22px; }
.puzzle a:nth-child(2) { --dx: 22px; --dy: -22px; }
.puzzle a:nth-child(3) { --dx: -22px; --dy: 22px; }
.puzzle a:nth-child(4) { --dx: 22px; --dy: 22px; }
.puzzle a { animation: join .9s var(--ease) .15s backwards; }
@keyframes join { from { transform: translate(var(--dx), var(--dy)); opacity: 0; } }

/* Audience sections */
.aud { padding: clamp(3.5rem, 7vw, 6rem) 0; border-top: 1px solid var(--border); }
.aud__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.aud__piece { width: 64px; height: 64px; margin-bottom: 1.25rem; }
.aud__piece path { fill: var(--red); }
.aud h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; text-wrap: balance; max-width: 19ch; }
.aud p { margin: 1.25rem 0 1.75rem; max-width: 60ch; font-size: 1.0625rem; }
.benefits { list-style: none; border-top: 2px solid var(--ink); }
.benefits li { padding: 1rem 0; border-bottom: 1px solid var(--border); font-family: var(--display); font-size: 1.0625rem; font-weight: 500; color: var(--ink); }
.aud--flip .aud__copy { order: 2; }
.aud--flip .aud__list { order: 1; }
.aud--open { background: var(--off-white); border-top: 0; }
.aud--open .aud__copy { max-width: 760px; }
.aud--open h2 { max-width: 24ch; }

/* Form */
.apply { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); }
.apply__grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.apply h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; }
.apply__intro { margin-top: 1.25rem; max-width: 42ch; }
.apply__choice { margin-top: 1.25rem; padding: .85rem 1rem; border-left: 3px solid var(--red); background: var(--off-white); color: var(--ink); font-size: .9375rem; }
.apply__choice[hidden] { display: none; }
.apply__legal { margin-top: 1.25rem; font-size: .875rem; color: var(--muted); max-width: 42ch; }
.apply__frame { min-width: 0; border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.apply__frame iframe { display: block; width: 100%; min-height: 640px; border: 0; }

/* Footer */
.foot { background: #0a0a0a; color: #bdbdbd; padding: 3rem 0 2rem; font-size: .9375rem; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.foot__brand { font-family: var(--display); font-size: 1.2rem; color: var(--white); }
.foot a { color: inherit; text-underline-offset: 3px; }
.foot a:hover { color: var(--white); }
.foot ul { list-style: none; display: grid; gap: .35rem; }
.foot__copy { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #2a2a2a; font-size: .8125rem; }
.foot :focus-visible { outline-color: var(--white); }

@media (max-width: 900px) {
  .hero__grid, .aud__grid, .apply__grid { grid-template-columns: minmax(0, 1fr); }
  .puzzle { justify-self: center; max-width: 440px; }
  .aud--flip .aud__copy, .aud--flip .aud__list { order: 0; }
  .btn { width: 100%; }
}
@media (max-width: 360px) {
  .nav__row, .nav__right { gap: .35rem; }
  .brand { font-size: 1.05rem; }
  .lang button { min-width: 36px; }
}
a, button { touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .puzzle a { animation: none; }
  * { transition-duration: .01ms !important; }
}
