/* =========================================================================
   MCO DIGITAL — DESIGN SYSTEM
   Millan & Company · mcodigital
   Estructura: 1. Tokens  2. Reset  3. Base  4. Utilidades  5. Layout
               6. Header  7. Botones  8. Componentes  9. Secciones
               10. Formularios  11. Footer  12. Animaciones  13. Responsive
   ========================================================================= */

/* ---------------------------------------------------------------------- */
/* 1. TOKENS                                                              */
/* ---------------------------------------------------------------------- */
:root {
  /* Color */
  --ink: #0a0e17;
  --ink-soft: #131a2a;
  --ink-line: #232c40;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-soft-2: #eef0f3;
  --text: #131722;
  --text-muted: #5b6472;
  --text-faint: #8a93a3;
  --border: #e3e6eb;
  --border-soft: #edeff2;
  --accent: #2555e7;
  --accent-dark: #1c3fb0;
  --accent-soft: #eaf0ff;
  --accent-ink: #dbe6ff;
  --on-ink: #f4f6fb;
  --on-ink-muted: #9aa4b8;
  --white: #ffffff;
  --success: #17845a;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --lh: 1.55;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 800px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur-s: .18s;
  --dur-m: .4s;

  /* Shadow */
  --shadow-s: 0 1px 2px rgba(10,14,23,.06), 0 1px 1px rgba(10,14,23,.04);
  --shadow-m: 0 10px 30px -12px rgba(10,14,23,.18);
  --shadow-l: 0 24px 60px -20px rgba(10,14,23,.28);
}

/* ---------------------------------------------------------------------- */
/* 2. RESET                                                               */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
img, picture, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; }

/* ---------------------------------------------------------------------- */
/* 3. BASE                                                                */
/* ---------------------------------------------------------------------- */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }

p { color: var(--text-muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-muted); max-width: 60ch; }

strong { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------------- */
/* 4. UTILIDADES                                                          */
/* ---------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-6); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin-inline: auto; padding-inline: var(--sp-6); }
.section { padding-block: var(--sp-10); }
.section-tight { padding-block: var(--sp-8); }
.section-soft { background: var(--bg-soft); }
.section-ink { background: var(--ink); color: var(--on-ink); }
.section-ink h2, .section-ink h3, .section-ink h4 { color: var(--white); }
.section-ink p { color: var(--on-ink-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-ink .eyebrow { color: #7ea0ff; }
.section-ink .eyebrow::before { background: #7ea0ff; }

.section-head { max-width: 720px; margin-bottom: var(--sp-8); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-6); max-width: none; }

.text-center { text-align: center; }
.mt-1 { margin-top: var(--sp-1); } .mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); } .mt-8 { margin-top: var(--sp-8); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-5 { margin-bottom: var(--sp-5); } .mb-6 { margin-bottom: var(--sp-6); }

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

.skip-link {
  position: absolute; left: var(--sp-4); top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: .7em 1.1em; border-radius: var(--radius-s);
  transition: top var(--dur-s) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

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

/* ---------------------------------------------------------------------- */
/* 6. HEADER                                                              */
/* ---------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-s); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); width: 100%; }

.brand { display: flex; align-items: center; font-weight: 700; color: var(--ink); flex-shrink: 0; }
.brand-mark-img { height: 32px; width: auto; flex-shrink: 0; display: block; }

.main-nav { display: flex; }
.main-nav ul { display: flex; align-items: center; gap: var(--sp-6); }
.main-nav .nav-cta { display: none; }
.main-nav a {
  font-size: .93rem; font-weight: 500; color: var(--text-muted);
  padding: .4rem 0; position: relative; transition: color var(--dur-s) var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-s) var(--ease);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: var(--sp-4); flex-shrink: 0; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-s);
  width: 42px; height: 42px; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------------- */
/* 7. BOTONES                                                             */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-size: .95rem; font-weight: 600; padding: .85rem 1.5rem; border-radius: 999px;
  border: 1px solid transparent; transition: transform var(--dur-s) var(--ease), background var(--dur-s) var(--ease), border-color var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--dur-s) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.08) inset; }
