/* =========================================================
   VICONS Construcción — Hoja de estilos principal
   Colores institucionales: negro y azul
   ========================================================= */

:root {
  --negro: #0A0C10;
  --grafito: #161A21;
  --grafito-2: #1F2530;
  --azul: #1E5BD6;
  --azul-hover: #1749B0;
  --azul-claro: #6E9BF2;      /* azul legible sobre fondo negro */
  --azul-tinte: #E9F0FD;
  --cemento: #5E6875;          /* texto secundario sobre blanco (contraste AA) */
  --cemento-claro: #F2F4F7;
  --linea: #DDE2E9;
  --ambar: #E3A33B;            /* acento del logotipo, uso puntual */
  --whatsapp: #1FAF54;
  --whatsapp-hover: #178F44;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-brand: "Michroma", "Inter", sans-serif;
  --radius: 14px;
  --header-h: 76px;

  --bs-body-font-family: var(--font-sans);
  --bs-body-color: #1B2029;
  --bs-secondary-color: var(--cemento);
  --bs-link-color: var(--azul);
  --bs-link-color-rgb: 30, 91, 214;
  --bs-link-hover-color: var(--azul-hover);
  --bs-link-hover-color-rgb: 23, 73, 176;
  --bs-focus-ring-color: rgba(30, 91, 214, .35);
}

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

.skip-link {
  position: absolute; z-index: 2000; left: 1rem; top: 1rem;
  background: #fff; color: var(--negro); padding: .5rem 1rem; border-radius: 8px;
}

/* ---------- Botones ---------- */
.btn { font-weight: 600; border-radius: 10px; padding: .65rem 1.25rem; min-height: 44px; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.02rem; }

