/* ═══════════════════════════════════════════════════════════════
   ATRIO — capa de sitio sobre el design system de Create UI.
   Sin tokens nuevos: todo sale de tokens.css.
   ═══════════════════════════════════════════════════════════════ */

body{background:var(--static)}

/* ── NAV ─────────────────────────────────────────────────────── */
.nav{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--static) 86%,transparent);
  backdrop-filter:blur(14px);border-bottom:1px solid var(--bg-light)}
.nav-in{max-width:1200px;margin:0 auto;padding:0 24px;height:64px;display:flex;align-items:center;gap:var(--spacing-section-lg)}
.logo{display:flex;align-items:center;gap:9px;color:var(--text-strongest);font-weight:600;
  font-size:16px;letter-spacing:-.4px}
.logo .mk{width:26px;height:26px;border-radius:7px;background:var(--primary-base);display:grid;
  place-items:center;color:#fff;font-size:12px;font-weight:600;box-shadow:var(--shadow-neutral-sm)}
.nav-links{display:flex;gap:4px;margin-left:auto}
.nav-links a{padding:7px 12px;border-radius:var(--radius-component-md);color:var(--text-body);
  font-size:var(--text-ui-control-md);font-weight:500;transition:color var(--duration-quick),background-color var(--duration-quick)}
.nav-links a:hover{background:var(--hover);color:var(--text-strongest)}
.nav-links a[aria-current]{color:var(--primary-strong);background:var(--primary-weakest)}
.nav-cta{display:flex;gap:8px;align-items:center}
.burger{display:none}

/* ── SECCIONES ───────────────────────────────────────────────── */
.sec{max-width:1200px;margin:0 auto;padding:var(--spacing-layout-md) 24px}
.sec-narrow{max-width:760px}
.sec-head2{display:flex;flex-direction:column;gap:var(--spacing-section-sm);margin-bottom:var(--spacing-section-xl);max-width:640px}
.sec-head2.center{margin-left:auto;margin-right:auto;text-align:center;align-items:center}
.sec-head2 .ey{color:var(--primary-base)}
.sec-head2 h2{color:var(--text-strongest)}
.sec-head2 p{color:var(--text-body)}

.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:var(--spacing-section-md)}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:var(--spacing-section-lg)}

/* ── HERO ────────────────────────────────────────────────────── */
.hero2{max-width:1200px;margin:0 auto;padding:var(--spacing-layout-sm) 24px var(--spacing-layout-xs);
  display:grid;grid-template-columns:1.05fr 1fr;gap:var(--spacing-layout-xs);align-items:center}
.hero2 h1{color:var(--text-strongest);margin:var(--spacing-section-sm) 0}
.hero2 .lead{color:var(--text-body);max-width:520px}
.hero2 .acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:var(--spacing-section-lg)}
.hero-img{border-radius:var(--radius-component-4xl);overflow:hidden;box-shadow:var(--shadow-neutral-xl);
  aspect-ratio:4/3;background:var(--bg-weak)}
.hero-img img{width:100%;height:100%;object-fit:cover;display:block}
.hero-wide{max-width:1200px;margin:0 auto;padding:0 24px}
.hero-wide .banner{border-radius:var(--radius-component-4xl);overflow:hidden;aspect-ratio:21/9;
  box-shadow:var(--shadow-neutral-lg);background:var(--bg-weak)}
.hero-wide .banner img{width:100%;height:100%;object-fit:cover;display:block}

/* prueba social bajo el hero */
.trust{display:flex;flex-wrap:wrap;gap:var(--spacing-section-lg);align-items:center;
  padding-top:var(--spacing-section-lg);border-top:1px solid var(--bg-light);margin-top:var(--spacing-section-xl)}
.trust .it{display:flex;flex-direction:column;gap:2px}
.trust .it b{color:var(--text-strongest);font-family:var(--font-numeric);font-size:22px;line-height:26px}
.trust .it span{color:var(--text-placeholder);font-size:12px}

/* ── CARDS ───────────────────────────────────────────────────── */
.svc{background:var(--static);border-radius:var(--radius-component-2xl);overflow:hidden;
  box-shadow:inset 0 0 0 1px var(--bg-light),var(--shadow-neutral-xs);
  display:flex;flex-direction:column}
/* el desplazamiento y la sombra los pone [data-lift] de core; aquí
   sólo el ring, que es propio de la card de servicio */
.svc[data-lift]:hover{box-shadow:inset 0 0 0 1px var(--bg-medium),var(--shadow-neutral-xl)}
.svc .ph{aspect-ratio:4/3;background:var(--bg-weak);overflow:hidden}
.svc .ph img{width:100%;height:100%;object-fit:cover;display:block}
.svc .bd{padding:var(--spacing-component-xl);display:flex;flex-direction:column;
  gap:var(--spacing-component-md);flex:1}
.svc h3{color:var(--text-strongest)}
.svc p{color:var(--text-body);flex:1}
.svc .ft{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding-top:var(--spacing-component-md);border-top:1px solid var(--bg-light)}
.ico-tile{width:40px;height:40px;border-radius:var(--radius-component-lg);display:grid;place-items:center;
  background:var(--primary-weakest);color:var(--primary-base);
  box-shadow:inset 0 0 0 1px var(--primary-weak)}

/* lista con checks */
.checks{display:flex;flex-direction:column;gap:var(--spacing-component-md)}
.checks li{display:flex;gap:10px;color:var(--text-body);font-size:var(--text-body-md);line-height:24px}
.checks .tk{flex:none;width:20px;height:20px;border-radius:999px;background:var(--success-weakest);
  color:var(--success-base);display:grid;place-items:center;margin-top:2px;font-size:11px}

