/* ==========================================================================
   Grupo Causa Común — implemented from Grupo Causa Común.dc.html
   ========================================================================== */

/* ---- Fonts (self-hosted) ------------------------------------------------ */
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-italic-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Space Grotesk ships as a variable font: one file covers weights 300–700. */
/* vietnamese */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/space-grotesk-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens & base ------------------------------------------------------ */
:root {
  --navy: #012169;
  --ink: #0C1023;
  --cream: #F4F1EA;
  --wine: #6B1230;
  --live: #35D07F;
  --pad-x: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.22, .6, .2, 1);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--wine); }
::selection { background: var(--navy); color: var(--cream); }

@keyframes gccmarq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes gccpulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(53, 208, 127, .55); }
  50% { opacity: .7; box-shadow: 0 0 0 7px rgba(53, 208, 127, 0); }
}

/* ---- Launch loader --------------------------------------------------------
   Full-screen intro that plays once on load, then lifts away. Pure CSS so the
   sequence runs before / without JS; JS only locks scroll and removes the node. */
@keyframes gccLdSq { from { transform: scale(.55); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes gccLdSqOut { to { opacity: 0; } }
@keyframes gccLdLogo { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes gccLdText { from { opacity: 0; letter-spacing: .6em; } to { opacity: 1; letter-spacing: .28em; } }
@keyframes gccLdBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes gccLdLift { to { transform: translateY(-101%); } }

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  pointer-events: none;
  animation: gccLdLift .8s cubic-bezier(.76, 0, .24, 1) 1.85s forwards;
}
.loader-mark { position: relative; width: clamp(150px, 20vw, 200px); aspect-ratio: 1; }
.loader-sq {
  position: absolute;
  border: 1.5px solid var(--navy);
  opacity: 0;
  transform: scale(.55);
}
.loader-sq-1 { inset: 0;   animation: gccLdSq .65s var(--ease) 0s forwards,   gccLdSqOut .45s ease 1.05s forwards; }
.loader-sq-2 { inset: 15%; animation: gccLdSq .65s var(--ease) .12s forwards, gccLdSqOut .45s ease 1.05s forwards; }
.loader-sq-3 { inset: 30%; animation: gccLdSq .65s var(--ease) .24s forwards, gccLdSqOut .45s ease 1.05s forwards; }
.loader-logo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 86%;
  opacity: 0;
  animation: gccLdLogo .7s var(--ease) .95s forwards;
}
.loader-word {
  font: 600 11px/1 'Space Grotesk', sans-serif;
  color: var(--navy);
  letter-spacing: .28em;
  opacity: 0;
  padding-left: .28em;
  animation: gccLdText .9s var(--ease) 1.15s forwards;
}
.loader-bar {
  width: 124px;
  height: 1.5px;
  transform-origin: left;
  background: linear-gradient(90deg, var(--navy), var(--wine));
  transform: scaleX(0);
  animation: gccLdBar 1.55s cubic-bezier(.4, 0, .2, 1) .2s forwards;
}

/* ---- Language toggle ----------------------------------------------------
   Default language is Spanish; JS flips <html lang>. Spans tagged .es/.en
   show only in their language; .blk variants render as blocks. */
html[lang="es"] .en { display: none !important; }
html[lang="en"] .es { display: none !important; }
.blk { display: block; }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad-x);
  background: rgba(244, 241, 234, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(1, 33, 105, .16);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { height: 30px; display: block; }
.brand-word { font: 600 11.5px/1 'Space Grotesk'; letter-spacing: .22em; color: var(--navy); }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav-link { font: 500 11px/1 'Space Grotesk'; letter-spacing: .18em; color: var(--ink); }
.nav-link:hover { color: var(--wine); }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(1, 33, 105, .35);
  border-radius: 999px;
  padding: 5px 6px;
}
.lang-btn:focus-visible,
.fab-toggle:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.lang-btn {
  all: unset;
  cursor: pointer;
  font: 600 10px/1 'Space Grotesk';
  letter-spacing: .12em;
  padding: 4px 9px;
  border-radius: 999px;
  color: rgba(12, 16, 35, .55);
  background: transparent;
}
html[lang="es"] #btn-es,
html[lang="en"] #btn-en { background: var(--navy); color: var(--cream); }

