/* =========================================================
   COIPA — Design System
   Concepto: "Plano de obra" — identidad basada en la lógica
   de un plano arquitectónico: rejilla de trazo, marcas de
   registro (escuadras de esquina), etiquetas tipo ficha
   técnica, sobre una paleta costera (Deep Sea, Sea Salt,
   Coastal Mist, Driftwood, Wet Stone).
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Poppins:wght@300;400;500;600;700&family=Oswald:wght@400;500;600&display=swap');

:root {
  /* Paleta — Deep Sea / Sea Salt / Coastal Mist / Driftwood / Wet Stone */
  --ink: #172D3F;
  /* Deep Sea */
  --ink-2: #1F3C50;
  --paper: #FAF9F6;
  --concrete: #DCD5CC;
  /* Sea Salt */
  --concrete-2: #D0C7BB;
  --steel: #5C6465;
  /* Coastal Mist, oscurecido para texto legible */
  --steel-dark: #3D3B37;
  /* Wet Stone */
  --signal: #A6825A;
  /* Driftwood, profundizado para uso de acento/CTA */
  --signal-dark: #8C6C48;
  --blueprint: #3D3B37;
  /* Wet Stone — acento secundario / técnico */
  --mist: #9FA8A9;
  /* Coastal Mist puro — uso decorativo */
  --sand: #B3A18F;
  /* Driftwood puro — uso decorativo */
  --line: rgba(61, 59, 55, .16);
  --line-soft: rgba(61, 59, 55, .08);
  --white: #ffffff;

  /* Tipografía */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Poppins', system-ui, sans-serif;
  --font-mono: 'Oswald', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --ease: cubic-bezier(.19, 1, .22, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.mono {
  font-family: var(--font-mono);
}

::selection {
  background: var(--signal);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ LAYOUT ============ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.section-tight {
  padding: 80px 0;
}

@media (max-width:768px) {
  .section {
    padding: 80px 0;
  }

  .section-tight {
    padding: 56px 0;
  }
}

.bg-paper {
  background: var(--paper);
}

.bg-concrete {
  background: var(--concrete);
}

.bg-ink {
  background: var(--ink);
  color: var(--white);
}

.bg-ink h2,
.bg-ink h3,
.bg-ink h4 {
  color: var(--white);
}

/* Etiqueta / eyebrow tipo ficha técnica */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 500;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--signal);
  display: inline-block;
}

.bg-ink .eyebrow {
  color: var(--signal);
}

.section-head {
  max-width: 680px;
  margin-bottom: 64px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-bottom: 18px;
}

.section-head p {
  color: var(--steel);
  font-size: 1.08rem;
}

.bg-ink .section-head p {
  color: #B9C2D6;
}

/* Numeración tipo plano: 01 / 02 */
.spec-index {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--steel);
  letter-spacing: .08em;
}

/* ============ FONDO DECORATIVO — manchas de profundidad con parallax ============ */
.blueprint-grid {
  position: absolute;
  left: 0;
  right: 0;
  top: -25%;
  height: 150%;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(560px circle at 12% 22%, rgba(255, 106, 19, .14), transparent 62%),
    radial-gradient(620px circle at 88% 78%, rgba(43, 76, 126, .16), transparent 60%);
  will-change: transform;
}

.bg-ink .blueprint-grid {
  background-image:
    radial-gradient(560px circle at 15% 18%, rgba(255, 106, 19, .18), transparent 60%),
    radial-gradient(680px circle at 85% 82%, rgba(90, 130, 200, .16), transparent 60%);
}

.bg-concrete .blueprint-grid {
  background-image:
    radial-gradient(520px circle at 85% 15%, rgba(255, 106, 19, .10), transparent 60%),
    radial-gradient(600px circle at 10% 85%, rgba(43, 76, 126, .12), transparent 60%);
}

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

/* Marca de registro / escuadras (signature element) */
.frame {
  position: relative;
}

.frame::before,
.frame::after,
.frame .corner-tl,
.frame .corner-br {
  content: '';
}

.frame::before,
.frame::after {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  border-color: var(--signal);
  z-index: 2;
}

.frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.frame::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

/* ============ HEADER / NAV ============ */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250, 250, 248, .85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: 1240px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--ink);
}

