/* ============================================================
   RUZC.MX — Sitio web
   Concepto: Editorial Arquitectónico
   - Reglas horizontales fuertes
   - Números de sección masivos como ancla visual
   - Rejilla asimétrica, ritmo de papel
   - Amarillo signature en momentos clave
   - Cero gradientes; tipografía hace el trabajo emocional
   ============================================================ */

@import url("assets/colors_and_type.css");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg-page); color: var(--fg-1); overflow-x: hidden; }

img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: inherit; }

/* ============================================================
   LAYOUT TOKENS
   ============================================================ */
:root {
  --page-pad-x: clamp(20px, 5vw, 64px);
  --max-w: 1280px;
  --rule-w: 2px;
  --header-h: 76px;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
}

/* ============================================================
   MASTHEAD STRIP (newspaper-style)
   ============================================================ */
.masthead {
  background: var(--ruzc-navy);
  color: rgba(255,255,255,.78);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 8px 0;
}
.masthead__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.masthead a { color: var(--ruzc-yellow); text-decoration: none; }
.masthead a:hover { color: #fff; }
.masthead__left { display: flex; gap: 18px; flex-wrap: wrap; }
.masthead__right { display: flex; gap: 18px; align-items: center; }
.masthead__loc::before { content: "◉ "; color: var(--ruzc-fresh); margin-right: 4px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-1);
  transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.header.is-scrolled {
  background: rgba(246,243,236,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-1);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.header__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.header__brand img { height: 32px; }
.header__brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--ruzc-navy);
  text-transform: uppercase;
  display: none;
}
.header__nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.header__nav a {
  color: var(--fg-1);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  position: relative;
  padding: 6px 0;
}
.header__nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--ruzc-yellow);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.header__nav a:hover::after,
.header__nav a.is-active::after { transform: scaleX(1); }
.header__nav a.is-active { font-weight: 600; }
.header__cta {
  margin-left: 12px;
}
.header__menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--ruzc-ink);
  padding: 8px 12px;
  border-radius: 0;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600; letter-spacing: .02em;
  padding: 14px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.btn--primary {
  background: var(--ruzc-yellow);
  color: var(--ruzc-navy);
  border-color: var(--ruzc-yellow-deep);
}
.btn--primary:hover {
  background: var(--ruzc-yellow-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-yellow);
}
.btn--ghost {
  background: transparent;
  color: var(--fg-1);
  border-color: var(--ruzc-ink);
}
.btn--ghost:hover { background: var(--ruzc-ink); color: var(--ruzc-bone); }
.btn--ghost-light {
  background: transparent;
  color: var(--ruzc-bone);
  border-color: rgba(255,255,255,.4);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--ruzc-yellow);
  color: var(--ruzc-yellow);
}
.btn--small { padding: 10px 16px; font-size: 12px; }
.btn .arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================
   SECTION SCAFFOLD — Editorial style
   Numbered marker + horizontal rule
   ============================================================ */
.section { padding: clamp(56px, 9vw, 120px) 0; position: relative; }
.section--navy { background: var(--ruzc-navy); color: var(--ruzc-bone); overflow: hidden; }
.section--navy-deep { background: var(--ruzc-navy-deep); color: var(--ruzc-bone); overflow: hidden; }
.section--bone-2 { background: var(--ruzc-bone-2); }

.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: var(--rule-w) solid var(--ruzc-ink);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section--navy .section-head,
.section--navy-deep .section-head {
  border-bottom-color: var(--ruzc-yellow);
}
.section-head__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 120px);
  line-height: .85;
  color: var(--ruzc-yellow);
  letter-spacing: -0.04em;
}
.section--navy .section-head__num,
.section--navy-deep .section-head__num { color: var(--ruzc-yellow); }
.section-head__label {
  display: flex; flex-direction: column; gap: 8px;
}
.section-head__cat {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.section--navy .section-head__cat,
.section--navy-deep .section-head__cat { color: rgba(255,255,255,.6); }
.section-head__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: inherit;
  margin: 0;
}
.section-head__pg {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--fg-3);
  white-space: nowrap;
}
.section--navy .section-head__pg,
.section--navy-deep .section-head__pg { color: rgba(255,255,255,.5); }

@media (max-width: 768px) {
  .section-head { grid-template-columns: auto 1fr; gap: 16px; }
  .section-head__pg { display: none; }
  .section-head__num { font-size: 56px; }
}

