/* ==========================================================================
   Metpro — Hoja de estilos principal
   Paleta tomada del logo 2026 (azul marino + azul) + cian de acento + grises.
   ========================================================================== */

:root {
  /* Marca */
  --ink: #001d58;          /* azul marino de las letras del logo */
  --ink-700: #00184a;
  --ink-800: #0b1838;
  --ink-900: #08112a;
  --brand-blue: #005ef8;   /* azul del arco del logo */
  --accent: #1db6e5;       /* cian original del sitio */
  --accent-600: #0f9dcb;
  --accent-100: #e3f6fc;

  /* Grises */
  --white: #ffffff;
  --gray-50: #f6f6f8;
  --gray-100: #ececf0;
  --gray-200: #dedee4;
  --gray-300: #d3d3d3;
  --gray-500: #8a8a96;
  --gray-600: #666666;
  --text: #282828;
  --text-muted: #5c5c66;

  /* Tipografía */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Sora", "Inter", system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 76px;

  --shadow-sm: 0 1px 2px rgba(8, 17, 42, .06), 0 1px 3px rgba(8, 17, 42, .08);
  --shadow-md: 0 6px 18px rgba(8, 17, 42, .08), 0 2px 6px rgba(8, 17, 42, .06);
  --shadow-lg: 0 18px 40px rgba(8, 17, 42, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-600); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink-900);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--accent); 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; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: var(--white); }

.icon {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.svg-sprite { display: none; }

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }

.btn--primary { background: var(--accent); color: var(--white); box-shadow: 0 8px 20px rgba(29, 182, 229, .3); }
.btn--primary:hover { background: var(--accent-600); color: var(--white); }

.btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink-900); border-color: var(--white); }

.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }

.btn--sm { padding: .6em 1.1em; font-size: .9rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--accent-600);
}
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Barra superior + header
   -------------------------------------------------------------------------- */
.topbar { background: var(--ink-900); color: rgba(255, 255, 255, .78); font-size: .85rem; }
.topbar .container { display: flex; justify-content: flex-end; gap: 28px; padding-block: 8px; }
.topbar a { color: inherit; display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--accent); }
.topbar .icon { width: 15px; height: 15px; color: var(--accent); }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); border-bottom-color: var(--gray-100); }

.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }

.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }

.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 500; font-size: .97rem; color: var(--ink-800);
  background: none; border: 0; cursor: pointer;
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--accent-600); background: var(--gray-50); }
.nav__link[aria-current="page"], .nav__link.is-active { color: var(--accent-600); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav__link .icon--chevron { width: 14px; height: 14px; transition: transform .2s; }


/* Submenú */
.submenu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  width: 300px; padding: 10px; margin: 0; list-style: none;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.submenu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.submenu a {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink-800);
}
.submenu a:hover { background: var(--gray-50); color: var(--ink-900); }
.submenu a[aria-current="page"] { background: var(--accent-100); }
.submenu strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.submenu span { display: block; font-size: .82rem; color: var(--text-muted); line-height: 1.4; }
.submenu .icon { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }

@media (hover: hover) and (min-width: 961px) {
  .nav__item--has-sub:hover .submenu,
  .nav__item--has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .nav__item--has-sub:hover .icon--chevron { transform: rotate(180deg); }
}
@media (min-width: 961px) {
  .nav__item--has-sub.is-open .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}

/* Botón hamburguesa */
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  border-radius: var(--radius-sm); position: relative; color: var(--ink-900);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s, top .25s var(--ease);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .topbar { display: none; }
  /* backdrop-filter convierte al header en contenedor de los position:fixed: lo quitamos en móvil */
  .site-header { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 16px var(--gutter) 32px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--gray-100); }
  .nav__link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.1rem; }
  .nav__link:hover { background: none; }
  .nav__link[aria-current="page"]::after { display: none; }
  .submenu {
    position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 12px;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .nav__item--has-sub.is-open .submenu { display: block; }
  .nav__item--has-sub.is-open .icon--chevron { transform: rotate(180deg); }
  body.nav-open { overflow: hidden; }
}

