/* ================================================================
   00. CONFIGURACIÓN GLOBAL
   Variables de diseño usadas en toda la página.
   
   Índice: 01 Navegación | Componentes | 02 Hero | Auxiliares |
   05 Casos | 03 Servicios | 04 Método | 06 Contacto |
   07 Animaciones | 08 Responsive.
   ================================================================ */
: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;
  /* Ancho amplio para aprovechar monitores grandes sin estirar los textos. */
  --max-width: 1440px;
  --page-gutter: clamp(32px, 5vw, 96px);
  --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: ocupa el ancho disponible y conserva aire lateral. */
.container {
  width: min(calc(100% - var(--page-gutter)), 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: 112px;
  display: grid;
  grid-template-columns: minmax(280px, auto) 1fr 220px;
  align-items: center;
  gap: 30px;
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--fg);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0;
}

/* Espacio para el logo HD ubicado a la izquierda del nombre. */
.brand-logo-slot {
  position: relative;
  width: 98px;
  height: 98px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 240ms var(--ease-out);
}

.brand:hover .brand-logo-slot {
  transform: translateY(-2px) scale(1.04);
  box-shadow: none;
}

.brand-logo-slot img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  /* El blanco incrustado en el PNG se mezcla con el encabezado. */
  /* Acerca el dibujo porque el archivo HD incluye margen blanco interno. */
  transform: scale(1.52);
  transform-origin: 50% 44%;
}

/* Se muestra mientras no exista assets/logo-atlas-dev.png. */
.brand-logo-fallback {
  color: white;
  font: 800 15px/1 var(--font-mono);
  letter-spacing: -0.04em;
}

.brand-name {
  margin-left: 2cm;
  white-space: nowrap;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 30px;
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  line-height: 1;
}

.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 {
  min-height: clamp(560px, 72vh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(520px, 1.24fr);
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
  text-align: left;
}

.hero-presentation {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-title {
  max-width: 720px;
  margin: 30px 0 0;
  font-family: var(--font-display);
  color: var(--fg);
  font-size: clamp(52px, 5.5vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 820;
  text-wrap: balance;
}

.hero-description {
  max-width: 620px;
  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;
  /* La imagen principal acompaña el nuevo ancho del contenedor. */
  max-width: none;
  margin: clamp(54px, 6vw, 76px) 0 0;
  padding-right: 86px;
}

/* Columna preparada para recibir el próximo componente visual. */
.hero-visual-slot {
  width: 100%;
  min-width: 0;
  min-height: clamp(460px, 42vw, 650px);
}

.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);
}

/* ----------------------------------------------------------------
   03.1 DESPLEGABLES DE "MÁS INFORMACIÓN"
   Expansión de tarjetas, botón <summary> y mapas conceptuales.
   ---------------------------------------------------------------- */
.service-card.is-open,
.service-card:has(.service-details[open]) {
  grid-column: 1 / -1;
  overflow: visible;
}

.service-card.is-open:hover,
.service-card:has(.service-details[open]):hover {
  transform: none;
}

.service-details {
  margin-top: 30px;
}

.service-details summary {
  width: max-content;
  cursor: pointer;
  list-style: none;
}

.service-details summary::-webkit-details-marker { display: none; }
.service-details[open] summary { background: var(--accent-strong); }

/* Servicio 02: botón independiente, sin mapa ni desplegable asociado */
.service-info-neon {
  width: max-content;
  margin-top: 30px;
  border: 1px solid #ff304f;
  background: transparent;
  color: #ff5a70;
  box-shadow: 0 0 8px rgba(255, 48, 79, 0.75), inset 0 0 8px rgba(255, 48, 79, 0.16);
}

.service-info-neon:hover {
  border-color: #ff6b80;
  background: rgba(255, 48, 79, 0.1);
  color: white;
  box-shadow: 0 0 12px rgba(255, 48, 79, 0.9), 0 0 28px rgba(255, 48, 79, 0.46), inset 0 0 10px rgba(255, 48, 79, 0.22);
}

/* El Servicio 02 vive en css/ser02.css para mantenerlo aislado. */

/* Estructura del desplegable: texto a la izquierda, mapa a la derecha */
.service-concept-map {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid color-mix(in oklch, var(--fg), transparent 88%);
  background: radial-gradient(circle at 78% 16%, color-mix(in oklch, var(--accent), transparent 86%), transparent 30%), linear-gradient(135deg, color-mix(in oklch, white, transparent 6%), color-mix(in oklch, white, transparent 18%));
  box-shadow: inset 0 1px 0 color-mix(in oklch, white, transparent 10%);
}

.service-dark .service-concept-map {
  border-color: color-mix(in oklch, white, transparent 84%);
  background: radial-gradient(circle at 78% 16%, color-mix(in oklch, var(--accent), transparent 72%), transparent 30%), linear-gradient(135deg, color-mix(in oklch, white, transparent 88%), color-mix(in oklch, white, transparent 94%));
}

.service-concept-map .concept-map-copy h4 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.04;
}

