/* ========================================
   TRAZO 3 — Arquitectura + Construcción
   Sistema de diseño editorial-arquitectónico
   ======================================== */

:root {
  /* Paleta de marca — extraída del logotipo oficial */
  --navy:        #002856;
  --navy-2:      #001c3d;
  --navy-soft:   #1a3a6b;
  --yellow:      #ffb600;
  --yellow-2:    #ffc733;
  --yellow-dark: #d99a00;

  --bg:          #f5f2ec;
  --bg-2:        #ece7dc;
  --paper:       #ffffff;

  --ink:         #002856;
  --ink-soft:    #1a3a6b;
  --ink-mute:    #6b7785;
  --line:        rgba(0,40,86,0.14);
  --line-soft:   rgba(0,40,86,0.08);

  --ff-display:  "Fraunces", "Tiempos Headline", Georgia, serif;
  --ff-body:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ff-mono:     "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --ease-out:    cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);

  --nav-h:       72px;
  --maxw:        1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--navy); }

/* === Tipografía === */
.serif { font-family: var(--ff-display); font-style: italic; font-weight: 400; }
.mono  { font-family: var(--ff-mono); }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--yellow);
  margin-right: 0.6em;
  vertical-align: middle;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 7.2vw, 6.4rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4.6vw, 4.2rem); font-weight: 400; }
h3 { font-size: clamp(1.4rem, 2.2vw, 2.1rem); }
h4 { font-size: clamp(1.05rem, 1.4vw, 1.25rem); }

h1 em, h2 em, h3 em { font-style: italic; color: var(--ink); font-weight: 400; }
.accent { color: var(--yellow-dark); }

p { max-width: 62ch; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-soft); line-height: 1.55; }

/* === Layout === */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 3.5rem); }
section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section-divider { border-top: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  align-items: end;
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1.4fr; gap: 4rem; }
}
.section-num {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--yellow-dark);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.section-num::before {
  content: ""; width: 28px; height: 1px; background: var(--yellow);
}

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(245, 242, 236, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(245, 242, 236, 0.92); }
.nav-inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 3.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--ff-display); font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 1.2rem;
}
.nav-brand img { height: 38px; width: auto; }
.nav-brand b { font-weight: 500; color: var(--navy); }
.nav-brand small { font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); display: block; margin-top: 2px; }
.nav-brand .brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-links { display: none; gap: 2.2rem; align-items: center; }
@media (min-width: 880px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 0.92rem; font-weight: 500;
  color: var(--ink-soft);
  position: relative; padding: 6px 0;
  transition: color .25s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--yellow); transition: width .35s var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--navy); color: var(--bg);
  padding: 0.7rem 1.3rem; border-radius: 0;
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.02em;
  transition: background .25s var(--ease-out), transform .25s var(--ease-out);
}
.nav-cta:hover { background: var(--yellow); color: var(--navy); }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  padding: 8px; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--navy); transition: transform .3s var(--ease-out); }
@media (min-width: 880px) { .nav-toggle { display: none; } }

.nav-mobile {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 55;
  background: var(--bg);
  padding: 2rem clamp(1.2rem, 4vw, 3.5rem);
  display: flex; flex-direction: column; gap: 0.4rem;
  transform: translateY(-100%); opacity: 0;
  transition: transform .4s var(--ease-out), opacity .3s var(--ease-out);
  pointer-events: none;
}
.nav-mobile.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nav-mobile a {
  font-family: var(--ff-display); font-size: 2.2rem; font-weight: 400;
  padding: 0.6rem 0; border-bottom: 1px solid var(--line-soft);
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 1rem 1.8rem;
  font-size: 0.92rem; font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 0;
  transition: transform .3s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
  cursor: pointer; will-change: transform;
}
.btn-primary { background: var(--navy); color: var(--bg); }
.btn-primary:hover { background: var(--yellow); color: var(--navy); }
.btn-yellow  { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--navy); color: var(--yellow); }
.btn-ghost   { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--bg); }
.btn-arrow { transition: transform .35s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 0;
  overflow: hidden;
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: 0.7;
}
.hero-yellow-block {
  position: absolute; top: var(--nav-h); right: 0;
  width: clamp(80px, 14vw, 220px); height: clamp(80px, 14vw, 220px);
  background: var(--yellow);
  z-index: 1;
  transform-origin: top right;
  animation: heroBlockIn 1s var(--ease-out) .2s both;
}
@keyframes heroBlockIn { from { transform: scale(0,1); } to { transform: scale(1,1); } }

