/* ================================================================
   00. CONFIGURACIÓN GLOBAL
   Variables de diseño usadas en toda la página.
   ================================================================ */
:root {
  --bg: oklch(98.5% 0.002 255);
  --surface: oklch(100% 0 0);
  --fg: oklch(17% 0.01 260);
  --muted: oklch(48% 0.012 260);
  --border: oklch(90% 0.006 260);
  --accent: oklch(57% 0.19 255);
  --accent-strong: oklch(50% 0.2 255);
  --dark: oklch(12% 0.018 260);
  --dark-soft: oklch(18% 0.02 260);
  --blue-soft: oklch(94% 0.035 255);
  --green-soft: oklch(94% 0.035 165);
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --max-width: 1180px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-scroll: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y estilos base del documento */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in oklch, var(--accent), transparent 88%), transparent 34%),
    linear-gradient(180deg, white, var(--bg));
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Contenedor reutilizable que limita el ancho de todas las secciones */
.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

/* ================================================================
   01. ENCABEZADO Y NAVEGACIÓN
   HTML: <header class="site-header"> y <nav class="navbar">
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in oklch, var(--fg), transparent 91%);
  background: color-mix(in oklch, white, transparent 14%);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.navbar {
  min-height: 74px;
  display: grid;
  grid-template-columns: 180px 1fr 220px;
  align-items: center;
  gap: 30px;
}

.brand {
  color: var(--fg);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  color: color-mix(in oklch, var(--fg), transparent 38%);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  min-height: 74px;
  align-items: center;
  transition: color 180ms var(--ease-out);
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-links a.is-active {
  color: var(--fg);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 99px;
}

.nav-cta {
  justify-self: end;
  min-width: 178px;
}

/* ================================================================
   COMPONENTES COMPARTIDOS
   Botones y etiquetas que se reutilizan en varias secciones.
   ================================================================ */
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0 20px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  transition: transform 220ms var(--ease-out), background 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 16px 34px color-mix(in oklch, var(--accent), transparent 72%);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-secondary {
  border-color: color-mix(in oklch, var(--fg), transparent 82%);
  background: color-mix(in oklch, var(--surface), transparent 10%);
  color: var(--fg);
}

.btn-ghost {
  border-color: color-mix(in oklch, var(--fg), transparent 84%);
  color: var(--fg);
  background: color-mix(in oklch, white, transparent 20%);
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ================================================================
   02. AUTOMATIZACIÓN, IA Y SOFTWARE EMPRESARIAL
   Primera <section class="hero">: título principal, descripción,
   imagen destacada, botón de desplazamiento y llamadas a la acción.
   ================================================================ */
.hero {
  min-height: calc(100svh - 74px);
  padding: clamp(42px, 5.6vw, 74px) 0 clamp(64px, 7vw, 96px);
  background:
    radial-gradient(circle at 80% 38%, color-mix(in oklch, var(--accent), transparent 88%), transparent 32%),
    linear-gradient(180deg, white 0%, oklch(97.5% 0.004 255) 58%, oklch(94% 0.012 255) 100%);
  overflow: hidden;
}

.hero-inner {
  text-align: left;
}

.hero-title {
  max-width: 980px;
  margin: 30px 0 0;
  font-family: var(--font-display);
  color: var(--fg);
  font-size: clamp(54px, 6.8vw, 106px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 820;
  text-wrap: balance;
}

.hero-description {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.42;
  text-wrap: pretty;
}

.hero-actions,
.contact-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-showcase {
  position: relative;
  max-width: 1200px;
  margin: clamp(54px, 6vw, 76px) 0 0;
  padding-right: 86px;
}

.hero-image-slot {
  position: relative;
  overflow: hidden;
  min-height: clamp(260px, 28vw, 400px);
  border-radius: clamp(22px, 2.5vw, 32px);
  background:
    radial-gradient(circle at 76% 18%, color-mix(in oklch, white, transparent 8%), transparent 12%),
    radial-gradient(circle at 32% 52%, color-mix(in oklch, var(--accent), transparent 72%), transparent 26%),
    linear-gradient(135deg, oklch(96% 0.018 255) 0%, oklch(90% 0.04 255) 46%, oklch(82% 0.075 255) 100%);
  box-shadow: 0 34px 90px rgba(21, 32, 70, 0.18);
  isolation: isolate;
  border: 1px solid color-mix(in oklch, white, transparent 22%);
}

.hero-image-slot > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 25%;
}

.hero-image-slot::before,
.hero-image-slot::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 34px;
  transform: rotate(-14deg);
}

