/* =========================================================
   ASTEC — Hoja de estilos principal
   Paleta adaptada al logo original: azul noche, grafito,
   dorado industrial, plata metálica y blanco.
   ========================================================= */

:root {
  --navy: #070f19;          /* fondo exacto del logo */
  --navy-2: #0d1824;
  --graphite: #1b232d;
  --graphite-2: #2a333e;
  --steel: #8b96a3;
  --silver: #c9d0d8;
  --line: #e3e6ea;
  --bg: #ffffff;
  --bg-soft: #f3f4f6;
  --text: #16202b;
  --text-soft: #4a5562;
  --gold: #d1a64f;          /* dorado del logo, sobre fondos oscuros */
  --gold-2: #e2bb63;
  --gold-ink: #7a5a14;      /* dorado oscuro para texto sobre fondo claro (AA) */
  --wa: #1f9d55;
  --wa-2: #178246;
  --error: #b42318;
  --ok: #157f3d;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(7, 15, 25, .10);
  --shadow-lg: 0 24px 60px rgba(7, 15, 25, .22);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Bahnschrift", "Segoe UI", "DIN Alternate", "Arial Narrow", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65;
  color: var(--text); background: var(--bg); text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 600; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: var(--navy);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Iconos ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 22px rgba(209, 166, 79, .28); }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--graphite-2); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-2); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: .5em 1.1em; font-size: .93rem; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .06); transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; padding: .55em .8em; color: #d8dde3; text-decoration: none; font-weight: 600; font-size: .95rem;
  border-radius: var(--radius-sm); position: relative; transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: .8em; right: .8em; bottom: .3em; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: #fff; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { margin-left: 10px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2);
  background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, opacity .2s;
}
.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); }

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 12px var(--gutter) 24px; border-top: 1px solid rgba(255, 255, 255, .08);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s;
    box-shadow: 0 30px 40px rgba(0, 0, 0, .4);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; }
  .nav__link { padding: .9em .4em; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .06); border-radius: 0; }
  .nav__link::after { display: none; }
  .nav__link[aria-current="page"] { color: var(--gold); }
  .nav__cta { margin: 18px 0 0; }
  .brand img { height: 40px; }
}
/* Sin JavaScript el menú móvil queda visible como lista */
.no-js .nav-toggle { display: none; }
@media (max-width: 1060px) {
  .no-js .nav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
  .no-js .header-inner { height: auto; flex-wrap: wrap; padding-block: 10px; }
}

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy); color: #e7ebef; }
.section--graphite { background: linear-gradient(180deg, var(--graphite) 0%, var(--navy-2) 100%); color: #e7ebef; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; text-transform: uppercase; letter-spacing: .16em;
  font-size: .8rem; font-weight: 700; color: var(--gold-ink); margin-bottom: .9em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--dark .eyebrow, .section--graphite .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-soft); }
.section--dark .lead, .section--graphite .lead { color: #b9c2cc; }

/* ---------- Portada ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--navy);
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(209, 166, 79, .14), transparent 60%),
    linear-gradient(115deg, transparent 0 55%, rgba(255, 255, 255, .025) 55% 56%, transparent 56%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 80px);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 .accent { color: var(--gold); }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #c4ccd5; max-width: 38em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 30px; }
.sec-badge {
  display: inline-flex; align-items: flex-start; gap: 14px; padding: 14px 18px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(209, 166, 79, .35); max-width: 34em;
}
.sec-badge .icon { width: 34px; height: 34px; color: var(--gold); margin-top: 2px; }
.sec-badge strong { display: block; color: #fff; font-size: 1.02rem; }
.sec-badge small { display: block; color: #aeb8c3; font-size: .86rem; line-height: 1.45; margin-top: 2px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 22px 0 0; color: #c4ccd5; font-size: .95rem; }
.hero__checks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__checks .icon { color: var(--gold); }

.hero__media { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(380px, 46vw, 560px); }
.hero__media figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero__media figure:first-child { grid-row: span 2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hero__media figure:hover img { transform: scale(1.04); }
.hero__media figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: rgba(7, 15, 25, .78); color: #fff; backdrop-filter: blur(4px);
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { height: 420px; }
}
@media (max-width: 520px) {
  .hero__media { height: 340px; gap: 10px; }
  .hero__actions .btn { width: 100%; }
}

/* Cabecera de páginas interiores */
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 88px); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 80% at 90% 0%, rgba(209, 166, 79, .16), transparent 60%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 80px);
}
.page-hero .container { position: relative; }
.page-hero p { color: #c4ccd5; max-width: 46em; font-size: 1.1rem; margin: 0; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .9rem; color: #9aa5b1; }
.breadcrumb a { color: #c4ccd5; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #5f6b78; }

/* ---------- Tarjetas de servicio ---------- */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.card {
  grid-column: span 2; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.cards .card:nth-child(4), .cards .card:nth-child(5) { grid-column: span 3; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--graphite); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__media img.pos-top { object-position: center 16%; }
.card__icon {
  position: absolute; left: 18px; bottom: -22px; width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; background: var(--navy); color: var(--gold); box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
  border: 1px solid rgba(209, 166, 79, .4);
}
.card__icon .icon { width: 26px; height: 26px; }
.card__body { padding: 36px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--text-soft); font-size: .98rem; }
.card__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); text-decoration: none; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:hover { color: var(--gold-ink); }
.media-placeholder {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center; color: #c4ccd5; padding: 16px;
  background: radial-gradient(circle at 30% 20%, rgba(209, 166, 79, .22), transparent 55%), linear-gradient(135deg, var(--graphite-2), var(--navy));
}
.media-placeholder .icon { width: 64px; height: 64px; color: var(--gold); margin: 0 auto 8px; stroke-width: 1.3; }
.media-placeholder span { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card, .cards .card:nth-child(4), .cards .card:nth-child(5) { grid-column: span 1; }
  .cards .card:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; }
  .cards .card:nth-child(5) { grid-column: span 1; }
}

