/* Nexo Obras — estilos del sitio */

:root {
  /* Colores tomados del logo */
  --navy: #0A2A52;
  --navy-deep: #061C38;
  --navy-ink: #04142A;
  --gold: #D8AB48;
  --gold-soft: #E9CB85;
  --gold-deep: #8C6A1F;   /* dorado legible sobre blanco y gris claro (5:1) */
  --graphite: #2C3036;
  --steel: #545B65;       /* texto secundario, AA sobre blanco */
  --line: #D5DCE5;
  --tint: #F1F4F8;
  --paper: #FFFFFF;
  --error: #B42318;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-lg: 0 30px 60px -32px rgba(6, 28, 56, .45);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--paper);
  overflow-x: clip; /* los elementos que entran de lado no generan scroll horizontal */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }

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

h1, h2, h3 {
  margin: 0;
  color: var(--navy);
  font-stretch: 118%;
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; font-stretch: 110%; font-weight: 700; line-height: 1.25; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only, .sprite {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--navy); color: #fff; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: inherit; font-weight: 650; font-stretch: 105%; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; touch-action: manipulation;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--navy-ink); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy-ink); }
.btn-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Encabezado */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); }
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-stretch: 125%; font-size: 1.2rem; color: var(--navy); letter-spacing: .03em; }
.brand-tag { margin-top: 3px; font-size: .74rem; font-weight: 600; color: var(--gold-deep); letter-spacing: .02em; }

.nav-list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-list a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--graphite); text-decoration: none; font-weight: 550;
}
.nav-list a:not(.btn):hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.nav-list li:last-child { margin-left: 10px; }

