/* =========================================================
   TOKENS
   ========================================================= */
:root {
  /* color — rebrand Stripe-like (blanco + lavanda + navy) */
  --c-bg: #FFFFFF;
  --c-bg-soft: #F6F9FC;
  --c-bg-card: #F6F9FC;
  --c-bg-card-2: #E3E8EE;
  --c-text: #0A2540;
  --c-text-muted: #425466;
  --c-text-on-dark: #0A2540;
  --c-text-on-dark-muted: #425466;
  --c-dark: #0A2540;
  --c-accent: #635BFF;
  --c-border: #E3E8EE;

  /* brand (header) — antes oscuro, ahora light surfaces */
  --c-dark-bg: #F6F9FC;
  --c-dark-soft: #FFFFFF;
  --c-green: #635BFF;

  /* placeholder shades */
  --ph-light: #F6F9FC;
  --ph-medium: #ADBDCC;
  --ph-dark: #425466;

  /* typography */
  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* spacing (8px base) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
  --sp-8: 120px;

  /* radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* container */
  --container-max: 1200px;
  --container-pad: 24px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-weight: 700;
  color: var(--c-text);
}
p { margin: 0; }

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-muted);
  margin: 0 0 var(--sp-2);
}
.eyebrow-center { text-align: center; }

.section-title {
  font-size: clamp(32px, 4.4vw, 48px);
}
.section-title-center { text-align: center; }

.section-sub {
  font-size: 15px;
  color: var(--c-text-muted);
  margin-top: var(--sp-2);
}
.section-sub-center { text-align: center; }

/* =========================================================
   PLACEHOLDER (image fill)
   ========================================================= */
/* every placeholder element gets a centered image-icon glyph */
.carousel-slide,
.project-image {
  background-color: var(--ph-light);
  border-radius: var(--r-md);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A9AA0' stroke-width='1.4'><rect x='3' y='4' width='18' height='16' rx='2'/><circle cx='9' cy='10' r='1.5'/><path d='M21 17l-5-5-9 9'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40px 40px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 22px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-accent);
  color: #FFFFFF;
}
.btn-dark {
  background: var(--c-text);
  color: #FFFFFF;
}

/* =========================================================
   BRAND
   ========================================================= */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--c-text);
}
.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--c-text);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid #FFF;
  border-radius: 50%;
  border-right-color: transparent;
  transform: rotate(-20deg);
}
.brand-name { letter-spacing: -0.01em; }
.brand-logo { height: 32px; width: auto; display: block; }

/* =========================================================
   HEADER  (dark, monospaced)
   ========================================================= */
.site-header {
  background: var(--c-dark-bg);
  padding: 22px 0;
}
.nav-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-4);
}
.site-header .brand { justify-self: start; gap: 12px; }
.site-header .brand-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 18px;
  color: #0A2540;
  letter-spacing: 0;
}
.site-header .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
}
.site-header .brand-mark::after {
  inset: 4px;
  border: 2.5px solid var(--c-green);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-30deg);
}

.primary-nav {
  display: flex;
  gap: var(--sp-5);
  justify-self: center;
  margin: 0;
}
.primary-nav a {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0A2540;
}

.btn-outline-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  border: none;
  background: #635BFF;
  color: #FFFFFF;
  cursor: pointer;
  white-space: nowrap;
}

/* =========================================================
   HERO  (dark, floating elements)
   ========================================================= */
.hero {
  position: relative;
  background: var(--c-dark-bg);
  background-image:
    radial-gradient(ellipse 60% 45% at 50% 40%, rgba(255, 255, 255, 0.035), transparent 70%);
  min-height: 880px;
  overflow: hidden;
  padding: 100px 0 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-title {
  color: #0A2540;
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}
.hero-title .text-green {
  color: var(--c-green);
}

.hero-sub {
  color: #0A2540;
  font-size: 16px;
  line-height: 1.55;
  max-width: 560px;
  margin: 0;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-green);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 17px 38px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  margin-top: 8px;
}

