/* edzy.mx — estilos compartidos (inicio y simulador)
   Dirección "Conversación": la burbuja del logo guía el sitio; nada se mueve solo
   salvo el cierre con el dominio, que aparece una vez al llegar a él. */

:root{
  --bg:#FFFFFF;
  --mist:#EEF3F8;
  --surface:#FFFFFF;
  --ink:#123B6E;
  --body:#3A4757;
  --muted:#4F5D70;
  --line:#D6DFEA;
  --control:#8193AA;          /* bordes de controles: 3:1 sobre blanco */
  --accent:#FF7A5C;           /* gráficos y fondos de botón sobre navy */
  --accent-text:#CC4C2F;      /* texto coral sobre blanco */
  --accent-strong:#B7381B;    /* hover y texto coral sobre --mist */
  --accent-on-navy:#F6856B;
  --navy-deep:#0C1A2E;
  --ice:#C9D6E8;              /* texto secundario sobre navy */
  --bubble-team:#123B6E;
  --ok:#146B45;
  --ok-bg:#EAF6F0;
  --bad-bg:#FDEEEA;
  --btn-bg:var(--accent-text);
  --btn-fg:#FFFFFF;
  --btn-hover:var(--accent-strong);
  --warn-bg:#FFF3C4;
  --warn-fg:#6B5300;

  --font-display:"Baloo 2",system-ui,sans-serif;
  --font-body:"Lexend",system-ui,-apple-system,"Segoe UI",sans-serif;

  --radius-lg:28px;
  --radius-md:20px;
  --radius-sm:14px;

  --motion-100:100ms;
  --motion-150:150ms;
  --motion-200:200ms;
  --motion-300:300ms;
  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-in:cubic-bezier(.7,0,.84,0);
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0C1A2E; --mist:#102238; --surface:#132743;
    --ink:#FFFFFF; --body:#C6D1E0; --muted:#9FB0C6;
    --line:rgba(255,255,255,.14); --control:#6B819F;
    --accent-text:#F6856B; --accent-strong:#FFA98E;
    --bubble-team:#1D4A80;
    --ok:#5FD39B; --ok-bg:rgba(95,211,155,.12); --bad-bg:rgba(246,133,107,.14);
    --btn-bg:#FF7A5C; --btn-fg:#0C1A2E; --btn-hover:#FF9479;
    --warn-bg:#3A3110; --warn-fg:#FFE58A;
  }
}
:root[data-theme="dark"]{
  --bg:#0C1A2E; --mist:#102238; --surface:#132743;
  --ink:#FFFFFF; --body:#C6D1E0; --muted:#9FB0C6;
  --line:rgba(255,255,255,.14); --control:#6B819F;
  --accent-text:#F6856B; --accent-strong:#FFA98E;
  --bubble-team:#1D4A80;
  --ok:#5FD39B; --ok-bg:rgba(95,211,155,.12); --bad-bg:rgba(246,133,107,.14);
  --btn-bg:#FF7A5C; --btn-fg:#0C1A2E; --btn-hover:#FF9479;
  --warn-bg:#3A3110; --warn-fg:#FFE58A;
}

/* ---------- base ---------- */
*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--bg); color:var(--body);
  font:400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{ margin:0; font-family:var(--font-display); color:var(--ink); line-height:1.1; text-wrap:balance; }
p{ margin:0; }
a{ color:inherit; }
img{ display:block; max-width:100%; }
button{ font:inherit; }
::selection{ background:var(--accent); color:var(--navy-deep); }
:focus-visible{ outline:3px solid var(--ink); outline-offset:3px; border-radius:6px; }
.on-navy :focus-visible, .on-navy:focus-visible{ outline-color:var(--accent-on-navy); }
/* programmatic focus targets (question, result title) show the ring only for keyboard users */
[tabindex="-1"]:focus:not(:focus-visible){ outline:none; }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

.wrap{ max-width:1180px; margin-inline:auto; padding-inline:clamp(16px,5vw,48px); }
section{ padding-block:clamp(56px,9vw,104px); }
section[id]{ scroll-margin-top:84px; }
.label{ display:block; font-size:.875rem; font-weight:600; color:var(--muted); margin-bottom:12px; }
.section-head{ max-width:680px; margin-bottom:clamp(32px,5vw,48px); }
.section-head h2{ font-size:clamp(2rem,3.8vw,2.75rem); font-weight:700; }
.section-head p{ margin-top:16px; font-size:1.125rem; }

.skip{ position:absolute; left:16px; top:-80px; z-index:200; background:var(--ink); color:var(--bg); padding:12px 16px; border-radius:10px; font-weight:600; text-decoration:none; }
.skip:focus{ top:12px; }

