/* ============================================================
   INGENIERÍA DEL ISTMO — Sistema de diseño
   Mobile first · Paleta derivada del logo (petróleo + verde istmo)
   ============================================================ */

:root {
  /* Color */
  --ink: #0c1d24;          /* petróleo casi negro */
  --ink-2: #11272f;        /* superficie oscura elevada */
  --ink-3: #17323c;        /* borde/hover en oscuro */
  --teal: #3f8573;         /* verde istmo (mapa del logo) */
  --teal-strong: #2e6a5b;
  --teal-light: #7cc0ae;
  --amber: #f0a422;        /* acento de acción */
  --amber-strong: #d98d0b;
  --paper: #f4f7f6;        /* fondo claro */
  --white: #ffffff;
  --text: #24363d;         /* texto sobre claro */
  --text-soft: #5b6f76;
  --text-inv: #e8f0ef;     /* texto sobre oscuro */
  --text-inv-soft: #9db3b4;
  --line: #dde6e4;

  /* Tipografía */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Métricas */
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --header-h: 68px;
  --shadow-1: 0 2px 10px rgba(12, 29, 36, .07);
  --shadow-2: 0 12px 36px rgba(12, 29, 36, .14);
  --shadow-accent: 0 10px 28px rgba(240, 164, 34, .32);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-strong); text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--ink); font-weight: 700; }
button { font: inherit; background: none; border: 0; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

/* ---------- Utilidades tipográficas ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal-strong);
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--amber); }
.on-dark .kicker, .kicker.inv { color: var(--teal-light); }

.section-title { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin: 14px 0 16px; letter-spacing: -.01em; }
.section-sub { color: var(--text-soft); max-width: 640px; font-size: 1.02rem; }
.on-dark .section-title { color: var(--text-inv); }
.on-dark .section-sub { color: var(--text-inv-soft); }

section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 100px 0; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: 999px;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--amber); color: #201703; box-shadow: var(--shadow-accent); }
.btn-accent:hover { background: var(--amber-strong); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid rgba(232, 240, 239, .35); color: var(--text-inv); }
.btn-ghost:hover { border-color: var(--teal-light); color: var(--teal-light); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--text-inv); }
.btn-dark:hover { background: var(--ink-3); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header-h);
  background: rgba(12, 29, 36, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(124, 192, 174, .12);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(12, 29, 36, .96); box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { color: var(--teal-light); width: 30px; }
.brand-mark svg { width: 30px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; font-size: .92rem; color: var(--white); }
.brand-sub { font-family: var(--font-display); font-weight: 500; letter-spacing: .34em; font-size: .58rem; color: var(--teal-light); }

/* Navegación escritorio */
.main-nav { display: none; }
.nav-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; border-radius: 10px;
}
.nav-burger span { display: block; height: 2px; width: 100%; background: var(--text-inv); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 980px) {
  .nav-burger { display: none; }
  .main-nav { display: flex; align-items: center; gap: 6px; }
  .nav-link {
    position: relative; color: var(--text-inv); font-weight: 500; font-size: .95rem;
    padding: 10px 14px; border-radius: 10px; transition: color .2s ease;
    display: inline-flex; align-items: center; gap: 6px;
  }
  .nav-link::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
    background: var(--amber); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
  }
  .nav-link:hover, .nav-link.active { color: var(--white); }
  .nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
  .nav-cta { margin-left: 12px; padding: 10px 22px; font-size: .9rem; }

  .nav-drop { position: relative; }
  .nav-drop-menu {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px;
    background: var(--white); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-2); padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .nav-drop-menu a {
    display: block; padding: 11px 14px; border-radius: 8px;
    color: var(--text); font-size: .92rem; font-weight: 500;
    transition: background .18s ease, color .18s ease, padding-left .18s ease;
  }
  .nav-drop-menu a:hover { background: var(--paper); color: var(--teal-strong); padding-left: 18px; }
  .nav-drop-menu .drop-all { color: var(--teal-strong); font-weight: 600; border-top: 1px solid var(--line); margin-top: 6px; border-radius: 0 0 8px 8px; }
  .nav-drop:hover .chev { transform: rotate(180deg); }
  .chev { transition: transform .25s ease; }
}