/* ---- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 56px);
  padding-top: 13vh;
}
.hero-watermark {
  position: absolute;
  right: -5vw;
  top: 6vh;
  height: min(82vh, 860px);
  opacity: .11;
  pointer-events: none;
}
.hero-eyebrow { position: relative; display: flex; align-items: center; gap: 14px; }
.hero-eyebrow-rule { width: 44px; height: 1.5px; background: var(--wine); }
.hero-eyebrow-text { font: 600 11px/1.4 'Space Grotesk'; letter-spacing: .3em; color: var(--wine); }
.hero-intro {
  position: relative;
  margin: clamp(16px, 3vh, 28px) 0 0;
  max-width: 40ch;
  font: 400 clamp(15px, 1.35vw, 19px)/1.55 'Space Grotesk';
  color: rgba(12, 16, 35, .75);
}
.hero-title {
  position: relative;
  margin: clamp(18px, 4vh, 40px) 0;
  font: 400 clamp(54px, 9vw, 142px)/0.98 'Instrument Serif', serif;
  letter-spacing: -.015em;
  color: var(--navy);
  max-width: 12em;
  text-wrap: balance;
}
.hero-title em { font-style: italic; color: var(--wine); }
.hero-foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}
.hero-foot-text {
  margin: 0;
  max-width: 44ch;
  font: 400 clamp(15px, 1.3vw, 18px)/1.55 'Space Grotesk';
  color: rgba(12, 16, 35, .72);
}
.hero-foot-tag { font: 500 10.5px/1.6 'Space Grotesk'; letter-spacing: .22em; color: rgba(12, 16, 35, .45); }

/* ---- Marquee -------------------------------------------------------------- */
.marquee {
  background: linear-gradient(90deg, #012169, #01143c 55%, #4E1026 140%);
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid rgba(1, 33, 105, .3);
  border-bottom: 1px solid rgba(1, 33, 105, .3);
}
.marquee-track { display: flex; width: max-content; animation: gccmarq 26s linear infinite; }
.marquee-half { display: flex; align-items: center; gap: 44px; padding-right: 44px; flex: none; }
.marquee-phrase { font: 500 13px/1 'Space Grotesk'; letter-spacing: .34em; color: rgba(244, 241, 234, .92); white-space: nowrap; }
.marquee-icon { height: 20px; opacity: .9; }

/* ---- Section kickers ------------------------------------------------------ */
.section-kicker { border-top: 1.5px solid var(--navy); padding-top: 14px; height: fit-content; }
.section-kicker-label { font: 600 11px/1.6 'Space Grotesk'; letter-spacing: .24em; color: var(--navy); }
.section-kicker-label.light { color: var(--cream); }

/* ---- 01 Misión ------------------------------------------------------------ */
.mision {
  padding: clamp(72px, 12vh, 150px) var(--pad-x);
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 4fr);
  gap: clamp(20px, 4vw, 60px);
}
.mision-statement {
  margin: 0;
  font: 400 clamp(30px, 3.8vw, 58px)/1.16 'Instrument Serif', serif;
  letter-spacing: -.01em;
  color: var(--ink);
  max-width: 24em;
  text-wrap: pretty;
}
.mision-statement em { color: var(--wine); }
.mision-detail {
  margin: clamp(24px, 4vh, 44px) 0 0;
  max-width: 52ch;
  font: 400 15.5px/1.65 'Space Grotesk';
  color: rgba(12, 16, 35, .7);
}

/* ---- 02 Qué hacemos -------------------------------------------------------- */
.principles { padding: 0 var(--pad-x) clamp(72px, 12vh, 140px); }
.principles-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1.5px solid var(--navy);
  padding-top: 14px;
  margin-bottom: clamp(8px, 2vh, 20px);
}
.principles-count { font: 400 11px/1.6 'Space Grotesk'; letter-spacing: .14em; color: rgba(12, 16, 35, .45); }
.principle {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 3vw, 44px);
  padding: clamp(22px, 4vh, 40px) 0;
  border-bottom: 1px solid rgba(1, 33, 105, .18);
  flex-wrap: wrap;
}
.principle-num { font: 400 13px/1 'Space Grotesk'; color: var(--wine); min-width: 34px; }
.principle-title { margin: 0; font: 400 clamp(28px, 3.4vw, 50px)/1.05 'Instrument Serif', serif; color: var(--navy); flex: 1 1 320px; }
.principle-text { margin: 0; font: 400 14.5px/1.55 'Space Grotesk'; color: rgba(12, 16, 35, .65); flex: 0 1 34ch; }