/* --------------------------------------------------------------------------
   Hero (inicio)
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 760px);
  display: flex; align-items: center;
  color: var(--white); background: var(--ink-900);
}
.hero__slides { position: absolute; inset: 0; z-index: -2; margin: 0; padding: 0; list-style: none; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease;
}
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active img { transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 17, 42, .92) 0%, rgba(8, 17, 42, .72) 45%, rgba(8, 17, 42, .25) 100%),
    linear-gradient(0deg, rgba(8, 17, 42, .55) 0%, transparent 40%);
}

.hero__content { padding-block: 96px 120px; max-width: 760px; }
.hero h1 { color: var(--white); margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .85); max-width: 620px; margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-600);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero .eyebrow, .page-hero .eyebrow, .section--dark .eyebrow { color: var(--accent); }

.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 44px 0 0; padding: 0; list-style: none; }
.hero__chips li {
  font-family: var(--font-head); font-size: .82rem; font-weight: 600; letter-spacing: .05em;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

.hero__dots { position: absolute; bottom: 32px; left: 0; right: 0; }
.hero__dots .container { display: flex; gap: 10px; }
.hero__dot {
  width: 34px; height: 4px; padding: 0; border: 0; border-radius: 4px; cursor: pointer;
  background: rgba(255, 255, 255, .35); transition: background .3s, width .3s;
}
.hero__dot[aria-current="true"] { background: var(--accent); width: 56px; }

/* --------------------------------------------------------------------------
   Page hero (páginas internas)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--white); background: var(--ink-900);
  padding-block: clamp(72px, 10vw, 120px) clamp(56px, 8vw, 96px);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(8, 17, 42, .94) 0%, rgba(11, 24, 56, .8) 55%, rgba(0, 29, 88, .45) 100%);
}
.page-hero h1 { color: var(--white); max-width: 820px; margin-bottom: .35em; }
.page-hero p { color: rgba(255, 255, 255, .82); max-width: 680px; font-size: 1.15rem; margin: 0; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 22px; padding: 0; font-size: .88rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .6); }
.breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, .35); }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--alt { background: var(--gray-50); }
.section--dark { background: var(--ink-900); color: rgba(255, 255, 255, .82); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; margin: 0; }
.section--dark .section-head p { color: rgba(255, 255, 255, .72); }

.section-head--split {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.section-head--split > div { max-width: 640px; }

/* Intro / quiénes somos */
.intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro__text .lead { font-size: 1.2rem; color: var(--ink-800); }
.intro__text p { color: var(--text-muted); }
.intro__text .btn { margin-top: 12px; }

.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tech-card {
  background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.tech-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-100); }
.tech-card__code {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem;
  color: var(--ink); text-decoration: none; margin-bottom: 4px;
}
.tech-card__code::after { content: ""; display: block; width: 24px; height: 3px; background: var(--accent); border-radius: 3px; margin-top: 8px; }
.tech-card__desc { font-size: .9rem; color: var(--text-muted); line-height: 1.45; display: block; }

/* Tarjetas de servicio */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-100);
  transition: transform .3s var(--ease), box-shadow .3s;
  color: inherit;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: inherit; }
.service-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray-100); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.07); }
.service-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.service-card__icon {
  width: 48px; height: 48px; margin-top: -48px; margin-bottom: 16px; position: relative;
  display: grid; place-items: center; border-radius: 12px;
  background: var(--accent); color: var(--white); box-shadow: 0 8px 18px rgba(29, 182, 229, .35);
}
.service-card__icon .icon { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: .5em; }
.service-card p { font-size: .95rem; color: var(--text-muted); flex: 1; }
.service-card .link-arrow { margin-top: 8px; }