.logo-word {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -.01em;
}

.logo-mark {
  width: 20px;
  height: 18px;
  margin: 0 1px;
  color: var(--signal);
}

.logo-mark path {
  fill: currentColor;
}

.logo small {
  font-family: var(--font-mono);
  font-size: .62rem;
  color: var(--steel);
  letter-spacing: .14em;
  margin-left: 9px;
  font-weight: 400;
  text-transform: uppercase;
  align-self: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-logo .logo-mark {
  width: 24px;
  height: 21px;
  color: var(--signal);
}

nav.main-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

nav.main-nav a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  transition: background .25s, color .25s;
  position: relative;
}

nav.main-nav a:hover {
  background: var(--line-soft);
}

nav.main-nav a.active {
  color: var(--signal);
}

nav.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--signal);
}

.nav-cta {
  background: var(--ink) !important;
  color: var(--white) !important;
  padding: 11px 22px !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--signal) !important;
}

.hamburger {
  display: none;
  font-size: 1.6rem;
  color: var(--ink);
}

@media (max-width:960px) {
  nav.main-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 100px 32px 40px;
  animation: fadeIn .35s var(--ease);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu a {
  color: var(--white);
  font-size: 1.6rem;
  font-family: var(--font-display);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.mobile-menu .close-btn {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 2rem;
  color: var(--white);
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: .95rem;
  padding: 16px 32px;
  border-radius: 100px;
  transition: all .35s var(--ease);
  white-space: nowrap;
}

.btn-signal {
  background: var(--signal);
  color: var(--white);
}

.btn-signal:hover {
  background: var(--signal-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -10px rgba(255, 106, 19, .5);
}

.btn-ink {
  background: var(--ink);
  color: var(--white);
}

.btn-ink:hover {
  background: var(--ink-2);
  transform: translateY(-3px);
}

.btn-outline {
  border: 1.5px solid var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
  background: var(--line-soft);
}

.btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, .4);
  color: var(--white);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
}

.btn-sm {
  padding: 11px 22px;
  font-size: .85rem;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero .blueprint-grid {
  opacity: .9;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}

@media (max-width:960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  margin-bottom: 22px;
}

.hero .slogan {
  font-family: var(--font-mono);
  color: var(--signal);
  font-size: .95rem;
  letter-spacing: .06em;
  margin-bottom: 14px;
}

.hero .lead {
  font-size: 1.15rem;
  color: #B9C2D6;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-proof .avatars {
  display: flex;
}

.hero-proof .avatars span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  margin-left: -10px;
  background: var(--blueprint);
  color: #fff;
  font-size: .7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

.hero-proof .avatars span:first-child {
  margin-left: 0;
}

.hero-proof p {
  font-size: .85rem;
  color: #B9C2D6;
}

.hero-proof strong {
  color: var(--white);
}

/* Widget lateral tipo "consola de obra" */
.site-console {
  background: linear-gradient(160deg, #1A2A4A, #0F1A30);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}

.console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: #8CA0C6;
  letter-spacing: .08em;
}

.console-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 0 4px rgba(255, 106, 19, .18);
}

.console-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.console-row:last-child {
  border-bottom: none;
}

.console-row .label {
  font-size: .85rem;
  color: #B9C2D6;
}

.console-row .value {
  font-family: var(--font-mono);
  font-size: .95rem;
  color: var(--white);
  font-weight: 500;
}

.console-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, .08);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.console-bar span {
  display: block;
  height: 100%;
  background: var(--signal);
  border-radius: 4px;
}

/* ============ STATS STRIP ============ */
.stats-strip {
  background: var(--concrete);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 44px 24px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item i {
  color: var(--signal);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ink);
  display: block;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--steel);
  text-transform: uppercase;
}

@media (max-width:768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-bottom: 1px solid var(--line);
  }
}

/* ============ MARQUEE ============ */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  background: var(--paper);
}

.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-size: .95rem;
  color: var(--steel);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}