.hero-image-slot::before {
  width: 34%;
  height: 62%;
  right: 26%;
  top: -12%;
  border: 1px solid color-mix(in oklch, white, transparent 28%);
  background: linear-gradient(145deg, color-mix(in oklch, white, transparent 10%), color-mix(in oklch, white, transparent 72%));
  backdrop-filter: blur(8px);
}

.hero-image-slot::after {
  width: 25%;
  height: 72%;
  left: 28%;
  bottom: -28%;
  border: 8px solid var(--dark);
  background: linear-gradient(160deg, oklch(98% 0.004 255), var(--blue-soft) 46%, var(--accent));
  box-shadow: 0 24px 60px rgba(21, 32, 70, 0.22);
}

.hero-image-content {
  position: absolute;
  right: clamp(24px, 4vw, 54px);
  bottom: clamp(22px, 3vw, 44px);
  max-width: 360px;
  padding: 18px 20px;
  border: 1px solid color-mix(in oklch, white, transparent 26%);
  border-radius: 22px;
  background: color-mix(in oklch, white, transparent 18%);
  color: var(--fg);
  backdrop-filter: blur(18px);
}

.hero-image-content span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-image-content strong {
  display: block;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.12;
}

.hero-scroll-button {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(74px, 7vw, 112px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: clamp(20px, 2vw, 30px);
  background: var(--accent);
  box-shadow: 0 24px 70px rgba(64, 112, 238, 0.34);
  transition: transform 260ms var(--ease-out), background 260ms var(--ease-out);
}

.hero-scroll-button:hover {
  transform: translateY(6px);
  background: var(--accent-strong);
}

.hero-scroll-button span {
  width: 28px;
  height: 28px;
  border-right: 3px solid white;
  border-bottom: 3px solid white;
  transform: translateY(-5px) rotate(45deg);
}

/* ================================================================
   BLOQUE AUXILIAR NO PRESENTE EN INDEX.HTML
   Estos selectores pertenecen a una maqueta anterior de ventana de
   producto. Se conservan por compatibilidad, pero actualmente ningún
   elemento del index usa estas clases.
   ================================================================ */
.product-window {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--border), white 20%);
  border-radius: clamp(24px, 4vw, 44px);
  background: color-mix(in oklch, var(--surface), transparent 6%);
  box-shadow: 0 38px 90px rgba(21, 32, 70, 0.18);
  text-align: left;
}

.window-bar {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: oklch(78% 0.14 28);
}

.window-bar span:nth-child(2) {
  background: oklch(84% 0.13 83);
}

.window-bar span:nth-child(3) {
  background: oklch(76% 0.15 150);
}

.window-bar strong {
  margin-left: 8px;
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  padding: clamp(18px, 3vw, 34px);
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--border), transparent 70%) 1px, transparent 1px),
    linear-gradient(180deg, color-mix(in oklch, var(--border), transparent 70%) 1px, transparent 1px);
  background-size: 44px 44px;
}

.metric-panel,
.timeline-panel {
  min-height: 232px;
  border-radius: 28px;
  padding: 28px;
  background: white;
  border: 1px solid var(--border);
}

.metric-panel p,
.showcase-board span,
.service-number,
.step span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-panel strong {
  display: block;
  margin-top: 36px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.metric-panel span {
  display: block;
  max-width: 420px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
}

.dark-panel {
  background: var(--dark);
  color: white;
}

.dark-panel p,
.dark-panel span {
  color: oklch(76% 0.012 260);
}

.timeline-panel {
  grid-column: 1 / -1;
  min-height: auto;
  display: grid;
  gap: 12px;
}

.timeline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-radius: 18px;
  background: oklch(96% 0.004 255);
  color: var(--muted);
}

