/* Empresas con IA — mobile first. Skin claro por defecto (paleta togetherdevs.com); skin oscuro = gris muy oscuro. */
:root,[data-theme=dark]{--bg:#222529;--bg2:#2A2E33;--card:#2A2E33;--line:#3A3F46;--fg:#FFFFFF;--muted:#BFC4CB;--gold:#D09C3C;--gold-d:#B8862E;--on-gold:#1C1F22;--head:rgba(34,37,41,.94);--band:linear-gradient(135deg,#1C1F22 0%,#2A2E33 100%);--band-fg:#FFFFFF;--band-muted:#BFC4CB;--band-gold:#D09C3C;--foot:#1C1F22;--shadow:none;--error:#FF8A7A}
[data-theme=light]{--error:#B3261E;--bg:#FFFFFF;--bg2:#F7F7F8;--card:#FFFFFF;--line:#E3E6EB;--fg:#162D4F;--muted:#5A6472;--gold:#A0730C;--gold-d:#86600A;--on-gold:#FFFFFF;--head:rgba(255,255,255,.95);--band:linear-gradient(135deg,#0F2140 0%,#162D4F 55%,#2A4570 100%);--band-fg:#FFFFFF;--band-muted:#C9D2DF;--band-gold:#D9A63A;--foot:#0F2140;--shadow:0 1px 2px rgba(22,45,79,.06),0 8px 24px rgba(22,45,79,.06)}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--fg);font-family:'Raleway',system-ui,sans-serif;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;padding-bottom:84px;transition:background .2s,color .2s}
a{color:inherit}
img{max-width:100%}
.wrap{max-width:1120px;margin:0 auto;padding:0 16px}
.gold{color:var(--gold)}
h1,h2,h3{font-weight:800;line-height:1.14;letter-spacing:-.01em}
h1{font-size:clamp(2rem,8.5vw,4rem)}
h2{font-size:clamp(1.6rem,6vw,2.6rem);margin-bottom:14px}
h3{font-size:1.15rem;margin-bottom:8px}
p.lead{font-size:clamp(1.02rem,3.6vw,1.25rem);color:var(--muted);max-width:640px}
.eyebrow{font-weight:700;font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold);margin-bottom:12px}

/* Header */
header{position:sticky;top:0;z-index:20;background:var(--head);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:64px;gap:12px}
.logo{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0}
.logo img{width:40px;height:40px;border-radius:9px;display:block;flex:none}
.logo .wm{font-weight:800;font-size:1rem;line-height:1.02;letter-spacing:-.01em}
.logo small{display:block;font-weight:400;font-size:.64rem;color:var(--muted);letter-spacing:.04em;margin-top:3px}
.nav-r{display:flex;align-items:center;gap:10px}
.nav-r .btn{display:none}
.theme-toggle{width:44px;height:44px;border-radius:12px;border:1px solid var(--line);background:transparent;color:var(--fg);display:grid;place-items:center;cursor:pointer;flex:none}
.theme-toggle:hover{border-color:var(--gold)}
.theme-toggle .i-sun{display:none}
[data-theme=dark] .theme-toggle .i-moon,:root:not([data-theme=light]) .theme-toggle .i-moon{display:none}
[data-theme=dark] .theme-toggle .i-sun,:root:not([data-theme=light]) .theme-toggle .i-sun{display:block}

/* Botones */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;font-weight:700;text-decoration:none;border-radius:10px;padding:12px 20px;transition:.15s;text-align:center}
.btn-gold{background:var(--gold);color:var(--on-gold)}
.btn-gold:hover{background:var(--gold-d)}
.btn-ghost{border:1px solid var(--muted);color:var(--fg)}
.btn-ghost:hover{border-color:var(--gold)}
.btn-sm{min-height:42px;padding:8px 16px;font-size:.9rem}
.ctas{display:flex;flex-direction:column;gap:10px;margin-top:28px}