/* Proceso */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process li { position: relative; padding-top: 64px; counter-increment: step; }
.process li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  color: var(--accent); border: 2px solid var(--accent); background: var(--ink-900);
}
.process li:not(:last-child)::after {
  content: ""; position: absolute; top: 24px; left: 60px; right: -8px; height: 2px;
  background: linear-gradient(90deg, rgba(29, 182, 229, .6), rgba(29, 182, 229, .1));
}
.process h3 { font-size: 1.1rem; margin-bottom: .4em; }
.process p { font-size: .93rem; color: rgba(255, 255, 255, .68); margin: 0; }

/* Clientes */
.logo-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--gray-100); border: 1px solid var(--gray-100); border-radius: var(--radius); overflow: hidden;
}
.logo-strip li { list-style: none; background: var(--white); display: grid; place-items: center; padding: 28px 24px; min-height: 120px; }
.logo-strip img {
  max-height: 52px; max-width: 160px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s;
}
.logo-strip li:hover img { filter: none; opacity: 1; }
.logo-strip { margin: 0; padding: 0; }

/* Proyectos */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  font-family: var(--font-head); font-size: .9rem; font-weight: 500;
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--ink-800); border: 1px solid var(--gray-200);
  transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--accent); color: var(--accent-600); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.project-card[hidden] { display: none; }
.project-card__media { position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: var(--gray-100); }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.06); }
.project-card__tag {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-head); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; background: rgba(8, 17, 42, .78); color: var(--white);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.project-card__body { padding: 0 24px 24px; display: flex; flex-direction: column; flex: 1; }
.project-card__logo {
  height: 64px; width: 150px; margin-top: -32px; margin-bottom: 18px; position: relative;
  display: grid; place-items: center; padding: 10px 14px;
  background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
}
.project-card__logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.project-card h3 { font-size: 1.15rem; margin-bottom: .45em; }
.project-card p { font-size: .95rem; color: var(--text-muted); flex: 1; }
.project-card__foot { padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--gray-100); }

/* Partners */
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.partner-card {
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius);
  padding: 32px 24px 22px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.partner-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent-100); }
.partner-card__logo { height: 90px; display: grid; place-items: center; }
.partner-card__logo img { max-height: 90px; max-width: 180px; width: auto; object-fit: contain; }
.partner-card h3 { font-size: 1rem; margin: 0; color: var(--ink); }
.partner-card h3::before { content: ""; display: block; width: 24px; height: 2px; background: var(--accent); margin: 0 auto 14px; }

.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 16px; }
.feature-list .icon-badge { flex-shrink: 0; }
.feature-list h3 { font-size: 1.05rem; margin-bottom: .3em; }
.feature-list p { font-size: .95rem; color: var(--text-muted); margin: 0; }

.icon-badge {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px;
  background: var(--accent-100); color: var(--accent-600);
}
.icon-badge .icon { width: 24px; height: 24px; }