.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-content: center;
  padding-block: clamp(2rem, 6vw, 5rem);
}
@media (min-width: 980px) {
  .hero-inner { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 4rem; }
}

.hero-eyebrow {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.hero-eyebrow .line { flex: 0 0 60px; height: 1px; background: var(--navy); }

.hero-title {
  font-size: clamp(2.6rem, 8vw, 7.2rem);
  font-family: var(--ff-display);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin-bottom: 1.8rem;
  text-wrap: balance;
}
.hero-title em { font-style: italic; color: var(--navy); position: relative; }
.hero-title em::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 6%; height: 22%;
  background: var(--yellow); z-index: -1; opacity: 0.85;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  color: var(--ink-soft); line-height: 1.55;
  max-width: 52ch; margin-bottom: 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
}
.hero-stats::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 28px; height: 28px;
  border-top: 2px solid var(--yellow); border-left: 2px solid var(--yellow);
}
.hero-stats::after {
  content: ""; position: absolute; bottom: -1px; right: -1px;
  width: 28px; height: 28px;
  border-bottom: 2px solid var(--yellow); border-right: 2px solid var(--yellow);
}
.stat-num { font-family: var(--ff-display); font-size: 2.6rem; font-weight: 400; color: var(--navy); line-height: 1; }
.stat-num small { font-family: var(--ff-mono); font-size: 1rem; color: var(--yellow-dark); margin-left: 4px; }
.stat-label { font-family: var(--ff-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-top: 0.4rem; }

.hero-foot {
  display: flex; justify-content: space-between; align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem; padding-bottom: 1.4rem;
  font-family: var(--ff-mono); font-size: 0.74rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute); position: relative; z-index: 2;
  flex-wrap: wrap; gap: 1rem;
}
.hero-foot .scroll-cue { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-foot .scroll-cue::after {
  content: ""; display: inline-block; width: 1px; height: 22px; background: var(--navy);
  animation: scrollCue 2s var(--ease-in-out) infinite;
  transform-origin: top center;
}
@keyframes scrollCue { 0%,100% { transform: scaleY(0.2); opacity: 0.3; } 50% { transform: scaleY(1); opacity: 1; } }

/* ============================================
   SERVICIOS (3 disciplinas)
   ============================================ */
.services {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services-grid {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  padding: clamp(2rem, 3.5vw, 3rem);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: background .4s var(--ease-out);
  display: flex; flex-direction: column; gap: 1.4rem;
  min-height: 380px;
}
@media (min-width: 900px) {
  .service-card { border-bottom: 0; border-right: 1px solid var(--line); }
  .service-card:last-child { border-right: 0; }
}
.service-card:hover { background: var(--bg); }
.service-card .service-num {
  font-family: var(--ff-mono); font-size: 0.78rem; letter-spacing: 0.16em;
  color: var(--yellow-dark);
}
.service-card h3 { font-family: var(--ff-display); font-weight: 400; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.05; }
.service-card h3 em { color: var(--ink); font-style: italic; }
.service-card p { color: var(--ink-soft); flex: 1; }
.service-card ul {
  list-style: none; padding: 0; margin-top: auto;
  display: grid; gap: 0.4rem;
  border-top: 1px solid var(--line-soft); padding-top: 1.2rem;
}
.service-card li {
  font-family: var(--ff-mono); font-size: 0.78rem;
  color: var(--ink-soft); display: flex; align-items: center; gap: 0.6rem;
}
.service-card li::before { content: "→"; color: var(--yellow-dark); font-family: var(--ff-body); }
.service-card .service-arrow {
  position: absolute; top: 1.6rem; right: 1.6rem;
  width: 40px; height: 40px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease-out), color .3s var(--ease-out), transform .35s var(--ease-out);
  font-size: 1.1rem;
}
.service-card:hover .service-arrow { background: var(--yellow); border-color: var(--yellow); transform: translate(4px, -4px); }

/* ============================================
   PORTAFOLIO (gallery grid)
   ============================================ */
.portfolio {
  background: var(--bg);
  position: relative;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(12, 1fr); gap: 1.4rem; grid-auto-flow: dense; } }

