/* Signature Edition — shared type, navigation and Rodríguez Route Line. */
:root {
  --display: "Barlow Condensed", "Arial Narrow", "Bahnschrift Condensed", Arial, sans-serif;
  --sans: Manrope, "Segoe UI", Arial, sans-serif;
  --paper: #f5f2ed;
  --content: 1440px;
  --gutter: clamp(20px, 5vw, 88px);
  --nav-height: 80px;
  --signature-rule: polygon(0 65%, 66% 65%, 74% 0, 100% 0, 100% 35%, 75% 35%, 67% 100%, 0 100%);
}
html { scroll-padding-top: calc(var(--nav-height) + 12px); }
body { font-family: var(--sans); }
:is(h1,h2,h3,.section h2,.join-copy h2,.notice-card h2,.detail-dialog h2) { font-family: var(--display); }
body[data-view]:not([data-view="inicio"])::before { background: #100f0f; animation: none; }
body[data-view]:not([data-view="inicio"]) .rain { visibility: hidden; }
body[data-view]:not([data-view="inicio"]) .rain span,
body[data-view]:not([data-view="inicio"]) .rain::before,
body[data-view]:not([data-view="inicio"]) .rain::after { animation-play-state: paused; }
.section { padding: clamp(38px,5.5vw,84px) var(--gutter) clamp(66px,8vw,128px); }
.section-inner { width: min(100%,var(--content)); }
.nav, body[data-view]:not([data-view="inicio"]) .nav, body[data-view="inicio"] .nav {
  position: fixed; inset: 0 0 auto; height: var(--nav-height); min-height: 0;
  padding: 0 var(--gutter); background: #0d0d0df5; backdrop-filter: none;
  border-bottom: 1px solid #ffffff26;
}
body[data-view]:not([data-view="inicio"]) main { padding-top: var(--nav-height); }
.nav .brand { gap: 2px; }
.nav .brand-logo { width: 134px; max-height: 45px; }
.nav .brand small { font: 600 10px/1.2 var(--sans); color: #ddd9d4; letter-spacing: .04em; }
.nav .links { gap: clamp(12px,2vw,36px); font-size: 14px; }
.nav .links a { display: inline-flex; position: relative; min-height: 44px; align-items: center; }
.nav .links a[aria-current="page"]::after {
  position: absolute; inset: auto 0 3px; height: 5px; clip-path: var(--signature-rule);
  border-radius: 0; background: #ff3333;
}
.nav-actions>.cta { display: inline-flex; min-height: 42px; padding: 9px 20px; }
.cta { border-radius: 4px; font-size: 14px; background: #cb151a; box-shadow: none; }
.cta:focus-visible,:is(a,button,summary):focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.eyebrow::before { width: 44px; height: 7px; clip-path: var(--signature-rule); background: #ff3333; }
.eyebrow { font: 800 clamp(11px,1vw,13px)/1.45 var(--sans); letter-spacing: .13em; }
.view-transition-accent::before { background: linear-gradient(90deg,transparent,#08080864 70%,transparent); }
.view-transition-accent::after {
  inset: var(--nav-height) auto auto 0; width: 100%; height: 6px;
  background: #ff3333; clip-path: var(--signature-rule); transform-origin: left;
}
.view-transition-accent.is-active::after { animation: signature-journey 820ms var(--motion-ease) both; }
@keyframes signature-journey {
  from { transform: scaleX(0); }
  70% { transform: scaleX(1); opacity: .95; }
  to { transform: scaleX(1); opacity: 0; }
}
.hero-meta b,.team-highlight strong,.avatar,.value-card summary strong,.value-card summary span,
.about-indicator b,.gallery-item figcaption { font-family: var(--display); }
.notice-card p { font-size: 15px; }
.notice-dialog .notice-icon { display: none; }
.notice-dialog { border-radius: 4px; }
footer {
  align-items: center; background: #0b0b0c; border-top: 1px solid #484442;
  padding: clamp(32px,4vw,64px) var(--gutter); color: #c5c2be; font-size: 13px;
}
footer strong { font-size: 14px; }
footer a { display: inline-block; padding: 12px 2px; color: #ece8e3; }
.footer-logo { width: 150px; }
/* Community: an open photo spread, with its principles on a horizontal baseline. */
#comunidad { background: #161717; }
#discord {
  display: grid; grid-template-columns: minmax(0, .88fr) minmax(0,1.12fr);
  grid-template-areas: "intro photo" "action photo" "principles principles";
  align-items: start; gap: clamp(20px,2.8vw,48px) clamp(30px,5vw,88px);
  padding: 0; border: 0; border-radius: 0; box-shadow: none; background: none; overflow: visible;
}
#discord::before { content: none; }
.community-lead { grid-area: intro; }
.community-lead h2 {
  font: 750 clamp(54px,6.6vw,110px)/.91 var(--display);
  text-transform: uppercase; letter-spacing: -.045em; margin: 26px 0;
}
.community-lead h2 em { display: block; color: #ff5252; font-style: normal; }
.community-lead p, .join-copy>p { font: 450 clamp(16px,1.24vw,19px)/1.66 var(--sans); color: #d4d0cc; max-width: 56ch; }
#discord .community-visual {
  grid-area: photo; align-self: stretch; margin: 0; min-height: 300px;
  width: 100%; min-width: 0; aspect-ratio: auto; position: relative;
  border: 0; border-radius: 0; box-shadow: none;
}
#discord .community-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#discord .community-actions { grid-area: action; display: grid; justify-content: start; justify-items: start; gap: 10px; }
.community-actions .cta { gap: 28px; }
#discord .discord-note { color: #c4c2bf; font-size: 13px; }
#discord .community-pillars { grid-area: principles; margin: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 0; }
#discord .community-pillar { padding: 22px 20px 12px 0; border: 0; border-top: 1px solid #68635c; border-radius: 0; background: transparent; }
#discord .community-pillar strong { font: 700 clamp(24px,2.2vw,38px)/1.1 var(--display); }
#discord .community-pillar span { font-size: 15px; color: #c9c6c3; }
/* Application: keep the form first in reading order on small screens. */
#postula {
  align-items: start; gap: clamp(30px,5vw,90px); background: #111213;
  padding: clamp(36px,5vw,82px) max(var(--gutter),calc((100vw - var(--content))/2));
  grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
}
#postula .join-photo { min-height: 0; padding: 0; border: 0; background: none; gap: 0; }
.application-photo { display: block; width: 100%; height: clamp(280px,37vw,610px); object-fit: cover; }
.application-reference { padding: 16px 0; border-bottom: 1px solid #464747; font-size: 13px; }
.application-reference summary { cursor: pointer; color: #cfcbc7; }
.application-reference .poster-note { margin: 16px 0; font-size: 14px; }
#postula .join-copy { padding: 0; }
#postula h2 { font: 750 clamp(44px,5.8vw,92px)/.95 var(--display); letter-spacing: -.04em; margin: 18px 0; max-width: 14ch; }
#application-form { gap: 20px; max-width: 620px; }
#application-form label { font: 650 15px/1.5 var(--sans); gap: 8px; }
#application-form input { color: #fff; background: #1f2021; font: 450 16px/1.5 var(--sans); min-height: 50px; border-radius: 3px; }
#application-form .cta { background: #c71620; min-height: 50px; }
#application-form .form-note { font-size: 14px; line-height: 1.55; color: #d1cdca; }
@media(max-width:950px) {
  :root { --nav-height: 68px; }
  .nav .brand-logo { width: 108px; }
  .nav .brand small { font-size: 9px; }
  .nav .nav-actions { gap: 8px; }
  .nav .menu-toggle { display: grid; place-items: center; border-radius: 3px; width: 44px; height: 44px; }
  .nav .links {
    position: absolute; top: 100%; left: 0; right: 0; display: none; gap: 0; padding: 10px var(--gutter) 16px;
    border: 0; border-bottom: 1px solid #686362; border-radius: 0;
    background: #111212; max-height: calc(100dvh - var(--nav-height)); overflow-y: auto;
  }
  .nav .links.is-open { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .nav .links a { padding: 14px 0; border-bottom: 1px solid #343333; border-radius: 0; }
  .nav .links a[aria-current="page"]::after { right: auto; width: 30px; }
}
@media(max-width:700px) {
  #discord { grid-template-columns: 1fr; grid-template-areas: "intro" "photo" "action" "principles"; }
  #discord .community-visual { aspect-ratio: 16/10; min-height: 0; }
  #discord .community-visual img { min-height: 0; }
  #discord .community-pillars { grid-template-columns: 1fr; }
  #discord .community-pillar { padding-block: 16px; }
  #postula { grid-template-columns: minmax(0,1fr); }
  #postula .join-copy { grid-row: 1; }
  .application-photo { height: auto; }
  footer { align-items: start; gap: 28px; }
}
@media(prefers-reduced-motion:reduce) {
  .nav .links a::after { animation: none; }
}