.btn-brand {
  --bs-btn-color: #fff; --bs-btn-bg: var(--azul); --bs-btn-border-color: var(--azul);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--azul-hover); --bs-btn-hover-border-color: var(--azul-hover);
  --bs-btn-active-bg: var(--azul-hover); --bs-btn-active-border-color: var(--azul-hover); --bs-btn-active-color: #fff;
  --bs-btn-disabled-bg: var(--azul); --bs-btn-disabled-border-color: var(--azul); --bs-btn-disabled-color: #fff;
}
.btn-outline-brand {
  --bs-btn-color: var(--azul); --bs-btn-border-color: var(--azul);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--azul); --bs-btn-hover-border-color: var(--azul);
  --bs-btn-active-bg: var(--azul-hover); --bs-btn-active-color: #fff;
}
.btn-whatsapp {
  --bs-btn-color: #fff; --bs-btn-bg: var(--whatsapp); --bs-btn-border-color: var(--whatsapp);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--whatsapp-hover); --bs-btn-hover-border-color: var(--whatsapp-hover);
  --bs-btn-active-bg: var(--whatsapp-hover); --bs-btn-active-color: #fff;
}

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand-iso { width: 40px; height: 40px; flex: none; }
.brand-iso polygon { fill: #fff; }
.brand-iso .iso-col { fill: var(--azul-claro); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-brand); font-size: 1.3rem; letter-spacing: .1em; }
.brand-sub { font-size: .62rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: #AEB8C6; margin-top: .4rem; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(10, 12, 16, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled, .site-header.is-solid { background: rgba(10, 12, 16, .96); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.site-header .navbar { min-height: var(--header-h); }
.site-header .nav-link {
  color: #D5DBE4; font-weight: 500; font-size: .95rem; padding: .5rem .8rem !important; border-radius: 8px;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus-visible { color: #fff; }
.site-header .nav-link.active { color: #fff; box-shadow: inset 0 -2px 0 var(--azul-claro); border-radius: 0; }
.navbar-toggler { border: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: 1.6rem; padding: .25rem .6rem; min-width: 44px; min-height: 44px; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(110, 155, 242, .45); }

@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    background: var(--negro); margin: 0 -12px; padding: .75rem 12px 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .site-header .nav-link { padding: .75rem .25rem !important; }
  .site-header .nav-link.active { box-shadow: none; color: var(--azul-claro); }
  .site-header .btn-brand { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem; color: #fff; overflow: hidden; background: var(--negro);
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 12, 16, .92) 0%, rgba(10, 12, 16, .7) 55%, rgba(10, 12, 16, .35) 100%);
}
.hero-demo-badge {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 2; font-size: .75rem; font-weight: 500;
  color: #C9D2DE; background: rgba(10, 12, 16, .7); padding: .3rem .65rem; border-radius: 6px;
}
@media (max-width: 575.98px) { .hero-demo-badge { left: 1rem; right: auto; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem; font-size: .8rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--azul-claro); margin-bottom: 1.25rem;
}
.eyebrow-bar { width: 36px; height: 3px; background: var(--azul-claro); display: inline-block; }
.hero-title { font-size: clamp(2.1rem, 5.2vw, 3.9rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 1.25rem; }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #D0D7E2; max-width: 40rem; margin-bottom: 2rem; }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--cemento-claro); }
.section--dark { background: var(--negro); color: #fff; }
.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.section-kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--azul);
  display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem;
}
.section-kicker::before { content: ""; width: 28px; height: 3px; background: currentColor; }
.section-kicker--light { color: var(--azul-claro); }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.18; letter-spacing: -.015em; margin-bottom: 1rem; color: var(--negro); }
.text-light-muted { color: #B7C0CD; }

/* ---------- Nosotros ---------- */
.value-card {
  height: 100%; background: #fff; border: 1px solid var(--linea); border-radius: var(--radius);
  padding: 1.5rem; transition: border-color .2s ease, transform .2s ease;
}
.value-card:hover { border-color: var(--azul); transform: translateY(-2px); }
.value-card i {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 10px;
  background: var(--azul-tinte); color: var(--azul); font-size: 1.35rem; margin-bottom: 1rem;
}
.value-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: .35rem; color: var(--negro); }
.value-card p { font-size: .94rem; color: var(--cemento); margin: 0; }
.value-card--wide { display: flex; gap: 1.25rem; align-items: flex-start; background: var(--negro); border-color: var(--negro); }
.value-card--wide i { background: rgba(110, 155, 242, .16); color: var(--azul-claro); margin: 0; flex: none; }
.value-card--wide h3 { color: #fff; }
.value-card--wide p { color: #B7C0CD; }

/* ---------- Servicios ---------- */
.service-card {
  height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--linea); transition: box-shadow .25s ease, transform .25s ease;
}
.service-card:hover { box-shadow: 0 18px 40px rgba(10, 12, 16, .12); transform: translateY(-3px); }
.service-card img { aspect-ratio: 10 / 7; object-fit: cover; width: 100%; }
.service-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.service-num { font-family: var(--font-brand); font-size: .8rem; color: var(--azul); letter-spacing: .1em; margin-bottom: .5rem; }
.service-body h3 { font-size: 1.3rem; font-weight: 700; color: var(--negro); margin-bottom: .5rem; }
.service-body > p { color: var(--cemento); font-size: .96rem; }
.service-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .45rem; flex: 1; }
.service-list li { position: relative; padding-left: 1.5rem; font-size: .95rem; }
.service-list li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 3px; background: var(--azul);
}

/* ---------- Galería ---------- */
.demo-note { display: block; margin-top: .4rem; font-size: .88rem; color: var(--cemento); }
.gallery-item {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 12px;
  overflow: hidden; background: var(--grafito); cursor: zoom-in; aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, opacity .3s ease; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.04); opacity: .85; }
.gallery-item:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .9rem .7rem; text-align: left;
  font-size: .85rem; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(10, 12, 16, .85));
}
@media (max-width: 575.98px) { .gallery-caption { font-size: .75rem; padding: 1.2rem .6rem .5rem; } }