/* ---- 03 Proyectos (dark) ---------------------------------------------------- */
.projects {
  background: linear-gradient(180deg, #01102F 0%, #010B22 100%);
  padding: clamp(72px, 12vh, 150px) var(--pad-x);
  position: relative;
  overflow: hidden;
}
.projects-noise {
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNjAiIGhlaWdodD0iMTYwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC45IiBudW1PY3RhdmVzPSIyIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjE2MCIgaGVpZ2h0PSIxNjAiIGZpbHRlcj0idXJsKCNuKSIgb3BhY2l0eT0iMC4wNSIvPjwvc3ZnPg==');
  pointer-events: none;
}
.projects-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1.5px solid rgba(244, 241, 234, .35);
  padding-top: 14px;
  margin-bottom: clamp(30px, 6vh, 64px);
}
.projects-legend { display: flex; gap: 26px; font: 500 10.5px/1.6 'Space Grotesk'; letter-spacing: .18em; color: rgba(244, 241, 234, .6); }
.legend-item { display: flex; align-items: center; gap: 8px; }

.dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--live);
  animation: gccpulse 2.2s ease-in-out infinite;
  flex: none;
}
.dot-dev { width: 8px; height: 8px; border-radius: 50%; border: 1.5px dashed rgba(244, 241, 234, .75); flex: none; }
.dot-soon { width: 8px; height: 8px; border: 1.5px solid rgba(244, 241, 234, .55); flex: none; }
.project-badge .dot-dev { border-color: rgba(244, 241, 234, .85); }
.project-badge .dot-soon { border-color: rgba(244, 241, 234, .75); }