/* ---------- floating images (placeholders) ---------- */
.float-img {
  position: absolute;
  background-color: var(--c-dark-soft);
  border-radius: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334042' stroke-width='1.4'><rect x='3' y='4' width='18' height='16' rx='2'/><circle cx='9' cy='10' r='1.5'/><path d='M21 17l-5-5-9 9'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 32px 32px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  z-index: 1;
  animation: float-soft 6s ease-in-out infinite;
  will-change: transform;
}
.float-img-1 { top: 4%;  left: 13%;  width: 250px; height: 185px; animation-duration: 6s;   animation-delay: 0s; background-image: url("assets/jjforza.png"); background-size: cover; background-position: center; }
.float-img-2 { top: 13%; right: 5%;  width: 175px; height: 200px; animation-duration: 7s;   animation-delay: -2s; background-image: url("assets/ASI%20Empaques.png"); background-size: cover; background-position: center; }
.float-img-3 { top: 56%; left: 11%;  width: 155px; height: 155px; animation-duration: 5.5s; animation-delay: -1s; background-image: url("assets/CETMC.png"); background-size: cover; background-position: center; }
.float-img-4 { top: 64%; right: 32%; width: 92px;  height: 92px;  animation-duration: 6.5s; animation-delay: -3s; background-image: url("assets/HMT.png"); background-size: cover; background-position: center; }
.float-img-5 { top: 55%; right: 11%; width: 175px; height: 225px; animation-duration: 7.5s; animation-delay: -0.5s; background-image: url("assets/WER%20Mexico.png"); background-size: cover; background-position: center; }
.float-img-6 { bottom: -30px; left: 40%; width: 165px; height: 165px; animation-duration: 6s; animation-delay: -2.5s; background-image: url("assets/dr-rolando-gonzalez.png"); background-size: cover; background-position: center; }

/* ---------- floating icon chips ---------- */
.float-icon {
  position: absolute;
  width: 56px;
  height: 56px;
  background: var(--c-dark-soft);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5B6B6E;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  z-index: 1;
  animation: float-soft 6.5s ease-in-out infinite;
  will-change: transform;
}
.float-icon svg { width: 22px; height: 22px; }
.float-icon-1 { top: 42%;    left: 18%;  animation-duration: 8s;   animation-delay: -1.5s; }
.float-icon-2 { top: 82%;    left: 18%;  animation-duration: 7s;   animation-delay: -3.5s; }
.float-icon-3 { top: 42%;    right: 19%; animation-duration: 6.5s; animation-delay: -0.5s; }
.float-icon-4 { bottom: 6%;  right: 26%; animation-duration: 7.5s; animation-delay: -2.5s; }

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  .float-img, .float-icon { animation: none; }
}

/* =========================================================
   LOGO STRIP  (dark, infinite horizontal marquee)
   ========================================================= */
.logos {
  background: var(--c-dark-bg);
  padding: 60px 0 72px;
  overflow: hidden;
  scroll-margin-top: 80px;
}
.logos-caption {
  color: #0A2540;
  text-align: center;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0 0 56px;
}