/* Navegación móvil (drawer) */
@media (max-width: 979.98px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 55;
    display: flex; flex-direction: column; gap: 4px;
    background: var(--ink); padding: 26px 22px 40px;
    transform: translateX(100%); transition: transform .32s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-link {
    color: var(--text-inv); font-family: var(--font-display); font-weight: 600;
    font-size: 1.25rem; padding: 14px 6px; border-bottom: 1px solid rgba(124, 192, 174, .12);
    display: flex; align-items: center; justify-content: space-between;
  }
  .nav-link.active { color: var(--teal-light); }
  .nav-drop-menu { display: flex; flex-direction: column; padding: 6px 0 8px; }
  .nav-drop-menu a { color: var(--text-inv-soft); padding: 11px 6px 11px 20px; font-size: 1rem; border-left: 2px solid var(--ink-3); transition: color .2s, border-color .2s; }
  .nav-drop-menu a:hover { color: var(--teal-light); border-color: var(--teal-light); }
  .nav-drop-menu .drop-all { color: var(--amber); }
  .nav-cta { margin-top: 22px; justify-content: center; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  padding: calc(var(--header-h) + 64px) 0 84px;
  min-height: 82vh;
  display: flex; align-items: center;
}
.hero::before {
  /* retícula técnica */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124, 192, 174, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 192, 174, .055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
  animation: grid-drift 26s linear infinite;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 78% 18%, rgba(63, 133, 115, .28), transparent 70%),
    radial-gradient(ellipse 45% 40% at 12% 85%, rgba(240, 164, 34, .10), transparent 70%);
}
@keyframes grid-drift { from { background-position: 0 0; } to { background-position: 52px 52px; } }

.hero-inner { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(124, 192, 174, .3); border-radius: 999px;
  padding: 7px 16px; font-size: .8rem; font-weight: 500; color: var(--teal-light);
  background: rgba(63, 133, 115, .12);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: pulse-dot 2.2s ease infinite; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(240,164,34,.5); } 55% { box-shadow: 0 0 0 7px rgba(240,164,34,0); } }

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 6.5vw, 3.9rem);
  letter-spacing: -.02em;
  margin: 22px 0 18px;
  max-width: 780px;
}
.hero h1 .hl { color: var(--teal-light); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px;
  background: rgba(240, 164, 34, .28); z-index: -1; border-radius: 3px;
  transform: scaleX(0); transform-origin: left;
  animation: hl-in 1s .7s cubic-bezier(.6, 0, .2, 1) forwards;
}
@keyframes hl-in { to { transform: scaleX(1); } }
.hero p.lead { color: var(--text-inv-soft); font-size: clamp(1rem, 2.4vw, 1.18rem); max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Franja de métricas */
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-top: 58px; padding-top: 34px;
  border-top: 1px solid rgba(124, 192, 174, .16);
  max-width: 720px;
}
.stat .stat-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.5rem); color: var(--white); line-height: 1;
  display: flex; align-items: baseline; gap: 2px;
}
.stat .stat-num .plus { color: var(--amber); }
.stat .stat-label { color: var(--text-inv-soft); font-size: .82rem; margin-top: 7px; }

/* ---------- Animaciones de entrada (scroll reveal) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.4, 0, .2, 1), transform .7s cubic-bezier(.4, 0, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-l { opacity: 0; transform: translateX(-30px); transition: opacity .7s ease, transform .7s ease; }
.reveal-r { opacity: 0; transform: translateX(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal-l.in, .reveal-r.in { opacity: 1; transform: none; }
.d-1 { transition-delay: .08s; } .d-2 { transition-delay: .16s; }
.d-3 { transition-delay: .24s; } .d-4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-l, .reveal-r { opacity: 1; transform: none; transition: none; }
  .hero::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Cards de servicios ---------- */
.services-grid { display: grid; gap: 20px; margin-top: 46px; }
@media (min-width: 700px) { .services-grid { grid-template-columns: 1fr 1fr; } }

