/* ═══════════════════════════════════════
   ANTONIO DOLORES SÁNCHEZ · Contratista
   Hoja de estilos compartida
═══════════════════════════════════════ */

/* ── Variables ── */
:root {
  --navy:       #213B60;
  --navy-2:     #1a3052;
  --paper:      #EEEFE9;
  --paper-2:    #E3E5DC;
  --steel:      #5C6670;
  --ink:        #192d4a;
  --line:       #B9C4CC;
  --amber:      #8D6B3E;
  --amber-dark: #7a5c35;
  --amber-pale: #f4eadb;
  --white:      #FFFFFF;
  --r: 2px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; letter-spacing: -.01em; }
.mono { font-family: 'IBM Plex Mono', monospace; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ── Scroll animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up[data-delay="1"] { transition-delay: .1s; }
.fade-up[data-delay="2"] { transition-delay: .2s; }
.fade-up[data-delay="3"] { transition-delay: .3s; }
.fade-up[data-delay="4"] { transition-delay: .4s; }
.fade-up[data-delay="5"] { transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ── Motivo línea de dimensión ── */
.dim { display: flex; align-items: center; gap: 10px; }
.dim::before, .dim::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.dim-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: .14em;
  color: var(--steel); white-space: nowrap; text-transform: uppercase;
}
.dim-light::before, .dim-light::after { background: rgba(255,255,255,.2); }
.dim-light .dim-label { color: rgba(255,255,255,.45); }

/* ── Barra de progreso de scroll ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 200;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--amber), #c9a96e);
  transition: width .08s linear;
  pointer-events: none;
}

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  font-size: 13.5px; font-weight: 600; font-family: 'Inter', sans-serif;
  border-radius: var(--r); border: 1.5px solid transparent;
  cursor: pointer; transition: all .2s ease;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: var(--white); border-color: var(--amber); }
.btn-amber:hover { background: var(--amber-dark); border-color: var(--amber-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(141,107,62,.4); }
.btn-ghost-dark { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(33,59,96,.2); }
.btn-lg { padding: 15px 32px; font-size: 15px; }

/* ═══════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════ */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238,239,233,.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper-2);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; }
.stamp {
  width: 44px; height: 44px; border: 1.5px solid var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px;
  color: var(--navy); flex-shrink: 0; position: relative; letter-spacing: .04em;
}
.stamp::after {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid var(--navy); border-radius: 50%; opacity: .3;
}
.brand-mark { height: 42px; width: auto; flex-shrink: 0; }
.brand-name-img { height: 13px; width: auto; display: block; }
.brand-text { line-height: 1.2; }
.brand-text .name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px; }
.brand-text .role { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: .1em; color: var(--steel); text-transform: uppercase; }
.f-brand-wrap { display: flex; align-items: center; gap: 12px; }
.f-mark { height: 34px; width: auto; flex-shrink: 0; }
nav ul { display: flex; gap: 30px; list-style: none; }
nav ul a {
  font-size: 14px; font-weight: 500; color: var(--ink);
  padding: 4px 0; position: relative;
}
nav ul a:hover { color: var(--amber-dark); }
nav ul a.active { color: var(--amber-dark); }
nav ul a.active::after {
  content: ""; position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--amber); border-radius: 1px;
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
nav ul.open {
  display: flex; flex-direction: column;
  position: absolute; top: 76px; left: 0; right: 0;
  background: rgba(238,239,233,.97);
  padding: 22px 28px; gap: 20px;
  border-bottom: 1px solid var(--paper-2); z-index: 49;
}