/* Secciones */
section{padding:56px 0;border-bottom:1px solid var(--line)}
main>section:nth-of-type(even){background:var(--bg2)}
main>section.hero,main>section.final{background:var(--band);color:var(--band-fg);border-bottom:0}
.hero{padding:56px 0 52px}
.hero h1{max-width:820px;margin-bottom:18px}
.hero p.lead,.final p.lead{color:var(--band-muted)}
.hero .gold,.hero .eyebrow{color:var(--band-gold)}
.hero .btn-ghost{color:#FFFFFF;border-color:rgba(255,255,255,.35)}
.grid{display:grid;grid-template-columns:1fr;gap:14px;margin-top:28px}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:var(--shadow)}
.card p{color:var(--muted)}
.card .tag{display:inline-block;font-size:.72rem;font-weight:700;color:var(--gold);border:1px solid var(--gold);border-radius:99px;padding:2px 10px;margin-bottom:12px}
.pains{margin-top:24px}
.pains li{list-style:none;padding:16px 0;border-top:1px solid var(--line);font-size:1.02rem;display:flex;gap:12px}
.pains li:last-child{border-bottom:1px solid var(--line)}
.pains b{color:var(--gold);font-weight:800}
.step-n{font-weight:800;font-size:2.2rem;color:var(--gold);line-height:1;margin-bottom:10px}
.about{display:grid;grid-template-columns:1fr;gap:24px;align-items:center}
.about-logo{width:132px;height:132px;border-radius:20px;box-shadow:0 12px 32px rgba(22,45,79,.18)}
.final{text-align:center}
.final p.lead{margin:0 auto}
.final .ctas{align-items:stretch}
main>section.contact{background:var(--bg)}
.contact-form{display:grid;gap:20px;max-width:640px;margin:0 auto}
.field{display:grid;gap:8px}
.field-label{font-weight:700;font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:var(--fg)}
.field input,.field textarea{width:100%;font:inherit;font-size:1rem;color:var(--fg);background:var(--card);border:1px solid var(--muted);border-radius:10px;padding:12px 14px;min-height:48px}
.field textarea{resize:vertical;min-height:132px}
.field input::placeholder,.field textarea::placeholder{color:var(--muted);opacity:.8}
.field input:focus,.field textarea:focus{outline:2px solid var(--gold);outline-offset:1px;border-color:var(--gold)}
.field input[aria-invalid=true]{border-color:var(--error)}
.field-error{font-size:.875rem;color:var(--error);min-height:1.2em}
.field-error:empty{display:none}
.contact-form .btn{width:100%;justify-self:start;border:0;cursor:pointer;font:inherit;font-weight:700}

/* Footer */
footer{padding:32px 0;background:var(--foot);color:#C9D2DF;font-size:.88rem}
footer a{color:#C9D2DF}
footer .row{display:flex;flex-direction:column;gap:14px}
.foot-logo{display:flex;align-items:center;gap:10px}
.foot-logo img{width:32px;height:32px;border-radius:8px}

/* WhatsApp fijo en mobile */
.wa-fab{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:30;display:flex;align-items:center;justify-content:center;gap:10px;min-height:54px;border-radius:14px;background:#25D366;color:#0B3D1E;font-weight:800;text-decoration:none;box-shadow:0 8px 24px rgba(0,0,0,.25)}

/* Legales */
.legal{padding:40px 0 64px}
.legal h1{font-size:clamp(1.7rem,6vw,2.6rem);margin-bottom:8px}
.legal h2{font-size:1.2rem;margin:30px 0 10px}
.legal p,.legal li{color:var(--muted);max-width:760px}
.legal ul{padding-left:20px;margin:8px 0}
.legal a{color:var(--gold)}

/* Tablet */
@media(min-width:640px){
 .contact-form .btn{width:auto;min-width:200px}
 .wrap{padding:0 24px}
 .ctas{flex-direction:row;flex-wrap:wrap}
 .final .ctas{justify-content:center}
 .grid{grid-template-columns:repeat(2,1fr);gap:18px}
 section{padding:72px 0}
 .hero{padding:88px 0 80px}
 .about{grid-template-columns:180px 1fr;gap:40px}
 .about-logo{width:180px;height:180px;border-radius:24px}
 footer .row{flex-direction:row;justify-content:space-between;align-items:center}
}
/* Desktop */
@media(min-width:960px){
 body{padding-bottom:0}
 .wa-fab{display:none}
 .nav{height:72px}
 .logo img{width:44px;height:44px;border-radius:10px}
 .logo .wm{font-size:1.05rem}
 .nav-r .btn{display:inline-flex}
 .grid{grid-template-columns:repeat(3,1fr);gap:20px}
 .card{padding:28px}
 section{padding:88px 0}
 .hero{padding:110px 0 96px}
 .about{grid-template-columns:220px 1fr;gap:48px}
 .about-logo{width:220px;height:220px;border-radius:28px}
}