/* ============================================================
   ATOMS
   ============================================================ */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ruzc-yellow-deep);
  display: inline-block;
}
.eyebrow--on-navy { color: var(--ruzc-yellow); }

.script {
  font-family: var(--font-script);
  font-weight: 600;
  font-style: italic;
  color: var(--ruzc-yellow-deep);
  letter-spacing: 0;
}
.section--navy .script,
.section--navy-deep .script { color: var(--ruzc-yellow); }

.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 60ch;
  font-weight: 400;
}
.section--navy .lead,
.section--navy-deep .lead { color: rgba(255,255,255,.78); }

.tag {
  display: inline-flex; align-items: center;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--ruzc-ink);
  color: var(--ruzc-ink);
  border-radius: 999px;
  background: transparent;
}
.tag--yellow { border-color: var(--ruzc-yellow-deep); color: var(--ruzc-yellow-deep); }
.tag--on-navy { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.85); }

/* ============================================================
   PUZZLE WATERMARK
   ============================================================ */
.watermark {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: .08;
}
.section--navy .watermark,
.section--navy-deep .watermark { opacity: .07; }
.watermark--tr { right: -120px; top: -80px; height: 480px; }
.watermark--bl { left: -160px; bottom: -120px; height: 520px; }
.watermark--mid { right: 8%; top: 30%; height: 320px; opacity: .05; }

.section > .container { position: relative; z-index: 1; }

/* ============================================================
   HERO (Inicio)
   ============================================================ */
.hero {
  padding: clamp(48px, 6vw, 96px) 0 clamp(56px, 8vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero__pretitle {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.hero__pretitle::before {
  content: "";
  width: 48px; height: 2px; background: var(--ruzc-yellow);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: .98;
  letter-spacing: -0.035em;
  color: var(--ruzc-navy);
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero__title .script {
  font-size: 1.05em;
  display: inline-block;
  transform: translateY(.04em);
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(to top, var(--ruzc-yellow) 30%, transparent 30%);
  padding: 0 .08em;
}
.hero__lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 48ch;
  margin: 0 0 36px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__audiences {
  display: flex; gap: 8px; flex-wrap: wrap;
}

.hero__media {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 640px;
}
.hero__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--ruzc-navy);
  filter: saturate(1.04) contrast(1.02);
}
.hero__caption {
  position: absolute;
  left: -28px; bottom: 32px;
  background: var(--ruzc-yellow);
  color: var(--ruzc-navy);
  padding: 14px 18px 16px;
  border: 1px solid var(--ruzc-yellow-deep);
  max-width: 78%;
}
.hero__caption .eyebrow { color: var(--ruzc-navy); margin-bottom: 4px; }
.hero__caption-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero__rule {
  height: 2px;
  background: var(--ruzc-ink);
  margin: 40px 0 0;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0 0;
}
.hero-metric__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.03em;
  color: var(--ruzc-navy);
  line-height: 1;
}
.hero-metric__num small {
  font-size: .55em;
  color: var(--ruzc-yellow-deep);
  margin-left: 2px;
}
.hero-metric__label {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 8px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-height: 480px; aspect-ratio: 4/3; }
  .hero__metrics { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   MANIFIESTO — full-bleed navy
   ============================================================ */
.manifesto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
}
.manifesto__claim {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ruzc-bone);
  text-wrap: balance;
}
.manifesto__claim em {
  font-style: normal;
  color: var(--ruzc-yellow);
}
.manifesto__pos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin-top: 24px;
}
.manifesto__pos-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.manifesto__pos-col--no h4 { color: rgba(255,255,255,.5); }
.manifesto__pos-col--si h4 { color: var(--ruzc-yellow); }
.manifesto__pos-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.manifesto__pos-col li {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,.85);
  padding-left: 18px;
  position: relative;
}
.manifesto__pos-col--no li {
  color: rgba(255,255,255,.55);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,.25);
  text-decoration-thickness: 1px;
}
.manifesto__pos-col--no li::before { content: "—"; position: absolute; left: 0; color: rgba(255,255,255,.4); }
.manifesto__pos-col--si li::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--ruzc-yellow);
  font-weight: 700;
}