/* ═══════════════════════════════════════
   HERO PRINCIPAL (index.html)
═══════════════════════════════════════ */
.hero {
  background: var(--navy); color: var(--white);
  position: relative; overflow: hidden;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(0deg, rgba(33,59,96,.94) 0%, rgba(33,59,96,.78) 52%, rgba(33,59,96,.5) 100%),
    radial-gradient(ellipse 800px 600px at 82% 15%, rgba(141,107,62,.26), transparent 60%),
    radial-gradient(ellipse 500px 400px at 10% 85%, rgba(33,59,96,.88), transparent 65%);
  pointer-events: none;
  animation: hero-glow 12s ease-in-out infinite;
}
@keyframes hero-glow {
  0%, 100% { opacity: 1; }
  50%       { opacity: .65; }
}
/* Animaciones de entrada del hero */
.hero-content .eyebrow  { animation: h-fade-up .7s .05s both; }
.hero-content h1         { animation: h-fade-up .8s .18s both; }
.hero-content .lead      { animation: h-fade-up .7s .32s both; }
.hero-content .hero-ctas { animation: h-fade-up .7s .46s both; }
@keyframes h-fade-up {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-content .eyebrow,
  .hero-content h1,
  .hero-content .lead,
  .hero-content .hero-ctas { animation: none; }
}

/* Ticker de proyectos */
.hero-ticker {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 13px 0;
  margin-top: 40px;
}
.ticker-track {
  display: flex; gap: 60px; width: max-content;
  animation: ticker-move 38s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-track span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: .16em;
  color: rgba(255,255,255,.28); white-space: nowrap;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
}
.ticker-track span::before {
  content: "▸"; color: var(--amber); opacity: .6; font-size: 10px;
}
@keyframes ticker-move {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero-inner { position: relative; z-index: 2; padding: 108px 0 68px; }
.hero-content { max-width: 700px; }
.hero-perfil { margin: 20px 0 0; }
.hero-perfil-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 8px;
}
.hero-perfil p {
  font-size: 14px; color: rgba(255,255,255,.72); line-height: 1.65;
}
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; letter-spacing: .18em; color: var(--amber);
  text-transform: uppercase; margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--amber); }
.hero h1 { font-size: clamp(34px, 5.8vw, 62px); line-height: 1.07; max-width: 840px; color: var(--white); }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { margin-top: 26px; max-width: 520px; font-size: 17px; color: #C7D2DC; line-height: 1.6; }
.hero-ctas { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 80px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.hstat { padding: 0 20px 4px; border-left: 1px solid rgba(255,255,255,.14); }
.hstat:first-child { border-left: none; padding-left: 0; }
.hstat .num { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--amber); letter-spacing: .08em; }
.hstat .lab { font-size: 13.5px; margin-top: 8px; color: #DCE4EA; line-height: 1.35; }

/* ═══════════════════════════════════════
   PAGE HERO (páginas internas)
═══════════════════════════════════════ */
.page-hero {
  background: var(--navy); color: var(--white);
  position: relative; overflow: hidden;
  min-height: 480px;
  display: flex; align-items: flex-end;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
}
.page-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: .18; filter: saturate(.6);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(0deg, var(--navy) 22%, rgba(33,59,96,.88) 55%, rgba(33,59,96,.45) 100%),
    radial-gradient(ellipse 700px 400px at 88% 40%, rgba(141,107,62,.18), transparent 60%);
  pointer-events: none; z-index: 1;
}
.page-hero::after {
  content: ""; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber) 0%, rgba(141,107,62,.18) 55%, transparent 100%);
  z-index: 3;
}
/* Texto fantasma decorativo */
.page-hero-ghost {
  position: absolute; right: -6px; bottom: 44px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(80px, 12vw, 180px); font-weight: 700;
  color: rgba(255,255,255,.032); letter-spacing: -.04em;
  pointer-events: none; white-space: nowrap; line-height: 1;
  user-select: none; z-index: 1;
}
/* Marcas de esquina */
.ph-corner { position: absolute; width: 22px; height: 22px; z-index: 3; }
.ph-corner.tl { top: 24px; left: 24px; border-top: 1.5px solid rgba(141,107,62,.55); border-left: 1.5px solid rgba(141,107,62,.55); }
.ph-corner.tr { top: 24px; right: 24px; border-top: 1.5px solid rgba(141,107,62,.3); border-right: 1.5px solid rgba(141,107,62,.3); }
.ph-corner.bl { bottom: 24px; left: 24px; border-bottom: 1.5px solid rgba(141,107,62,.2); border-left: 1.5px solid rgba(141,107,62,.2); }
.page-hero-inner { position: relative; z-index: 2; padding: 80px 0 72px; }
.page-hero h1 {
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.06; color: var(--white); max-width: 740px;
}
.page-hero h1 em { font-style: normal; color: var(--amber); }
.page-hero .lead { margin-top: 18px; color: #C7D2DC; font-size: 16.5px; max-width: 540px; line-height: 1.65; }
.page-hero .breadcrumb {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: .14em; color: rgba(255,255,255,.4);
  text-transform: uppercase; margin-bottom: 22px;
  display: flex; align-items: center; gap: 8px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.4); }
