/* ==========================================================================
   VM Ingenieros — sitio minimalista
   ========================================================================== */

:root {
  --primary: #045246;
  --primary-hover: #033a31;
  --primary-50: #eef6f3;
  --primary-100: #d6e8e4;
  --accent: #f58f00;

  --ink: #1d3a3a;
  --text: #2b3a3a;
  --muted: #616a75;
  --subtle: #a2a5b9;
  --line: #e6e9ec;
  --bg: #ffffff;
  --bg-alt: #f6f7f8;

  --whatsapp: #25d366;

  --radius: 18px;
  --container: 1160px;
  --gutter: 24px;
  --header-h: 72px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

/* ── Botones ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn .icon-arrow {
  transition: transform 0.2s ease;
}

.btn:hover .icon-arrow {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--primary-100);
  background: var(--primary-50);
}

.btn-light {
  background: #fff;
  color: var(--primary);
}

.btn-light:hover {
  background: var(--primary-50);
}

.btn-light .icon-wa {
  color: var(--whatsapp);
  width: 1.25em;
  height: 1.25em;
}

.btn-sm {
  min-height: 42px;
  padding: 0 1.15rem;
  font-size: 0.9rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ── Cabecera ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand img {
  width: auto;
  height: 34px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--primary);
}

.nav-link .icon-chevron {
  width: 0.85em;
  height: 0.85em;
  transition: transform 0.2s ease;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 270px;
  padding: 1.1rem 1.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(16, 40, 36, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

/* Puente invisible para no perder el hover entre el botón y el menú */
.dropdown-menu::before {
  content: "";
  position: absolute;
  inset: -12px 0 auto;
  height: 12px;
}

.dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown.is-open .icon-chevron {
  transform: rotate(180deg);
}

@media (hover: hover) and (min-width: 901px) {
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .dropdown:hover .icon-chevron {
    transform: rotate(180deg);
  }
}

.menu-eyebrow {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
}

.dropdown-menu a {
  display: block;
  padding: 0.55rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.15s ease, transform 0.15s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a[aria-current="page"] {
  color: var(--primary);
  transform: translateX(3px);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 24px;
  height: 24px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-open .nav-toggle .icon-menu {
  display: none;
}

.nav-open .nav-toggle .icon-close {
  display: block;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 0.75rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 18px 30px rgba(16, 40, 36, 0.08);
    display: none;
  }

  .nav-open .nav {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list > li {
    border-bottom: 1px solid var(--line);
  }

  .nav-link {
    width: 100%;
    padding: 0.95rem 0;
    font-size: 1.05rem;
  }

  .dropdown > .nav-link {
    display: none;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    padding: 1rem 0 0.6rem;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown-menu::before {
    content: none;
  }

  .dropdown-menu a {
    padding: 0.6rem 0;
  }

  .nav .btn {
    width: 100%;
  }
}

/* ── Hero (inicio) ───────────────────────────────────────────────────────── */

.hero {
  padding: 4.5rem 0 4.5rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
}

.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--ink);
}

.typewriter {
  display: inline-block;
  min-width: 0.5ch;
  font-weight: 700;
  color: var(--accent);
}

.caret {
  display: inline-block;
  margin-left: 1px;
  font-weight: 300;
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-lead {
  margin-top: 0.9rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero .actions {
  margin-top: 2rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  line-height: 1.1;
  text-align: left;
}

.store-badge .icon {
  width: 18px;
  height: 18px;
}

.store-badge small {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.store-badge strong {
  display: block;
  font-size: 0.82rem;
}

.hero-media {
  max-width: 1000px;
  margin: 3.5rem auto 0;
}

.hero-media img {
  width: 100%;
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  margin-top: 2.5rem;
}

.highlights li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #49665d;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #087f63;
}

.check .icon {
  width: 12px;
  height: 12px;
}

/* ── Secciones ───────────────────────────────────────────────────────────── */

.section {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 820px;
  margin: 0 auto 3.25rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.section-head p {
  margin-top: 0.9rem;
  font-size: 1.08rem;
  color: var(--muted);
}

/* Tarjetas de rubros */

.rubros-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.rubro-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}

.rubro-card:hover {
  border-color: var(--primary-100);
  transform: translateY(-3px);
}

.icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.icon-tile img {
  width: 34px;
  height: 34px;
}

.rubro-card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.rubro-card p {
  flex: 1;
  font-size: 0.95rem;
  color: var(--muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
}

.link-arrow .icon {
  transition: transform 0.2s ease;
}

.rubro-card:hover .link-arrow .icon {
  transform: translateX(4px);
}

/* Servicios para empresas */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.service {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s ease;
}

.service:hover {
  border-color: var(--primary-100);
}

.service h3 {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.service p {
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.tags li {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

.service .link-arrow {
  margin-top: auto;
  padding-top: 1rem;
}

.service .link-arrow:hover .icon {
  transform: translateX(4px);
}

/* ── Página de rubro ─────────────────────────────────────────────────────── */

.page-hero {
  padding: 4.5rem 0 4.5rem;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  padding: 0.4rem 1rem 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill img {
  width: 22px;
  height: 22px;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
}

.page-hero h1 span {
  display: block;
  color: var(--primary);
}

.page-hero .hero-lead {
  max-width: 600px;
  margin: 1.2rem auto 0;
  font-size: 1.12rem;
}

.page-hero .actions {
  margin-top: 2rem;
}

.page-hero .highlights {
  margin-top: 1.75rem;
}

.showcase {
  max-width: 1040px;
  margin: 3.5rem auto 0;
}

.showcase.is-narrow {
  max-width: 860px;
}

.showcase img {
  width: 100%;
}

/* Captura plana enmarcada como ventana */
.frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.frame::before {
  content: "";
  display: block;
  height: 30px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 18px 50%, #dfe3e6 4.5px, transparent 5px),
    radial-gradient(circle at 34px 50%, #dfe3e6 4.5px, transparent 5px),
    radial-gradient(circle at 50px 50%, #dfe3e6 4.5px, transparent 5px), #fff;
}

/* Funciones */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.feature .icon-tile {
  width: 52px;
  height: 52px;
  margin: 0;
}

.feature .icon-tile img {
  width: 30px;
  height: 30px;
}

.feature h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.feature p {
  margin-top: 0.3rem;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Recorrido */

.steps {
  display: grid;
  gap: 5.5rem;
}

.step {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.step:nth-child(even) .step-media {
  order: 2;
}

.step-media {
  display: flex;
  justify-content: center;
}

.step-media.is-tall img {
  max-height: 560px;
  width: auto;
}

.step-media.is-phone img {
  max-height: 520px;
  width: auto;
}

.step-num {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #087f63;
}

.step-num b {
  margin-right: 0.5rem;
  color: var(--subtle);
  font-weight: 700;
}

.step h3 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.step p {
  margin-top: 1rem;
  font-size: 1.08rem;
  color: var(--muted);
}

/* ── Pie de página ───────────────────────────────────────────────────────── */

.site-footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand img {
  width: auto;
  height: 32px;
}

.footer-brand p {
  max-width: 300px;
  margin-top: 1rem;
  color: var(--muted);
}

.footer-title {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
}

.footer-links li + li {
  margin-top: 0.55rem;
}

.footer-links a {
  color: var(--text);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-links .icon-wa {
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.4rem;
  vertical-align: -0.15em;
  color: var(--whatsapp);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

/* ── WhatsApp flotante ───────────────────────────────────────────────────── */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.wa-float:hover {
  transform: scale(1.06);
}

.wa-float .icon {
  width: 30px;
  height: 30px;
}

/* ── 404 ─────────────────────────────────────────────────────────────────── */

.not-found {
  padding: 8rem 0;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.not-found p {
  margin: 1rem auto 2rem;
  color: var(--muted);
}

/* ── Aparición al hacer scroll ───────────────────────────────────────────── */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .rubros-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .step {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .step:nth-child(even) .step-media {
    order: 0;
  }

  .step-text {
    max-width: 560px;
    margin: 0 auto;
  }

  .step-media.is-tall img {
    max-height: 460px;
  }

  .step-media.is-phone img {
    max-height: 440px;
  }

  .steps {
    gap: 4.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
    --header-h: 64px;
  }

  body {
    font-size: 16px;
  }

  .brand img {
    height: 30px;
  }

  .hero,
  .page-hero {
    padding: 3rem 0 3.5rem;
  }

  .service {
    padding: 1.75rem;
  }

  .hero .actions .btn,
  .page-hero .actions .btn {
    width: 100%;
  }

  .hero-media,
  .showcase {
    margin-top: 2.5rem;
  }

  .section {
    padding: 4.25rem 0;
  }

  .rubros-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .highlights {
    flex-direction: column;
    align-items: center;
  }

  .frame::before {
    height: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
}