.marquee {
  overflow: hidden;
  /* soft fade on both edges so logos drift in/out instead of popping */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 110px;
  width: max-content;
  align-items: center;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-item {
  display: inline-flex;
  align-items: center;
  color: #4A5557;
  white-space: nowrap;
  font-size: 28px;
  line-height: 1;
}

/* variants — each placeholder picks a distinct font / weight / casing
   so the strip reads like a list of real wordmarks, not the same text repeated */
.logo-serif-italic       { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; }
.logo-sans-black-upper   { font-family: var(--font-sans); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; font-size: 24px; }
.logo-serif-italic-bold  { font-family: Georgia, serif; font-style: italic; font-weight: 700; font-size: 36px; }
.logo-serif-bold         { font-family: Georgia, serif; font-weight: 700; font-size: 32px; }
.logo-serif-fancy        { font-family: Georgia, serif; font-style: italic; font-weight: 400; font-size: 26px; }
.logo-sans-tracked       { font-family: var(--font-sans); font-weight: 700; letter-spacing: 0.12em; font-size: 26px; }
.logo-sans-pipe          { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.01em; font-size: 24px; }
.logo-sans-light-upper   { font-family: var(--font-sans); font-weight: 300; text-transform: uppercase; letter-spacing: 0.15em; font-size: 20px; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* =========================================================
   APPROACH  (dark — title + featured card + 3 cards)
   ========================================================= */
.approach {
  background: var(--c-dark-bg);
  padding: 80px 0 96px;
  scroll-margin-top: 80px;
}

.approach-title {
  color: #0A2540;
  text-align: center;
  font-family: var(--font-display);
  font-size: 35px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 48px;
}
.approach-title .text-green { color: var(--c-green); }

/* ---------- horizontal featured card ---------- */
.featured-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 32px;
  background: var(--c-dark-soft);
  border-radius: 24px;
  padding: 24px;
  align-items: center;
  margin-bottom: 24px;
}
.featured-image {
  border-radius: 16px;
  overflow: hidden;
  background: #0A1416;
}
.featured-image img {
  display: block;
  width: 100%;
  height: auto;
}
.featured-text {
  padding: 16px 32px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.featured-text h3 {
  color: #0A2540;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.featured-text p {
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 460px;
  margin: 0;
}
.featured-text .btn-cta {
  align-self: flex-start;
  margin-top: 8px;
}

/* ---------- 3 cards row ---------- */
.approach-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.approach-card {
  background: var(--c-dark-soft);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  position: relative;
}
.approach-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.approach-card h3 {
  color: #0A2540;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0;
}
.approach-card p {
  color: var(--c-text-muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}
.approach-card-logo {
  display: block;
  width: 52px;
  height: auto;
  flex-shrink: 0;
}
.approach-card-illustration {
  display: block;
  width: 100%;
  height: auto;
  margin-top: auto;
  padding-top: 16px;
}

/* light variant — card 1 */
.approach-card-light { background: #F2F2F4; }
.approach-card-light h3 { color: var(--c-text); }
.approach-card-light p { color: var(--c-text-muted); }

/* ---------- wide CTA card (below the 3 cards) ---------- */
.approach-cta {
  background: linear-gradient(to right, #0A2540 0%, #061A2E 100%);
  border-radius: 24px;
  padding: 40px 48px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.approach-cta-title {
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  max-width: 560px;
  margin: 0 0 8px;
}
.approach-cta-title .text-green { color: var(--c-green); }
.approach-cta p {
  color: #ADBDCC;
  font-size: 15px;
  line-height: 1.6;
  max-width: 540px;
  margin: 0;
}
.approach-cta .btn-cta {
  align-self: flex-start;
  margin-top: 16px;
  background: #FFFFFF;
  color: #635BFF;
}

/* =========================================================
   GOALS / CAROUSEL  (dark — rotating word + auto carousel)
   ========================================================= */
.goals {
  background: var(--c-dark-bg);
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}
.goals-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.07) 18%,
    rgba(255, 255, 255, 0.02) 42%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}
.goals-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 672px;
  gap: 48px;
  align-items: center;
}
.goals-carousel { width: 672px; }
.goals-carousel-viewport { width: 672px; }
.goals-text h2 {
  color: #0A2540;
  font-family: var(--font-display);
  font-size: 33px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.goals-text .text-green { color: var(--c-green); }

.rotating-word {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
}
.rotating-word-text {
  display: inline-block;
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: transform, opacity;
}
.rotating-word-text.is-leaving {
  opacity: 0;
  transform: translateY(-12px);
}
.rotating-word-text.is-entering {
  opacity: 0;
  transform: translateY(12px);
  transition: none;
}

/* carousel */
.goals-carousel {
  position: relative;
}
.goals-carousel-viewport {
  overflow: hidden;
  border-radius: 24px;
}
.goals-carousel-track {
  display: flex;
  gap: 28px;
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.goals-card {
  position: relative;
  flex: 0 0 322px;
  width: 322px;
  height: 188px;
  border-radius: 22px;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.9s ease, box-shadow 0.9s ease;
}
/* layered pseudo-element backgrounds for seamless cross-fade between states */
.goals-card::before,
.goals-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s ease;
}
/* bright variant — closer to the section's center glow */
.goals-card::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.025) 55%, rgba(0, 0, 0, 0.05) 100%);
}
/* dark variant — further from center */
.goals-card::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.45) 100%);
}
.goals-card.is-left::before { opacity: 1; }
.goals-card.is-right::after { opacity: 1; }
.goals-card.is-left {
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.goals-card.is-right {
  border-color: rgba(255, 255, 255, 0.035);
}
/* keep card content above the bg layers */
.goals-card > * {
  position: relative;
  z-index: 1;
}
.goals-card h3 {
  color: #0A2540;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 14px;
}
.goals-card p {
  color: #A0A4A5;
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.goals-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.goals-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.goals-dot.is-active {
  background: rgba(255, 255, 255, 0.75);
  transform: scale(1.15);
}

/* =========================================================
   PORTFOLIO  (dark — sticky header + sticky card stack)
   ========================================================= */
.portfolio {
  background: var(--c-dark-bg);
  padding-bottom: var(--sp-8);
  scroll-margin-top: 80px;
}

/* sticky header keeps the eyebrow + title visible during the whole stack animation */
.portfolio-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--c-dark-bg);
  padding: 30px 0;
  text-align: center;
}