.timeline-row.active {
  background: var(--blue-soft);
  color: var(--fg);
}

.timeline-row span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
}

.timeline-row p {
  flex: 1;
  font-weight: 650;
}

/* ================================================================
   05. CASOS DE ÉXITO / SOLUCIONES
   HTML: <section class="dark-showcase" id="soluciones">.
   Incluye la introducción y las tarjetas de American Coatings y ECCI.
   ================================================================ */
.dark-showcase {
  padding: clamp(72px, 8vw, 112px) 0;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in oklch, var(--accent), transparent 70%), transparent 34%),
    var(--dark);
  color: white;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: clamp(32px, 8vw, 110px);
  align-items: end;
}

/* Títulos y textos introductorios compartidos entre secciones */
.section-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: 1.02;
  font-weight: 760;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-title.light,
.section-copy.light {
  color: white;
}

.section-copy {
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.42;
}

.showcase-board {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.showcase-board article {
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(26px, 2.8vw, 36px);
  border: 1px solid color-mix(in oklch, white, transparent 86%);
  border-radius: 30px;
  background: linear-gradient(180deg, color-mix(in oklch, white, transparent 90%), color-mix(in oklch, white, transparent 96%));
  transition: transform 520ms var(--ease-out), border-color 520ms var(--ease-out), background 520ms var(--ease-out);
}

.showcase-board article:hover {
  transform: translateY(-8px);
  border-color: color-mix(in oklch, white, transparent 72%);
  background: linear-gradient(180deg, color-mix(in oklch, white, transparent 84%), color-mix(in oklch, white, transparent 94%));
}

.showcase-board strong {
  margin-top: 18px;
  font-size: 28px;
  line-height: 1.08;
}

.showcase-board p {
  margin-top: 16px;
  color: oklch(76% 0.012 260);
  font-size: 16px;
}

.showcase-board h3 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(23px, 2.4vw, 31px);
  line-height: 1.12;
}

.case-features {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  color: oklch(82% 0.012 260);
  font-size: 15px;
}

.case-features li {
  position: relative;
  padding-left: 18px;
}

.case-features li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.showcase-board .success-case {
  display: grid;
  grid-column: span 1;
  grid-template-rows: auto auto auto auto 1fr auto;
  align-content: start;
}

.success-case > .case-image {
  width: 100%;
  min-height: 0;
  aspect-ratio: 745 / 268;
  margin: 30px 0 0;
}

/* Imágenes reales dentro de las tarjetas de casos de éxito */
.case-image-photo {
  overflow: hidden;
  border: 1px solid color-mix(in oklch, white, transparent 82%);
  border-radius: 22px;
  background: var(--dark-soft);
}

.case-image-photo img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Espaciado vertical compartido por Servicios, Método y Contacto */
.services,
.method,
.contact {
  padding: clamp(84px, 12vw, 148px) 0;
}

/* ================================================================
   03. NUESTROS SERVICIOS
   HTML: <section class="services" id="servicios">.
   Incluye Automatización de procesos, Inteligencia artificial para
   empresas y Soluciones digitales a la medida.
   ================================================================ */
.section-heading {
  max-width: 850px;
  text-align: center;
}

.section-heading .section-title {
  margin-inline: auto;
}

.services-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 34px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--border);
  transition: transform 360ms var(--ease-out), box-shadow 360ms var(--ease-out);
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 70px rgba(125, 147, 220, 0.12);
}

.service-large {
  grid-column: 1 / -1;
  min-height: 470px;
  background:
    radial-gradient(circle at 76% 24%, color-mix(in oklch, var(--accent), transparent 68%), transparent 24%),
    var(--blue-soft);
}

.service-dark {
  background: var(--dark);
  color: white;
}

.service-blue {
  background: var(--green-soft);
}

.service-card h3 {
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
}