.lightbox .modal-content { background: transparent; border: 0; position: relative; }
.lightbox figure img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 10px; background: var(--negro); }
.lightbox figcaption { color: #E3E8EF; text-align: center; margin-top: .75rem; font-size: .95rem; }
.lightbox-close { position: absolute; top: -2.75rem; right: 0; opacity: 1; width: 1.5rem; height: 1.5rem; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(10, 12, 16, .7); color: #fff; font-size: 1.3rem; display: grid; place-items: center;
}
.lightbox-nav:hover { background: var(--azul); }
.lightbox-prev { left: .75rem; }
.lightbox-next { right: .75rem; }
.modal-backdrop.show { opacity: .88; }

/* ---------- Contacto ---------- */
.contact-list { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list i {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px;
  background: var(--grafito-2); color: var(--azul-claro); font-size: 1.2rem;
}
.contact-list span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #8E99A8; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 500; word-break: break-word; }
.contact-list a:hover { color: var(--azul-claro); text-decoration: underline; }

.quote-form {
  background: #fff; color: #1B2029; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.quote-form .form-label { font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.quote-form .form-control, .quote-form .form-select { min-height: 48px; border-radius: 10px; border-color: #C9D0DA; }
.quote-form textarea.form-control { min-height: 130px; }
.quote-form .form-control:focus, .quote-form .form-select:focus { border-color: var(--azul); box-shadow: 0 0 0 .2rem rgba(30, 91, 214, .2); }
.quote-form .form-check-input { width: 1.2em; height: 1.2em; margin-top: .2em; }
.quote-form .form-check-input:checked { background-color: var(--azul); border-color: var(--azul); }
.quote-form .form-check-label { font-size: .92rem; }
.req { color: #C0392B; }
.opt { color: var(--cemento); font-weight: 400; }
.char-count { display: block; text-align: right; color: var(--cemento); font-size: .8rem; margin-top: .25rem; }
.form-note { font-size: .82rem; color: var(--cemento); margin: .75rem 0 0; text-align: center; }

.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-alert { border-radius: 10px; padding: .9rem 1rem; margin-bottom: 1rem; font-size: .95rem; display: flex; gap: .6rem; align-items: flex-start; }
.form-alert.is-success { background: #E7F6EC; color: #145A2E; border: 1px solid #A9DDBB; }
.form-alert.is-error { background: #FDECEA; color: #8A1F14; border: 1px solid #F3B7AF; }

/* ---------- Footer ---------- */
.site-footer { background: #050608; color: #B7C0CD; padding: 4rem 0 1.5rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-text { font-size: .94rem; max-width: 22rem; }
.footer-legal { font-size: .85rem; color: #8E99A8; }
.footer-title { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .94rem; }
.footer-links a { color: #B7C0CD; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact i { color: var(--azul-claro); margin-top: .1rem; }
.footer-contact a { word-break: break-word; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #B7C0CD; }
.footer-bottom a:hover { color: #fff; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1040; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--whatsapp); color: #fff; font-size: 1.9rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .3); text-decoration: none; transition: transform .2s ease, background-color .2s ease;
}
.wa-float:hover, .wa-float:focus-visible { background: var(--whatsapp-hover); color: #fff; transform: scale(1.06); }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- Animaciones moderadas ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-card, .value-card, .gallery-item img { transition: none; }
}

/* ---------- Página de privacidad ---------- */
.legal-page { padding: calc(var(--header-h) + 3rem) 0 4rem; }
.legal-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--negro); }
.legal-page h2 { font-size: 1.25rem; font-weight: 700; margin-top: 2rem; color: var(--negro); }
.legal-page .container { max-width: 52rem; }

/* =========================================================
   v2 — Construcción integral y electricidad domiciliaria
   ========================================================= */

/* Etiqueta para imágenes referenciales (bancos de imágenes) */
.ref-badge {
  position: absolute; right: .75rem; bottom: .75rem; z-index: 2;
  font-size: .72rem; font-weight: 500; letter-spacing: .02em;
  color: #E6EBF2; background: rgba(10, 12, 16, .68); padding: .25rem .55rem; border-radius: 6px;
}
.ref-badge--hero { right: 1rem; bottom: 1rem; }

/* Hero v2 */
.hero--v2 { padding-bottom: 7rem; }
.hero--v2 .hero-title { font-size: clamp(2.2rem, 5.6vw, 4.4rem); max-width: 16ch; }
.hero-services {
  list-style: none; padding: 0; margin: 3.5rem 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: rgba(255, 255, 255, .14); border-radius: 14px; overflow: hidden;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-services li {
  display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1.25rem;
  background: rgba(10, 12, 16, .62); color: #fff; font-weight: 600; font-size: .98rem;
}
.hero-services i { color: var(--azul-claro); font-size: 1.4rem; }
@media (max-width: 991.98px) { .hero-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .hero-services li { padding: .85rem .9rem; font-size: .88rem; } }

/* Marcos de imagen */
.media-frame { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--grafito); box-shadow: 0 24px 50px rgba(10, 12, 16, .16); }
.media-img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.lead-text { font-size: 1.12rem; color: #2A313C; }
.check-list { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .6rem; align-items: center; font-weight: 600; }
.check-list i { color: var(--azul); font-size: 1.2rem; }

/* Navegador de etapas */
.stage-nav {
  position: sticky; top: calc(var(--header-h) + .5rem); z-index: 20;
  margin: 0 auto 3rem; max-width: 980px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--linea); border-radius: 999px; padding: .4rem;
  box-shadow: 0 10px 30px rgba(10, 12, 16, .08);
}
.stage-nav ol { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.stage-nav ol::-webkit-scrollbar { display: none; }
.stage-link {
  display: flex; align-items: center; gap: .45rem; white-space: nowrap; flex: 1 0 auto;
  padding: .5rem .85rem; border-radius: 999px; color: #2A313C; text-decoration: none; font-weight: 600; font-size: .88rem;
  min-height: 44px;
}
.stage-link span {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--cemento-claro); color: var(--azul); font-size: .8rem; font-weight: 700;
}
.stage-link:hover { background: var(--azul-tinte); color: var(--azul-hover); }
.stage-link.active { background: var(--azul); color: #fff; }
.stage-link.active span { background: #fff; color: var(--azul); }
.stage-nav li { flex: 1 0 auto; display: flex; }

/* Línea de tiempo */
.timeline { position: relative; display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.timeline::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%);
  background: linear-gradient(var(--azul) 0 0) top / 100% var(--progress, 0%) no-repeat, var(--linea);
}
.stage { position: relative; }
.stage-marker {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--negro); color: #fff; border: 4px solid var(--cemento-claro);
  font-family: var(--font-brand); font-size: .95rem; letter-spacing: .05em;
  box-shadow: 0 0 0 2px var(--azul);
}
.stage .row > .stage-media { padding-right: 3.25rem; }
.stage .row > .stage-body { padding-left: 3.25rem; }
.stage--flip .row { flex-direction: row-reverse; }
.stage--flip .row > .stage-media { padding-right: calc(var(--bs-gutter-x) * .5); padding-left: 3.25rem; }
.stage--flip .row > .stage-body { padding-left: calc(var(--bs-gutter-x) * .5); padding-right: 3.25rem; }
.stage-step {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .6rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--azul);
}
.stage-step > i { font-size: 1.1rem; }
.stage-tag {
  letter-spacing: .02em; text-transform: none; font-weight: 600; font-size: .78rem;
  background: var(--negro); color: #fff; padding: .2rem .6rem; border-radius: 999px;
}
.stage-tag i { color: var(--azul-claro); }
.stage-body h3 { font-size: clamp(1.45rem, 2.6vw, 2rem); font-weight: 700; color: var(--negro); margin-bottom: .75rem; letter-spacing: -.01em; }
.stage-body > p { color: var(--cemento); }
.stage-list { list-style: none; padding: 0; margin: 1rem 0 1.25rem; display: grid; gap: .5rem; }
.stage-list--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.25rem; }
.stage-list li { position: relative; padding-left: 1.6rem; font-size: .96rem; }
.stage-list li::before {
  content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .05em;
  color: var(--azul); font-size: 1rem;
}
.stage-goal {
  margin: 0; padding: 1rem 1.15rem; border-radius: 12px; background: #fff;
  border: 1px solid var(--linea); box-shadow: inset 4px 0 0 var(--azul); color: #2A313C;
}
.stage-goal strong { color: var(--negro); }

@media (max-width: 991.98px) {
  .timeline::before { left: 22px; }
  .stage-marker { left: 22px; top: 0; transform: translate(-50%, 0); width: 46px; height: 46px; font-size: .78rem; border-width: 3px; }
  .stage .row, .stage--flip .row { flex-direction: column; margin-left: 0; }
  .stage .row > .stage-media, .stage .row > .stage-body,
  .stage--flip .row > .stage-media, .stage--flip .row > .stage-body { padding-left: 3.75rem; padding-right: calc(var(--bs-gutter-x) * .5); }
  .stage-nav { border-radius: 14px; top: calc(var(--header-h) + .25rem); }
}
@media (max-width: 575.98px) {
  .stage-list--2col { grid-template-columns: 1fr; }
  .stage .row > .stage-media, .stage .row > .stage-body,
  .stage--flip .row > .stage-media, .stage--flip .row > .stage-body { padding-left: 3.25rem; }
  .stage-link { padding: .45rem .65rem; font-size: .82rem; }
}

/* Servicios v2 */
.service-tile {
  height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--linea); transition: box-shadow .25s ease, transform .25s ease;
}
.service-tile:hover { box-shadow: 0 22px 44px rgba(10, 12, 16, .14); transform: translateY(-4px); }
.service-tile-media { position: relative; }
.service-tile-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-tile-icon {
  position: absolute; left: 1rem; bottom: -24px; z-index: 2; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; background: var(--azul); color: #fff; font-size: 1.45rem;
  box-shadow: 0 10px 24px rgba(30, 91, 214, .4);
}
.service-tile-media .ref-badge { top: .6rem; bottom: auto; right: .6rem; }
.service-tile-body { padding: 2.25rem 1.35rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.service-tile-body h3 { font-size: 1.22rem; font-weight: 700; color: var(--negro); margin-bottom: .35rem; }
.service-tile-body > p { color: var(--cemento); font-size: .95rem; margin-bottom: 1rem; }

/* Por qué trabajar con nosotros */
.reason {
  height: 100%; padding: 1.75rem; border-radius: var(--radius);
  background: var(--grafito); border: 1px solid rgba(255, 255, 255, .07);
  transition: border-color .2s ease, transform .2s ease;
}
.reason:hover { border-color: var(--azul-claro); transform: translateY(-3px); }
.reason i {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px;
  background: rgba(110, 155, 242, .14); color: var(--azul-claro); font-size: 1.5rem; margin-bottom: 1.1rem;
}
.reason h3 { color: #fff; font-size: 1.15rem; font-weight: 700; margin-bottom: .4rem; }
.reason p { color: #B7C0CD; margin: 0; font-size: .95rem; }

/* Llamado a la acción */
.cta-band { position: relative; overflow: hidden; color: #fff; padding: clamp(5rem, 11vw, 8rem) 0; background: var(--negro); }
.cta-bg, .cta-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 12, 16, .93) 0%, rgba(10, 12, 16, .72) 60%, rgba(14, 30, 70, .45) 100%); }
.cta-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; margin-bottom: 1rem; }
.cta-text { color: #D0D7E2; font-size: 1.1rem; max-width: 42rem; margin-bottom: 2rem; }

@media (prefers-reduced-motion: reduce) {
  .service-tile, .reason { transition: none; }
}

/* Bases livianas */
.sub-title { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; color: var(--negro); margin-bottom: 1.5rem; letter-spacing: -.01em; }
.tag-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list li {
  font-size: .86rem; font-weight: 600; color: var(--azul-hover); background: var(--azul-tinte);
  border: 1px solid #CFDDFA; padding: .4rem .75rem; border-radius: 999px;
}
.base-card { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linea); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; }
.base-card:hover { box-shadow: 0 18px 36px rgba(10, 12, 16, .12); transform: translateY(-3px); }
.base-card-media { position: relative; }
.base-card-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.base-num {
  position: absolute; left: .75rem; top: .75rem; z-index: 2; font-family: var(--font-brand); font-size: .8rem;
  color: #fff; background: var(--azul); padding: .3rem .55rem; border-radius: 8px;
}
.base-card-body { padding: 1.1rem 1.15rem 1.25rem; }
.base-card-body h4 { font-size: 1.05rem; font-weight: 700; color: var(--negro); margin-bottom: .4rem; }
.base-card-body p { font-size: .9rem; color: var(--cemento); margin: 0; }

.uses-card { height: 100%; background: #fff; border: 1px solid var(--linea); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.uses-table { --bs-table-bg: transparent; font-size: .95rem; }
.uses-table thead th { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cemento); border-bottom-width: 2px; border-color: var(--negro); }
.uses-table tbody th { font-weight: 600; color: var(--negro); }
.uses-table tbody tr:hover > * { background: var(--azul-tinte); }

.important-card { height: 100%; background: var(--negro); color: #D0D7E2; border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: inset 4px 0 0 var(--azul-claro); }
.important-card > i { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(110, 155, 242, .16); color: var(--azul-claro); font-size: 1.4rem; margin-bottom: 1rem; }
.important-card h3 { color: #fff; font-size: 1.3rem; font-weight: 700; margin-bottom: .6rem; }

@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-header .nav-link { padding: .5rem .5rem !important; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { .base-card { transition: none; } }

/* Crédito de desarrollo */
.dev-credit {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem;
  margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: .8rem; color: #8E99A8;
}
.dev-brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; }
.dev-brand img { width: 30px; height: 30px; border-radius: 7px; }
.dev-brand span { font-family: "Unbounded", var(--font-brand); font-weight: 700; font-size: .95rem; letter-spacing: .01em; }