.gallery-item {
  position: relative; overflow: hidden;
  background: var(--navy);
  cursor: pointer;
  aspect-ratio: 4/5;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease-out), filter .6s var(--ease-out);
  filter: saturate(0.96) brightness(0.98);
}
.gallery-item:hover img { transform: scale(1.06); filter: saturate(1.1) brightness(1.04); }
.gallery-item .gi-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.2rem 1.4rem;
  color: var(--bg);
  background: linear-gradient(to top, rgba(0,28,61,0.92) 0%, rgba(0,28,61,0.55) 60%, transparent 100%);
  display: flex; justify-content: space-between; align-items: end; gap: 1rem;
  transform: translateY(8px); opacity: 0;
  transition: transform .4s var(--ease-out), opacity .4s var(--ease-out);
}
.gallery-item:hover .gi-meta { transform: translateY(0); opacity: 1; }
.gi-meta h4 { color: var(--bg); font-family: var(--ff-display); font-size: 1.2rem; font-weight: 400; }
.gi-meta .gi-cat { font-family: var(--ff-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); }

/* Asymmetric layout for desktop */
@media (min-width: 1100px) {
  .gallery-item { aspect-ratio: 4/5; grid-column: span 4; }
  .gallery-item.gi-wide { grid-column: span 8; aspect-ratio: 16/10; }
  .gallery-item.gi-tall { grid-column: span 4; aspect-ratio: 3/5; }
  .gallery-item.gi-square { grid-column: span 4; aspect-ratio: 1/1; }
}

/* ============================================
   PROCESO
   ============================================ */
.process { background: var(--navy); color: var(--bg); }
.process h2, .process .eyebrow, .process .section-num { color: var(--bg); }
.process h2 em { color: var(--bg); }
.process .eyebrow { color: rgba(255,255,255,0.7); }
.process .section-num { color: var(--yellow); }
.process .section-num::before { background: var(--yellow); }
.process .lede { color: rgba(255,255,255,0.78); }

.process-steps {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid rgba(255,255,255,0.16);
}
@media (min-width: 900px) { .process-steps { grid-template-columns: repeat(4, 1fr); } }

.process-step {
  padding: 2.2rem 1.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  position: relative;
  display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 900px) {
  .process-step { border-bottom: 0; border-right: 1px solid rgba(255,255,255,0.16); }
  .process-step:last-child { border-right: 0; }
}
.process-step .ps-num {
  font-family: var(--ff-mono); font-size: 0.78rem; letter-spacing: 0.14em;
  color: var(--yellow);
}
.process-step h4 { font-family: var(--ff-display); font-weight: 400; font-size: 1.5rem; color: var(--bg); line-height: 1.1; }
.process-step p { font-size: 0.92rem; color: rgba(255,255,255,0.7); line-height: 1.6; }
.process-step .ps-dot {
  position: absolute; top: 1.8rem; right: 1.6rem;
  width: 10px; height: 10px; border: 1px solid var(--yellow);
  border-radius: 50%;
}

/* ============================================
   CTA (Contacto teaser)
   ============================================ */