.service-concept-map .concept-map-copy p:not(.eyebrow) { margin-top: 14px; }
/* Lista de conceptos del lado textual */
.concept-pill-list { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 34px; }

.concept-pill {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid color-mix(in oklch, var(--fg), transparent 90%);
  border-radius: 999px;
  padding: 0 24px 0 16px;
  background: color-mix(in oklch, white, transparent 16%);
  color: var(--fg);
  font: 750 16px/1 var(--font-body);
  text-align: left;
  box-shadow: inset 0 1px 0 color-mix(in oklch, white, transparent 10%);
  transition: transform 260ms var(--ease-out), background 260ms var(--ease-out), border-color 260ms var(--ease-out);
}

.concept-pill:hover { transform: translateX(6px); border-color: color-mix(in oklch, var(--accent), transparent 62%); background: white; }
.concept-pill span { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; border: 1.5px solid currentColor; border-radius: 50%; font-family: var(--font-mono); font-size: 17px; line-height: 1; }
.concept-pill-wide { min-width: min(100%, 390px); }

/* Superficie cuadriculada del diagrama */
.concept-map-visual {
  position: relative;
  min-height: clamp(360px, 38vw, 520px);
  border-radius: clamp(26px, 4vw, 38px);
  border: 1px solid color-mix(in oklch, white, transparent 14%);
  background: linear-gradient(90deg, color-mix(in oklch, white, transparent 46%) 1px, transparent 1px), linear-gradient(180deg, color-mix(in oklch, white, transparent 46%) 1px, transparent 1px), radial-gradient(circle at 50% 45%, color-mix(in oklch, var(--accent), transparent 70%), transparent 32%), linear-gradient(135deg, oklch(99% 0.001 255), oklch(91% 0.018 255));
  background-size: 42px 42px, 42px 42px, auto, auto;
  box-shadow: inset 0 1px 0 color-mix(in oklch, white, transparent 10%);
}

/* Línea conectora entre los nodos */
.concept-line { position: absolute; left: 17%; right: 16%; top: 51%; height: 2px; background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--accent), transparent 44%), transparent); }