.service-card p {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

/* Marcadores de imagen reutilizados en Servicios, Método y Casos */
.image-slot {
  position: relative;
  min-height: clamp(150px, 18vw, 230px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  margin: 30px 0;
  padding: 22px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid color-mix(in oklch, var(--fg), transparent 86%);
  background:
    linear-gradient(135deg, color-mix(in oklch, white, transparent 6%), color-mix(in oklch, var(--accent), transparent 88%)),
    repeating-linear-gradient(90deg, color-mix(in oklch, var(--border), transparent 42%) 0 1px, transparent 1px 28px);
}

.image-slot > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.image-slot:has(> img)::before {
  display: none;
}

.service-dark .image-slot > img {
  object-position: center 36%;
}

.image-slot::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 20px;
  border: 1px dashed color-mix(in oklch, var(--fg), transparent 78%);
}

.image-slot span,
.image-slot strong {
  position: relative;
  z-index: 1;
}

.image-slot span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.image-slot strong {
  max-width: 360px;
  font-size: 18px;
  line-height: 1.2;
}

.dark-slot {
  border-color: color-mix(in oklch, white, transparent 82%);
  background:
    linear-gradient(135deg, color-mix(in oklch, white, transparent 88%), color-mix(in oklch, var(--accent), transparent 78%)),
    repeating-linear-gradient(90deg, color-mix(in oklch, white, transparent 88%) 0 1px, transparent 1px 28px);
}

.dark-slot::before {
  border-color: color-mix(in oklch, white, transparent 70%);
}

.service-dark p,
.service-dark .service-list {
  color: oklch(78% 0.014 260);
}

.service-list {
  display: grid;
  gap: 12px;
  color: color-mix(in oklch, var(--fg), transparent 18%);
  font-size: 16px;
  font-weight: 560;
}

.service-list li {
  position: relative;
  padding-left: 20px;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ================================================================
   04. CÓMO TRABAJAMOS / MÉTODO
   HTML: <section class="method" id="metodo">.
   Incluye diagnóstico, diseño, implementación y mejora.
   ================================================================ */
.method {
  background: oklch(96% 0.004 255);
}

.method-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
}

.method-copy {
  position: sticky;
  top: 112px;
}

.method-copy p:last-child {
  margin-top: 22px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.48;
}

.method-image {
  margin-top: 34px;
}

.method-steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 72px 0.9fr 1.2fr;
  gap: 22px;
  align-items: start;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: color-mix(in oklch, white, transparent 4%);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
}

.step p {
  color: var(--muted);
  font-size: 17px;
}

/* ================================================================
   06. CONTACTO / PRÓXIMO PASO
   HTML: <section class="contact" id="contacto">.
   Panel final con correo y enlace de WhatsApp.
   ================================================================ */
.contact {
  background: var(--blue-soft);
  color: white;
}

.contact-panel {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 42px;
  padding: clamp(42px, 8vw, 86px);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in oklch, var(--accent), transparent 64%), transparent 34%),
    linear-gradient(180deg, var(--dark-soft), var(--dark));
  border: 1px solid color-mix(in oklch, white, transparent 88%);
}

.contact-panel h2 {
  max-width: 780px;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.contact-panel p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 24px;
  color: oklch(80% 0.012 260);
  font-size: clamp(18px, 2vw, 23px);
}

/* ================================================================
   07. ANIMACIONES COMPARTIDAS
   Aparición al cargar el hero y al desplazarse por las secciones.
   ================================================================ */
.scroll-layer {
  view-timeline-name: --layer;
  view-timeline-axis: block;
}

.reveal {
  opacity: 0;
  transform: translateY(54px) scale(0.985);
  filter: blur(14px);
  animation: reveal-up 1ms linear both;
  animation-timeline: view();
  animation-range: entry 8% cover 32%;
}

.hero .reveal {
  animation: reveal-load 980ms var(--ease-out) both;
  animation-timeline: auto;
  animation-delay: calc(var(--delay, 0) * 90ms);
}

.hero-title.reveal { --delay: 1; }
.hero-description.reveal { --delay: 2; }
.hero-showcase.reveal { --delay: 3; }
.hero-actions.reveal { --delay: 4; }

.showcase-board article:nth-child(2),
.services-grid .service-card:nth-child(2),
.method-steps .step:nth-child(2) {
  animation-range: entry 14% cover 38%;
}