.marquee-track span::before {
  content: '◆';
  color: var(--signal);
  font-size: .6rem;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ============ SERVICIOS — vista previa (home) ============ */
.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

@media (max-width:900px) {
  .services-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:560px) {
  .services-preview-grid {
    grid-template-columns: 1fr;
  }
}

.service-preview-card {
  background: var(--paper);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background .3s, transform .3s var(--ease), box-shadow .3s var(--ease);
}

.service-preview-card:hover {
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(23, 45, 63, .22);
  z-index: 2;
  position: relative;
}

.service-preview-card .spec-index {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--signal);
}

.service-preview-card h4 {
  font-size: 1.1rem;
  margin: 2px 0 2px;
}

.service-preview-card p {
  font-size: .87rem;
  color: var(--steel);
  flex: 1;
}

.service-preview-card .service-link {
  margin-top: 6px;
}

/* ============ CARDS: grid con modal (herramientas / normativas) ============ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (max-width:960px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:560px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

.tool-card {
  background: var(--paper);
  padding: 34px 26px;
  cursor: pointer;
  transition: background .3s, transform .3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.tool-card:hover {
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(20, 33, 61, .25);
  z-index: 2;
  position: relative;
}

.tool-card i {
  font-size: 1.6rem;
  color: var(--signal);
}

.tool-card h4 {
  font-size: 1.05rem;
}

.tool-card p {
  font-size: .85rem;
  color: var(--steel);
}

.tool-card .tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--blueprint);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 32, .7);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn .25s ease;
}

.modal-box {
  background: var(--paper);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  padding: 40px;
  position: relative;
  max-height: 86vh;
  overflow: auto;
  box-shadow: 0 60px 100px -30px rgba(0, 0, 0, .5);
  animation: modalPop .35s var(--ease);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.4rem;
  color: var(--steel);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .2s;
}

.modal-close:hover {
  background: var(--line-soft);
}

.modal-box .tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.modal-box h3 {
  font-size: 1.7rem;
  margin: 12px 0 16px;
}

.modal-box p {
  color: var(--steel);
  margin-bottom: 10px;
}

.modal-box ul {
  margin-top: 14px;
}

.modal-box ul li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  display: flex;
  gap: 10px;
}

.modal-box ul li::before {
  content: '—';
  color: var(--signal);
}

/* ============ SERVICIOS ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width:768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  cursor: pointer;
  padding: 40px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.featured-service {
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -25px rgba(20, 33, 61, .25);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--concrete);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--signal);
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--steel);
  margin-bottom: 20px;
}

.service-includes {
  margin-bottom: 24px;
}

.service-includes li {
  font-size: .88rem;
  color: var(--ink);
  padding: 7px 0;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
}

.service-includes li::before {
  content: '✓';
  color: var(--signal);
  font-weight: 700;
}

.service-link {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--blueprint);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

/* ============ PROCESO — timeline horizontal ============ */
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  z-index: 0;
}

@media (max-width:960px) {
  .timeline {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .timeline::before {
    top: 0;
    bottom: 0;
    left: 27px;
    width: 1px;
    height: auto;
    right: auto;
  }
}

.timeline-step {
  position: relative;
  padding-right: 20px;
  z-index: 1;
}

@media (max-width:960px) {
  .timeline-step {
    padding-left: 64px;
    padding-right: 0;
  }
}

.step-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
}

@media (max-width:960px) {
  .step-num {
    position: absolute;
    left: 0;
    top: 0;
  }
}

.timeline-step h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.timeline-step p {
  font-size: .86rem;
  color: var(--steel);
}

/* ============ POR QUÉ ELEGIRNOS ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

@media (max-width:960px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:560px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-card {
  background: var(--white);
  padding: 36px 28px;
}

.why-card i {
  font-size: 1.5rem;
  color: var(--signal);
  margin-bottom: 18px;
}

.why-card h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.why-card p {
  font-size: .88rem;
  color: var(--steel);
}

/* ============ TESTIMONIOS ============ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.testi-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.stars {
  color: var(--signal);
  font-size: .85rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testi-card p.quote {
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 22px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: .8rem;
}

.testi-author strong {
  display: block;
  font-size: .92rem;
}

.testi-author span {
  font-size: .78rem;
  color: var(--steel);
}

/* ============ CTA BANNER ============ */
.cta-banner {
  background: var(--ink);
  color: var(--white);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
}