/* --------------------------------------------------------------------------
   Detalle de servicio
   -------------------------------------------------------------------------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 6vw, 72px); align-items: start; }
.detail__main > p:first-child { font-size: 1.2rem; color: var(--ink-800); }
.detail__main p { color: var(--text-muted); }
.detail__main h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 1.8em; }
.detail__figure { margin: 2em 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.detail__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 1.5em; padding: 0; list-style: none; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; background: var(--gray-50); border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent); color: var(--ink-800); font-weight: 500; font-size: .98rem; line-height: 1.45;
}
.check-list .icon { width: 20px; height: 20px; color: var(--accent-600); margin-top: 1px; }
.check-list--wide { grid-template-columns: 1fr; }

.info-block {
  display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); margin: 0 0 1.5em;
}
.info-block article { padding: 24px; border-radius: var(--radius); border: 1px solid var(--gray-100); background: var(--white); box-shadow: var(--shadow-sm); }
.info-block h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.info-block h3 .icon { color: var(--accent); }
.info-block p { font-size: .97rem; margin: 0; }

.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.aside-card { border-radius: var(--radius); overflow: hidden; background: var(--ink-900); color: rgba(255, 255, 255, .8); box-shadow: var(--shadow-lg); }
.aside-card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.aside-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.aside-card__body { padding: 24px; }
.aside-card h3 { color: var(--white); font-size: 1.2rem; }
.aside-card p { font-size: .95rem; }
.aside-card .btn { width: 100%; margin-top: 4px; }

.aside-nav { border-radius: var(--radius); border: 1px solid var(--gray-100); padding: 10px; background: var(--white); }
.aside-nav h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-500); padding: 10px 12px 4px; margin: 0; }
.aside-nav ul { list-style: none; margin: 0; padding: 0; }
.aside-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px; border-radius: var(--radius-sm); color: var(--ink-800); font-weight: 500;
}
.aside-nav a:hover { background: var(--gray-50); color: var(--accent-600); }
.aside-nav a[aria-current="page"] { background: var(--accent-100); color: var(--accent-600); }
.aside-nav .icon { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-list { display: grid; gap: 14px; margin: 0 0 28px; padding: 0; list-style: none; }
.contact-list li {
  display: flex; gap: 16px; align-items: center;
  padding: 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm);
}
.contact-list small { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-500); font-weight: 600; }
.contact-list a, .contact-list span { color: var(--ink-900); font-weight: 600; }
.contact-list a:hover { color: var(--accent-600); }

.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; background: var(--gray-100); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.form-card { background: var(--white); border-radius: calc(var(--radius) + 4px); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-lg); border: 1px solid var(--gray-100); }
.form-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .25em; }
.form-card > p { color: var(--text-muted); margin-bottom: 28px; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink-800); }
.field label .opt { font-weight: 400; color: var(--gray-500); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--text);
  padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200); background: var(--gray-50);
  transition: border-color .2s, background .2s, box-shadow .2s;
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--gray-300); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 4px rgba(29, 182, 229, .15);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #d64545; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.form-foot small { color: var(--gray-500); }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 24px; font-size: .97rem; }
.alert[hidden] { display: none; }
.alert--ok { background: #e7f7ee; color: #17603a; border: 1px solid #bfe8d0; }
.alert--error { background: #fdecec; color: #8a1f1f; border: 1px solid #f5c6c6; }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(36px, 6vw, 64px);
  background: linear-gradient(120deg, var(--ink-800) 0%, var(--ink) 55%, var(--brand-blue) 130%);
  color: rgba(255, 255, 255, .85);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta::before {
  content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 182, 229, .45) 0%, rgba(29, 182, 229, 0) 70%);
}
.cta h2 { color: var(--white); margin-bottom: .3em; }
.cta p { margin: 0; max-width: 560px; font-size: 1.08rem; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: rgba(255, 255, 255, .7); padding-top: 72px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { height: 42px; width: auto; background: var(--white); padding: 8px 12px; border-radius: var(--radius-sm); box-sizing: content-box; }
.footer-brand p { margin: 20px 0 0; max-width: 320px; }
.site-footer h4 { color: var(--white); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .7); }
.site-footer a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem;
}
.footer-bottom .datafiscal img { height: 56px; width: auto; border-radius: 4px; }

/* --------------------------------------------------------------------------
   Animaciones al hacer scroll
   -------------------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process li:nth-child(3)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .intro, .detail, .contact { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid, .logo-strip { grid-template-columns: repeat(3, 1fr); }
  .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero { min-height: auto; }
  .hero__content { padding-block: 72px 96px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .services-grid, .projects-grid, .check-list, .info-block, .form-grid, .aside { grid-template-columns: 1fr; }
  .tech-grid, .partners-grid, .logo-strip { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; }
  .process li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta__actions, .cta__actions .btn { width: 100%; }
  .brand img { height: 38px; }
}