/* Cards */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(48px, 10vh, 120px);
  min-height: clamp(460px, 68vh, 660px);
  padding: clamp(26px, 4.5vw, 60px);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.22, .6, .2, 1), box-shadow .5s;
}
.card-pilas {
  background: linear-gradient(118deg, #021845 0%, #012169 52%, #032c85 100%);
  box-shadow: 0 30px 80px -30px rgba(0, 5, 20, .8);
}
.card-pilas:hover { transform: translateY(-6px); box-shadow: 0 46px 110px -34px rgba(0, 5, 20, .95); }
.card-mentor {
  margin-top: clamp(24px, 4vh, 44px);
  background: linear-gradient(118deg, #2A0A1C 0%, #4E1026 55%, #6B1230 100%);
  box-shadow: 0 30px 80px -30px rgba(20, 0, 8, .8);
}
.card-mentor:hover { transform: translateY(-6px); box-shadow: 0 46px 110px -34px rgba(20, 0, 8, .95); }
.card-soon {
  gap: clamp(30px, 6vh, 70px);
  min-height: clamp(240px, 34vh, 360px);
  max-width: 1060px;
  margin-top: clamp(24px, 4vh, 44px);
  padding: clamp(24px, 3.5vw, 48px);
  background: linear-gradient(118deg, #050B1E 0%, #0A1330 58%, #15204A 100%);
  border: 1px solid rgba(244, 241, 234, .14);
  box-shadow: 0 22px 60px -26px rgba(0, 5, 20, .75);
}
.card-soon:hover { transform: translateY(-4px); box-shadow: 0 34px 80px -30px rgba(0, 5, 20, .9); }

.project-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(.5) contrast(1.2);
  mix-blend-mode: luminosity;
  opacity: .4;
}
.photo-mentor { filter: grayscale(1) brightness(.5) contrast(1.15); opacity: .42; }

/* Live page previews ---------------------------------------------------------
   On hover / keyboard focus (and, via JS, while the card crosses the middle of
   the viewport) the brand gradient melts away into a real screenshot of the
   project's page. A brand-tinted scrim keeps the type legible over the shot. */
.project-preview {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s var(--ease);
  pointer-events: none;
}
.project-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* top-left keeps the page's logo + headline in frame when narrow cards crop the shot */
  object-position: top left;
  transform: scale(1.045);
  transition: transform 1.3s var(--ease);
}
.project-scrim { position: absolute; inset: 0; }
.scrim-pilas {
  background:
    linear-gradient(180deg, rgba(1, 12, 38, .72) 0%, rgba(1, 12, 38, 0) 24%),
    linear-gradient(180deg, rgba(1, 12, 38, 0) 34%, rgba(1, 16, 47, .68) 60%, rgba(2, 14, 42, .96) 100%);
}
.scrim-mentor {
  background:
    linear-gradient(180deg, rgba(26, 5, 14, .72) 0%, rgba(26, 5, 14, 0) 24%),
    linear-gradient(180deg, rgba(26, 5, 14, 0) 34%, rgba(46, 9, 24, .68) 60%, rgba(36, 7, 20, .96) 100%);
}
.has-preview:hover .project-preview,
.has-preview:focus-visible .project-preview,
.has-preview.is-previewing .project-preview { opacity: 1; }
.has-preview:hover .project-preview img,
.has-preview:focus-visible .project-preview img,
.has-preview.is-previewing .project-preview img { transform: scale(1); }

/* Frosted panel behind the type so it stays legible over light page shots */
.has-preview .project-body { z-index: 0; }
.has-preview .project-body::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -20px -24px;
  border-radius: 14px;
  background: rgba(2, 9, 26, .35);
  border: 1px solid rgba(244, 241, 234, .08);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  opacity: 0;
  transition: opacity .8s var(--ease);
  pointer-events: none;
}
.has-preview:hover .project-body::before,
.has-preview:focus-visible .project-body::before,
.has-preview.is-previewing .project-body::before { opacity: 1; }

/* …while the resting art steps back so the page shows through */
.has-preview .project-photo,
.has-preview .project-tint,
.has-preview .project-glow,
.has-preview .project-rings { transition: opacity .8s var(--ease); }
.has-preview:hover .project-photo,
.has-preview:focus-visible .project-photo,
.has-preview.is-previewing .project-photo,
.has-preview:hover .project-tint,
.has-preview:focus-visible .project-tint,
.has-preview.is-previewing .project-tint,
.has-preview:hover .project-glow,
.has-preview:focus-visible .project-glow,
.has-preview.is-previewing .project-glow,
.has-preview:hover .project-rings,
.has-preview:focus-visible .project-rings,
.has-preview.is-previewing .project-rings { opacity: 0; }

.project-tint { position: absolute; inset: 0; }
.tint-pilas { background: linear-gradient(115deg, rgba(2, 17, 55, .9) 0%, rgba(1, 33, 105, .55) 55%, rgba(107, 18, 48, .5) 130%); }
.tint-mentor { background: linear-gradient(115deg, rgba(32, 6, 18, .92) 0%, rgba(78, 16, 38, .55) 55%, rgba(1, 33, 105, .45) 135%); }
.project-glow { position: absolute; }
.glow-pilas { top: -120px; right: -120px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(120, 40, 70, .5) 0%, rgba(120, 40, 70, 0) 65%); }
.glow-mentor { top: -140px; left: -100px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(1, 50, 140, .45) 0%, rgba(1, 50, 140, 0) 65%); }
.glow-soon { bottom: -140px; left: -120px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(120, 40, 70, .35) 0%, rgba(120, 40, 70, 0) 65%); }