.service-card {
  position: relative; display: block; overflow: hidden;
  background: var(--white); border-radius: var(--radius);
  padding: 30px 26px 28px; box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s ease, border-color .3s ease;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, var(--teal), var(--teal-light));
  transform: scaleY(0); transform-origin: top; transition: transform .35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
  width: 58px; height: 58px; border-radius: 14px;
  display: grid; place-items: center; color: var(--teal-strong);
  background: linear-gradient(135deg, rgba(63, 133, 115, .12), rgba(124, 192, 174, .2));
  margin-bottom: 20px; transition: transform .35s ease, background .3s ease, color .3s ease;
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); background: var(--teal-strong); color: var(--white); }
.service-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.service-card p { color: var(--text-soft); font-size: .95rem; }
.service-more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 18px;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--teal-strong);
}
.service-more svg { transition: transform .25s ease; }
.service-card:hover .service-more svg { transform: translateX(5px); }

/* Chips de servicios complementarios */
.extra-services { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 34px; }
.extra-services .label { font-size: .9rem; color: var(--text-soft); font-weight: 600; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px dashed var(--teal); color: var(--teal-strong);
  border-radius: 999px; padding: 8px 18px; font-size: .88rem; font-weight: 500;
  transition: background .25s ease, color .25s ease, border-style .25s ease;
}
.chip:hover { background: var(--teal-strong); color: var(--white); border-style: solid; }

/* ---------- Sección quiénes somos (inicio) ---------- */
.about-split { display: grid; gap: 44px; align-items: center; }
@media (min-width: 940px) { .about-split { grid-template-columns: 1.05fr .95fr; } }
.about-visual { position: relative; }
.about-visual .frame {
  border-radius: var(--radius); overflow: hidden;
  background: var(--ink); box-shadow: var(--shadow-2);
  aspect-ratio: 4 / 3.1; display: grid; place-items: center; position: relative;
}
.about-visual .frame img { width: 62%; height: auto; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.about-visual .frame::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124, 192, 174, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 192, 174, .08) 1px, transparent 1px);
  background-size: 34px 34px;
}
.about-visual .tag-float {
  position: absolute; right: -8px; bottom: 22px;
  background: var(--white); border-radius: 14px; box-shadow: var(--shadow-2);
  padding: 14px 20px; display: flex; align-items: center; gap: 12px;
  animation: float-y 4.5s ease-in-out infinite;
}
@media (min-width: 940px) { .about-visual .tag-float { right: -26px; } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.tag-float .num { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--teal-strong); line-height: 1; }
.tag-float .txt { font-size: .78rem; color: var(--text-soft); line-height: 1.3; }

.check-list { display: grid; gap: 13px; margin-top: 26px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: .98rem; }
.check-list .check {
  flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  display: grid; place-items: center; color: var(--white); background: var(--teal);
}
.check-list .check svg { width: 11px; height: 11px; }