.page-hero .breadcrumb a:hover { color: var(--amber); }
.page-hero .breadcrumb span { color: var(--amber); }

/* ═══════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════ */
.stats-strip { background: var(--ink); padding: 56px 0; }

/* ── Clientes ── */
.clientes-strip { background: var(--white); padding: 80px 0; }
.clientes-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--steel); text-align: center; margin-bottom: 60px;
}
.clientes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px; background: var(--paper-2);
  border: 1px solid var(--paper-2);
}
.cliente-logo {
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 36px; min-height: 180px;
  transition: background .2s;
}
.cliente-logo:hover { background: var(--paper); }
.cliente-logo img {
  width: 100%; max-width: 200px; height: auto; max-height: 100px;
  object-fit: contain;
  transition: opacity .3s;
}
.cliente-logo:hover img { opacity: .8; }
@media (max-width: 900px) {
  .clientes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .clientes-strip { padding: 52px 0; }
  .cliente-logo { padding: 32px 24px; min-height: 130px; }
  .cliente-logo img { max-height: 70px; }
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-block { padding: 0 36px; border-left: 1px solid rgba(255,255,255,.1); }
.stat-block:first-child { border-left: none; padding-left: 0; }
.stat-big {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 5vw, 58px);
  font-weight: 700; color: var(--amber);
  line-height: 1; letter-spacing: -.02em;
  display: flex; align-items: baseline; gap: 4px;
}
.stat-big sup { font-size: .45em; vertical-align: top; padding-top: .15em; }
.stat-unit { font-size: .4em; color: rgba(226,149,74,.6); font-weight: 400; margin-left: 2px; }
.stat-desc { font-size: 13.5px; color: #9FB0BE; margin-top: 10px; line-height: 1.4; }

/* ═══════════════════════════════════════
   SECCIONES GENÉRICAS
═══════════════════════════════════════ */
section { padding: 108px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .dim-label { margin-bottom: 16px; display: inline-block; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); color: var(--navy); }
.section-head p { margin-top: 14px; color: var(--steel); font-size: 15.5px; line-height: 1.65; }
.section-head-light h2 { color: var(--white); }
.section-head-light p { color: #C7D2DC; }

/* ═══════════════════════════════════════
   VISTA PREVIA SERVICIOS (index)
═══════════════════════════════════════ */
.sv-preview { background: var(--paper); }
.sv-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--paper-2); border: 1px solid var(--paper-2); margin-bottom: 32px; }
.sv-card { background: var(--white); padding: 32px 28px; transition: background .2s, transform .2s, box-shadow .2s; }
.sv-card:hover { background: #FAFAF7; transform: translateY(-4px); box-shadow: 0 12px 36px rgba(33,59,96,.1); }
.sv-card .sv-num { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--steel); letter-spacing: .08em; margin-bottom: 20px; }
.sv-card h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.sv-card p { font-size: 14px; color: var(--steel); line-height: 1.6; }
.sv-card .sv-icon { width: 32px; height: 32px; color: var(--amber); margin-bottom: 16px; }