.portfolio-eyebrow {
  display: inline-block;
  padding: 8px 20px;
  background: var(--c-dark-soft);
  color: var(--c-green);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--r-pill);
  margin: 0 0 16px;
}

.portfolio-title {
  color: #0A2540;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 980px;
  margin: 0 auto;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  background: var(--c-dark-soft);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: var(--sp-4);
  text-align: left;
  align-items: center;
}

/* sticky card-stack — each new card lands just below the previous, leaving its top edge visible */
.project-stack {
  position: relative;
}
.project-stack .project-card {
  position: sticky;
  margin-bottom: 70vh;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}
.project-stack .project-card:nth-child(1) { top: 220px; }
.project-stack .project-card:nth-child(2) { top: 240px; }
.project-stack .project-card:nth-child(3) { top: 260px; }
.project-stack .project-card:nth-child(4) { top: 280px; }
.project-stack .project-card:nth-child(5) { top: 300px; }
.project-stack .project-card:nth-child(6) { top: 320px; }
.project-stack .project-card:nth-child(7) { top: 340px; }
.project-stack .project-card:nth-child(8) { top: 360px; }

/* CTA card — same dimensions, transparent bg, centered content, no image */
.project-stack .project-card.project-card-cta {
  background: transparent;
  border: none;
  box-shadow: none;
  grid-template-columns: 1fr;
  min-height: 394px;
}
.project-card-cta .project-image {
  display: none;
}
.project-card-cta .project-text {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.project-card-cta .project-text h3 {
  color: #0A2540;
  font-size: 35px;
  margin-bottom: 0;
}
.project-card-cta .project-text h3 .text-green {
  color: var(--c-green);
}
.project-card-cta .project-text p {
  max-width: 520px;
}
.project-card-cta .project-ctas {
  justify-content: center;
  margin-top: 0;
}
.project-text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-2);
}
.project-text h3 {
  color: #0A2540;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: var(--sp-1);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--sp-1);
}
.tag {
  display: inline-block;
  padding: 8px 20px;
  background: var(--c-dark-soft);
  color: var(--c-green);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--r-pill);
}
.project-text p {
  color: var(--c-text-muted);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 480px;
}
.project-ctas {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}
.link-cta {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-pill);
  color: #0A2540;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.link-cta:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}
.project-image {
  aspect-ratio: 16/10;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--r-md);
}

/* =========================================================
   FINAL CTA  (dark — horizontal card with CTA on the right)
   ========================================================= */
.final-cta {
  background: var(--c-dark-bg);
  padding: var(--sp-6) 0 var(--sp-8);
}

.final-cta-card {
  background: linear-gradient(to right, #0A2540 0%, #061A2E 100%);
  border-radius: 24px;
  padding: var(--sp-5) var(--sp-6);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-5);
  align-items: center;
}