/* ---------- Pilares ---------- */
.pillars { background: var(--ink); position: relative; overflow: hidden; }
.pillars::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(124, 192, 174, .12) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000, transparent 80%);
}
.pillars-grid { display: grid; gap: 16px; margin-top: 46px; position: relative; }
@media (min-width: 640px) { .pillars-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pillars-grid { grid-template-columns: repeat(4, 1fr); } }
.pillar {
  border: 1px solid rgba(124, 192, 174, .16); border-radius: var(--radius);
  padding: 28px 24px; background: rgba(17, 39, 47, .65);
  backdrop-filter: blur(6px);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.pillar:hover { transform: translateY(-6px); border-color: var(--teal-light); background: rgba(23, 50, 60, .85); }
.pillar .pillar-num { font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: var(--amber); letter-spacing: .12em; }
.pillar h3 { color: var(--white); font-size: 1.15rem; margin: 12px 0 8px; }
.pillar p { color: var(--text-inv-soft); font-size: .9rem; }

/* ---------- Banda CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--teal-strong), var(--teal) 55%, #4d9a85); padding: 64px 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.cta-band-inner { position: relative; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
@media (min-width: 860px) { .cta-band-inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.cta-title { color: var(--white); font-size: clamp(1.5rem, 4vw, 2.2rem); }
.cta-sub { color: rgba(255, 255, 255, .82); margin-top: 8px; max-width: 480px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--text-inv-soft); padding: 64px 0 0; }
.footer-grid { display: grid; gap: 38px; padding-bottom: 46px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1.1fr .8fr 1.2fr; } }
.brand-footer .brand-name { font-size: 1rem; }
.footer-desc { font-size: .9rem; margin-top: 16px; max-width: 320px; }
.footer-heading { color: var(--white); font-size: .95rem; letter-spacing: .06em; margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--text-inv-soft); font-size: .9rem; transition: color .2s ease, padding-left .2s ease; }
.footer-links a:hover { color: var(--teal-light); padding-left: 5px; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; font-size: .9rem; }
.footer-contact svg { flex: none; margin-top: 3px; color: var(--teal-light); }
.footer-contact a { color: var(--text-inv-soft); }
.footer-contact a:hover { color: var(--teal-light); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
  border-top: 1px solid rgba(124, 192, 174, .12);
  padding-block: 22px; font-size: .82rem;
}
.footer-credit a { color: var(--teal-light); font-weight: 600; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(37, 211, 102, .55); }
.wa-float-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.55); opacity: 0; } }

/* ============================================================
   Páginas interiores
   ============================================================ */

/* Hero interior */
.page-hero {
  position: relative; overflow: hidden; background: var(--ink);
  padding: calc(var(--header-h) + 58px) 0 64px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124, 192, 174, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 192, 174, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 50% 0%, #000 20%, transparent 80%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 85% 10%, rgba(63, 133, 115, .3), transparent 70%);
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--text-inv-soft); margin-bottom: 20px; }
.breadcrumbs a { color: var(--teal-light); }
.breadcrumbs .sep { opacity: .5; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 5.5vw, 3.1rem); letter-spacing: -.015em; max-width: 820px; }
.page-hero .lead { color: var(--text-inv-soft); font-size: clamp(.98rem, 2.2vw, 1.12rem); max-width: 700px; margin-top: 18px; }
.page-hero .hero-actions { margin-top: 30px; }

/* Bloques alcance / aplicaciones */
.scope-grid { display: grid; gap: 18px; margin-top: 44px; }
@media (min-width: 700px) { .scope-grid { grid-template-columns: 1fr 1fr; } }
.scope-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-1);
  display: flex; gap: 18px; align-items: flex-start;
  transition: transform .28s ease, box-shadow .28s ease;
}
.scope-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.scope-item .n {
  flex: none; font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  color: var(--teal-strong); background: linear-gradient(135deg, rgba(63,133,115,.12), rgba(124,192,174,.22));
}
.scope-item h3 { font-size: 1.05rem; margin-bottom: 7px; }
.scope-item p { color: var(--text-soft); font-size: .93rem; }

.uses { background: var(--white); }
.uses-grid { display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 640px) { .uses-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .uses-grid { grid-template-columns: repeat(3, 1fr); } }
.use-card {
  border-radius: var(--radius); padding: 26px 24px;
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .28s ease, border-color .28s ease, background .28s ease;
}
.use-card:hover { transform: translateY(-4px); border-color: var(--teal); background: #eef5f2; }
.use-card .use-icon { color: var(--teal-strong); margin-bottom: 16px; }
.use-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.use-card p { color: var(--text-soft); font-size: .9rem; }

/* Servicios relacionados */
.related { background: var(--paper); }
.related-grid { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 700px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 20px; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: var(--teal); color: var(--teal-strong); }
.related-card svg { flex: none; color: var(--amber); }

/* Página nosotros */
.mv-grid { display: grid; gap: 20px; margin-top: 46px; }
@media (min-width: 860px) { .mv-grid { grid-template-columns: 1fr 1fr; } }
.mv-card {
  border-radius: var(--radius); padding: 34px 30px; position: relative; overflow: hidden;
  background: var(--ink); color: var(--text-inv);
}
.mv-card::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(124,192,174,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(124,192,174,.07) 1px, transparent 1px);
  background-size: 36px 36px;
}
.mv-card > * { position: relative; }
.mv-card .mv-icon { color: var(--amber); margin-bottom: 18px; }
.mv-card h3 { color: var(--white); font-size: 1.35rem; margin-bottom: 12px; }
.mv-card p { color: var(--text-inv-soft); font-size: .96rem; }
.mv-card.alt { background: linear-gradient(135deg, var(--teal-strong), var(--teal)); }
.mv-card.alt p { color: rgba(255,255,255,.85); }
.mv-card.alt .mv-icon { color: var(--white); }