.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--ink); }

.section-ink .btn-secondary, .hero .btn-secondary { color: var(--white); border-color: var(--ink-line); }
.section-ink .btn-secondary:hover, .hero .btn-secondary:hover { border-color: var(--on-ink); }

.btn-ghost { padding: 0; background: none; color: var(--accent); border-radius: 0; font-weight: 600; }
.btn-ghost::after { content: none; }
.section-ink .btn-ghost { color: #8fb0ff; }

.btn-block { width: 100%; }
.btn-sm { padding: .6rem 1.1rem; font-size: .85rem; }

.cta-row { display: flex; align-items: center; gap: var(--sp-5); flex-wrap: wrap; }

/* ---------------------------------------------------------------------- */
/* 8. COMPONENTES                                                        */
/* ---------------------------------------------------------------------- */

/* Tarjetas genéricas */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: var(--sp-6); transition: transform var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease), border-color var(--dur-m) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--border); }

/* Grid utilitario */
.grid { display: grid; gap: var(--sp-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* HERO */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: var(--on-ink);
  padding-top: calc(var(--sp-10) + var(--sp-4));
  padding-bottom: var(--sp-9);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
}
.hero-inner { position: relative; z-index: 1; }
.hero-content { max-width: 760px; }
.hero-content h1 { color: var(--white); }
.hero-content .lead { color: var(--on-ink-muted); font-size: clamp(1.05rem, 1.7vw, 1.3rem); max-width: 56ch; margin-top: var(--sp-5); }
.hero-trust {
  margin-top: var(--sp-9); padding-top: var(--sp-6); border-top: 1px solid var(--ink-line);
  display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
  color: var(--on-ink-muted); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
}
.hero-trust span { color: var(--on-ink-muted); }
.hero-trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-line); }
.hero .cta-row { margin-top: var(--sp-7); }

/* Diagrama de sistema abstracto (SVG decorativo) */
.system-diagram { width: 100%; height: auto; }
.system-diagram .node { fill: var(--ink); stroke: #3a4560; stroke-width: 1; }
.system-diagram .node-dot { fill: #7ea0ff; }
.system-diagram .link { stroke: #2a3450; stroke-width: 1; fill: none; }
.system-diagram .link-active { stroke: #3a5bd0; stroke-width: 1.4; stroke-dasharray: 4 5; animation: dash 6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -90; } }

/* Bloque problema */
.problem-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3) var(--sp-6); margin-top: var(--sp-6); }
.problem-item { display: flex; align-items: flex-start; gap: .7rem; padding: var(--sp-3) 0; border-bottom: 1px solid var(--border-soft); }
.problem-item svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .18rem; color: var(--text-faint); }
.problem-item span { color: var(--text); font-size: .97rem; }

.value-panel {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: var(--sp-7); box-shadow: var(--shadow-m);
}

/* Servicios */
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: var(--sp-7); display: flex; flex-direction: column; height: 100%;
  transition: transform var(--dur-m) var(--ease), box-shadow var(--dur-m) var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-l); }
.service-icon {
  width: 52px; height: 52px; border-radius: var(--radius-s); background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-5);
}
.service-icon svg { width: 26px; height: 26px; color: var(--accent); }
.service-letter { font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--text-faint); margin-bottom: var(--sp-2); text-transform: uppercase; }
.service-card h3 { margin-bottom: var(--sp-2); }
.service-card p { margin-bottom: var(--sp-4); }
.service-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: var(--sp-4) 0 var(--sp-5); }
.tag {
  font-size: .78rem; font-weight: 600; color: var(--text-muted); background: var(--bg-soft);
  border: 1px solid var(--border-soft); padding: .3rem .7rem; border-radius: 999px;
}
.service-card .btn-ghost { margin-top: auto; }

/* Proceso diferenciador (mini) */
.flow-steps { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-7); }
.flow-step {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
  padding: .65rem 1.3rem; font-weight: 600; font-size: .92rem; color: var(--ink);
}
.flow-arrow { color: var(--text-faint); flex-shrink: 0; }
.flow-arrow svg { width: 18px; height: 18px; }