.final-cta-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.final-cta-title {
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  max-width: 560px;
  margin: 0;
}
.final-cta-title .text-green {
  color: var(--c-green);
}

.final-cta-card p {
  color: #ADBDCC;
  font-size: 15px;
  line-height: 1.55;
  max-width: 540px;
  margin: 0;
}

.final-cta-card .btn-cta {
  background: #FFFFFF;
  color: #635BFF;
}

/* =========================================================
   LEGAL PAGES  (privacidad, cookies)
   ========================================================= */
.legal-page {
  background: var(--c-dark-bg);
  padding: var(--sp-7) 0 var(--sp-8);
  color: #0A2540;
}
.legal-page .container {
  max-width: 820px;
}

.legal-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: var(--c-dark-soft);
  color: var(--c-green);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  margin: 0 0 24px;
}

.legal-title {
  color: #0A2540;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
}

.legal-updated {
  color: #000000;
  font-size: 14px;
  margin: 0 0 var(--sp-5);
}

.legal-content h2 {
  color: #0A2540;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: var(--sp-5) 0 var(--sp-2);
}

.legal-content p {
  color: #000000;
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 var(--sp-2);
}

.legal-content strong {
  color: #000000;
  font-weight: 600;
}

/* =========================================================
   FOOTER  (dark — brand + centered nav + legal row)
   ========================================================= */
.site-footer {
  background: var(--c-dark-bg);
  padding: var(--sp-6) 0 var(--sp-4);
}
.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  padding-bottom: var(--sp-6);
}
.site-footer .brand {
  gap: 12px;
}
.site-footer .brand-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 18px;
  color: #0A2540;
  letter-spacing: 0;
}
.site-footer .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
}
.site-footer .brand-mark::after {
  inset: 4px;
  border: 2.5px solid var(--c-green);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-30deg);
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: var(--sp-5);
}
.footer-nav a {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: #0A2540;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-1);
}
.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-text-muted);
  font-size: 14px;
  line-height: 1;
}
.footer-contact-item span {
  line-height: 1;
}
.footer-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  align-self: center;
}

.footer-divider {
  height: 1px;
  background: var(--c-border);
  margin: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  font-size: 13px;
  color: var(--c-text-muted);
}
.footer-bottom a { color: var(--c-text-muted); }
.footer-copy { text-align: center; flex: 1; }

/* =========================================================
   RESPONSIVE — stack goals layout when carousel won't fit
   ========================================================= */
@media (max-width: 1024px) {
  .goals { padding: 120px 0; }
  .goals-row {
    grid-template-columns: 1fr;
    gap: 56px;
    justify-items: center;
    text-align: center;
  }
  .goals-carousel { width: 100%; max-width: 672px; }
  .goals-carousel-viewport { width: 100%; max-width: 672px; }
  .hero-title { font-size: 40px; }
  .portfolio-title { font-size: 33px; }
  .portfolio-header { padding: 16px 0; }
  .portfolio-eyebrow { margin-bottom: 10px; }
  .project-stack .project-card:nth-child(1) { top: 140px; }
  .project-stack .project-card:nth-child(2) { top: 160px; }
  .project-stack .project-card:nth-child(3) { top: 180px; }
  .project-stack .project-card:nth-child(4) { top: 200px; }
  .project-stack .project-card:nth-child(5) { top: 220px; }
  .project-stack .project-card:nth-child(6) { top: 240px; }
  .project-stack .project-card:nth-child(7) { top: 260px; }
  .project-stack .project-card:nth-child(8) { top: 280px; }
}

/* =========================================================
   RESPONSIVE — mobile breakpoint at 768px
   ========================================================= */