/* Nodos secundarios y nodo central */
.concept-node { position: absolute; width: min(230px, 32%); min-height: 104px; display: flex; flex-direction: column; justify-content: center; gap: 8px; border-radius: 24px; padding: 20px; border: 1px solid color-mix(in oklch, var(--fg), transparent 88%); background: color-mix(in oklch, white, transparent 10%); box-shadow: 0 18px 46px rgba(21, 32, 70, 0.12); backdrop-filter: blur(14px); }
.concept-node span { color: var(--accent); font-family: var(--font-mono); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.concept-node strong { color: var(--fg); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.15; }
.concept-node-main { left: 50%; top: 50%; z-index: 2; width: min(270px, 38%); min-height: 132px; transform: translate(-50%, -50%); background: var(--dark); }
.concept-node-main span { color: oklch(78% 0.09 255); }
.concept-node-main strong { color: white; font-size: clamp(20px, 2vw, 28px); }
.concept-node-top { left: 8%; top: 13%; }
.concept-node-right { right: 7%; top: 24%; }
.concept-node-bottom { left: 18%; bottom: 12%; }

/* Responsive local del mapa: tabletas */
@media (max-width: 920px) {
  .service-concept-map { grid-template-columns: 1fr; }
  .concept-pill-list { flex-direction: row; flex-wrap: wrap; }
}

/* Responsive local del mapa: teléfonos */
@media (max-width: 620px) {
  .concept-pill-list { flex-direction: column; align-items: stretch; }
  .concept-pill, .concept-pill-wide { width: 100%; min-width: 0; }
  .concept-map-visual { min-height: auto; display: grid; gap: 14px; padding: 18px; }
  .concept-line { display: none; }
  .concept-node, .concept-node-main, .concept-node-top, .concept-node-right, .concept-node-bottom { position: static; width: 100%; min-height: auto; transform: none; }
  .service-details summary { width: 100%; }
  .service-info-neon { width: 100%; }
  .service-concept-map { margin-top: 18px; padding: 20px; border-radius: 24px; }
}

/* ----------------------------------------------------------------
   03.2 MAPA VISUAL DEL SERVICIO 01: AUTOMATIZACIÓN
   Tarjeta principal con herramientas y flujo numerado del proceso.
   HTML: .process-map-card dentro del primer .service-details.
   ---------------------------------------------------------------- */

/* Tarjeta y columna descriptiva */
.process-map-card {
  margin-top: 28px;
  display: grid;
  /* Más espacio para el recorrido visual que para la columna de texto. */
  grid-template-columns: minmax(260px, 0.68fr) minmax(650px, 1.62fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: stretch;
  border-radius: clamp(26px, 3vw, 38px);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid color-mix(in oklch, var(--accent), transparent 82%);
  background: radial-gradient(circle at 85% 12%, color-mix(in oklch, var(--accent), transparent 90%), transparent 28%), linear-gradient(135deg, white, color-mix(in oklch, white, var(--blue-soft) 26%));
  box-shadow: 0 28px 80px rgba(21, 32, 70, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.process-map-copy {
  padding-right: clamp(8px, 2vw, 34px);
  border-right: 1px solid color-mix(in oklch, var(--fg), transparent 88%);
}

.process-map-copy h3 {
  max-width: 370px;
  margin-top: 24px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
}

.process-map-copy p:not(.eyebrow) {
  max-width: 370px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.6;
}

/* Chips de herramientas conectadas */
.tool-chip-grid {
  margin-top: clamp(30px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tool-chip {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--fg), transparent 88%);
  background: rgba(255, 255, 255, 0.76);
  color: var(--fg);
  font: 780 15px/1 var(--font-body);
  box-shadow: 0 12px 30px rgba(21, 32, 70, 0.07);
  transition: transform 240ms var(--ease-out), border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}

.tool-chip:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklch, var(--accent), transparent 54%);
  box-shadow: 0 18px 38px rgba(21, 32, 70, 0.12);
}

.tool-chip i {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: white;
  font-style: normal;
  font: 800 12px/1 var(--font-mono);
}

/* Color identificador de cada herramienta */
.tool-purple i { background: oklch(56% 0.19 305); }
.tool-green i { background: oklch(58% 0.16 150); }
.tool-multi i { background: linear-gradient(135deg, #4285f4, #34a853 35%, #fbbc05 68%, #ea4335); }
.tool-drive i { background: linear-gradient(135deg, #1a73e8, #34a853 50%, #fbbc04); }
.tool-mail i { background: linear-gradient(135deg, #4285f4, #ea4335 50%, #fbbc04); }
.tool-blue i { background: oklch(62% 0.18 250); }

/* Secuencia vertical de herramientas del Servicio 01 */
.service-large .tool-process {
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-large .tool-process .tool-chip {
  position: relative;
  min-height: 58px;
  justify-content: flex-start;
  padding: 8px 16px;
  border-radius: 16px;
}

.service-large .tool-process .tool-chip:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  transform: translateX(-50%);
  color: var(--accent);
  font: 800 15px/1 var(--font-mono);
  text-shadow: 0 0 8px color-mix(in oklch, var(--accent), transparent 35%);
}

.service-large .tool-process .tool-chip > span {
  display: grid;
  gap: 3px;
  text-align: left;
}

.service-large .tool-process .tool-chip strong {
  color: var(--fg);
  font-size: 13px;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.service-large .tool-process .tool-chip small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

/* Área derecha y cuadrícula del flujo */
.process-flow {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 26px;
}

.flow-track {
  position: relative;
  display: grid;
  /* Las columnas flexibles de las flechas separan mejor cada icono. */
  grid-template-columns: minmax(96px, 1fr) minmax(40px, 0.58fr) minmax(96px, 1fr) minmax(40px, 0.58fr) minmax(96px, 1fr) minmax(40px, 0.58fr) minmax(96px, 1fr);
  grid-template-rows: auto 92px auto;
  align-items: center;
  gap: 12px 14px;
  list-style: none;
}

/* Pasos 1–4 en la fila superior; pasos 5–7 en la inferior */
.flow-step {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: grid;
  justify-items: center;
  text-align: center;
}

/* Posiciones explícitas: impiden que el navegador amontone los nodos. */
.flow-step:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.flow-step:nth-of-type(3) { grid-column: 3; grid-row: 1; }
.flow-step:nth-of-type(5) { grid-column: 5; grid-row: 1; }
.flow-step:nth-of-type(7) { grid-column: 7; grid-row: 1; }
.flow-step:nth-of-type(9) { grid-column: 1; grid-row: 3; }
.flow-step:nth-of-type(11) { grid-column: 3; grid-row: 3; }
.flow-step:nth-of-type(13) { grid-column: 5; grid-row: 3; }

.flow-index {
  position: absolute;
  top: -9px;
  left: calc(50% - 48px);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font: 800 12px/1 var(--font-mono);
  box-shadow: 0 0 0 5px color-mix(in oklch, var(--accent), transparent 82%);
}

.flow-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid color-mix(in oklch, var(--accent), transparent 62%);
  background: radial-gradient(circle, color-mix(in oklch, var(--accent), transparent 88%), transparent 62%), white;
  color: var(--accent);
  box-shadow: 0 0 0 8px color-mix(in oklch, var(--accent), transparent 92%), 0 18px 42px rgba(33, 96, 210, 0.12);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out);
}

.flow-step:hover .flow-icon {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 0 0 9px color-mix(in oklch, var(--accent), transparent 86%), 0 0 28px color-mix(in oklch, var(--accent), transparent 48%), 0 24px 50px rgba(33, 96, 210, 0.18);
}

.flow-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.green-icon { color: oklch(58% 0.16 150); border-color: color-mix(in oklch, oklch(58% 0.16 150), transparent 62%); }
.flow-step strong { margin-top: 16px; color: var(--fg); font-size: 16px; line-height: 1.1; }
.flow-step small { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.2; }

/* Flechas horizontales animadas */
.flow-arrow {
  position: relative;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--accent), transparent 68%), transparent);
  opacity: 0.4;
  animation: arrow-glow 4.2s var(--ease-scroll) infinite;
}

/* Cada flecha ocupa exactamente la columna entre sus dos pasos. */
.flow-arrow:nth-of-type(2) { grid-column: 2; grid-row: 1; animation-delay: 0s; }
.flow-arrow:nth-of-type(4) { grid-column: 4; grid-row: 1; animation-delay: 0.55s; }
.flow-arrow:nth-of-type(6) { grid-column: 6; grid-row: 1; animation-delay: 1.1s; }
.flow-arrow:nth-of-type(10) { grid-column: 2; grid-row: 3; animation-delay: 2.2s; }
.flow-arrow:nth-of-type(12) { grid-column: 4; grid-row: 3; animation-delay: 2.75s; }

.flow-arrow::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

/* Conector que baja del paso 4 a la segunda fila */
.flow-return {
  grid-column: 2 / 7;
  grid-row: 2;
  align-self: center;
  height: 54px;
  border-right: 2px solid color-mix(in oklch, var(--fg), transparent 58%);
  border-bottom: 2px solid color-mix(in oklch, var(--fg), transparent 58%);
  border-left: 2px solid color-mix(in oklch, var(--fg), transparent 58%);
  border-radius: 0 0 18px 18px;
  opacity: 0.32;
  animation: return-glow 4.2s var(--ease-scroll) 1.65s infinite;
}

/* Ejemplo práctico al pie del flujo */
.flow-example { display: grid; gap: 10px; border-radius: 16px; border: 1px solid color-mix(in oklch, var(--accent), transparent 62%); padding: 18px 22px; background: color-mix(in oklch, var(--blue-soft), white 34%); color: var(--fg); }
.flow-example strong { color: var(--accent); font-size: 16px; }
.flow-example span { color: color-mix(in oklch, var(--fg), transparent 22%); font-size: 15px; }

/* Diagrama operativo horizontal del Servicio 01 */
.business-flow-diagram { position: relative; min-height: clamp(460px, 34vw, 520px); overflow: hidden; border-radius: 30px; padding: clamp(20px, 2.4vw, 30px); background: radial-gradient(circle at 8% 50%, color-mix(in oklch, var(--accent), transparent 92%), transparent 28%), linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.34)); }
.business-flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.business-flow-lines marker path { fill: var(--accent); stroke: none; }
.flow-line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; marker-end: url(#service01FlowArrow); opacity: .42; filter: drop-shadow(0 0 8px color-mix(in oklch, var(--accent), transparent 20%)); stroke-dasharray: 12 18; animation: line-pulse 4.4s var(--ease-scroll) infinite; }
.flow-line.line-muted { opacity: .24; }
.flow-line.line-money, .flow-line.line-final { stroke: oklch(58% .16 150); filter: drop-shadow(0 0 8px color-mix(in oklch, oklch(58% .16 150), transparent 20%)); }
.delay-1 { animation-delay: .2s; } .delay-2 { animation-delay: .4s; } .delay-3 { animation-delay: .65s; } .delay-4 { animation-delay: .9s; } .delay-5 { animation-delay: 1.05s; } .delay-6 { animation-delay: 1.25s; } .delay-7 { animation-delay: 1.45s; } .delay-8 { animation-delay: 1.7s; } .delay-9 { animation-delay: 1.95s; } .delay-10 { animation-delay: 2.2s; } .delay-11 { animation-delay: 2.45s; }
.business-node { position: absolute; z-index: 2; width: clamp(104px, 8.8vw, 124px); min-height: clamp(84px, 7vw, 98px); display: grid; justify-items: center; align-content: center; gap: 5px; padding: 9px 7px; border: 1px solid color-mix(in oklch, var(--accent), transparent 70%); border-radius: 16px; background: rgba(255,255,255,.84); color: var(--fg); text-align: center; box-shadow: 0 11px 28px rgba(21,32,70,.09); transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms var(--ease-out); }
.business-node:hover { transform: translateY(-3px); border-color: color-mix(in oklch, var(--accent), transparent 42%); box-shadow: 0 0 24px color-mix(in oklch, var(--accent), transparent 62%), 0 20px 42px rgba(21,32,70,.14); }
.node-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklch, var(--accent), transparent 84%), white 68%); color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent), transparent 92%); }
.node-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.business-node strong { max-width: 104px; color: var(--fg); font-size: clamp(11px, .92vw, 13px); line-height: 1.08; }
.business-node small { max-width: 104px; color: var(--muted); font-size: clamp(9px, .78vw, 11px); line-height: 1.12; }
.node-pink { border-color: color-mix(in oklch, oklch(63% .2 10), transparent 64%); } .node-pink .node-icon { color: oklch(63% .2 10); background: radial-gradient(circle, color-mix(in oklch, oklch(63% .2 10), transparent 84%), white 68%); }
.node-green .node-icon, .node-yellow .node-icon { color: oklch(58% .16 150); background: radial-gradient(circle, color-mix(in oklch, oklch(58% .16 150), transparent 84%), white 68%); }
.node-yellow { border-color: color-mix(in oklch, oklch(80% .14 95), transparent 50%); }
.node-company { left: 1.5%; top: 39%; } .node-clients { left: 20.5%; top: 4%; } .node-suppliers { left: 20.5%; top: 39%; } .node-products { left: 20.5%; top: 74%; } .node-receivable { left: 38%; top: 4%; } .node-payable { left: 38%; top: 39%; } .node-income { left: 55%; top: 4%; } .node-expenses { left: 55%; top: 39%; } .node-consolidation { left: 72%; top: 39%; } .node-reports { left: 96%; top: 4%; transform: translateX(-100%); } .node-dashboard { left: 96%; top: 74%; transform: translateX(-100%); }
.node-reports:hover, .node-dashboard:hover { transform: translateX(-100%) translateY(-3px); }
@keyframes line-pulse { 0%,16%,100% { opacity: .26; stroke-dashoffset: 34; } 34%,48% { opacity: 1; stroke-dashoffset: 0; } 62% { opacity: .32; } }