.cta-band {
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.cta-band-inner {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) { .cta-band-inner { grid-template-columns: 1.4fr 1fr; gap: 4rem; } }
.cta-band h2 { font-size: clamp(2rem, 4.6vw, 4rem); font-family: var(--ff-display); font-weight: 300; line-height: 1.02; text-wrap: balance; }
.cta-band h2 em { color: var(--navy); font-style: italic; }
.cta-band .actions { display: flex; flex-direction: column; gap: 1rem; }
.cta-band .actions .btn { justify-content: space-between; padding: 1.2rem 1.6rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding-block: 4rem 2rem;
}
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h5 {
  font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--yellow);
  margin-bottom: 1rem;
}
.footer a { color: rgba(255,255,255,0.78); transition: color .25s var(--ease-out); display: block; padding: 0.3rem 0; font-size: 0.94rem; }
.footer a:hover { color: var(--yellow); }
.footer .footer-brand img { height: 56px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer .footer-brand p { font-size: 0.94rem; color: rgba(255,255,255,0.7); max-width: 32ch; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.footer-social a {
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.24);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; transition: background .25s var(--ease-out), border-color .25s var(--ease-out), color .25s var(--ease-out);
}
.footer-social a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-top: 1.8rem; flex-wrap: wrap;
  font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55); text-transform: uppercase;
}

/* ============================================
   WhatsApp FAB
   ============================================ */
.wa-fab {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 70;
  width: 60px; height: 60px;
  background: #25D366; color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37,211,102,0.45);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
  animation: waPulse 2.4s var(--ease-in-out) infinite;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 30px; height: 30px; }
@keyframes waPulse {
  0%   { box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37,211,102,0.45); }
  60%  { box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35), 0 0 0 22px rgba(37,211,102,0); }
  100% { box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37,211,102,0); }
}
.wa-fab .wa-tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  background: var(--navy); color: var(--bg);
  font-family: var(--ff-mono); font-size: 0.74rem; letter-spacing: 0.08em;
  padding: 0.55rem 0.9rem; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease-out);
}
.wa-fab:hover .wa-tip { opacity: 1; }

/* ============================================
   INNER PAGES — page-hero (shorter)
   ============================================ */
.page-hero {
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero .breadcrumb {
  display: flex; gap: 0.5rem; align-items: center;
  font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 2rem;
}
.page-hero .breadcrumb a:hover { color: var(--navy); }
.page-hero .breadcrumb span.sep { color: var(--yellow-dark); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 5.4rem); font-weight: 300; line-height: 1; max-width: 18ch; text-wrap: balance; }
.page-hero h1 em { color: var(--navy); font-style: italic; }
.page-hero .lede { margin-top: 1.6rem; max-width: 60ch; }

/* ============================================
   SERVICIOS PAGE — detailed
   ============================================ */
.svc-detail {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 6rem);
}
.svc-detail .svc-row {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  align-items: start;
}
@media (min-width: 900px) {
  .svc-detail .svc-row { grid-template-columns: 1fr 1.2fr; gap: 5rem; }
  .svc-detail:nth-child(even) .svc-row > :first-child { order: 2; }
}
.svc-detail h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 400; line-height: 1.02; }
.svc-detail h2 em { color: var(--navy); }
.svc-detail .svc-text p { margin-bottom: 1rem; color: var(--ink-soft); }
.svc-detail .svc-num { font-family: var(--ff-mono); color: var(--yellow-dark); font-size: 0.78rem; letter-spacing: 0.16em; margin-bottom: 1rem; }
.svc-detail .svc-list { list-style: none; padding: 0; display: grid; gap: 0.8rem; margin-top: 1.8rem; }
.svc-detail .svc-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1rem 0; border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
}
.svc-detail .svc-list li::before {
  content: "+"; color: var(--yellow-dark); font-family: var(--ff-mono); font-size: 1.2rem; line-height: 1.2;
}
.svc-image {
  background: var(--navy); aspect-ratio: 4/5; overflow: hidden; position: relative;
}
.svc-image img { width: 100%; height: 100%; object-fit: cover; }
.svc-image .svc-tag {
  position: absolute; left: 0; bottom: 0;
  background: var(--yellow); color: var(--navy);
  font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 0.7rem 1rem;
}

/* ============================================
   NOSOTROS — values + team
   ============================================ */