/* ═══════════════════════════════════════
   PREVIEW NOSOTROS (index)
═══════════════════════════════════════ */
.nos-preview { background: var(--white); }
.nos-preview-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.nos-preview-left .section-head { margin-bottom: 28px; }
.nos-preview-left p { color: var(--steel); font-size: 15.5px; line-height: 1.7; margin-bottom: 28px; }
.nos-preview-specs { border-top: 1px solid var(--paper-2); }
.nos-spec-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--paper-2);
  font-size: 14px; gap: 24px;
}
.nos-spec-row .k { font-family: 'IBM Plex Mono', monospace; color: var(--amber-dark); letter-spacing: .08em; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
.nos-spec-row .v { color: var(--navy); font-weight: 500; text-align: right; }

/* ═══════════════════════════════════════
   SERVICIOS GRID
═══════════════════════════════════════ */
.servicios { background: var(--paper); }
.grid-servicios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--paper-2); border: 1px solid var(--paper-2); }
.card-servicio { background: var(--white); padding: 34px 30px; display: flex; flex-direction: column; transition: background .2s, transform .2s, box-shadow .2s; }
.card-servicio:hover { background: #FAFAF7; transform: translateY(-5px); box-shadow: 0 14px 40px rgba(33,59,96,.12); }
.card-tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--steel); letter-spacing: .08em; display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.flag { background: var(--amber); color: var(--navy); padding: 3px 8px; border-radius: 2px; font-weight: 700; font-size: 10px; letter-spacing: .04em; }
.card-servicio h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.card-servicio p { font-size: 14px; color: var(--steel); line-height: 1.6; flex: 1; }
.card-icon { width: 34px; height: 34px; margin-bottom: 18px; color: var(--amber); }

/* ═══════════════════════════════════════
   PROCESO
═══════════════════════════════════════ */
.proceso { background: var(--white); }

/* ── Tres pasos (nosotros.html) ── */
.tres-pasos { background: var(--paper); }
.tres-pasos-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--paper-2); border: 1px solid var(--paper-2);
  margin-top: 56px;
}
.tp-card {
  background: var(--white); padding: 44px 36px 40px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background .2s;
}
.tp-card:hover { background: #fafaf7; }
.tp-num {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 52px; line-height: 1; color: var(--amber);
  opacity: .25; letter-spacing: -.03em;
}
.tp-card h3 { font-size: 20px; color: var(--navy); }
.tp-card p { font-size: 14.5px; color: var(--steel); line-height: 1.65; }
@media (max-width: 900px) {
  .tres-pasos-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .tp-card { padding: 32px 24px; }
  .tp-num { font-size: 40px; }
}
.proceso-track { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; margin-top: 16px; }
.proceso-track::before {
  content: ""; position: absolute;
  top: 19px; left: 10%; right: 10%;
  height: 1px; background: var(--paper-2); z-index: 0;
}
.paso { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 14px; position: relative; z-index: 1; }
.paso-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--steel);
  margin-bottom: 24px;
  transition: border-color .2s, color .2s, background .2s;
}
.paso:hover .paso-circle { border-color: var(--amber); color: var(--amber); background: var(--amber-pale); }
.paso h3 { font-size: 14.5px; color: var(--navy); margin-bottom: 8px; font-weight: 600; }
.paso p { font-size: 13px; color: var(--steel); line-height: 1.55; }