@keyframes arrow-glow {
  0%, 12%, 100% { opacity: 0.3; box-shadow: none; }
  22%, 34% { opacity: 1; background-color: var(--accent); box-shadow: 0 0 8px var(--accent), 0 0 24px color-mix(in oklch, var(--accent), transparent 18%); }
  46% { opacity: 0.3; box-shadow: none; }
}

@keyframes return-glow {
  0%, 12%, 100% { opacity: 0.25; filter: none; }
  22%, 34% { opacity: 1; border-color: var(--accent); filter: drop-shadow(0 0 9px color-mix(in oklch, var(--accent), transparent 12%)); }
  46% { opacity: 0.25; filter: none; }
}

/* Responsive local del mapa de proceso: portátiles y tabletas */
@media (max-width: 1100px) {
  .process-map-card { grid-template-columns: 1fr; }
  .process-map-copy { padding-right: 0; padding-bottom: 28px; border-right: 0; border-bottom: 1px solid color-mix(in oklch, var(--fg), transparent 88%); }
}

/* Responsive local del mapa de proceso: teléfonos */
@media (max-width: 620px) {
  .process-map-card { padding: 20px; border-radius: 24px; }
  .tool-chip-grid { grid-template-columns: 1fr; }
  .flow-track { grid-template-columns: 1fr; grid-template-rows: none; gap: 18px; }
  .flow-step, .flow-step:nth-of-type(1), .flow-step:nth-of-type(3), .flow-step:nth-of-type(5), .flow-step:nth-of-type(7), .flow-step:nth-of-type(9), .flow-step:nth-of-type(11), .flow-step:nth-of-type(13) { grid-column: 1; grid-row: auto; }
  .flow-arrow, .flow-arrow:nth-of-type(2), .flow-arrow:nth-of-type(4), .flow-arrow:nth-of-type(6), .flow-arrow:nth-of-type(10), .flow-arrow:nth-of-type(12) { grid-column: 1; grid-row: auto; width: 2px; height: 34px; justify-self: center; background: linear-gradient(180deg, transparent, var(--accent), transparent); }
  .flow-arrow::after { right: auto; top: auto; bottom: 0; left: 50%; transform: translateX(-50%) rotate(135deg); }
  .flow-return { display: none; }
  .flow-icon { width: 78px; height: 78px; }
  .business-flow-diagram { min-height: 0; display: grid; gap: 12px; padding: 16px; }
  .business-flow-lines { display: none; }
  .business-node, .node-company, .node-clients, .node-suppliers, .node-products, .node-receivable, .node-payable, .node-income, .node-expenses, .node-consolidation, .node-reports, .node-dashboard { position: relative; inset: auto; left: auto; top: auto; width: 100%; min-height: 76px; grid-template-columns: 42px 1fr; justify-items: start; align-items: center; text-align: left; padding: 12px 14px; transform: none; }
  .business-node:hover, .node-reports:hover, .node-dashboard:hover { transform: translateY(-2px); }
  .business-node strong, .business-node small { max-width: none; }
}