@media (max-width: 900px) {
  .manifesto__grid, .manifesto__pos { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICIOS LIST (no cards — editorial list with rules)
   ============================================================ */
.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-1);
}
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--border-1);
  transition: background var(--dur-base) var(--ease-out);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.service-row:hover {
  background: linear-gradient(to right, transparent, rgba(249,178,51,.08), transparent);
}
.service-row:hover .service-row__title { color: var(--ruzc-yellow-deep); }
.service-row:hover .service-row__arrow { transform: translateX(8px); color: var(--ruzc-yellow-deep); }
.service-row__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ruzc-yellow);
}
.service-row__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ruzc-navy);
  margin: 0 0 8px;
  transition: color var(--dur-base) var(--ease-out);
}
.service-row__sub {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg-3);
}
.service-row__desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 12px;
  max-width: 48ch;
}
.service-row__tags {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ruzc-yellow-deep);
}
.service-row__tags span:not(:last-child)::after { content: " · "; color: var(--fg-3); margin-left: 14px; }
.service-row__arrow {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--ruzc-ink-3);
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
  align-self: center;
}

@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }
  .service-row__num { font-size: 36px; }
  .service-row__main { grid-column: 2; }
  .service-row__desc-cell { grid-column: 1 / -1; padding-left: 72px; }
  .service-row__arrow { display: none; }
}

/* ============================================================
   CASOS — large editorial blocks (no cards)
   ============================================================ */
.casos-list {
  display: flex;
  flex-direction: column;
}
.caso {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(40px, 6vw, 80px) 0;
  border-bottom: 1px solid var(--border-1);
  text-decoration: none;
  color: inherit;
}
.caso:nth-child(even) {
  grid-template-columns: 1.2fr 1fr;
}
.caso:nth-child(even) .caso__media { order: 2; }
.caso__media {
  aspect-ratio: 4/3;
  background: var(--ruzc-bone-2);
  position: relative;
  overflow: hidden;
}
.caso__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.caso:hover .caso__media img { transform: scale(1.04); }
.caso__media-tag {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--ruzc-yellow);
  color: var(--ruzc-navy);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.caso__cat {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ruzc-yellow-deep);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.caso__cat span:not(:last-child)::after { content: "·"; margin-left: 8px; color: var(--fg-3); }
.caso__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ruzc-navy);
  margin: 0 0 16px;
  text-wrap: balance;
}
.caso__sub {
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0 0 24px;
  max-width: 50ch;
}
.caso__metrics {
  display: flex; gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-1);
}
.caso-metric__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--ruzc-navy);
  line-height: 1;
}
.caso-metric__num small { font-size: .55em; color: var(--ruzc-yellow-deep); margin-left: 2px; }
.caso-metric__label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 6px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .caso, .caso:nth-child(even) { grid-template-columns: 1fr; }
  .caso:nth-child(even) .caso__media { order: 0; }
  .caso__metrics { gap: 20px; flex-wrap: wrap; }
}

/* ============================================================
   STATS BLOCK (full-bleed navy)
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat {
  border-left: 4px solid var(--ruzc-yellow);
  padding: 0 0 0 20px;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 5.6vw, 88px);
  line-height: .9;
  letter-spacing: -0.04em;
  color: var(--ruzc-yellow);
  margin-bottom: 12px;
}
.stat__num small { font-size: .4em; color: rgba(255,255,255,.7); margin-left: 2px; vertical-align: top; }
.stat__label {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,.8);
  font-weight: 500;
  max-width: 24ch;
}

@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 540px) {
  .stats { grid-template-columns: 1fr; }
}

/* ============================================================
   CLIENTS / RESPALDO LIST (institutional)
   ============================================================ */
.respaldo-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-bottom: 64px;
  align-items: end;
}
.respaldo-list {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.5;
  color: var(--ruzc-navy);
  letter-spacing: -0.01em;
}
.respaldo-list span {
  color: var(--ruzc-yellow-deep);
  margin: 0 6px;
  font-weight: 700;
}
.respaldo-list--on-navy {
  color: var(--ruzc-bone);
}
.respaldo-list--on-navy span {
  color: var(--ruzc-yellow);
}

@media (max-width: 768px) {
  .respaldo-intro { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   FOUNDER / SOBRE
   ============================================================ */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.founder__portrait {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--ruzc-navy);
  overflow: hidden;
}
.founder__portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
}
.founder__portrait-tag {
  position: absolute; bottom: 0; left: 0;
  background: var(--ruzc-yellow);
  color: var(--ruzc-navy);
  padding: 16px 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
}
.founder__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ruzc-navy);
  margin: 0 0 6px;
}
.founder__role {
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ruzc-yellow-deep);
  font-weight: 600;
  margin-bottom: 32px;
}
.founder__bio {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0 0 32px;
  max-width: 56ch;
}
.founder__bio strong { color: var(--ruzc-navy); font-weight: 600; }