.values {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.values-grid {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 800px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value {
  padding: 2.4rem 1.6rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.value:last-child { border-right: 0; }
.value .val-num { font-family: var(--ff-mono); color: var(--yellow-dark); font-size: 0.74rem; letter-spacing: 0.14em; margin-bottom: 1.2rem; }
.value h4 { font-family: var(--ff-display); font-weight: 400; font-size: 1.4rem; margin-bottom: 0.7rem; line-height: 1.1; }
.value p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }

/* ============================================
   CONTACTO — formulario + info
   ============================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem;
  border-top: 1px solid var(--line); padding-top: clamp(3rem, 5vw, 4rem);
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.3fr 1fr; gap: 5rem; } }

.contact-form { display: grid; gap: 1.4rem; }
.field { display: grid; gap: 0.4rem; position: relative; }
.field label {
  font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-mute);
}
.field label .req { color: var(--yellow-dark); }
.field input, .field select, .field textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.95rem 1rem;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .25s var(--ease-out), background .25s var(--ease-out);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--navy);
  background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.contact-form .btn { justify-self: start; padding: 1.1rem 2rem; }
.form-success {
  display: none; padding: 1.2rem 1.4rem;
  background: var(--yellow); color: var(--navy);
  font-family: var(--ff-mono); font-size: 0.86rem; font-weight: 500;
}
.form-success.is-shown { display: block; }
.form-success::before { content: "✓  "; font-weight: 700; }

/* Tarjetas de contacto (sin formulario) */
.contact-methods {
  display: grid; grid-template-columns: 1fr; gap: 1.2rem;
  border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 4vw, 3.5rem);
}
@media (min-width: 800px) { .contact-methods { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 2rem 1.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease-out), border-color .35s var(--ease-out), background .35s var(--ease-out);
  min-height: 200px;
}
.contact-card::before {
  content: ""; position: absolute; top: -1px; left: -1px;
  width: 26px; height: 26px;
  border-top: 2px solid var(--yellow); border-left: 2px solid var(--yellow);
  transition: width .35s var(--ease-out), height .35s var(--ease-out);
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--navy); }
.contact-card:hover::before { width: 40px; height: 40px; }
.contact-card .cc-tag {
  font-family: var(--ff-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--yellow-dark);
}
.contact-card .cc-label {
  font-family: var(--ff-display); font-size: 1.6rem; font-weight: 400; color: var(--navy); line-height: 1;
  margin-top: 0.2rem;
}
.contact-card .cc-value {
  font-size: 1rem; color: var(--ink-soft); word-break: break-word; margin-top: 0.2rem;
}
.contact-card .cc-arrow {
  margin-top: auto; font-family: var(--ff-mono); font-size: 0.78rem; letter-spacing: 0.06em;
  color: var(--navy); transition: transform .35s var(--ease-out);
}
.contact-card:hover .cc-arrow { transform: translateX(4px); }

.contact-extra {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  margin-top: 2.5rem; padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 800px) { .contact-extra { grid-template-columns: repeat(2, 1fr); } }
.contact-extra .ci-block { border-top: 0; padding-top: 0; }

.contact-info { display: grid; gap: 2rem; align-content: start; }
.ci-block { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.ci-block:first-child { border-top: 0; padding-top: 0; }
.ci-block h5 { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--yellow-dark); margin-bottom: 0.8rem; }
.ci-block p, .ci-block a { font-family: var(--ff-display); font-size: 1.3rem; font-weight: 400; color: var(--ink); line-height: 1.2; }
.ci-block a { transition: color .25s var(--ease-out); }
.ci-block a:hover { color: var(--yellow-dark); }
.ci-block .small { font-family: var(--ff-body); font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.4rem; }

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* Defensive: never hide split-text combos */
.reveal[data-split] { opacity: 1; transform: none; }

/* ============================================
   UTILS / RESPONSIVE
   ============================================ */
@media (max-width: 879px) {
  .hero-inner { gap: 3rem; }
  .nav-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab { animation: none; }
  .hero-yellow-block { animation: none; }
}