/* ═══════════════════════════════════════
   POR QUÉ ELEGIRNOS
═══════════════════════════════════════ */
.por-que { background: var(--paper); }
.grid-pq { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--paper-2); border: 1px solid var(--paper-2); }
.pq-card { background: var(--paper); padding: 32px 28px; transition: background .15s; }
.pq-card:hover { background: #EAEBE4; }
.pq-card.featured { background: var(--navy); }
.pq-card.featured:hover { background: var(--navy-2); }
.pq-num { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--steel); letter-spacing: .1em; margin-bottom: 20px; }
.pq-card.featured .pq-num { color: rgba(255,255,255,.35); }
.pq-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 10px; }
.pq-card.featured h3 { color: var(--white); }
.pq-card p { font-size: 14px; color: var(--steel); line-height: 1.6; }
.pq-card.featured p { color: #C7D2DC; }
.pq-icon { width: 32px; height: 32px; margin-bottom: 18px; color: var(--amber); }

/* ═══════════════════════════════════════
   NOSOTROS (sección oscura)
═══════════════════════════════════════ */
.nosotros { background: var(--navy-2); color: var(--white); }
.nosotros-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: start; }
.nosotros-body p { color: #C7D2DC; font-size: 15.5px; margin-bottom: 18px; max-width: 490px; line-height: 1.7; }
.specs { border-top: 1px solid rgba(255,255,255,.16); }
.spec-row { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14px; gap: 24px; }
.spec-row .k { font-family: 'IBM Plex Mono', monospace; color: var(--amber); letter-spacing: .08em; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
.spec-row .v { color: #DCE4EA; text-align: right; }
.nos-capacidades { border-top: 1px solid rgba(255,255,255,.16); padding-top: 8px; }
.nos-cap-label {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 28px; margin-top: 20px;
}
.nos-cap-list { list-style: none; }
.nos-cap-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08);
  color: #DCE4EA; font-size: 15px; font-weight: 500;
}
.nos-cap-list li::before {
  content: ""; flex-shrink: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
}

/* ═══════════════════════════════════════
   GALERÍA
═══════════════════════════════════════ */
.galeria { background: var(--paper); }
.grid-galeria { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 14px; grid-auto-flow: dense; }
.g-tile {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: #1C3248; display: flex; align-items: flex-end; isolation: isolate;
}
.g-tile:nth-child(1) { background: linear-gradient(140deg,#1a2f42,#2c4560); }
.g-tile:nth-child(2) { background: linear-gradient(140deg,#243545,#3a4f61); }
.g-tile:nth-child(3) { background: linear-gradient(140deg,#1e3347,#354d63); grid-row: span 2; }
.g-tile:nth-child(4) { background: linear-gradient(140deg,#2a3f52,#415668); }
.g-tile:nth-child(5) { background: linear-gradient(140deg,#1c3044,#2e4860); }
.g-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s ease, transform .4s ease; }
.g-tile:hover img { opacity: 1; transform: scale(1.03); }
.g-tile::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 18px 18px; pointer-events: none;
}
.g-cap {
  position: relative; z-index: 2; padding: 14px 18px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: #E8F0F5; letter-spacing: .08em;
  background: linear-gradient(0deg, rgba(12,28,44,.88), transparent); width: 100%;
}
.galeria-note { margin-top: 18px; font-size: 13px; color: var(--steel); font-style: italic; }

/* ═══════════════════════════════════════
   TESTIMONIOS
═══════════════════════════════════════ */
.testimonios { background: var(--white); }
.grid-testimonios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { border: 1px solid var(--paper-2); border-radius: var(--r); padding: 32px 28px; position: relative; transition: box-shadow .25s, border-color .25s, transform .25s; }
.testi-card:hover { box-shadow: 0 16px 48px rgba(33,59,96,.12); border-color: var(--amber); transform: translateY(-4px); }
.testi-quote { font-family: 'Space Grotesk', sans-serif; font-size: 48px; line-height: 1; color: var(--amber); opacity: .35; position: absolute; top: 20px; right: 24px; user-select: none; pointer-events: none; }
.testi-text { font-size: 15px; color: var(--ink); line-height: 1.65; margin-bottom: 24px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px; color: var(--amber); flex-shrink: 0; }
.testi-name { font-weight: 600; font-size: 14px; color: var(--navy); }
.testi-role { font-size: 12px; color: var(--steel); font-family: 'IBM Plex Mono', monospace; letter-spacing: .05em; }

/* ═══════════════════════════════════════
   FAQ
═══════════════════════════════════════ */
.faq { background: var(--paper); }
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.faq-intro { position: sticky; top: 100px; }
.faq-intro h2 { font-size: clamp(24px, 3vw, 34px); color: var(--navy); margin-top: 16px; }
.faq-intro p { margin-top: 16px; color: var(--steel); font-size: 15px; line-height: 1.65; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--paper-2); }
.faq-q { width: 100%; background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 22px 0; gap: 16px; text-align: left; }
.faq-q-text { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px; color: var(--navy); }
.faq-icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--steel); transition: transform .25s ease, color .15s; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--amber); }
.faq-item.open .faq-q-text { color: var(--amber-dark); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding-bottom: 22px; font-size: 15px; color: var(--steel); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 400px; }

/* ═══════════════════════════════════════
   CTA STRIP
═══════════════════════════════════════ */
.cta-strip {
  background: var(--navy); position: relative; overflow: hidden; padding: 96px 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
}
.cta-strip::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 700px 400px at 20% 50%, rgba(226,149,74,.12), transparent 60%);
  pointer-events: none;
}
.cta-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 48px; flex-wrap: wrap; }
.cta-copy .label { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .18em; color: var(--amber); text-transform: uppercase; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.cta-copy .label::before { content: ""; width: 24px; height: 1px; background: var(--amber); }
.cta-copy h2 { font-size: clamp(26px, 3.6vw, 40px); color: var(--white); line-height: 1.1; max-width: 560px; }
.cta-copy h2 em { font-style: normal; color: var(--amber); }
.cta-copy p { margin-top: 16px; color: #C7D2DC; font-size: 15.5px; max-width: 460px; line-height: 1.6; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }

/* ═══════════════════════════════════════
   CONTACTO
═══════════════════════════════════════ */
.contacto { background: var(--white); }
.contacto-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.contact-info .item { margin-bottom: 26px; }
.contact-info .k { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--amber-dark); letter-spacing: .1em; margin-bottom: 6px; text-transform: uppercase; }
.contact-info .v { font-size: 15.5px; color: var(--navy); font-weight: 500; }
.contact-info .v small { font-size: 13px; font-weight: 400; color: var(--steel); display: block; margin-top: 2px; }
.contact-divider { height: 1px; background: var(--paper-2); margin: 32px 0; }
form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: .06em; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--paper-2); background: var(--paper);
  padding: 13px 15px; font-family: 'Inter', sans-serif; font-size: 14.5px;
  border-radius: var(--r); color: var(--ink);
  transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); background: var(--white); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
textarea { resize: vertical; min-height: 112px; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer { background: var(--navy); color: #9FB0BE; padding: 56px 0 36px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; margin-bottom: 40px; }
.f-brand { color: var(--white); font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 16px; }
.f-role { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .08em; color: #7C8FA0; margin-top: 4px; }
.f-links { display: flex; gap: 28px; }
.f-links a { font-size: 13.5px; }
.f-links a:hover { color: var(--amber); }
.f-social { display: flex; gap: 12px; }
.f-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; color: #9FB0BE; transition: all .15s; }
.f-social a:hover { border-color: var(--amber); color: var(--amber); }
.f-bottom { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: #6E8090; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ═══════════════════════════════════════
   WHATSAPP FLOTANTE
═══════════════════════════════════════ */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 100;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: transform .25s ease, box-shadow .25s ease;
  animation: waEntrance .5s ease 1.2s both;
}
.wa-float:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 12px 36px rgba(37,211,102,.55); }
.wa-float.active { transform: scale(1.05); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

.wa-float__pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  border: 3px solid #25D366; opacity: 0;
  animation: waPulse 2.5s ease-out 2s infinite;
}
.wa-float__badge {
  position: absolute; top: -2px; right: -2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #e53e3e; color: #fff;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  animation: waBadge .4s ease 2s both;
}
@keyframes waEntrance {
  from { opacity: 0; transform: scale(.4) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes waPulse {
  0%   { transform: scale(1);    opacity: .7; }
  100% { transform: scale(1.55); opacity: 0;  }
}
@keyframes waBadge {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* Tarjeta emergente */
.wa-card {
  position: fixed; bottom: 100px; right: 28px; z-index: 99;
  width: 310px; border-radius: 18px;
  background: #fff; overflow: hidden;
  box-shadow: 0 16px 60px rgba(0,0,0,.18);
  opacity: 0; pointer-events: none;
  transform: translateY(16px) scale(.96);
  transform-origin: bottom right;
  transition: opacity .3s ease, transform .3s ease;
}
.wa-card.open { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }

.wa-card__header {
  background: #075E54;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.wa-card__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.wa-card__avatar img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
}
.wa-card__online {
  position: absolute; bottom: 1px; right: 1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #25D366; border: 2px solid #075E54;
}
.wa-card__meta { flex: 1; min-width: 0; }
.wa-card__meta strong { display: block; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.wa-card__meta span { font-size: 12px; color: rgba(255,255,255,.72); }
.wa-card__close {
  width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.15); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.wa-card__close:hover { background: rgba(255,255,255,.28); }
.wa-card__close svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.5; }

.wa-card__body {
  padding: 20px;
  background: #ECE5DD;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c5b8ad' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}
.wa-card__bubble {
  background: #fff; border-radius: 0 12px 12px 12px;
  padding: 14px 16px; max-width: 92%;
  box-shadow: 0 2px 8px rgba(0,0,0,.08); position: relative;
}
.wa-card__bubble::before {
  content: ''; position: absolute; top: 0; left: -8px;
  border: 8px solid transparent;
  border-right-color: #fff; border-top-color: #fff;
}
.wa-card__bubble p { font-size: 14px; color: #303030; line-height: 1.6; margin-bottom: 6px; }
.wa-card__bubble p:last-of-type { margin-bottom: 8px; }
.wa-card__time { display: block; text-align: right; font-size: 11px; color: #999; }

.wa-card__cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px; background: #25D366; color: #fff;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700;
  text-decoration: none; transition: background .2s;
}
.wa-card__cta:hover { background: #20b858; }
.wa-card__cta svg { flex-shrink: 0; }
@media (max-width: 400px) {
  .wa-card { width: calc(100vw - 2rem); right: 1rem; }
  .wa-float { right: 1rem; bottom: 24px; }
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .proceso-track { grid-template-columns: 1fr 1fr; gap: 40px; }
  .proceso-track::before { display: none; }
  .paso { align-items: flex-start; text-align: left; }
  .faq-layout { grid-template-columns: 1fr; gap: 44px; }
  .faq-intro { position: static; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-copy .label { justify-content: center; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .nos-preview-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 900px) {
  /* Nav — activar hamburguesa en tablet/móvil */
  nav ul { display: none; }
  .menu-toggle { display: block; }
  .nav-right .btn { display: none; }
  /* Contenido */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stat-block { border-left: none; padding-left: 0; }
  .nosotros-grid, .contacto-grid { grid-template-columns: 1fr; gap: 48px; }
  .grid-servicios { grid-template-columns: 1fr 1fr; }
  .sv-preview-grid { grid-template-columns: 1fr 1fr; }
  .grid-pq { grid-template-columns: 1fr 1fr; }
  .grid-testimonios { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .hstat { border-left: none; padding-left: 0; }
  .grid-galeria { grid-template-columns: 1fr 1fr; }
  .g-tile:nth-child(3) { grid-row: auto; }
  /* Page hero */
  .page-hero { min-height: 380px; }
  .page-hero-inner { padding: 60px 0 52px; }
  .page-hero h1 { font-size: clamp(26px, 4vw, 42px); }
  .page-hero .lead { font-size: 15px; }
  .page-hero-ghost { font-size: clamp(60px, 10vw, 130px); }
  /* Section padding */
  section { padding: 80px 0; }
}

@media (max-width: 680px) {
  /* Contenedor */
  .wrap { padding: 0 24px; }
  /* Secciones */
  section { padding: 64px 0; }
  /* Nav */
  nav ul { display: none; }
  .menu-toggle { display: block; }
  .nav-right .btn:not(.menu-toggle) { display: none; }
  /* Hero index */
  .hero-inner { padding: 72px 0 44px; }
  .hero-content { text-align: center; }
  .hero h1 { font-size: clamp(28px, 6vw, 44px); }
  .hero .lead { font-size: 15px; max-width: 100%; }
  .hero-perfil { text-align: left; }
  .hero-ctas { display: none; }
  .hero-stats { display: none; }
  .eyebrow { font-size: 10px; letter-spacing: .12em; margin-bottom: 18px; }
  /* Page hero */
  .page-hero { min-height: 320px; }
  .page-hero-inner { padding: 48px 0 40px; text-align: center; }
  .page-hero h1 { font-size: clamp(22px, 5vw, 36px); }
  .page-hero .lead { font-size: 14px; max-width: 100%; margin-top: 12px; }
  .page-hero .breadcrumb { font-size: 10px; margin-bottom: 14px; justify-content: center; }
  .page-hero-inner .eyebrow { justify-content: center; }
  .page-hero-ghost { font-size: clamp(44px, 9vw, 90px); bottom: 24px; }
  /* Grids */
  .grid-servicios { grid-template-columns: 1fr; }
  .sv-preview-grid { grid-template-columns: 1fr; }
  .grid-pq { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .grid-galeria { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .proceso-track { grid-template-columns: 1fr; }
  /* Footer */
  .footer-top { flex-direction: column; gap: 24px; }
  .f-links { flex-wrap: wrap; gap: 16px; }
  .f-bottom { flex-direction: column; gap: 8px; text-align: center; }
  /* Buttons */
  .btn-lg { padding: 13px 26px; font-size: 13.5px; }
}

@media (max-width: 480px) {
  /* Contenedor */
  .wrap { padding: 0 20px; }
  /* Secciones */
  section { padding: 52px 0; }
  /* Hero index */
  .hero-inner { padding: 60px 0 36px; }
  .hero h1 { font-size: clamp(24px, 7vw, 36px); line-height: 1.1; }
  .hero .lead { font-size: 14px; line-height: 1.55; }
  .hero-ticker { margin-top: 28px; }
  .eyebrow { font-size: 9px; margin-bottom: 14px; }
  .eyebrow::before { width: 18px; }
  /* Page hero */
  .page-hero { min-height: 280px; }
  .page-hero-inner { padding: 40px 0 32px; }
  .page-hero h1 { font-size: clamp(20px, 5.5vw, 30px); line-height: 1.15; }
  .page-hero .lead { font-size: 13px; }
  .page-hero-ghost { display: none; }
  .ph-corner { display: none; }
  /* Stats strip */
  .stats-strip { padding: 0; }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .stat-block {
    padding: 28px 20px;
    border-left: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .stat-block:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.08); }
  .stat-big { font-size: clamp(30px, 9vw, 44px); }
  .stat-desc { font-size: 12px; margin-top: 6px; }
  /* Grids */
  .grid-galeria { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .grid-pq { grid-template-columns: 1fr; }
  .grid-servicios { grid-template-columns: 1fr; }
  /* Section headers */
  .section-head { margin-bottom: 32px; }
  /* Buttons */
  .btn { padding: 10px 18px; font-size: 13px; }
  .btn-lg { padding: 12px 22px; font-size: 13px; width: 100%; justify-content: center; }
  /* Cards */
  .pq-card { padding: 22px 18px; }
  .card-servicio { padding: 28px 22px; }
  /* Footer */
  .f-brand-wrap img { height: 36px !important; }
  .f-links { gap: 12px; }
  .f-links a { font-size: 12px; }
  .f-social a { width: 34px; height: 34px; }
  footer { padding-top: 44px; padding-bottom: 24px; }
  /* WA flotante */
  .wa-float { width: 52px; height: 52px; bottom: 20px; right: 16px; }
  .wa-float svg { width: 26px; height: 26px; }
  .wa-card { width: calc(100vw - 32px); right: 16px; bottom: 86px; }
  /* FAQ */
  .faq-q { font-size: 14px; padding: 16px 14px; }
  .faq-a-inner { font-size: 13.5px; padding: 14px; }
  /* Proceso */
  .paso-num { width: 36px; height: 36px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