/* Concentric square ornaments */
.project-rings { position: absolute; aspect-ratio: 1; pointer-events: none; }
.project-rings span { position: absolute; border: 1.5px solid rgba(244, 241, 234, .22); }
.rings-pilas { right: clamp(-60px, -3vw, -20px); bottom: -70px; width: min(46vw, 430px); opacity: .5; }
.rings-pilas span:nth-child(1) { inset: 0; }
.rings-pilas span:nth-child(2) { inset: 11%; border-color: rgba(244, 241, 234, .19); }
.rings-pilas span:nth-child(3) { inset: 22%; border-color: rgba(244, 241, 234, .16); }
.rings-pilas span:nth-child(4) { inset: 33%; border-color: rgba(244, 241, 234, .13); }
.rings-pilas span:nth-child(5) { inset: 44%; border-color: rgba(244, 241, 234, .10); }
.rings-mentor { right: clamp(-60px, -3vw, -20px); top: -70px; width: min(46vw, 430px); opacity: .45; }
.rings-mentor span { border-style: dashed; border-color: rgba(244, 241, 234, .25); }
.rings-mentor span:nth-child(1) { inset: 0; }
.rings-mentor span:nth-child(2) { inset: 11%; border-color: rgba(244, 241, 234, .21); }
.rings-mentor span:nth-child(3) { inset: 22%; border-color: rgba(244, 241, 234, .17); }
.rings-mentor span:nth-child(4) { inset: 33%; border-color: rgba(244, 241, 234, .13); }
.rings-mentor span:nth-child(5) { inset: 44%; border-color: rgba(244, 241, 234, .10); }
.rings-soon { right: clamp(-50px, -2vw, -16px); top: 50%; width: min(30vw, 280px); transform: translateY(-50%); opacity: .3; }
.rings-soon span { border-color: rgba(244, 241, 234, .2); }
.rings-soon span:nth-child(1) { inset: 0; }
.rings-soon span:nth-child(2) { inset: 12%; border-color: rgba(244, 241, 234, .16); }
.rings-soon span:nth-child(3) { inset: 24%; border-color: rgba(244, 241, 234, .12); }
.rings-soon span:nth-child(4) { inset: 36%; border-color: rgba(244, 241, 234, .09); }

.project-topline {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.project-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 10.5px/1 'Space Grotesk';
  letter-spacing: .24em;
  color: var(--cream);
  border: 1px solid rgba(244, 241, 234, .35);
  border-radius: 999px;
  padding: 9px 16px;
  background: rgba(1, 11, 34, .35);
  backdrop-filter: blur(4px);
}
.badge-dashed { border-style: dashed; border-color: rgba(244, 241, 234, .45); background: rgba(20, 2, 10, .35); }
.card-soon .project-badge { border-color: rgba(244, 241, 234, .3); }
.project-domain { font: 500 11px/1 'Space Grotesk'; letter-spacing: .2em; color: rgba(244, 241, 234, .65); }