/* ---------- buttons & links ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:48px; padding:0 24px; border-radius:var(--radius-sm);
  font:600 1rem/1.2 var(--font-body); text-decoration:none; text-align:center;
  border:2px solid transparent; cursor:pointer;
  transition:background-color var(--motion-150) var(--ease-out), color var(--motion-150) var(--ease-out), border-color var(--motion-150) var(--ease-out);
}
.btn-primary{ background:var(--btn-bg); color:var(--btn-fg); }
.btn-primary:hover{ background:var(--btn-hover); }
.btn-outline{ border-color:var(--ink); color:var(--ink); background:transparent; }
.btn-outline:hover{ background:var(--ink); color:var(--bg); }
.on-navy .btn-primary{ background:var(--accent); color:var(--navy-deep); }
.on-navy .btn-primary:hover{ background:#FF9479; }
.on-navy .btn-outline{ border-color:rgba(255,255,255,.6); color:#fff; }
.on-navy .btn-outline:hover{ border-color:#fff; background:rgba(255,255,255,.1); color:#fff; }
.btn:disabled{ opacity:.45; cursor:not-allowed; }

.link{
  display:inline-flex; align-items:center; min-height:44px;
  color:var(--accent-text); font-weight:600;
  text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:4px;
  transition:color var(--motion-150) var(--ease-out);
}
.link:hover{ color:var(--accent-strong); }

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--bg);
  border-bottom:1px solid transparent;
  transition:border-color var(--motion-150) var(--ease-out);
}
.site-header.scrolled{ border-color:var(--line); }
.nav-row{ display:flex; align-items:center; justify-content:space-between; gap:24px; min-height:76px; }
.nav-row > a:first-child{ flex-shrink:1; min-width:0; display:flex; align-items:center; min-height:44px; }
.nav-logo{ height:40px; width:auto; max-width:100%; }
.nav-links{ display:flex; gap:4px; }
.nav-links a{
  display:inline-flex; align-items:center; min-height:44px; padding-inline:12px;
  font-weight:400; text-decoration:none; color:var(--body); border-radius:10px; white-space:nowrap;
  transition:color var(--motion-150) var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"]{ color:var(--accent-text); }
.nav-cta{ display:flex; align-items:center; gap:12px; flex-shrink:0; }
.burger{
  display:none; width:44px; height:44px; border-radius:12px;
  border:1px solid var(--line); background:var(--surface); color:var(--ink);
  align-items:center; justify-content:center; cursor:pointer;
}
.burger svg{ width:22px; height:22px; }
.burger .close{ display:none; }
.site-header.open .burger .open-i{ display:none; }
.site-header.open .burger .close{ display:block; }
.mobile-panel{ border-top:1px solid var(--line); padding-bottom:20px; }
.mobile-panel[hidden]{ display:none; }
.mobile-panel ul{ list-style:none; margin:0; padding:8px 0 0; }
.mobile-panel li a{
  display:flex; align-items:center; min-height:52px; font-weight:600; color:var(--ink);
  text-decoration:none; border-bottom:1px solid var(--line);
}
.mobile-panel .btn{ width:100%; margin-top:16px; }

/* logo: the bubble and the wordmark are two clipped layers of the same image.
   First visit of the session: the bubble lands, then the domain slides in.
   Hover/focus: three dots appear inside the bubble, like someone typing. */
.brand{ position:relative; display:block; }
.brand-icon, .brand-word{ display:block; }
.brand-icon img{ clip-path:inset(0 70% 0 0); }
.brand-word{ position:absolute; inset:0; }
.brand-word img{ clip-path:inset(0 0 0 30%); }
.brand-dots{ position:absolute; left:13%; top:42%; display:flex; gap:12%; width:9%; transform:translate(-50%,-50%); pointer-events:none; }
.brand-dots i{ flex:1; aspect-ratio:1; border-radius:50%; background:var(--ink); opacity:0; transition:opacity var(--motion-150) var(--ease-out); }
.brand-dots i:nth-child(2){ transition-delay:30ms; }
.brand-dots i:nth-child(3){ transition-delay:60ms; }
a:hover > .brand .brand-dots i, a:focus-visible > .brand .brand-dots i{ opacity:1; }
.brand-intro .brand-icon{ animation:brandIcon var(--motion-300) var(--ease-out) both; }
.brand-intro .brand-word{ animation:brandWord var(--motion-300) var(--ease-out) 150ms both; }
@keyframes brandIcon{ from{ opacity:0; transform:translateY(8px); } }
@keyframes brandWord{ from{ opacity:0; transform:translateX(-8px); } }