.showcase-board article:nth-child(3),
.services-grid .service-card:nth-child(3),
.method-steps .step:nth-child(3) {
  animation-range: entry 20% cover 44%;
}

.method-steps .step:nth-child(4) {
  animation-range: entry 26% cover 50%;
}

@keyframes reveal-up {
  0% {
    opacity: 0;
    transform: translateY(62px) scale(0.985);
    filter: blur(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes reveal-load {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.99);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@supports not (animation-timeline: view()) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }

  .hero .reveal {
    animation: reveal-load 780ms var(--ease-out) both;
  }
}

/* Accesibilidad: elimina movimientos cuando el usuario así lo pide */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .btn,
  .service-card,
  .showcase-board article {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
    transition: none;
  }
}

/* ================================================================
   08. DISEÑO RESPONSIVE
   Ajustes ordenados desde escritorio amplio hasta teléfonos pequeños.
   ================================================================ */
@media (min-width: 1180px) {
  .service-large {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 42px;
    align-items: end;
  }

  .service-large .service-number {
    grid-column: 1 / -1;
  }

  .service-large .image-slot {
    grid-row: 2 / 4;
    grid-column: 2;
    min-height: 310px;
    margin: 0;
  }
}

/* Tabletas y pantallas medianas */
@media (max-width: 920px) {
  .navbar {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    min-width: auto;
  }

  .hero-title {
    max-width: 820px;
    font-size: clamp(52px, 9vw, 84px);
  }

  .hero-showcase {
    padding-right: 64px;
  }

  .hero-image-slot {
    min-height: 330px;
  }

  .showcase-grid,
  .method-layout {
    grid-template-columns: 1fr;
  }

  .method-copy {
    position: static;
  }

  .showcase-board,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .showcase-board article {
    min-height: 250px;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .method-copy p:last-child {
    max-width: 760px;
  }
}

/* Teléfonos */
@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .navbar {
    min-height: 58px;
    grid-template-columns: 1fr;
  }

  .navbar > .btn {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 40px 0 58px;
  }

  .hero-title {
    font-size: clamp(42px, 12vw, 58px);
    line-height: 1;
  }

  .hero-description,
  .section-copy,
  .method-copy p:last-child {
    font-size: 18px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .hero-showcase {
    margin-top: 36px;
    padding-right: 0;
    padding-bottom: 72px;
  }

  .hero-image-slot {
    min-height: 300px;
    border-radius: 24px;
  }

  .hero-image-slot::before {
    width: 48%;
    height: 50%;
    right: 10%;
    top: -8%;
  }

  .hero-image-slot::after {
    width: 42%;
    height: 58%;
    left: 18%;
    bottom: -18%;
  }

  .hero-image-content {
    right: 16px;
    bottom: 16px;
    left: 16px;
    max-width: none;
  }

  .hero-scroll-button {
    right: 0;
    bottom: 0;
    width: 62px;
    border-radius: 18px;
  }

  .hero-scroll-button span {
    width: 20px;
    height: 20px;
    border-width: 2px;
  }

  .btn {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .timeline-panel {
    grid-column: auto;
  }

  .metric-panel,
  .timeline-panel {
    min-height: auto;
    border-radius: 22px;
    padding: 22px;
  }

  .showcase-board article,
  .service-card,
  .contact-panel {
    border-radius: 26px;
  }

  .service-card {
    min-height: auto;
    padding: 26px;
  }

  .service-large {
    min-height: auto;
  }

  .image-slot {
    min-height: 168px;
    margin: 24px 0;
    border-radius: 22px;
  }
}

/* Teléfonos pequeños */
@media (max-width: 430px) {
  .container {
    width: min(calc(100% - 22px), var(--max-width));
  }

  .brand {
    font-size: 21px;
  }

  .hero-title {
    font-size: 39px;
  }

  .section-title {
    font-size: 34px;
  }

  .product-grid {
    padding: 14px;
    gap: 12px;
  }

  .metric-panel strong {
    font-size: 34px;
  }

  .timeline-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .contact-panel {
    padding: 34px 22px;
    min-height: 480px;
  }
}