/* ================================================================
   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);
  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);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-actions .btn {
  min-height: 58px;
  gap: 11px;
}

.contact-email-option {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-email-label {
  color: white;
  font-size: 15px;
  font-weight: 750;
  white-space: nowrap;
}

.contact-actions svg {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-email {
  color: var(--dark);
  border: 1px solid white;
  background: white;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2), 0 0 18px rgba(255, 255, 255, .1);
}

.btn-email strong {
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1;
  letter-spacing: .01em;
}

.btn-email:hover {
  color: var(--accent-strong);
  background: #f7fbff;
  border-color: #f7fbff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .24), 0 0 22px rgba(255, 255, 255, .18);
}

.btn-whatsapp {
  color: #eafff1;
  border: 1px solid #35d06f;
  background: rgba(37, 211, 102, .12);
  box-shadow: 0 0 0 1px rgba(37, 211, 102, .08), 0 0 18px rgba(37, 211, 102, .16);
}

.btn-whatsapp:hover {
  color: white;
  border-color: #5bea8f;
  background: rgba(37, 211, 102, .2);
  box-shadow: 0 0 22px rgba(37, 211, 102, .28);
}

@keyframes reveal-load {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(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,
  .flow-arrow,
  .flow-line,
  .flow-return {
    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;
  }

  /* El desplegable del Servicio 01 usa todo el ancho de la tarjeta. */
  .service-large .service-details {
    grid-column: 1 / -1;
  }
}

/* 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-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-presentation {
    max-width: 820px;
  }

  .hero-visual-slot {
    min-height: 420px;
  }

  .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: 82px;
    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;
  }

  .contact-email-option {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .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-inner {
    gap: 32px;
  }

  .hero-visual-slot {
    min-height: 300px;
  }

  .brand-logo-slot {
    width: 72px;
    height: 72px;
    border-radius: 0;
  }

  /* En móvil se reduce el desplazamiento para evitar desbordamiento. */
  .brand-name {
    margin-left: 18px;
    font-size: 23px;
    letter-spacing: 0.08em;
  }

  .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;
  }
}