/* Página contacto */
.contact-grid { display: grid; gap: 22px; margin-top: 46px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-1); display: flex; gap: 18px; align-items: flex-start;
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.contact-card .c-icon {
  flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  color: var(--white); background: linear-gradient(135deg, var(--teal-strong), var(--teal));
}
.contact-card.wa .c-icon { background: #25d366; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 5px; }
.contact-card p, .contact-card a.big { color: var(--text-soft); font-size: .94rem; }
.contact-card a.big { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin-top: 2px; transition: color .2s; }
.contact-card a.big:hover { color: var(--teal-strong); }
.contact-stack { display: grid; gap: 18px; align-content: start; }
.map-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2);
  border: 1px solid var(--line); min-height: 380px; background: var(--line);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* Página índice de servicios: reusa services-grid */
.services-grid.cols-1 { grid-template-columns: 1fr; max-width: 860px; }
@media (min-width: 700px) { .services-grid.cols-2 { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   Fotografía
   ============================================================ */

/* Hero con fotografía de fondo */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .34; filter: saturate(.65);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,29,36,.55), rgba(12,29,36,.25) 45%, var(--ink) 100%);
}
.hero::before, .hero::after { z-index: 1; }
.page-hero .hero-bg img { opacity: .28; }
.page-hero .hero-bg::after {
  background: linear-gradient(180deg, rgba(12,29,36,.6), rgba(12,29,36,.35) 50%, var(--ink) 100%);
}
.page-hero::before, .page-hero::after { z-index: 1; }

/* Galería de proyectos destacados */
.projects-grid { display: grid; gap: 16px; margin-top: 46px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .projects-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.project-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1 / 1; background: var(--ink-2); box-shadow: var(--shadow-1);
}
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1), filter .4s ease;
  filter: grayscale(1) contrast(1.05);
}
.project-card:hover img { transform: scale(1.06); filter: grayscale(.2) contrast(1.02); }
.project-card .project-cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(12, 29, 36, .92));
  color: var(--white);
}
.project-cap .p-name { font-family: var(--font-display); font-weight: 700; font-size: .98rem; display: block; }
.project-cap .p-tag { color: var(--teal-light); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }

/* Franja de logos de clientes (marquee) */
.clients { background: var(--white); padding: 56px 0; overflow: hidden; }
.clients-head { text-align: center; margin-bottom: 34px; }
.clients-track-wrap {
  position: relative; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients-track {
  display: flex; align-items: center; gap: 56px; width: max-content;
  animation: clients-scroll 32s linear infinite;
  padding-block: 6px;
}
.clients-track-wrap:hover .clients-track { animation-play-state: paused; }
.clients-track img {
  height: 44px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .55;
  transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}
.clients-track img:hover { filter: grayscale(0); opacity: 1; transform: scale(1.07); }
@keyframes clients-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .clients-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* Galería simple en páginas de servicio */
.media-grid { display: grid; gap: 16px; margin-top: 44px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .media-grid.g4 { grid-template-columns: repeat(4, 1fr); } }
.media-grid figure {
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-1);
  position: relative; aspect-ratio: 4 / 3; background: var(--line);
}
.media-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.media-grid figure:hover img { transform: scale(1.05); }

/* Bloque foto + texto en páginas de servicio */
.photo-split { display: grid; gap: 34px; align-items: center; margin-top: 44px; }
@media (min-width: 900px) { .photo-split { grid-template-columns: 1fr 1fr; gap: 50px; } }
.photo-split .ph {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2);
}
.photo-split .ph img { width: 100%; height: auto; display: block; }