/* Casos de uso */
.usecase-card {
  background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: var(--radius-m);
  padding: var(--sp-6);
}
.usecase-card .num { font-size: .78rem; font-weight: 700; color: var(--accent); letter-spacing: .06em; }
.usecase-card h3 { margin: var(--sp-2) 0 var(--sp-2); font-size: 1.15rem; }

/* Proceso — pasos numerados */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); margin-top: var(--sp-8); position: relative; }
.process-steps::before {
  content: ""; position: absolute; top: 26px; left: 6%; right: 6%; height: 1px; background: var(--border);
}
.section-ink .process-steps::before { background: var(--ink-line); }
.process-step { position: relative; }
.process-num {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 50%; background: var(--white); border: 1px solid var(--border);
  font-weight: 700; color: var(--accent); font-size: 1.05rem; position: relative; z-index: 1; margin-bottom: var(--sp-5);
}
.section-ink .process-num { background: var(--ink); border-color: var(--ink-line); color: #8fb0ff; }
.process-step h3 { margin-bottom: var(--sp-2); font-size: 1.15rem; }

/* Proyectos */
.project-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8);
  border: 1px solid var(--border); border-radius: var(--radius-l); overflow: hidden;
  background: var(--white);
}
.project-visual {
  background: var(--ink); min-height: 320px; position: relative; display: flex; align-items: center; justify-content: center; padding: var(--sp-6);
}
.project-body { padding: var(--sp-8) var(--sp-8) var(--sp-8) 0; display: flex; flex-direction: column; justify-content: center; }
.project-tag { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-bottom: var(--sp-3); }
.project-meta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); margin-top: var(--sp-6); padding-top: var(--sp-6); border-top: 1px solid var(--border-soft); }
.project-meta dt { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: .35rem; }
.project-meta dd { font-size: .92rem; color: var(--text); }

.concept-banner {
  display: flex; align-items: center; gap: var(--sp-4); background: var(--accent-soft); border: 1px solid var(--accent-ink);
  border-radius: var(--radius-m); padding: var(--sp-5) var(--sp-6); margin-bottom: var(--sp-8);
}
.concept-banner svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.concept-banner p { color: var(--ink); font-size: .92rem; margin: 0; }
.concept-banner strong { color: var(--ink); }

/* FAQ */
.faq-list { max-width: var(--container-narrow); margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  padding: var(--sp-5) 0; font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: transform var(--dur-s) var(--ease), background var(--dur-s) var(--ease); }
.faq-item summary .icon svg { width: 12px; height: 12px; }
.faq-item[open] summary .icon { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(45deg); }
.faq-item .faq-a { padding-bottom: var(--sp-5); max-width: 62ch; }

/* Stat / obsesión strip (sin métricas falsas: cualitativo) */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); margin-top: var(--sp-8); }
.principle { padding-top: var(--sp-5); border-top: 2px solid var(--border); }
.section-ink .principle { border-top-color: var(--ink-line); }
.principle h3 { font-size: 1.1rem; margin-bottom: var(--sp-2); }

/* CTA final */
.cta-final { text-align: center; }
.cta-final .container-narrow { display: flex; flex-direction: column; align-items: center; }
.cta-final .cta-row { justify-content: center; margin-top: var(--sp-7); }

/* Breadcrumb / page hero (páginas internas) */
.page-hero { padding-top: calc(var(--sp-9) + var(--sp-2)); padding-bottom: var(--sp-8); }
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { max-width: 820px; }
.page-hero .lead { margin-top: var(--sp-5); }