.founder__timeline {
  list-style: none;
  padding: 0; margin: 32px 0 0;
  border-top: 2px solid var(--ruzc-ink);
}
.founder__timeline li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-1);
}
.founder__timeline-year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--ruzc-yellow-deep);
  padding-top: 2px;
}
.founder__timeline-event {
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-1);
}
.founder__timeline-event b { font-weight: 600; }

@media (max-width: 900px) {
  .founder-grid { grid-template-columns: 1fr; }
  .founder__portrait { max-width: 360px; }
}

/* ============================================================
   CTA / CONTACTO BLOCK
   ============================================================ */
.cta-block {
  position: relative;
  padding: clamp(64px, 9vw, 128px) 0;
}
.cta-block__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: .98;
  letter-spacing: -0.035em;
  color: var(--ruzc-bone);
  margin: 0 0 40px;
  max-width: 16ch;
  text-wrap: balance;
}
.cta-block__title .script { font-size: 1.05em; }
.cta-block__contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.18);
  margin-bottom: 32px;
}
.cta-contact__label {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  font-weight: 600;
  margin-bottom: 8px;
}
.cta-contact__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ruzc-bone);
  margin-bottom: 2px;
}
.cta-contact__link {
  display: block;
  color: var(--ruzc-yellow);
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
  margin-top: 4px;
  transition: color var(--dur-base) var(--ease-out);
}
.cta-contact__link:hover { color: var(--ruzc-bone); text-decoration: underline; text-decoration-color: var(--ruzc-yellow); text-underline-offset: 4px; }

@media (max-width: 768px) {
  .cta-block__contact-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   FORMS (Contacto)
   ============================================================ */
.form {
  display: flex; flex-direction: column; gap: 20px;
  max-width: 560px;
}
.form--on-navy {}
.form-field { display: flex; flex-direction: column; gap: 8px; position: relative; }
.form-field label {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg-3);
}
.form--on-navy .form-field label { color: rgba(255,255,255,.6); }
.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-1);
  border-radius: 0;
  color: var(--fg-1);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.form--on-navy .form-field input,
.form--on-navy .form-field textarea {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.2);
  color: var(--ruzc-bone);
}
.form--on-navy .form-field input::placeholder,
.form--on-navy .form-field textarea::placeholder {
  color: rgba(255,255,255,.4);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ruzc-yellow);
  box-shadow: 0 0 0 2px rgba(249,178,51,.2);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field.is-error input,
.form-field.is-error textarea {
  border-color: var(--ruzc-coral);
}
.form-field__error {
  font-size: 12px;
  color: var(--ruzc-coral);
  letter-spacing: .04em;
  display: none;
}
.form-field.is-error .form-field__error { display: block; }
.form__submit {
  align-self: flex-start;
  margin-top: 8px;
}
.form__success {
  display: none;
  background: var(--ruzc-yellow);
  color: var(--ruzc-navy);
  padding: 16px 20px;
  border: 1px solid var(--ruzc-yellow-deep);
  font-weight: 500;
}
.form.is-submitted .form__success { display: block; }
.form.is-submitted .form-field,
.form.is-submitted .form__submit { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ruzc-navy-deep);
  color: rgba(255,255,255,.78);
  padding: clamp(56px, 8vw, 96px) 0 32px;
  position: relative;
  overflow: hidden;
}
.footer__top {
  height: 4px;
  background: var(--ruzc-yellow);
}
.footer__main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ruzc-bone);
  margin-top: 16px;
}
.footer__brand-tag {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,.65);
  margin-top: 8px;
  max-width: 32ch;
}
.footer__col h5 {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ruzc-yellow);
  margin: 0 0 16px;
  font-weight: 600;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 14px;
  position: relative;
  transition: color var(--dur-base) var(--ease-out);
}
.footer__col a:hover { color: var(--ruzc-yellow); }
.footer__col li.is-contact { font-family: var(--font-mono); font-size: 13px; color: rgba(255,255,255,.6); }
.footer__col li.is-contact a { font-family: var(--font-mono); }

.footer__base {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
}
.footer__base a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer__base a:hover { color: var(--ruzc-yellow); }
.footer__legal { display: flex; gap: 18px; }