.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--navy);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 24px; height: 2px; margin: 0 auto; background: currentColor;
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Portada con fotografía */
.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: min(86vh, 760px);
  padding: clamp(72px, 10vw, 128px) 0 clamp(96px, 11vw, 140px);
  color: #DCE4EE;
  background: var(--navy-deep);
  overflow: hidden;
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: 70% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 20, 42, .94) 0%, rgba(6, 28, 56, .86) 38%, rgba(6, 28, 56, .35) 70%, rgba(6, 28, 56, .15) 100%),
    linear-gradient(0deg, rgba(4, 20, 42, .55) 0%, transparent 40%);
}
.hero-inner { position: relative; }
.hero-copy { max-width: 640px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; font-weight: 600; color: var(--gold-soft); }
.hero-kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.2vw, 4rem); font-stretch: 120%; font-weight: 800; }
.hero-lead { margin-top: 24px; font-size: 1.15rem; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Compromisos */
.pledges { position: relative; z-index: 2; margin-top: -56px; }
.pledge-list {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 0; padding: 0; list-style: none;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.pledge-list li { display: flex; gap: 14px; align-items: flex-start; padding: 26px 24px; }
.pledge-list li + li { border-left: 1px solid var(--line); }
.pledge-icon {
  flex: none; width: 44px; height: 44px; padding: 10px;
  color: var(--gold); background: var(--navy); border-radius: 50%;
}
.pledge-list span { font-size: .93rem; color: var(--steel); line-height: 1.45; }
.pledge-list strong { display: block; margin-bottom: 2px; font-size: 1rem; font-stretch: 108%; color: var(--navy); }

/* Secciones */
.section { position: relative; padding: clamp(72px, 9vw, 120px) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { margin-top: 16px; font-size: 1.1rem; color: var(--steel); }
.section-head-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: end; max-width: none; }
.section-head-split p { margin: 0; max-width: 52ch; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
.service {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.service:hover { border-color: #BCC6D3; box-shadow: var(--shadow-lg); }
.service-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service:hover .service-media img { transform: scale(1.03); }
.service-body { padding: 24px 28px 30px; border-top: 3px solid var(--gold); }
.service-body p { margin-top: 10px; color: var(--steel); }

/* Modelo */
.model-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.model-copy > p { margin-top: 18px; font-size: 1.1rem; color: var(--steel); }
.check-list { margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li + li { margin-top: 14px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3L13.5 6' fill='none' stroke='%23D8AB48' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.nexo-diagram {
  margin: 0; padding: clamp(16px, 2.5vw, 28px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.nexo-diagram svg { width: 100%; height: auto; font-family: var(--font); }
.nexo-diagram figcaption { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .92rem; color: var(--steel); }

.d-links path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; }
.d-client rect { fill: var(--paper); stroke: var(--navy); stroke-width: 2; }
.d-client text { fill: var(--navy); font-size: 20px; font-weight: 650; }
.d-core rect { fill: var(--paper); stroke: var(--navy); stroke-width: 2.5; }
.d-core text { fill: var(--navy); font-size: 17px; font-weight: 800; font-stretch: 108%; }
.d-nodes circle { fill: var(--navy); }
.d-nodes text { fill: var(--graphite); font-size: 20px; font-weight: 550; }

/* Animación única: las conexiones se trazan cuando el diagrama entra en pantalla */
@media (prefers-reduced-motion: no-preference) {
  .js .nexo-diagram:not(.is-visible) .d-links path { stroke-dashoffset: 360; }
  .js .nexo-diagram:not(.is-visible) .d-nodes g { opacity: 0; }
  .js .d-links path { stroke-dasharray: 360; transition: stroke-dashoffset 1s var(--ease); }
  .js .d-links path:nth-child(n+2) { transition-delay: .45s; }
  .js .d-links path:nth-child(3) { transition-delay: .52s; }
  .js .d-links path:nth-child(4) { transition-delay: .59s; }
  .js .d-links path:nth-child(5) { transition-delay: .66s; }
  .js .d-links path:nth-child(6) { transition-delay: .73s; }
  .js .d-nodes g { transition: opacity .4s var(--ease) 1.1s; }
}

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.step { position: relative; padding: 0 24px 0 0; }
.step::before {
  content: ""; position: absolute; top: 27px; left: 56px; right: 0; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 14px);
}
.step:last-child::before { display: none; }
.step-num {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px;
  border-radius: 50%; background: var(--navy); color: var(--gold);
  font-weight: 800; font-stretch: 120%; font-size: 1.3rem;
  box-shadow: 0 0 0 6px var(--paper);
}
.step h3 { margin-top: 22px; }
.step p { margin-top: 8px; color: var(--steel); max-width: 30ch; }

/* Confianza */
.section-navy { background: var(--navy); color: #D6DEE9; overflow: hidden; }
.section-navy h2 { color: #fff; }
.navy-mark {
  position: absolute; left: -60px; bottom: -80px; width: 380px; height: auto;
  opacity: .07; pointer-events: none;
}
.trust-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.trust-copy p { margin-top: 20px; font-size: 1.12rem; max-width: 46ch; }

.acta {
  padding: 30px clamp(24px, 3.5vw, 40px) 34px;
  background: var(--paper); color: var(--graphite);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.acta-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 14px; border-bottom: 2px solid var(--navy);
  font-weight: 800; font-stretch: 120%; font-size: 1.15rem; color: var(--navy);
}
.acta-head img { width: 32px; height: auto; }
.acta-list { margin: 0; padding: 0; list-style: none; }
.acta-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.acta-list li:last-child { border-bottom: 0; }
.acta-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 3px;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3.2 3.2L14 6' fill='none' stroke='%23D8AB48' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Clientes */
.client-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.client-list li {
  display: flex; align-items: center; gap: 16px;
  padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-weight: 650; font-stretch: 108%; font-size: 1.08rem; color: var(--navy);
}
.client-list svg { flex: none; width: 34px; height: 34px; color: var(--gold-deep); }

/* Preguntas */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.faq details + details { margin-top: 12px; }
.faq summary {
  position: relative; display: block; padding: 20px 56px 20px 24px;
  font-weight: 650; font-stretch: 106%; font-size: 1.05rem; color: var(--navy);
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep);
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 24px 22px; color: var(--steel); }

/* Cotizar */
.section-quote { background: var(--paper); }
.quote-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.quote-copy > p { margin-top: 16px; font-size: 1.1rem; color: var(--steel); max-width: 44ch; }
.contact-list { margin: 32px 0 0; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 14px; min-height: 48px; color: var(--graphite); }
.contact-list .icon { width: 40px; height: 40px; padding: 10px; color: var(--gold); background: var(--navy); border-radius: 50%; }
.contact-list a { font-weight: 600; }

.quote-form {
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--graphite); }
.req { color: var(--error); }
.field input[type="text"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; font-size: 1rem; color: var(--graphite);
  background: var(--paper); border: 1.5px solid #AEB7C3; border-radius: var(--radius);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { resize: vertical; min-height: 112px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(216, 171, 72, .45);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-help { margin-top: 6px; font-size: .9rem; color: var(--steel); }
.field-error { margin-top: 6px; font-size: .9rem; color: var(--error); font-weight: 500; }
.field-error:empty { display: none; }

.field-check { display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); cursor: pointer; }
.field-check label { margin: 0; font-weight: 400; font-size: .95rem; color: var(--steel); cursor: pointer; }
.field-check .field-error { grid-column: 2; }

.form-status { margin-top: 14px; font-size: .95rem; color: var(--steel); }
.form-status:empty { display: none; }

/* Pie */
.site-footer { background: var(--navy-ink); color: #AEBACB; padding-top: 64px; }
.site-footer a { color: #E6ECF4; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 16px; align-self: start; }
.footer-brand img { width: 56px; height: auto; }
.footer-name { font-weight: 800; font-stretch: 125%; font-size: 1.35rem; color: #fff; letter-spacing: .03em; }
.footer-tag { margin-top: 2px; font-size: .85rem; font-weight: 600; color: var(--gold); }
.footer-title { margin-bottom: 12px; font-weight: 700; font-stretch: 110%; color: #fff; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { padding: 5px 0; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem;
}

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #1FA855; color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
  transition: transform .18s var(--ease);
}
.wa-float:hover { color: #fff; transform: scale(1.05); }
.wa-float svg { width: 30px; height: 30px; }

/* Responsive */
@media (max-width: 1024px) {
  .pledge-list { grid-template-columns: repeat(2, 1fr); }
  .pledge-list li:nth-child(3) { border-left: 0; }
  .pledge-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .step:nth-child(2)::before { display: none; }
  .client-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(6, 28, 56, .3);
  }
  .nav-list[hidden] { display: none; }
  .nav-list a:not(.btn) { min-height: 48px; padding: 0; border-bottom: 1px solid var(--tint); }
  .nav-list li:last-child { margin: 16px 0 0; }
  .nav-list .btn { width: 100%; }

  .section-head-split, .model-grid, .trust-grid, .quote-grid, .faq-grid { grid-template-columns: 1fr; }
  .section-head-split { gap: 16px; }
  .nexo-diagram { max-width: 600px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(4, 20, 42, .82) 0%, rgba(6, 28, 56, .9) 100%); }
  .pledges { margin-top: -40px; }
  .pledge-list { grid-template-columns: 1fr; }
  .pledge-list li + li { border-left: 0; border-top: 1px solid var(--line); }
  .pledge-list li { padding: 20px; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; padding: 0 0 32px; }
  .step::before, .step:nth-child(2)::before {
    display: block; top: 56px; bottom: 0; left: 27px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--gold) 0 8px, transparent 8px 14px);
  }
  .step:last-child::before { display: none; }
  .step-num { grid-row: span 2; }
  .step h3 { margin-top: 14px; }
  .client-list { grid-template-columns: 1fr; }
  .client-list li { padding: 18px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
}

@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; }
}

/* Dos secciones seguidas con el mismo fondo comparten el espacio entre ellas */
.section:not(.section-tint):not(.section-navy) + .section:not(.section-tint):not(.section-navy),
.section-tint + .section-tint { padding-top: 0; }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-media { position: relative; }
.about-media picture { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; right: -24px; bottom: 32px; display: flex; align-items: center; gap: 14px;
  max-width: 300px; padding: 18px 22px; background: var(--navy); color: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-badge img { width: 44px; height: auto; flex: none; }
.about-badge p { font-weight: 600; font-stretch: 106%; line-height: 1.35; }
.about-lead { margin-top: 18px; font-size: 1.12rem; color: var(--steel); }
.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.about-pillars h3 { color: var(--gold-deep); font-size: 1.05rem; }
.about-pillars p { margin-top: 8px; color: var(--graphite); }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.values li {
  padding: 8px 16px; border: 1.5px solid var(--navy); border-radius: 99px;
  font-weight: 650; font-stretch: 106%; font-size: .95rem; color: var(--navy);
}

/* ---------- Llamado a la acción ---------- */
.cta-band { position: relative; isolation: isolate; padding: clamp(80px, 11vw, 136px) 0; overflow: hidden; color: #DCE4EE; text-align: center; }
.cta-media { position: absolute; inset: -12% 0; z-index: -2; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--parallax, 0px), 0); will-change: transform; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 20, 42, .88), rgba(6, 28, 56, .92)); }
.cta-inner { max-width: 760px; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.cta-band p { margin: 18px auto 0; max-width: 52ch; font-size: 1.15rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* ---------- Barra de progreso, encabezado y volver arriba ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 3px;
  background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}
.site-header { transition: box-shadow .25s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(6, 28, 56, .45); }

.to-top {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 70px); z-index: 50;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--gold); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--gold-soft); }