/* wide shows the full nav; below the wide token the same links live in the menu */
@media (max-width:1279.98px){
  .nav-links{ display:none; }
  .burger{ display:flex; }
}
@media (max-width:767.98px){
  .nav-row{ gap:12px; min-height:68px; }
  .nav-logo{ height:auto; width:144px; }
  .nav-cta{ gap:8px; }
  .nav-cta .btn{ padding-inline:16px; }
}

/* ---------- checklist ---------- */
.checks{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.checks li{ display:flex; gap:12px; align-items:flex-start; }
.checks li::before{
  content:""; flex:none; width:22px; height:22px; margin-top:4px; border-radius:50%;
  background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230C1A2E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.checks li > span{ min-width:0; }

/* ---------- closing: the domain, big ---------- */
.closing{ padding-block:0; }
.closing .band{
  background:var(--ink); color:#fff; overflow:hidden;
  border-radius:var(--radius-lg);
  padding:clamp(32px,5vw,64px) clamp(24px,5vw,64px) clamp(28px,4vw,48px);
}
:root[data-theme="dark"] .closing .band{ background:#123B6E; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .closing .band{ background:#123B6E; } }
.closing h2{ color:#fff; font-size:clamp(1.6rem,3vw,2.2rem); font-weight:700; max-width:24ch; }
.closing p{ margin-top:12px; color:var(--ice); font-size:1.125rem; max-width:48ch; }
.closing .cta-row{ margin-top:24px; display:flex; flex-wrap:wrap; gap:12px; }
.domain{
  display:flex; white-space:nowrap; margin-top:clamp(28px,4vw,48px);
  font:700 clamp(4.2rem,19vw,15rem)/1.1 var(--font-display); letter-spacing:-.03em; color:#fff;
  clip-path:inset(-10% -2% -30% 0);
}
.domain .ch{ display:inline-block; }
.domain .tld{ color:var(--accent-on-navy); }
.domain-rule{ height:4px; border-radius:4px; background:var(--accent); margin-top:clamp(16px,2vw,24px); transform-origin:left; }
.js .domain .ch{ transform:translateY(110%); }
.js .domain-rule{ transform:scaleX(0); }
.js .closing.in .domain .ch{ transform:none; transition:transform var(--motion-300) var(--ease-out); transition-delay:calc(var(--i) * 30ms); }
.js .closing.in .domain-rule{ transform:none; transition:transform var(--motion-300) var(--ease-out) 240ms; }

/* ---------- empresas: tarjeta navy (inicio y /empresas/) ---------- */
.biz-card{ background:var(--navy-deep); color:var(--ice); border:1px solid var(--line); border-radius:var(--radius-lg); padding:clamp(24px,3vw,32px); }
.biz-card .title{ color:#fff; font-size:1.5rem; font-weight:700; }
.biz-steps{ list-style:none; margin:16px 0 0; padding:0; display:grid; gap:16px; counter-reset:b; }
.biz-steps li{ display:grid; grid-template-columns:32px minmax(0,1fr); gap:12px; counter-increment:b; }
.biz-steps li::before{ content:counter(b); width:32px; height:32px; border-radius:50%; display:grid; place-items:center; background:var(--accent); color:var(--navy-deep); font-weight:600; font-size:.875rem; }
.biz-card .checks{ margin-top:24px; padding-top:24px; border-top:1px solid rgba(255,255,255,.14); }
.biz-card .title + .checks{ margin-top:16px; padding-top:0; border-top:0; }
.biz-card .btn{ width:100%; margin-top:24px; }
.biz-card .btn + .btn{ margin-top:12px; }
.biz-card .note{ margin-top:12px; font-size:.875rem; }

/* ---------- footer ---------- */
.site-footer{ background:var(--navy-deep); color:rgba(255,255,255,.72); margin-top:clamp(56px,8vw,96px); padding-block:56px 32px; }
.foot-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:24px 32px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.14); }
.foot-grid img{ height:34px; width:auto; margin-bottom:16px; }
.foot-grid p{ max-width:34ch; }
.foot-col h2{ font:600 1rem var(--font-body); color:#fff; margin-bottom:8px; }
.foot-col ul{ list-style:none; margin:0; padding:0; }
.foot-col a, .foot-col span{ display:flex; align-items:center; min-height:44px; text-decoration:none; }
.foot-col a:hover{ color:var(--accent-on-navy); }
.foot-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-top:24px; font-size:.875rem; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  .js .domain .ch, .js .domain-rule{ transform:none; transition:none !important; }
  .btn, .link, .nav-links a, .site-header, .brand-dots i{ transition:none; }
  .brand-intro .brand-icon, .brand-intro .brand-word{ animation:none; }
}