/* ---------------------------------------------------------------------- */
/* 10. FORMULARIOS                                                       */
/* ---------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .78rem; color: var(--text-faint); }
.field input, .field select, .field textarea {
  border: 1px solid var(--border); border-radius: var(--radius-s); padding: .8rem .9rem;
  background: var(--white); color: var(--text); font-size: .95rem; transition: border-color var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--text-faint); margin-top: var(--sp-4); }
.form-success {
  display: none; align-items: center; gap: var(--sp-3); background: #ecf9f3; border: 1px solid #bfe9d4;
  color: var(--success); padding: var(--sp-5); border-radius: var(--radius-m); margin-bottom: var(--sp-6); font-weight: 600;
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }

.contact-panel {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: var(--sp-7); box-shadow: var(--shadow-m);
}
.contact-info-item { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-4) 0; border-bottom: 1px solid var(--ink-line); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item svg { width: 20px; height: 20px; color: #7ea0ff; flex-shrink: 0; margin-top: .1rem; }
.contact-info-item h4 { color: #fff; margin-bottom: .2rem; font-size: .95rem; }
.contact-info-item p { font-size: .88rem; margin: 0; }

/* ---------------------------------------------------------------------- */
/* 11. FOOTER                                                            */
/* ---------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding-top: var(--sp-9); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--sp-7); padding-bottom: var(--sp-8); border-bottom: 1px solid var(--ink-line); }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: var(--sp-4); max-width: 34ch; font-size: .9rem; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: var(--sp-4); }
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col a { font-size: .92rem; color: var(--on-ink-muted); transition: color var(--dur-s) var(--ease); }
.footer-col a:hover { color: #fff; }

.footer-security {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
  padding: var(--sp-6) 0; border-bottom: 1px solid var(--ink-line); margin-top: var(--sp-2);
}
.footer-security-note { display: flex; align-items: center; gap: var(--sp-3); font-size: .85rem; color: var(--on-ink-muted); }
.footer-security-note svg { width: 18px; height: 18px; color: #6b7793; flex-shrink: 0; }
.footer-security-note strong { color: #c3cbdb; font-weight: 600; }
.badge-soon { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #6b7793; border: 1px solid var(--ink-line); border-radius: 999px; padding: .25rem .6rem; }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: var(--sp-6) 0; font-size: .82rem; flex-wrap: wrap; }
.footer-legal { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.footer-legal a:hover { color: #fff; }

/* ---------------------------------------------------------------------- */
/* 12. ANIMACIONES / REVEAL                                              */
/* ---------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal-group].is-visible > * { opacity: 1; transform: translateY(0); }
[data-reveal-group].is-visible > *:nth-child(1) { transition-delay: 0s; }
[data-reveal-group].is-visible > *:nth-child(2) { transition-delay: .08s; }
[data-reveal-group].is-visible > *:nth-child(3) { transition-delay: .16s; }
[data-reveal-group].is-visible > *:nth-child(4) { transition-delay: .24s; }
[data-reveal-group].is-visible > *:nth-child(5) { transition-delay: .32s; }
[data-reveal-group].is-visible > *:nth-child(6) { transition-delay: .4s; }

/* ---------------------------------------------------------------------- */
/* 13. RESPONSIVE                                                        */
/* ---------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1.2fr repeat(3, 1fr); gap: var(--sp-5); }
}

@media (max-width: 960px) {
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--white); padding: var(--sp-6); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity var(--dur-s) var(--ease), transform var(--dur-s) var(--ease); overflow-y: auto; }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: var(--sp-2); width: 100%; }
  .main-nav a { display: block; width: 100%; padding: var(--sp-4) 0; font-size: 1.15rem; border-bottom: 1px solid var(--border-soft); }
  .main-nav a::after { display: none; }
  .main-nav .nav-cta { display: block; margin-top: var(--sp-5); }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary.header-cta { display: none; }

  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .problem-list { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .project-card { grid-template-columns: 1fr; }
  .project-body { padding: var(--sp-6); }
  .project-visual { min-height: 240px; }
}

@media (max-width: 640px) {
  .container, .container-narrow { padding-inline: var(--sp-5); }
  .section { padding-block: var(--sp-8); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: var(--sp-7); }
  .footer-top { grid-template-columns: 1fr; gap: var(--sp-6); }
  .form-grid { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: var(--sp-9); }
  .hero-trust { margin-top: var(--sp-7); }
  .flow-steps { flex-direction: column; align-items: stretch; }
  .flow-arrow { transform: rotate(90deg); align-self: center; }
  .section-head.split { flex-direction: column; align-items: flex-start; }
}