/* ---------- Microinteracciones ---------- */
.btn { transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(154, 116, 36, .8); }
.btn:active { transform: translateY(0) scale(.98); }
.service { transition: box-shadow .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.service:hover { transform: translateY(-6px); }
.pledge-icon, .client-list svg { transition: transform .3s var(--ease); }
.pledge-list li:hover .pledge-icon { transform: rotate(-8deg) scale(1.08); }
.client-list li { transition: background-color .25s var(--ease); }
.client-list li:hover { background: var(--tint); }
.client-list li:hover svg { transform: translateY(-3px); }
.values li { transition: background-color .2s var(--ease), color .2s var(--ease); }
.values li:hover { background: var(--navy); color: #fff; }

/* Preguntas: apertura suave donde el navegador lo permite */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: hidden; transition: height .3s var(--ease), content-visibility .3s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* ---------- Animaciones de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Portada: foto con acercamiento lento y textos escalonados */
  .hero-media img { animation: hero-zoom 18s ease-out both; }
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(1) { animation-delay: .1s; }
  .hero-copy > :nth-child(2) { animation-delay: .22s; }
  .hero-copy > :nth-child(3) { animation-delay: .38s; }
  .hero-copy > :nth-child(4) { animation-delay: .52s; }
  .pledge-list { animation: rise .9s var(--ease) .7s both; }

  /* Elementos que aparecen al entrar en pantalla */
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
  .js .reveal-left { transform: translateX(-36px); }
  .js .reveal-right { transform: translateX(36px); }
  .js .reveal-zoom { transform: scale(.94); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .service.reveal.is-visible:hover { transform: translateY(-6px); transition-delay: 0s; }

  /* Proceso: la línea punteada se dibuja y los números aparecen */
  .js .step::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease); transition-delay: calc(var(--delay, 0s) + .3s); }
  .js .step.is-visible::before { transform: scaleX(1); }
  .js .step .step-num { transform: scale(.6); transition: transform .5s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--delay, 0s); }
  .js .step.is-visible .step-num { transform: scale(1); }

  /* Imágenes de servicios: se descubren al entrar */
  .js .service.reveal .service-media img { transform: scale(1.12); transition: transform 1.4s var(--ease); }
  .js .service.reveal.is-visible .service-media img { transform: scale(1); }
  .js .service.reveal.is-visible:hover .service-media img { transform: scale(1.04); transition-duration: .6s; }

  /* Acta: los ítems se marcan uno por uno */
  .js .acta-list li::before { transform: scale(0); transition: transform .4s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--delay, 0s); }
  .js .acta.is-visible .acta-list li::before { transform: scale(1); }
}
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Ajustes responsive de lo nuevo ---------- */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(6, 28, 56, .3);
  }
  .nav-list[hidden] { display: none; }
  .nav-list a:not(.btn) { min-height: 48px; padding: 0; border-bottom: 1px solid var(--tint); }
  .nav-list li:last-child { margin: 16px 0 0; }
  .nav-list .btn { width: 100%; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media picture { aspect-ratio: 16 / 10; }
  .about-badge { right: 16px; bottom: -24px; }
  .about-copy { margin-top: 16px; }
}
@media (max-width: 560px) {
  .about-pillars { grid-template-columns: 1fr; }
  .about-badge { position: relative; right: auto; bottom: auto; margin: -32px 16px 0; }
}