.cta-banner p {
  color: #B9C2D6;
  max-width: 520px;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============ NOSOTROS ============ */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width:960px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.about-media img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.diff-list {
  margin-top: 28px;
}

.diff-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.diff-list li .n {
  font-family: var(--font-mono);
  color: var(--signal);
  font-size: .85rem;
  padding-top: 2px;
}

.diff-list li h5 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.diff-list li p {
  font-size: .85rem;
  color: var(--steel);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 20px;
}

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

.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 24px;
}

.value-card .ic {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.value-card h5 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.value-card p {
  font-size: .85rem;
  color: var(--steel);
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.pillar-card .ic {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.pillar-card h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.pillar-card p {
  color: var(--steel);
  font-size: .95rem;
}

.pillar-stack {
  display: grid;
  gap: 22px;
}

/* ============ GALERÍA / PROYECTOS ============ */
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  padding: 11px 20px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--steel);
  transition: all .25s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.masonry {
  column-count: 1;
  column-gap: 24px;
}

@media (min-width:768px) {
  .masonry {
    column-count: 2;
  }
}

@media (min-width:1100px) {
  .masonry {
    column-count: 3;
  }
}

.masonry .proj-card {
  display: block;
  break-inside: avoid;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.masonry .proj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -22px rgba(20, 33, 61, .25);
}

.masonry .proj-img {
  width: 100%;
  display: block;
  transition: transform .7s var(--ease);
}

.proj-card:hover .proj-img {
  transform: scale(1.06);
}

.proj-info {
  padding: 20px 22px;
}

.proj-info h4 {
  font-size: 1.05rem;
}

.proj-info span {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--signal);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width:960px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -25px rgba(20, 33, 61, .28);
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.project-card:hover img {
  transform: scale(1.07);
}

/* ============ CONTACTO ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 60px;
  align-items: start;
}

@media (max-width:960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  width: 100%;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: border-color .25s;
}

.bg-paper .field,
.bg-concrete .field {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.field:focus {
  outline: none;
  border-color: var(--signal);
}

.field::placeholder {
  color: #8892A6;
}

.bg-paper .field::placeholder,
.bg-concrete .field::placeholder {
  color: var(--steel);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width:560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-stack {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-info-card {
  border-radius: var(--radius-lg);
  padding: 36px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
}

.bg-paper .contact-info-card,
.bg-concrete .contact-info-card {
  background: var(--white);
  border: 1px solid var(--line);
}

.contact-row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  align-items: flex-start;
}

.bg-paper .contact-row,
.bg-concrete .contact-row {
  border-top: 1px solid var(--line);
}

.contact-row:first-child {
  border-top: none;
  padding-top: 0;
}

.contact-row i {
  color: var(--signal);
  margin-top: 3px;
}

.contact-row strong {
  display: block;
  font-size: .92rem;
}

.contact-row span,
.contact-row a {
  font-size: .86rem;
  color: #B9C2D6;
}

.bg-paper .contact-row span,
.bg-concrete .contact-row span,
.bg-paper .contact-row a,
.bg-concrete .contact-row a {
  color: var(--steel);
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
}

.bg-paper .social-row a,
.bg-concrete .social-row a {
  border-color: var(--line);
}

.social-row a:hover {
  background: var(--signal);
  border-color: var(--signal);
  color: #fff;
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

/* ============ FOOTER ============ */
footer.site-footer {
  background: var(--ink);
  color: #B9C2D6;
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (max-width:768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-grid h5 {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-grid ul li {
  padding: 7px 0;
}

.footer-grid ul li a {
  font-size: .9rem;
  transition: color .2s;
}

.footer-grid ul li a:hover {
  color: var(--signal);
}

.footer-brand p {
  font-size: .88rem;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
  color: #7C89A6;
}

/* ============ PÁGINA DE PROYECTO INDIVIDUAL ============ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: #8CA0C6;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: #8CA0C6;
  transition: color .2s;
}

.breadcrumb a:hover {
  color: var(--signal);
}

.breadcrumb .sep {
  opacity: .5;
}

.breadcrumb .current {
  color: var(--signal);
}

.project-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 26px;
}

.project-meta-row .meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-meta-row i {
  color: var(--signal);
}

.project-meta-row .meta-item div span {
  display: block;
}

.project-meta-row .meta-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8CA0C6;
}

.project-meta-row .meta-value {
  font-size: .95rem;
  color: var(--white);
  font-weight: 500;
}

.project-body-grid {
  display: grid;
  grid-template-columns: 1fr .62fr;
  gap: 56px;
  align-items: start;
}

@media (max-width:960px) {
  .project-body-grid {
    grid-template-columns: 1fr;
  }
}

.spec-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 120px;
}

.spec-card h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.spec-card>p {
  font-size: .85rem;
  color: var(--steel);
  margin-bottom: 20px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.spec-row:first-of-type {
  border-top: none;
}

.spec-row .label {
  font-size: .85rem;
  color: var(--steel);
}

.spec-row .value {
  font-family: var(--font-mono);
  font-size: .88rem;
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}

.spec-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 22px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.photo-item:nth-child(3n+1) {
  grid-column: span 2;
}

@media (max-width:700px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-item:nth-child(3n+1) {
    grid-column: span 1;
  }
}

.photo-item {
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
}

.photo-item .ph-img-wrap {
  overflow: hidden;
  position: relative;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: transform .6s var(--ease);
}

.photo-item:nth-child(3n+1) img {
  aspect-ratio: 16/9;
}

.photo-item:hover img {
  transform: scale(1.06);
}

.photo-item .ph-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(20, 33, 61, .55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  backdrop-filter: blur(4px);
}

.photo-caption {
  padding: 14px 18px;
  font-size: .85rem;
  color: var(--steel);
  border-top: 1px solid var(--line);
}

.photo-caption:empty {
  display: none;
}

.photo-item:has(.photo-caption:empty) .photo-caption {
  display: none;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 24, .92);
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.lightbox-overlay.active {
  display: flex;
  animation: fadeIn .25s ease;
}

.lightbox-inner {
  max-width: 1000px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-inner img {
  max-height: 72vh;
  width: auto;
  margin: 0 auto;
  border-radius: 12px;
  object-fit: contain;
}

.lightbox-caption {
  color: #B9C2D6;
  font-size: .9rem;
  margin-top: 18px;
  text-align: center;
  max-width: 640px;
  font-family: var(--font-mono);
}

.lightbox-caption:empty {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  color: #fff;
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, .12);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 1.6rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .08);
  transition: background .2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, .2);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  top: 28px;
  left: 32px;
  color: #8CA0C6;
  font-family: var(--font-mono);
  font-size: .78rem;
}

@media (max-width:640px) {
  .lightbox-nav {
    display: none;
  }
}

/* ============ HERO — galería de fondo ============ */
.hero-bg-gallery {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
  transform: scale(1.06);
}

.hero-bg-slide.active {
  opacity: 1;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(165deg, rgba(20, 33, 61, .93), rgba(20, 33, 61, .88) 55%, rgba(15, 24, 42, .95));
}

.hero .blueprint-grid {
  z-index: 2;
  opacity: .55;
}

.hero>.container {
  position: relative;
  z-index: 3;
}

/* ============ ANIMACIÓN DE CONSTRUCCIÓN ============ */
.building-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.building-svg {
  width: 100%;
  max-width: 520px;
  height: auto;
}

.building-svg .floor {
  transform-box: fill-box;
  transform-origin: center bottom;
  opacity: 0;
  transform: scaleY(.05) translateY(6px);
}

.reveal.visible .building-svg .floor {
  animation: riseFloor .65s var(--ease) forwards;
}

.reveal.visible .building-svg .floor-1 {
  animation-delay: .05s;
}

.reveal.visible .building-svg .floor-2 {
  animation-delay: .4s;
}

.reveal.visible .building-svg .floor-3 {
  animation-delay: .75s;
}

.reveal.visible .building-svg .floor-4 {
  animation-delay: 1.1s;
}

.reveal.visible .building-svg .floor-5 {
  animation-delay: 1.45s;
}

@keyframes riseFloor {
  to {
    opacity: 1;
    transform: scaleY(1) translateY(0);
  }
}

.floor-fill-a {
  fill: var(--ink);
}

.floor-fill-b {
  fill: var(--ink-2);
}

.window-fill {
  fill: var(--concrete);
}

.crane-fill {
  fill: var(--steel);
}

.crane-accent {
  fill: var(--signal);
}

.ground-line {
  stroke: var(--line);
  stroke-width: 2;
}

.crane-arm-group {
  transform-box: fill-box;
  transform-origin: 96% 15%;
  animation: craneSway 4.5s ease-in-out infinite alternate;
}

@keyframes craneSway {
  from {
    transform: rotate(-1.4deg);
  }

  to {
    transform: rotate(1.4deg);
  }
}

.crane-hook-group {
  transform-box: fill-box;
  transform-origin: center top;
  animation: hookBob 2.6s ease-in-out infinite alternate;
}

@keyframes hookBob {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(5px);
  }
}

.crane-light {
  animation: lightPulse 1.6s ease-in-out infinite;
}

@keyframes lightPulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .25;
  }
}

.building-stages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.stage-item {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .03em;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--steel);
  opacity: 0;
  transform: translateY(10px);
}

.reveal.visible .stage-item {
  animation: stageIn .5s var(--ease) forwards;
}

.reveal.visible .stage-1 {
  animation-delay: .35s;
}

.reveal.visible .stage-2 {
  animation-delay: .7s;
}

.reveal.visible .stage-3 {
  animation-delay: 1.05s;
}

.reveal.visible .stage-4 {
  animation-delay: 1.4s;
}

.reveal.visible .stage-5 {
  animation-delay: 1.75s;
}

@keyframes stageIn {
  to {
    opacity: 1;
    transform: translateY(0);
    color: var(--ink);
    border-color: var(--signal);
  }
}

.stage-item i {
  color: var(--signal);
}

@media (prefers-reduced-motion: reduce) {
  .building-svg .floor {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .crane-arm-group,
  .crane-hook-group,
  .crane-light {
    animation: none;
  }

  .stage-item {
    opacity: 1;
    transform: none;
    animation: none;
    color: var(--ink);
    border-color: var(--line);
  }
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: .08s;
}

.reveal-delay-2 {
  transition-delay: .16s;
}

.reveal-delay-3 {
  transition-delay: .24s;
}

.reveal-delay-4 {
  transition-delay: .32s;
}

/* Variantes: combínalas con .reveal → class="reveal reveal-zoom" */
.reveal-fade {
  transform: none;
}

.reveal-fade.visible {
  transform: none;
}

.reveal-zoom {
  transform: scale(.9);
}

.reveal-zoom.visible {
  transform: scale(1);
}

.reveal-rotate {
  transform: rotate(-3.5deg) translateY(26px);
  transform-origin: center bottom;
}

.reveal-rotate.visible {
  transform: rotate(0deg) translateY(0);
}

.reveal-slide-left {
  transform: translateX(-48px);
}

.reveal-slide-left.visible {
  transform: translateX(0);
}

.reveal-slide-right {
  transform: translateX(48px);
}

.reveal-slide-right.visible {
  transform: translateX(0);
}

/* ============ TEXTURA DE GRANO (profundidad táctil, muy sutil) ============ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ SELLO GIRATORIO (hero) ============ */
.hero-stamp {
  position: absolute;
  top: -34px;
  right: -18px;
  width: 132px;
  z-index: 4;
  pointer-events: none;
}

.stamp-ring {
  fill: none;
  stroke: rgba(255, 255, 255, .28);
  stroke-width: 1;
}

.stamp-rotate {
  transform-box: fill-box;
  transform-origin: center;
  animation: stampSpin 26s linear infinite;
}

@keyframes stampSpin {
  to {
    transform: rotate(360deg);
  }
}

.stamp-text {
  font-family: var(--font-mono);
  font-size: 8.4px;
  letter-spacing: 2px;
  fill: #C7D0E4;
}

.stamp-core {
  fill: var(--signal);
}

.stamp-num {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  fill: #fff;
}

.stamp-sub {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 2px;
  fill: rgba(255, 255, 255, .85);
}

@media (max-width:960px) {
  .hero-stamp {
    width: 104px;
    top: -20px;
    right: -10px;
  }
}

@media (max-width:640px) {
  .hero-stamp {
    display: none;
  }
}

/* ============ CTA BANNER — acento diagonal ============ */
.cta-banner {
  isolation: isolate;
}

.cta-banner::before {
  content: '';
  position: absolute;
  z-index: 0;
  pointer-events: none;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 150%;
  background: linear-gradient(120deg, rgba(255, 106, 19, .12), transparent 55%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

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

  body::after {
    display: none;
  }
}

/* ============ COIPA SE "CONSTRUYE" (letras que se levantan) ============ */
.brand-build {
  display: flex;
  align-items: flex-end;
  gap: .03em;
  margin-bottom: 14px;
}

.brand-build span {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  color: #fff;
  transform-origin: bottom;
  opacity: 0;
  transform: translateY(24px) scaleY(.4);
  animation: bbRise .55s cubic-bezier(.2, .9, .3, 1.2) forwards;
}

.brand-build span:nth-child(1) {
  animation-delay: .05s;
}

.brand-build span:nth-child(2) {
  animation-delay: .2s;
}

.brand-build span:nth-child(3) {
  animation-delay: .35s;
}

.brand-build span:nth-child(4) {
  animation-delay: .5s;
}

.brand-build span:nth-child(5) {
  animation-delay: .65s;
}

.brand-build .bb-ground {
  flex: 1;
  height: 2px;
  background: var(--signal);
  align-self: center;
  margin-left: 12px;
  transform: scaleX(0);
  transform-origin: left;
  animation: bbGround .5s ease forwards;
  animation-delay: .85s;
}

@keyframes bbRise {
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@keyframes bbGround {
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-build span {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .brand-build .bb-ground {
    transform: scaleX(1);
    animation: none;
  }
}

/* ============ MINI GRÚA — motivo decorativo reutilizable en cabeceras ============ */
.mini-crane {
  position: absolute;
  top: 26px;
  right: 28px;
  width: 78px;
  height: 100px;
  z-index: 2;
  opacity: .55;
  pointer-events: none;
}

@media (max-width:700px) {
  .mini-crane {
    display: none;
  }
}

/* ============ COMPARADOR ANTES / DESPUÉS ============ */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  box-shadow: 0 24px 50px -30px rgba(20, 33, 61, .3);
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.8) contrast(1.1) brightness(.96) sepia(.1) hue-rotate(178deg);
}

.ba-before {
  clip-path: inset(0 50% 0 0);
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  transform: translateX(-50%);
  border-left: 2px solid #fff;
  pointer-events: none;
}

.ba-handle::after {
  content: '⇔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.ba-tag {
  position: absolute;
  top: 16px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(20, 33, 61, .6);
  padding: 6px 14px;
  border-radius: 100px;
  pointer-events: none;
  backdrop-filter: blur(3px);
}

.ba-tag-left {
  left: 16px;
}

.ba-tag-right {
  right: 16px;
}

.ba-caption {
  margin-top: 16px;
  font-size: .92rem;
  color: var(--steel);
  text-align: center;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width:800px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

/* ============ TRATAMIENTO DE FOTOGRAFÍA — look unificado ============ */
.about-media img,
.project-card img,
.masonry .proj-img,
.photo-item img,
.hero-bg-slide {
  filter: saturate(.8) contrast(1.1) brightness(.96) sepia(.1) hue-rotate(178deg);
}

.about-media,
.project-card,
.masonry .proj-card,
.photo-item .ph-img-wrap {
  position: relative;
}

.about-media::after,
.project-card::after,
.masonry .proj-card::after,
.photo-item .ph-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(155deg, rgba(20, 33, 61, .30), rgba(255, 106, 19, .06) 65%);
  mix-blend-mode: multiply;
}

/* ============ ICONOGRAFÍA PROPIA (line icons) ============ */
.icon-line {
  width: 1.5em;
  height: 1.5em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.service-icon .icon-line,
.why-card .icon-line {
  width: 26px;
  height: 26px;
}

.stat-item .icon-line {
  width: 22px;
  height: 22px;
  margin: 0 auto 10px;
  color: var(--signal);
}

/* ============ MOMENTO TIPOGRÁFICO (número/palabra gigante) ============ */
.giant-mark {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, .05);
  letter-spacing: -.04em;
}

.bg-paper .giant-mark,
.bg-concrete .giant-mark {
  color: rgba(20, 33, 61, .045);
}

.manifesto {
  padding: 100px 0;
  text-align: center;
}

.manifesto p {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.02em;
  font-size: clamp(1.7rem, 4.4vw, 3.1rem);
  line-height: 1.22;
  color: var(--ink);
  max-width: 920px;
  margin: 0 auto;
}

.manifesto p em {
  font-style: normal;
  color: var(--signal);
}

@media (max-width:768px) {
  .manifesto {
    padding: 64px 0;
  }
}

/* ============ ROMPER LA REJILLA — layouts asimétricos ============ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.bento-grid .why-card {
  grid-column: span 3;
}

.bento-grid .why-card:first-child {
  grid-column: span 4;
}

.bento-grid .why-card:nth-child(2) {
  grid-column: span 2;
}

.bento-grid .why-card:nth-child(3) {
  grid-column: span 2;
}

.bento-grid .why-card:nth-child(4) {
  grid-column: span 4;
}

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

  .bento-grid .why-card,
  .bento-grid .why-card:first-child,
  .bento-grid .why-card:nth-child(2),
  .bento-grid .why-card:nth-child(3),
  .bento-grid .why-card:nth-child(4) {
    grid-column: span 1;
  }
}

.value-grid .value-card:nth-child(2n) {
  transform: translateY(28px);
}

@media (max-width:900px) {
  .value-grid .value-card:nth-child(2n) {
    transform: none;
  }
}

.bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.bleed-media {
  overflow: hidden;
  position: relative;
}

.bleed-media img {
  width: 100%;
  height: clamp(340px, 52vw, 560px);
  object-fit: cover;
  display: block;
}

.bleed-media .bleed-caption {
  position: absolute;
  left: 6vw;
  bottom: 44px;
  z-index: 2;
  color: #fff;
  max-width: 440px;
}

.bleed-media .bleed-caption p.eyebrow {
  color: var(--signal);
}

.bleed-media .bleed-caption h3 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.bleed-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(20, 33, 61, .82), rgba(20, 33, 61, .05) 55%);
}

/* Servicio destacado — layout editorial (imagen + texto desigual) */
.featured-service {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 30px 60px -35px rgba(20, 33, 61, .3);
}

@media (max-width:860px) {
  .featured-service {
    grid-template-columns: 1fr;
  }
}

.featured-service .fs-media {
  position: relative;
  min-height: 340px;
}

.featured-service .fs-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.featured-service .fs-body {
  background: var(--white);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-service .fs-body h3 {
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.featured-service .fs-body p {
  color: var(--steel);
  margin-bottom: 22px;
}

/* Tarjetas: menos borde, más aire y separación por sombra */
.service-card,
.why-card,
.value-card,
.testi-card {
  border: none;
  box-shadow: 0 1px 0 var(--line), 0 20px 44px -32px rgba(20, 33, 61, .18);
}

.service-card:hover,
.testi-card:hover {
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -28px rgba(20, 33, 61, .26);
}

.masonry .proj-card,
.project-card,
.photo-item {
  border: none;
  box-shadow: 0 20px 40px -30px rgba(20, 33, 61, .22);
}

/* ============ REVEAL ANIMATION (base) ============ */

/* Línea de acotación (motivo de plano) */
.dimension-line {
  height: 20px;
  width: 100%;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 28px);
  opacity: .7;
}

.bg-ink .dimension-line,
.bg-signal .dimension-line {
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .18) 0 1px, transparent 1px 28px);
}

/* Aviso oficial */
.notice-bar {
  background: var(--signal);
  color: #fff;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .78rem;
  padding: 9px 16px;
  letter-spacing: .03em;
}

.notice-bar a {
  text-decoration: underline;
}

/* Logo con imagen */
.logo-img {
  display: block;
  /*height: 42px;    */      /* ajusta según el header */
  width: auto;
  max-width: 200px;
}

/* Footer (versión blanca) */
.footer-logo img {
  height: 48px;
  width: auto;
  max-width: 220px;
}

/* Mobile */
@media (max-width: 640px) {
  .logo-img {
    height: 36px;
  }
}