/* ---------- Nosotros ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--reverse > :first-child { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__media .tag {
  position: absolute; right: -12px; bottom: 28px; background: var(--navy); color: #fff; padding: 16px 20px;
  border-radius: var(--radius); box-shadow: var(--shadow-lg); border-left: 4px solid var(--gold); max-width: 250px; font-size: .92rem; line-height: 1.4;
}
.split__media .tag strong { display: block; color: var(--gold); font-size: 1.05rem; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; list-style: none; padding: 0; margin: 26px 0 30px; }
.values li { display: flex; gap: 12px; align-items: flex-start; }
.values .icon { color: var(--gold-ink); width: 24px; height: 24px; margin-top: 2px; }
.values strong { display: block; }
.values span { color: var(--text-soft); font-size: .93rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .split__media img { aspect-ratio: 4 / 3; }
  .split__media .tag { right: 12px; }
}
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* ---------- Por qué elegir ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  padding: 26px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08); transition: border-color .3s, background-color .3s, transform .3s var(--ease);
}
.feature:hover { border-color: rgba(209, 166, 79, .5); background: rgba(255, 255, 255, .06); transform: translateY(-4px); }
.feature .icon { width: 34px; height: 34px; color: var(--gold); margin-bottom: 14px; }
.feature h3 { color: #fff; font-size: 1.12rem; }
.feature p { color: #aeb8c3; font-size: .95rem; margin: 0; }
.feature--wide { grid-column: span 2; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } .feature--wide { grid-column: span 1; } }

/* ---------- Galería ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn {
  min-height: 42px; padding: .45em 1.05em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 600; font-size: .93rem; cursor: pointer; color: var(--text); transition: all .2s;
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.g-item { margin: 0; position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--graphite); aspect-ratio: 3 / 4; }
.g-item.is-hidden { display: none; }
.g-item a { display: block; width: 100%; height: 100%; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .3s; }
.g-item a:hover img, .g-item a:focus-visible img { transform: scale(1.06); filter: brightness(.8); }
.g-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; color: #fff; font-size: .88rem; font-weight: 600; line-height: 1.3;
  background: linear-gradient(transparent, rgba(7, 15, 25, .88)); pointer-events: none;
}
.g-item .ba {
  position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; pointer-events: none;
}
.ba--antes { background: #fff; color: var(--navy); }
.ba--despues { background: var(--gold); color: var(--navy); }
.g-zoom {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(7, 15, 25, .7); color: #fff; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.g-item a:hover .g-zoom, .g-item a:focus-visible .g-zoom { opacity: 1; }
.gallery-empty {
  display: none; padding: 28px; border-radius: var(--radius); background: var(--bg-soft); border: 1px dashed #b9c0c9; color: var(--text-soft); text-align: center;
}
.gallery-empty.is-visible { display: block; }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } .g-item figcaption { font-size: .8rem; } }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(4, 8, 14, .94); color: #fff;
}
.lightbox::backdrop { background: rgba(4, 8, 14, .94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__figure { margin: 0; max-width: min(1100px, 92vw); text-align: center; }
.lightbox__img { max-height: 80dvh; max-width: 100%; width: auto; margin: 0 auto; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox__caption { margin-top: 14px; color: #d6dce2; font-size: .98rem; }
.lightbox__count { color: #8f9aa6; font-size: .85rem; margin-left: 8px; }
.lb-btn {
  position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background-color .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-btn .icon { width: 24px; height: 24px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) { .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; } .lb-prev { left: calc(50% - 62px); } .lb-next { right: calc(50% - 62px); } }

/* ---------- Certificaciones ---------- */
.cert { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.cert-card {
  border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.cert-card--main { background: var(--navy); color: #e7ebef; border-color: transparent; position: relative; overflow: hidden; }
.cert-card--main::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  border: 30px solid rgba(209, 166, 79, .12);
}
.cert-card--main h3 { color: #fff; font-size: 1.5rem; }
.cert-card--main .icon-lg { width: 52px; height: 52px; color: var(--gold); margin-bottom: 16px; }
.cert-card ul { margin: 0 0 1em; }
.cert-card li { margin-bottom: .35em; }
.cert-note { font-size: .88rem; color: #9aa5b1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 14px; margin: 18px 0 0; }
.doc-slots { display: grid; gap: 12px; margin-top: 16px; }
.credential { margin: 0 0 16px; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.credential > div { display: grid; grid-template-columns: 11em 1fr; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.credential > div:last-child { border-bottom: 0; }
.credential > div:nth-child(odd) { background: var(--bg-soft); }
.credential dt { font-size: .84rem; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .04em; }
.credential dd { margin: 0; font-weight: 600; }
@media (max-width: 520px) { .credential > div { grid-template-columns: 1fr; gap: 2px; } }
.doc-slot {
  display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1.5px dashed #b9c0c9; background: var(--bg-soft); color: var(--text-soft); font-size: .93rem;
}
.doc-slot .icon { width: 28px; height: 28px; color: var(--steel); }
.doc-slot strong { display: block; color: var(--text); }
@media (max-width: 860px) { .cert { grid-template-columns: 1fr; } }

/* ---------- Proceso ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 6%; right: 6%; height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(209, 166, 79, .2));
}
.step { position: relative; text-align: center; counter-increment: step; padding: 0 4px; }
.step__num {
  position: relative; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--gold); border: 2px solid var(--gold); font-weight: 800; font-family: var(--font-display); font-size: 1.15rem;
}
.step h3 { font-size: 1rem; margin-bottom: .35em; }
.step p { font-size: .88rem; color: var(--text-soft); margin: 0; }
.section--dark .step p, .section--graphite .step p { color: #aeb8c3; }
.section--dark .step h3, .section--graphite .step h3 { color: #fff; }
@media (max-width: 1060px) {
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 640px; }
  .steps::before { top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold), rgba(209, 166, 79, .2)); }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; text-align: left; padding: 0 0 22px; }
  .step__num { margin: 0; grid-row: span 2; }
  .step h3 { margin-top: 6px; }
}

/* ---------- Formulario ---------- */
.quote { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.quote__aside ul { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.quote__aside li { display: flex; gap: 12px; align-items: flex-start; }
.quote__aside .icon { color: var(--gold); width: 22px; height: 22px; margin-top: 3px; }
.form-card { background: #fff; color: var(--text); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .95rem; }
.field .req { color: var(--error); }
.field .opt { color: var(--text-soft); font-weight: 500; font-size: .86rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7em .9em; border-radius: var(--radius-sm); border: 1.5px solid #c3c9d1; background: #fff;
  transition: border-color .2s, box-shadow .2s; font-size: 1rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(209, 166, 79, .35); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .86rem; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.hint { font-size: .85rem; color: var(--text-soft); }
.privacy-note {
  display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; padding: 12px 14px; border-radius: var(--radius-sm);
  background: #f6f1e4; color: #4b3d1a; font-size: .88rem; line-height: 1.5;
}
.privacy-note .icon { color: var(--gold-ink); width: 20px; height: 20px; margin-top: 2px; }
.privacy-note a { color: var(--gold-ink); font-weight: 700; }
.form-status { margin-top: 14px; font-weight: 600; font-size: .95rem; }
.form-status--ok { color: var(--ok); }
.form-status--error { color: var(--error); }
@media (max-width: 900px) { .quote { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.contact-card {
  padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px;
}
.contact-card .icon-wrap { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--gold); margin-bottom: 8px; }
.contact-card .icon-wrap .icon { width: 26px; height: 26px; }
.contact-card h3 { margin: 0; }
.contact-card p { color: var(--text-soft); margin: 0 0 10px; }
.contact-card .btn { margin-top: auto; align-self: flex-start; }
.contact-card a.big { font-size: 1.3rem; font-weight: 800; color: var(--navy); text-decoration: none; font-family: var(--font-display); }
.contact-card a.big--sm { font-size: 1.02rem; overflow-wrap: anywhere; }
.footer-contact a { overflow-wrap: anywhere; }

/* ---------- Servicios (detalle) ---------- */
.service-nav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.service-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: thin; }
.service-nav a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: .45em .95em; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .92rem; border: 1.5px solid var(--line); color: var(--text);
}
.service-nav a:hover { border-color: var(--navy); }
.service-nav .icon { color: var(--gold-ink); }
.service { padding-block: clamp(56px, 8vw, 96px); scroll-margin-top: calc(var(--header-h) + 64px); }
.service:nth-of-type(even) { background: var(--bg-soft); }
.service__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.service:nth-of-type(even) .service__grid > :first-child { order: 2; }
.service__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service__photos img { border-radius: var(--radius-sm); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; box-shadow: var(--shadow); }
.service__photos img:first-child:nth-last-child(1) { grid-column: span 2; aspect-ratio: 4 / 3; }
.service__photos .media-placeholder { grid-column: span 2; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.service__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.service__head .icon-wrap { width: 54px; height: 54px; border-radius: 12px; background: var(--navy); color: var(--gold); display: grid; place-items: center; flex: none; }
.service__head .icon-wrap .icon { width: 28px; height: 28px; }
.service__head h2 { margin: 0; }
.checklist { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; }
.checklist .icon { color: var(--gold-ink); width: 20px; height: 20px; margin-top: 3px; }
.note { font-size: .9rem; color: var(--text-soft); border-left: 3px solid var(--gold); padding: 6px 0 6px 14px; margin: 0 0 22px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-row--center { justify-content: center; }
@media (max-width: 900px) {
  .service__grid { grid-template-columns: 1fr; }
  .service:nth-of-type(even) .service__grid > :first-child { order: 0; }
}
@media (max-width: 520px) { .checklist { grid-template-columns: 1fr; } }

/* Bloque con imágenes referenciales (no son trabajos de ASTEC) */
.ref-block { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 48px); align-items: center; margin-top: clamp(40px, 6vw, 64px); padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--line); }
.ref-block h3 { font-size: 1.3rem; }
.ref-block p { color: var(--text-soft); }
.ref-note { font-size: .88rem; border-left: 3px solid var(--gold); padding-left: 12px; }
.ref-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ref-figs figure { margin: 0; }
.ref-figs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.ref-figs figcaption { font-size: .76rem; line-height: 1.4; color: var(--text-soft); margin-top: 8px; }
.ref-figs figcaption a { color: inherit; }
@media (max-width: 900px) { .ref-block { grid-template-columns: 1fr; } }
.service__photos--stack { grid-template-columns: 1fr; }
.service__photos--stack img { aspect-ratio: 16 / 9; }
.service__photos--stack .ref-note { margin: 0; color: var(--text-soft); }
.ref-badge {
  position: absolute; top: 12px; right: 12px; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  background: rgba(7, 15, 25, .78); color: #fff; letter-spacing: .04em;
}

/* ---------- Banda CTA ---------- */
.cta-band { background: linear-gradient(110deg, var(--navy) 0%, var(--graphite) 100%); color: #fff; padding-block: clamp(48px, 6vw, 72px); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(209, 166, 79, .1); }
.cta-band .container { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0 0 .25em; }
.cta-band p { margin: 0; color: #b9c2cc; }

/* ---------- Texto legal ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose p, .prose li { color: #2f3a46; }

/* ---------- Utilidades ---------- */
.mt-md { margin: 18px 0 0; }
.mt-lg { margin: 28px 0 0; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--navy); color: #aeb8c3; padding-top: clamp(48px, 7vw, 80px); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.footer-grid h2 { font-size: .9rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 1.1em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: #c4ccd5; text-decoration: none; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand img { height: 52px; width: auto; margin-bottom: 16px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--gold); margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .86rem; color: #8f9aa6; }
.footer-bottom a { color: #c4ccd5; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 10px;
  height: 60px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 700;
  box-shadow: 0 12px 30px rgba(31, 157, 85, .4); transition: transform .2s var(--ease), background-color .2s;
}
.wa-float:hover { transform: translateY(-3px); background: var(--wa-2); }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa); animation: wa-pulse 2.6s ease-out infinite; pointer-events: none;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
@media (max-width: 620px) { .wa-float { width: 60px; padding: 0; justify-content: center; } .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; color: var(--gold); line-height: 1; }

/* ---------- Animaciones de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay-1 { transition-delay: .08s; }
.js .reveal-delay-2 { transition-delay: .16s; }
.js .reveal-delay-3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .wa-float, .nav, .cta-band, .filters { display: none !important; }
  body { color: #000; }
}
