/* ============================================================
   AYS Ingeniería V9 — "Inmersivo con ritmo"
   Sobre la base V8: jerarquía tipográfica, alineación lateral
   (encabezados a la izquierda donde el contenido lo pide),
   tarjetas de altura pareja y mejor legibilidad.
   ============================================================ */

:root {
  --bg: #F7F8F3;
  --cream: #F1F2E9;
  --surface: #FFFFFF;

  --text: #1E2417;
  --muted: #62694F;

  --blue: #10566B;          /* petróleo — protagonista */
  --blue-deep: #0C3F4F;
  --blue-dark: #082C38;

  --forest: #0A3A2E;        /* bosque — secundario */
  --forest-deep: #062A22;
  --forest-soft: #C5D6CE;

  --blue-soft: #C7DDE4;
  --blue-soft-strong: #DCEBEF;   /* eyebrows sobre fondo oscuro: más contraste */
  --risk: #B5503C;

  --border: rgba(30, 36, 23, 0.12);
  --border-light: rgba(255, 255, 255, 0.18);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --max: 1080px;
  --r: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-height: 72px;

  /* Escala tipográfica más expresiva */
  --fs-h1: clamp(2.6rem, 6.2vw, 4.8rem);
  --fs-h2-anchor: clamp(2.1rem, 4.8vw, 3.5rem);  /* secciones ancla a la izquierda */
  --fs-h2: clamp(1.9rem, 4.4vw, 3.2rem);          /* secciones centradas */
  --fs-lead: clamp(1.08rem, 1.4vw, 1.22rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 24px); }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
section { scroll-margin-top: calc(var(--nav-height) + 24px); }
img { max-width: 100%; display: block; }
a, button { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: var(--r); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.active { opacity: 1; transform: none; }
.stagger-1 { transition-delay: .08s; } .stagger-2 { transition-delay: .16s; }
.stagger-3 { transition-delay: .24s; } .stagger-4 { transition-delay: .32s; }
.stagger-5 { transition-delay: .4s; } .stagger-6 { transition-delay: .48s; } .stagger-7 { transition-delay: .56s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--blue), var(--forest)); z-index: 1000; transition: width .1s linear; }