.project-body { position: relative; max-width: 760px; }
.body-soon { max-width: 640px; }
.project-title {
  margin: 0 0 18px;
  font: 400 clamp(48px, 7vw, 104px)/0.95 'Instrument Serif', serif;
  letter-spacing: -.015em;
  color: var(--cream);
}
.title-pilas em { color: #C9788C; }
.title-mentor { font-size: clamp(44px, 6.4vw, 96px); }
.title-mentor em { color: #8FA7DD; }
.title-soon {
  margin: 0 0 14px;
  font: 400 clamp(32px, 4.4vw, 62px)/1 'Instrument Serif', serif;
  letter-spacing: -.01em;
  color: rgba(244, 241, 234, .9);
}
.title-soon em { color: #8FA7DD; }
.project-desc {
  margin: 0 0 26px;
  font: 400 clamp(14.5px, 1.25vw, 17px)/1.6 'Space Grotesk';
  color: rgba(244, 241, 234, .82);
  max-width: 56ch;
}
.desc-soon { margin: 0 0 22px; font-size: clamp(14px, 1.15vw, 16px); color: rgba(244, 241, 234, .65); max-width: 48ch; }
.project-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.project-tag {
  font: 500 10px/1 'Space Grotesk';
  letter-spacing: .18em;
  color: rgba(244, 241, 234, .75);
  border: 1px solid rgba(244, 241, 234, .3);
  border-radius: 999px;
  padding: 8px 14px;
}
.tag-soon { display: inline-block; color: rgba(244, 241, 234, .6); border-color: rgba(244, 241, 234, .22); }

/* ---- 04 Sectores ------------------------------------------------------------ */
.sectors { padding: clamp(72px, 12vh, 150px) var(--pad-x); }
.sectors-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  border-top: 1.5px solid var(--navy);
  padding-top: 14px;
  margin-bottom: clamp(30px, 6vh, 60px);
}
.sectors-tagline { font: 400 clamp(16px, 1.6vw, 22px)/1.3 'Instrument Serif', serif; font-style: italic; color: var(--wine); }
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}
.sector-card {
  position: relative;
  border: 1px solid rgba(1, 33, 105, .25);
  border-radius: 12px;
  padding: clamp(24px, 3vw, 40px);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(160deg, rgba(1, 33, 105, .05), rgba(1, 33, 105, 0) 60%);
  transition: transform .45s cubic-bezier(.22, .6, .2, 1), border-color .45s;
}
.sector-card:hover { transform: translateY(-5px); border-color: rgba(107, 18, 48, .55); }
.card-custom { background: linear-gradient(160deg, rgba(107, 18, 48, .07), rgba(1, 33, 105, 0) 60%); }
.sector-num { font: 400 13px/1 'Space Grotesk'; color: var(--wine); }
.sector-title { margin: 0 0 12px; font: 400 clamp(30px, 3vw, 44px)/1 'Instrument Serif', serif; color: var(--navy); }
.sector-text { margin: 0; font: 400 14px/1.6 'Space Grotesk'; color: rgba(12, 16, 35, .65); }

/* ---- Footer ------------------------------------------------------------------ */
.site-footer {
  background: #010D2E;
  padding: 20px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-mark { height: 22px; display: block; }
.footer-word { font: 600 10.5px/1 'Space Grotesk'; letter-spacing: .22em; color: var(--cream); }
.footer-legal { font: 400 10.5px/1.6 'Space Grotesk'; letter-spacing: .16em; color: rgba(244, 241, 234, .55); }

/* ---- Floating page selector ---------------------------------------------------- */
.fab {
  position: fixed;
  right: clamp(16px, 3vw, 36px);
  bottom: clamp(16px, 3vw, 36px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.fab-menu {
  display: none;
  flex-direction: column;
  min-width: 218px;
  background: rgba(244, 241, 234, .97);
  border: 1px solid rgba(1, 33, 105, .28);
  border-radius: 12px;
  box-shadow: 0 22px 60px -20px rgba(1, 10, 30, .55);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.fab-menu.open { display: flex; }
.fab-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 13px 16px;
  font: 500 10.5px/1 'Space Grotesk';
  letter-spacing: .2em;
  color: var(--navy);
  border-bottom: 1px solid rgba(1, 33, 105, .12);
}
.fab-link:last-child { border-bottom: 0; }
.fab-link:hover { background: rgba(1, 33, 105, .07); color: var(--navy); }
.fab-link-mark { color: var(--wine); }
.fab-toggle {
  all: unset;
  cursor: pointer;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid rgba(1, 33, 105, .35);
  box-shadow: 0 16px 40px -14px rgba(1, 10, 30, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s cubic-bezier(.22, .6, .2, 1), box-shadow .35s;
}
.fab-toggle:hover { transform: translateY(-3px); box-shadow: 0 22px 48px -16px rgba(1, 10, 30, .65); }
.fab-toggle img { height: 30px; display: block; }

/* ---- Small screens --------------------------------------------------------------
   The floating selector covers navigation, so the header keeps only the brand
   and the language toggle on narrow viewports. */
@media (max-width: 640px) {
  .nav-link { display: none; }
  .mision { grid-template-columns: 1fr; }
  .projects-legend { flex-wrap: wrap; gap: 12px 18px; }
}
@media (max-width: 400px) {
  .brand-word { display: none; }
}

/* ---- Reduced motion --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader { display: none; }
  .marquee-track { animation: none; }
  .dot-live { animation: none; }
  .project-card, .sector-card, .fab-toggle { transition: none; }
  .project-preview, .project-preview img, .has-preview .project-body::before,
  .has-preview .project-photo, .has-preview .project-tint,
  .has-preview .project-glow, .has-preview .project-rings { transition: none; }
  .project-preview img { transform: none; }
}