@media (max-width: 900px) {
  .footer__main { grid-template-columns: 1fr 1fr; }
  .footer__base { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .footer__main { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.page-header {
  padding: clamp(48px, 6vw, 96px) 0 clamp(40px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}
.page-header__crumbs {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 32px;
}
.page-header__crumbs a { color: var(--fg-3); text-decoration: none; }
.page-header__crumbs a:hover { color: var(--ruzc-yellow-deep); }
.page-header__crumbs .sep { color: var(--ruzc-line); }

.page-header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--ruzc-ink);
}
.page-header__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(80px, 14vw, 200px);
  line-height: .8;
  letter-spacing: -0.05em;
  color: var(--ruzc-yellow);
}
.page-header__heading h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 88px);
  line-height: .98;
  letter-spacing: -0.035em;
  color: var(--ruzc-navy);
  margin: 0;
}
.page-header__cat {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg-3);
  margin-bottom: 16px;
}
.page-header__lead {
  margin-top: 32px;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 60ch;
}

@media (max-width: 768px) {
  .page-header__inner { grid-template-columns: 1fr; align-items: start; }
  .page-header__num { font-size: 96px; }
}

/* ============================================================
   SERVICIO DETAIL (Servicios page)
   ============================================================ */
.service-detail {
  padding: clamp(48px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--border-1);
}
.service-detail:nth-child(even) {
  background: var(--ruzc-bone-2);
}
.service-detail__grid {
  display: grid;
  grid-template-columns: auto 1.2fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.service-detail__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(80px, 12vw, 160px);
  line-height: .8;
  letter-spacing: -0.05em;
  color: var(--ruzc-yellow);
}
.service-detail__main {}
.service-detail__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ruzc-navy);
  margin: 0 0 16px;
}
.service-detail__sub {
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ruzc-yellow-deep);
  margin-bottom: 24px;
}
.service-detail__body {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-2);
  max-width: 56ch;
}
.service-detail__list {
  list-style: none;
  margin: 0; padding: 0;
}
.service-detail__list h4 {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ruzc-navy);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-1);
}
.service-detail__list li {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg-1);
}
.service-detail__list li::before {
  content: "→";
  color: var(--ruzc-yellow-deep);
  font-weight: 700;
}

@media (max-width: 900px) {
  .service-detail__grid { grid-template-columns: 1fr; }
  .service-detail__num { font-size: 80px; }
}

/* ============================================================
   PROCESO TIMELINE (Servicios)
   ============================================================ */
.proceso {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.proceso-step {
  border-top: 4px solid var(--ruzc-yellow);
  padding-top: 24px;
}
.proceso-step__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  font-weight: 600;
  color: var(--ruzc-yellow-deep);
  margin-bottom: 12px;
}
.proceso-step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ruzc-navy);
}
.proceso-step__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}

@media (max-width: 900px) {
  .proceso { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .proceso { grid-template-columns: 1fr; }
}

/* ============================================================
   FILTER BAR (Casos)
   ============================================================ */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--border-1);
  margin-bottom: 32px;
}
.filter {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--border-1);
  background: transparent;
  color: var(--fg-2);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}
.filter:hover { border-color: var(--ruzc-ink); color: var(--ruzc-ink); }
.filter.is-active {
  background: var(--ruzc-navy);
  color: var(--ruzc-bone);
  border-color: var(--ruzc-navy);
}

/* ============================================================
   MOBILE NAV (drawer)
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--ruzc-navy-deep);
  color: var(--ruzc-bone);
  z-index: 100;
  padding: 24px var(--page-pad-x);
  transform: translateY(-100%);
  transition: transform var(--dur-base) var(--ease-out);
  display: flex; flex-direction: column;
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav__top {
  display: flex; justify-content: space-between; align-items: center;
  height: var(--header-h);
  margin-bottom: 32px;
}
.mobile-nav__top img { height: 32px; }
.mobile-nav__close {
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  color: var(--ruzc-bone);
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
}
.mobile-nav__list { list-style: none; padding: 0; margin: 0; flex: 1; }
.mobile-nav__list li {
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.mobile-nav__list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--ruzc-bone);
  text-decoration: none;
}
.mobile-nav__list a::after {
  content: "→";
  color: var(--ruzc-yellow);
  font-size: 24px;
}
.mobile-nav__contact {
  padding: 24px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,.6);
}
.mobile-nav__contact a { display: block; color: var(--ruzc-yellow); margin-top: 4px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__cta { display: none; }
  .header__menu-btn { display: inline-flex; }
}

@media (max-width: 540px) {
  .masthead__right .masthead__phone { display: none; }
}