/* En celular la línea del proceso es vertical: se dibuja de arriba hacia abajo */
@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  .js .step::before { transform: scaleY(0); transform-origin: 50% 0; }
  .js .step.is-visible::before { transform: scaleY(1); }
}
.about-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }


/* ---------- Proyectos, cifras y testimonios ---------- */
/* Estas secciones están ocultas (atributo hidden) hasta que tengan contenido real. Ver docs/guia-web.md */
/* Proyectos */
.ba { position: relative; --pos: 50%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: var(--tint); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.ba-line::after { content: ""; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5' fill='none' stroke='%2304142A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.ba-label { position: absolute; top: 16px; padding: 6px 12px; font-size: .85rem; font-weight: 700; color: #fff; background: rgba(4, 20, 42, .8); border-radius: var(--radius); pointer-events: none; }
.ba-label-before { left: 16px; }
.ba-label-after { right: 16px; background: var(--gold); color: var(--navy-ink); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-range:focus-visible + .ba-line { outline: 3px solid var(--gold); }

.featured { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.project-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 24px 0 0; }
.project-meta dt { font-size: .85rem; color: var(--steel); }
.project-meta dd { margin: 2px 0 0; font-weight: 700; font-stretch: 108%; color: var(--navy); }
.featured-copy > p { margin-top: 14px; color: var(--steel); }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 28px); margin-top: clamp(40px, 6vw, 64px); }
.project { margin: 0; }
.project-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--tint); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project figcaption { margin-top: 14px; }
.project figcaption strong { display: block; font-size: 1.1rem; font-stretch: 108%; color: var(--navy); }
.project figcaption span { font-size: .93rem; color: var(--steel); }

/* Testimonios */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 28px); }
.quote { display: flex; flex-direction: column; margin: 0; padding: 32px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.quote::before { content: "\201C"; display: block; height: 44px; font-size: 5rem; line-height: .9; font-weight: 800; color: var(--gold); }
.quote blockquote { flex: 1; margin: 12px 0 0; font-size: 1.05rem; color: var(--graphite); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote-avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; }
.quote figcaption strong { display: block; color: var(--navy); }
.quote figcaption div span { display: block; font-size: .9rem; color: var(--steel); }
.stars { display: flex; gap: 2px; margin-top: 16px; color: var(--gold); }
.stars svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
.featured { grid-template-columns: 1fr; }
.projects, .quotes { grid-template-columns: 1fr; }
}
  
.stats-band { padding: clamp(48px, 7vw, 80px) 0; background: var(--navy-ink); color: #C9D3E0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.stats > div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 8px 28px; border-left: 1px solid rgba(255, 255, 255, .14); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats dd { margin: 0; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; font-stretch: 120%; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.stats dd { white-space: nowrap; }
.stats dd span { color: var(--gold); }
.stats dd small { margin-left: 6px; font-size: .45em; font-weight: 700; color: #fff; }
.stats dt { font-size: .95rem; }
  @media (max-width: 900px) {
    .stats { grid-template-columns: 1fr 1fr; row-gap: 32px; }
    .stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  }