/* ---------- Navbar centrado ---------- */
.navbar {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 32px); z-index: 900;
  display: flex; align-items: center; gap: 22px; padding: 8px 12px;
  background: rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(12px) saturate(180%); backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255,255,255,.5); border-radius: 100px;
  box-shadow: 0 10px 34px -18px rgba(12,63,79,.4); transition: background .3s, box-shadow .3s;
}
.navbar.scrolled { background: rgba(255,255,255,.82); }
.nav-brand img { height: 28px; width: auto; }
.nav-pill { font-size: .9rem; font-weight: 600; color: var(--blue-deep); padding: 7px 16px; border-radius: 100px; transition: background .2s; }
.nav-pill:hover { background: var(--cream); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 7px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 74px; left: 16px; right: 16px; z-index: 899;
  background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 14px; padding: 12px;
  display: flex; flex-direction: column; gap: 4px; text-align: center;
  opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .3s var(--ease);
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a { padding: 13px; border-radius: var(--r); font-weight: 600; }
.mobile-menu a:hover { background: var(--cream); }
.mm-cta { background: var(--blue); color: #fff !important; margin-top: 6px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; justify-content: center; padding: 14px 28px; border-radius: var(--r); font-weight: 600; font-size: 1rem; transition: transform .25s var(--ease), box-shadow .25s, background .25s; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 12px 30px -12px rgba(16,86,107,.8); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(16,86,107,.85); }
.btn-light { background: #fff; color: var(--blue-deep); box-shadow: 0 12px 30px -14px rgba(0,0,0,.45); }
.btn-light:hover { transform: translateY(-3px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 18px 38px; font-size: 1.08rem; }

/* ============================================================
   SCREEN — bloque full-bleed
   ============================================================ */
.screen { position: relative; width: 100%; }
.screen.pad { padding: 112px 24px; }
.screen-inner { width: 100%; max-width: var(--max); margin: 0 auto; }

/* Centrado (Hero, Identifica, Confianza, Contacto) */
.screen-inner.center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* Alineado a la izquierda (Ruta, Capacidades) */
.screen-inner.left { text-align: left; }
.screen-inner.left .section-head { max-width: 62ch; margin-bottom: 8px; }

/* Alineado a la derecha (Metodología) */
.screen-inner.right { text-align: right; }
.screen-inner.right .section-head { max-width: 62ch; margin-left: auto; margin-bottom: 8px; }

.screen-inner.narrow { max-width: 760px; }

.bg-cream { background: var(--cream); }
.bg-white { background: var(--surface); }
.bg-blue { background: radial-gradient(120% 120% at 50% 0%, var(--blue) 0%, var(--blue-deep) 55%, var(--blue-dark) 100%); color: #fff; }
.bg-forest { background: radial-gradient(120% 120% at 50% 0%, var(--forest) 0%, var(--forest-deep) 100%); color: #fff; }

/* Campo de partículas reactivo — presente en todas las secciones */
.particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
/* El contenido de toda sección con partículas queda por encima del canvas */
.screen > .screen-inner { position: relative; z-index: 1; }
/* En el hero el canvas va entre el velo y el contenido */
.particles-hero { z-index: 1; }
/* Las secciones oscuras se oscurecen un poco más para que el campo resalte */
.screen:has(> .particles[data-particles="blue"]) { background: radial-gradient(130% 130% at 50% -10%, #0E4A5C 0%, #07313E 55%, #041E27 100%); }
.screen:has(> .particles[data-particles="forest"]) { background: radial-gradient(130% 130% at 50% -10%, #0A3225 0%, #051F18 60%, #03130E 100%); }
@media (prefers-reduced-motion: reduce) { .particles { display: none; } }

/* Tipografía de secciones */
.eyebrow { display: inline-block; font-family: var(--mono); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.eyebrow.light { color: var(--blue-soft-strong); }
.bg-forest .eyebrow.light { color: var(--forest-soft); }

h1 { font-size: var(--fs-h1); font-weight: 660; line-height: 1.02; letter-spacing: -.038em; }

/* h2 centrado */
.screen-inner.center h2 { font-size: var(--fs-h2); font-weight: 640; line-height: 1.08; letter-spacing: -.03em; margin-bottom: 18px; }
/* h2 a la izquierda / derecha: más grande, es el ancla de la sección */
.screen-inner.left h2, .screen-inner.right h2 { font-size: var(--fs-h2-anchor); font-weight: 680; line-height: 1.04; letter-spacing: -.034em; margin-bottom: 16px; }
h2.light { color: #fff; }

.accent { color: var(--blue); }
.hero .accent { color: #fff; opacity: .82; }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 56ch; }
.lead.light { color: rgba(255,255,255,.85); }
.center .lead { margin-left: auto; margin-right: auto; }

.actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.center-actions { justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 100px 24px; }
.hero-media { position: absolute; inset: 0; z-index: 0; background: url("hero.png") center center / cover no-repeat; }
/* Velo más claro que en V8: recupera detalle del agua sin perder legibilidad */
.hero-veil { position: absolute; inset: 0; z-index: 1; background: radial-gradient(120% 100% at 50% 42%, rgba(6,42,34,.40) 0%, rgba(8,44,56,.58) 60%, rgba(8,44,56,.74) 100%); }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow.light { color: #fff; opacity: .92; text-shadow: 0 1px 12px rgba(8,44,56,.6); }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(8,44,56,.55); }
.hero .lead { color: rgba(255,255,255,.92); margin-top: 24px; text-shadow: 0 1px 16px rgba(8,44,56,.5); }
.hero .actions { justify-content: center; }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: #fff; border-radius: 2px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 24px; } 100% { opacity: 0; } }

/* ============================================================
   PROBLEMAS — 4 cards centradas, altura pareja
   ============================================================ */
.cards-4 { margin-top: 52px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; width: 100%; align-items: stretch; }
.tcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 30px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform .3s var(--ease), box-shadow .3s; }
.tcard:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(16,86,107,.4); }
.tcard-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--border); color: var(--blue); margin-bottom: 18px; flex-shrink: 0; }
.tcard-ico svg { width: 26px; height: 26px; }
.tcard h3 { font-size: 1.16rem; font-weight: 620; margin-bottom: 10px; min-height: 2.6em; display: flex; align-items: center; }
.tcard p { font-size: .94rem; color: var(--muted); }

/* ============================================================
   RUTA DE AVANCE — consola (izq) + simulador (der)
   ============================================================ */
.expediente-layout { margin-top: 44px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; align-items: start; width: 100%; text-align: left; }
.expediente-layout .console { margin: 0; position: sticky; top: calc(var(--nav-height) + 28px); }

.console { position: relative; overflow: hidden; font-family: var(--mono); color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: 0 24px 60px -28px rgba(12,63,79,.4); }
.console-bar { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: var(--blue-deep); color: #fff; }
.console-dots { display: flex; gap: 6px; }
.console-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.4); }
.console-dots i:first-child { background: #ff7d6e; } .console-dots i:nth-child(2) { background: #ffd166; }
.console-title { font-size: .78rem; opacity: .92; flex: 1; }
.console-state { font-size: .7rem; padding: 3px 9px; border-radius: 6px; background: rgba(255,255,255,.16); color: #ffe2a8; transition: .4s; }
.console-state.done { background: rgba(199,221,228,.25); color: #bfe6d6; }
.console-body { padding: 22px 20px; }
.console-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .86rem; border-bottom: 1px dashed var(--border); }
.console-key { color: var(--muted); }
.console-val { font-weight: 600; color: var(--blue-deep); }
.console-val.muted { color: #B07D2B; font-weight: 500; }
.console-section-label { margin: 18px 0 10px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.console-chips { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cchip { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 7px 13px; border-radius: 8px; font-size: .82rem; font-weight: 500; opacity: 0; transform: translateX(-10px); transition: opacity .4s, transform .4s, background .4s, color .4s; }
.cchip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.cchip.risk { background: rgba(181,80,60,.12); color: var(--risk); }
.cchip.risk::before { background: var(--risk); }
.cchip.show { opacity: 1; transform: none; }
.cchip.resolved { background: var(--forest-soft); color: var(--forest); }
.cchip.resolved::before { background: var(--forest); }
.console-progress { margin: 18px 0 14px; height: 5px; border-radius: 999px; background: var(--cream); overflow: hidden; }
.console-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--forest)); transition: width 1.6s var(--ease); }
.console-output { display: flex; align-items: center; justify-content: space-between; gap: 12px; opacity: 0; transform: translateY(8px); transition: .5s; }
.console-output.show { opacity: 1; transform: none; }
.console-output .cchip.ok { opacity: 1; transform: none; background: var(--forest); color: #fff; font-weight: 600; }
.console-output .cchip.ok::before { background: #fff; }

/* Simulador */
.sim { background: #fff; border: 1px solid var(--border); border-radius: var(--r); box-shadow: 0 40px 90px -50px rgba(12,63,79,.5); overflow: hidden; }
.sim-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 12px; background: var(--cream); border-bottom: 1px solid var(--border); }
.sim-tab { flex: 1; min-width: 150px; padding: 13px 16px; border-radius: var(--r); font-weight: 600; font-size: .92rem; color: var(--muted); transition: .25s; }
.sim-tab:hover { color: var(--text); }
.sim-tab.active { background: #fff; color: var(--blue-deep); box-shadow: 0 6px 18px -10px rgba(12,63,79,.4); }
.sim-stage { padding: 34px 28px 10px; }
.sim-route { list-style: none; display: flex; flex-direction: column; counter-reset: step; }
.sim-step { position: relative; padding: 0 0 28px 50px; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; }
.sim-step.show { opacity: 1; transform: none; }
.sim-step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; font-family: var(--mono); font-size: .76rem; font-weight: 600; color: var(--blue); background: var(--bg); border: 1.5px solid var(--blue-soft); border-radius: 50%; z-index: 2; }
.sim-step::after { content: ""; position: absolute; left: 15.5px; top: 32px; bottom: 2px; width: 2px; background: var(--blue-soft); }
.sim-step:last-child::after { display: none; }
.sim-step.final::before { background: var(--forest); color: #fff; border-color: var(--forest); }
.sim-step h4 { font-size: 1.02rem; font-weight: 700; }
.sim-step p { font-size: .92rem; color: var(--muted); margin-top: 3px; }
.sim-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 20px 28px 28px; border-top: 1px solid var(--border); background: var(--bg); }
.sim-note { font-size: .93rem; color: var(--muted); max-width: 46ch; text-align: left; }

/* ============================================================
   CAPACIDADES — tarjetas sobre petróleo, altura pareja
   ============================================================ */
.areas-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: 100%; align-items: stretch; }
.area-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 26px 22px; text-align: left; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.area-card:hover { transform: translateY(-6px); box-shadow: 0 28px 55px -30px rgba(0,0,0,.4); }
/* Las tres áreas más estratégicas llevan un acento superior */
.area-card.priority { border-top: 3px solid var(--blue); }
.area-tag { display: inline-block; align-self: flex-start; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--cream); padding: 4px 9px; border-radius: var(--r); margin-bottom: 14px; }
.area-card.priority .area-tag { background: var(--blue); color: #fff; }
.area-card h3 { font-size: 1.18rem; font-weight: 660; margin-bottom: 8px; color: var(--text); }
.area-card p { font-size: .92rem; color: var(--muted); }

/* ============================================================
   PROCESO — 6 steps en grilla (sobre bosque)
   ============================================================ */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; text-align: left; align-items: stretch; }
.step { padding: 28px 24px; background: rgba(255,255,255,.05); border: 1px solid var(--border-light); border-radius: var(--r); display: flex; flex-direction: column; }
.step-n { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--forest-soft); }
.step h4 { font-size: 1.12rem; font-weight: 700; margin: 10px 0 8px; }
.step p { font-size: .92rem; color: rgba(255,255,255,.78); }

/* ============================================================
   CONFIANZA — logos + pilares centrados
   ============================================================ */
.logos { margin: 50px 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; width: 100%; align-items: stretch; }
.logo { display: flex; align-items: center; justify-content: center; overflow: hidden; height: 90px; padding: 16px; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); transition: transform .3s, box-shadow .3s; }
.logo:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -20px rgba(16,86,107,.4); }
/* Menos tenues que en V8: grayscale suave + mayor opacidad base */
.logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: grayscale(.55); opacity: .82; transition: filter .3s, opacity .3s; }
.logo:hover img { filter: none; opacity: 1; }
.pilares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: 100%; text-align: left; align-items: stretch; }
.pilar { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--forest); border-radius: var(--r); padding: 30px 28px; }
.pilar h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 10px; }
.pilar p { color: var(--muted); font-size: .95rem; }

/* ============================================================
   CONTACTO — formulario
   ============================================================ */
.contacto-microcopy { margin-top: 18px; font-size: .92rem; color: rgba(255,255,255,.7); }
.form-panel { margin: 40px auto 0; width: 100%; max-width: 720px; background: #fff; color: var(--text); border-radius: var(--r); padding: 34px; text-align: left; box-shadow: 0 40px 90px -50px rgba(0,0,0,.6); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 7px; }
.form-group label span { color: var(--risk); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 13px 14px; font-family: inherit; font-size: .96rem; border: 1.5px solid var(--border); border-radius: var(--r); background: var(--bg); transition: border-color .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue); outline: none; }
.form-group textarea { resize: vertical; }
.form-submit { width: 100%; padding: 16px; background: var(--blue); color: #fff; border-radius: var(--r); font-weight: 600; font-size: 1.02rem; transition: transform .2s, box-shadow .2s; }
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -14px rgba(16,86,107,.8); }
.form-submit:disabled { opacity: .65; cursor: wait; }
.form-privacy { margin-top: 14px; font-size: .82rem; color: var(--muted); text-align: center; }
.alert-box { display: none; padding: 13px 16px; border-radius: var(--r); margin-bottom: 18px; font-size: .92rem; font-weight: 500; }
.alert-box.success { background: var(--forest-soft); color: var(--forest); }
.alert-box.error { background: rgba(181,80,60,.12); color: var(--risk); }

/* ============================================================
   FOOTER + FAB
   ============================================================ */
.footer { position: relative; background: var(--surface); color: var(--muted); padding: 56px 24px 30px; }
.footer .footer-inner { position: relative; z-index: 1; }
.footer-inner { display: flex; flex-direction: column; gap: 28px; }
.footer-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col-contact { text-align: right; align-items: flex-end; }
.footer-logo { width: 140px; height: auto; }
.footer-desc { max-width: 40ch; font-size: .95rem; }
.footer-col-title { color: var(--text); font-weight: 600; font-size: .92rem; }
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: .94rem; }
.footer-list a:hover { color: var(--blue); text-decoration: underline; }
.footer-copy { font-size: .84rem; opacity: .8; padding-top: 22px; border-top: 1px solid var(--border); }
@media (max-width: 620px) { .footer-cols { grid-template-columns: 1fr; gap: 28px; } .footer-col-contact { text-align: left; align-items: flex-start; } }

.wa-fab { position: fixed; bottom: 24px; right: 24px; z-index: 950; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--blue); border: 1px solid var(--border); box-shadow: 0 14px 34px -10px rgba(12,63,79,.45); transition: transform .25s var(--ease); opacity: 0; transform: scale(.4) translateY(20px); pointer-events: none; }
.wa-fab.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-fab:hover { transform: scale(1.08); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .pilares { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .expediente-layout { grid-template-columns: 1fr; }
  .expediente-layout .console { position: static; }
}
@media (max-width: 760px) {
  .nav-pill { display: none; }
  .hamburger { display: flex; }
  .navbar { gap: 12px; }
  .nav-brand { order: -1; }
  .screen.pad { padding: 84px 20px; }
  .tcard h3 { min-height: 0; }
}
@media (max-width: 560px) {
  .cards-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .sim-tab { min-width: 100%; }
  .sim-stage { padding: 26px 18px 6px; }
  .sim-foot { padding: 18px 18px 24px; }
}