@media (max-width: 768px) {
  :root {
    --container-pad: 16px;
  }

  /* header */
  .primary-nav { display: none; }
  .nav-row { grid-template-columns: 1fr auto; gap: var(--sp-2); }
  .btn-outline-accent { padding: 10px 18px; font-size: 12px; letter-spacing: 0.08em; }
  .site-header { padding: 16px 0; }

  /* hero — keep centered content, scale down floats and tighten positions */
  .hero { min-height: 640px; padding: 60px 0; }
  .hero-content { gap: 20px; }
  .hero-title { font-size: clamp(30px, 8vw, 40px); }
  .hero-sub { font-size: 14px; }
  .btn-cta { padding: 14px 28px; font-size: 15px; }

  /* hide most floats on mobile — keep just two corner accents */
  .float-img-2, .float-img-3, .float-img-4, .float-img-6 { display: none; }
  .float-img-1 { top: 2%; left: 4%; width: 110px; height: 80px; }
  .float-img-5 { top: 60%; right: 4%; width: 100px; height: 130px; }
  .float-icon-1, .float-icon-4 { display: none; }
  .float-icon-2 { top: auto; bottom: 12%; left: 6%; width: 44px; height: 44px; }
  .float-icon-3 { top: 8%; right: 6%; width: 44px; height: 44px; }
  .float-icon-2 svg, .float-icon-3 svg { width: 18px; height: 18px; }

  /* logo strip — slightly smaller marquee on mobile */
  .logos { padding: 44px 0 52px; }
  .logos-caption { font-size: 14px; margin-bottom: 32px; }
  .marquee-track { gap: 64px; animation-duration: 28s; }
  .logo-item { font-size: 22px; }
  .logo-serif-italic-bold { font-size: 26px; }
  .logo-serif-bold { font-size: 24px; }
  .logo-sans-black-upper, .logo-sans-pipe, .logo-sans-tracked { font-size: 18px; }
  .logo-sans-light-upper { font-size: 14px; }

  /* approach */
  .approach { padding: 56px 0 64px; }
  .approach-title { font-size: clamp(26px, 7vw, 32px); margin-bottom: 32px; }
  .featured-card { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .featured-text { padding: 8px 8px 16px; }
  .approach-cards { grid-template-columns: 1fr; }
  .approach-card { padding: 24px; }
  .approach-cta { padding: 40px 24px; }
  .approach-cta-title { font-size: clamp(24px, 7vw, 30px); }

  /* dark CTA */
  .dark-cta-inner { padding: var(--sp-4) var(--sp-3); }

  /* goals */
  .goals { padding: 72px 0; }
  .goals-row { grid-template-columns: 1fr; gap: 40px; justify-items: center; }
  .goals-text { text-align: center; max-width: 100%; }
  .goals-text h2 { font-size: clamp(22px, 6.4vw, 30px); overflow-wrap: break-word; }
  .goals-glow { width: 500px; height: 500px; }
  .goals-carousel { width: 100%; max-width: 672px; margin: 0 auto; }
  .goals-carousel-viewport { width: 100%; max-width: 672px; }

  /* portfolio */
  .portfolio-title { font-size: 33px; }
  .project-card { grid-template-columns: 1fr; }
  .project-image { aspect-ratio: 16/9; order: -1; }
  .project-ctas { flex-wrap: wrap; }
  .project-stack .project-card {
    position: static;
    margin-bottom: var(--sp-3);
    box-shadow: none;
  }

  /* final cta */
  .final-cta-card {
    grid-template-columns: 1fr;
    padding: var(--sp-4);
    gap: var(--sp-3);
  }
  .final-cta-card .btn-cta { align-self: flex-start; }

  /* footer */
  .footer-top { gap: var(--sp-3); padding-bottom: var(--sp-4); }
  .footer-nav { gap: var(--sp-3); }
  .footer-bottom { flex-direction: column; gap: var(--sp-2); text-align: center; }
  .footer-copy { order: -1; }
}

/* =========================================================
   RESPONSIVE — single-card goals carousel below 700px
   ========================================================= */
@media (max-width: 700px) {
  .goals-carousel-track { width: 100%; gap: 16px; }
  .goals-card { flex: 0 0 100%; width: 100%; min-width: 0; }
}

@media (max-width: 650px) {
  .goals-card { flex: 0 0 calc(100vw - 64px); width: calc(100vw - 64px); }
}

@media (max-width: 600px) {
  .goals-row { justify-items: start; }
  .goals-text { text-align: left; padding-left: 24px; }
  .portfolio-title { font-size: 26px; }
}