/* ── PROCESO ─────────────────────────────────────────────────── */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:var(--spacing-section-md);counter-reset:s}
.step{position:relative;padding-top:var(--spacing-component-xl);border-top:2px solid var(--bg-light)}
.step[data-on]{border-top-color:var(--primary-base)}
.step .nm{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:999px;
  background:var(--primary-weakest);color:var(--primary-strong);font-family:var(--font-numeric);
  font-size:12px;margin-bottom:10px}
.step h4{color:var(--text-strongest);margin-bottom:6px}
.step p{color:var(--text-body)}

/* ── TESTIMONIOS ─────────────────────────────────────────────── */
.quote{background:var(--bg-weakest);border-radius:var(--radius-component-2xl);
  padding:var(--spacing-component-xl);display:flex;flex-direction:column;gap:var(--spacing-component-lg);
  box-shadow:inset 0 0 0 1px var(--bg-light)}
.quote blockquote{color:var(--text-strongest)}
.quote .who{display:flex;align-items:center;gap:10px}
.quote .who > span:last-child{display:flex;flex-direction:column;min-width:0}
.quote .who b{color:var(--text-strongest);font-size:14px;font-weight:500}
/* solo el <span> del rol, nunca el .avatar: antes `.quote .who span`
   pisaba `.avatar{display:grid}` por especificidad y descentraba las iniciales */
.quote .who > span:last-child > span{color:var(--text-placeholder);font-size:12px}

/* ── CTA ─────────────────────────────────────────────────────── */
.cta{background:var(--bg-strongest);border-radius:var(--radius-component-4xl);
  padding:var(--spacing-layout-xs) var(--spacing-section-xl);text-align:center;
  display:flex;flex-direction:column;align-items:center;gap:var(--spacing-section-sm)}
.cta h2{color:var(--static)}
.cta p{color:var(--static-white-alpha-80);max-width:480px}
.cta .acts{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:var(--spacing-section-sm)}

/* ── FOOTER ──────────────────────────────────────────────────── */
.foot{border-top:1px solid var(--bg-light);margin-top:var(--spacing-layout-md);background:var(--bg-weakest)}
.foot-in{max-width:1200px;margin:0 auto;padding:var(--spacing-layout-xs) 24px;
  display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:var(--spacing-section-lg)}
.foot h5,.foot .foot-h{color:var(--text-strongest);font-size:12px;font-weight:600;letter-spacing:1px;
  text-transform:uppercase;margin-bottom:12px}
.foot a,.foot p{display:block;color:var(--text-body);font-size:var(--text-body-sm);line-height:26px}
.foot a:hover{color:var(--primary-base)}
.foot-bot{border-top:1px solid var(--bg-light)}
.foot-bot div{max-width:1200px;margin:0 auto;padding:16px 24px;display:flex;flex-wrap:wrap;gap:12px;
  align-items:center;justify-content:space-between;color:var(--text-placeholder);font-size:12px}

/* ── ARTÍCULO ────────────────────────────────────────────────── */
.article{max-width:720px;margin:0 auto;padding:0 24px}
.article > p{color:var(--text-body);margin-bottom:var(--spacing-section-md)}
.article h2{color:var(--text-strongest);margin:var(--spacing-section-xl) 0 var(--spacing-section-sm)}
.article h3{color:var(--text-strongest);margin:var(--spacing-section-lg) 0 var(--spacing-component-md)}
.article ul{margin:0 0 var(--spacing-section-md);display:flex;flex-direction:column;gap:10px}
.article ul li{position:relative;padding-left:20px;color:var(--text-body);
  font-size:var(--text-paragraph-sm);line-height:var(--text-paragraph-sm--lh)}
.article ul li::before{content:'';position:absolute;left:4px;top:11px;width:5px;height:5px;
  border-radius:999px;background:var(--primary-base)}
.article blockquote{margin:var(--spacing-section-lg) 0;padding-left:20px;
  border-left:3px solid var(--primary-base);color:var(--text-strongest)}
.article figure{margin:var(--spacing-section-lg) 0}
.article figure img{width:100%;border-radius:var(--radius-component-2xl);display:block;
  box-shadow:var(--shadow-neutral-md)}
.article figcaption{color:var(--text-placeholder);font-size:var(--text-ui-caption-md);margin-top:10px;text-align:center}
.article table{width:100%;border-collapse:collapse;margin:var(--spacing-section-md) 0}
.article th,.article td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--bg-light);
  font-size:var(--text-body-sm)}
.article th{color:var(--text-strongest);font-weight:500;background:var(--bg-weakest)}
.article td{color:var(--text-body)}
.toc{background:var(--bg-weakest);border-radius:var(--radius-component-xl);padding:var(--spacing-component-xl);
  box-shadow:inset 0 0 0 1px var(--bg-light);margin-bottom:var(--spacing-section-xl)}
.toc p{color:var(--text-placeholder);margin-bottom:10px}
.toc a{display:block;color:var(--text-body);font-size:var(--text-body-sm);line-height:28px}
.toc a:hover{color:var(--primary-base)}

/* ── UTIL ────────────────────────────────────────────────────── */
.stack{display:flex;flex-direction:column}
.center{text-align:center}
.mut{color:var(--text-body)}
.hl{color:var(--text-strongest)}

@media (max-width:900px){
  .hero2{grid-template-columns:1fr;gap:var(--spacing-section-xl)}
  .foot-in{grid-template-columns:1fr 1fr}
}
@media (max-width:767px){
  .nav-links{display:none}
  .nav-in{gap:12px}
  .sec,.hero2,.hero-wide,.article,.foot-in{padding-left:20px;padding-right:20px}
  .cta{padding:var(--spacing-section-xl) var(--spacing-section-md)}
  .foot-in{grid-template-columns:1fr}
  .trust{gap:var(--spacing-section-md)}
}
