:root {
  --navy: #0F172A;
  --navy-2: #1E293B;
  --navy-3: #334155;
  --yellow: #FACC15;
  --yellow-2: #EAB308;
  --ink: #0F172A;
  --muted: #475569;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --wa: #25D366;
  --radius: 14px;
  --head: "Sora", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.ic { width: 22px; height: 22px; flex: none; }
.ic-lg { width: 34px; height: 34px; }
.ic-y { color: var(--ink-acc); }

/* Logo */
.logo { display: inline-flex; align-items: center; }
.logo img { width: 180px; height: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15, 23, 42, .96); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.menu ul a { color: #CBD5E1; text-decoration: none; font-size: .95rem; font-weight: 500; }
.menu ul a:hover, .menu ul a[aria-current] { color: var(--lt1); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: #fff; margin: 6px 0; border-radius: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; font-family: var(--body); }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-yellow { background: linear-gradient(120deg, var(--acc1), var(--acc2)); color: var(--on-acc); }
.btn-yellow:hover { filter: brightness(1.07); }
.btn-wa { background: var(--wa); color: #06281A; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: var(--lt1); color: var(--lt1); }

/* Hero */
.hero { position: relative; background: radial-gradient(900px 520px at 88% -10%, color-mix(in srgb, var(--lt1) 34%, transparent), transparent 62%), radial-gradient(700px 420px at 105% 85%, color-mix(in srgb, var(--lt2) 26%, transparent), transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 96px 0 104px; overflow: hidden; }
.hero-inner > * { max-width: 860px; }
.hero h1 em { font-style: normal; color: var(--lt1); background: linear-gradient(90deg, var(--lt1), var(--lt2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #CBD5E1; max-width: 680px; margin-bottom: 2em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--lt1); margin-bottom: 1.2em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: color-mix(in srgb, var(--acc1) 5%, var(--bg-alt)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sub { color: var(--muted); margin-top: -.5em; margin-bottom: 2em; }
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.pains { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pains li { position: relative; padding: 16px 18px 16px 50px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--navy-3); }
.pains li::before { content: ""; position: absolute; left: 18px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--acc1), var(--acc2)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc1) 25%, transparent); }
.why b { color: var(--ink); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 1.5em; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.item .ic { margin-bottom: 14px; width: 26px; height: 26px; }
.item p, .svc p, .brand p { color: var(--muted); margin: 0; font-size: .97rem; }
.svc, .brand { text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.svc:hover, .brand:hover { border-color: var(--acc1); transform: translateY(-2px); box-shadow: 0 12px 30px -18px rgba(15,23,42,.35); }
.svc .ic { color: var(--on-acc); background: linear-gradient(135deg, var(--acc1), var(--acc2)); border-radius: 10px; padding: 7px; width: 44px; height: 44px; }
.svc h3, .brand h3 { margin: 4px 0 0; }
.more-link { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; }
.more-link .ic { width: 18px; height: 18px; background: none; padding: 0; color: currentColor; }
.brand { background: var(--navy); border-color: var(--navy); color: #fff; }
.brand h3 { color: var(--yellow); }
.brand p { color: #CBD5E1; }

.steps { list-style: none; counter-reset: s; margin: 1.5em 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 6px; padding-top: 58px; position: relative; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--acc1), var(--acc2)); color: var(--on-acc); font-family: var(--head); font-weight: 700; display: grid; place-items: center; }
.steps b { font-family: var(--head); font-size: 1.08rem; }
.steps span { color: var(--muted); font-size: .97rem; }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--head); font-size: 1.3rem; line-height: 1; color: var(--ink-acc); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Contact */
.contact { background: radial-gradient(800px 400px at 0% 0%, color-mix(in srgb, var(--lt1) 14%, transparent), transparent 60%), radial-gradient(700px 400px at 100% 100%, color-mix(in srgb, var(--lt2) 12%, transparent), transparent 60%), var(--navy); color: #fff; padding: 88px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy p { color: #CBD5E1; }
.contact-alt { margin-top: 1.4em; font-size: .95rem; }
.contact-alt a { color: var(--lt1); }
.form { color: var(--ink); display: grid; gap: 14px; }
.form h2 { font-size: 1.15rem; margin: 12px 0 0; }
.form label { display: block; font-weight: 500; font-size: .95rem; }
.form label > input, .form label > select, .form label > textarea { display: block; margin-top: 6px; }
.form .opt { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea { font: inherit; padding: 11px 13px; border: 1px solid #CBD5E1; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--acc1); outline-offset: 1px; border-color: var(--acc2); }
.form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .88rem; color: var(--muted); }
.form .check > input { width: 18px; height: 18px; margin-top: 3px; flex: none; display: inline-block; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .9rem; color: #15803D; margin: 0; }
.small { font-size: .88rem; color: var(--muted); }

.more { padding: 40px 0; }
.more .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.more p { margin: 0; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .92rem; font-weight: 500; }
.chip:hover { border-color: var(--acc1); background: color-mix(in srgb, var(--acc1) 10%, #fff); }

.page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page h2 { font-size: 1.3rem; margin-top: 1.6em; }
.page a:not(.btn) { color: var(--ink-acc); }

/* Footer */
.site-footer { background: #0B1120; color: #94A3B8; padding: 64px 0 28px; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.foot-tag { margin-top: 12px; max-width: 280px; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.foot-legal { padding-top: 24px; font-size: .85rem; }
.foot-legal p { margin: 0 0 4px; }
.foot-legal strong { color: #CBD5E1; font-weight: 500; }
.copy { margin-top: 12px !important; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px -8px rgba(0,0,0,.45); transition: transform .15s ease; }
.wa-float:hover { transform: scale(1.06); }
.wa-float .ic { width: 30px; height: 30px; }

/* Responsive */
@media (max-width: 960px) {
  .grid3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .menu { position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid rgba(255,255,255,.08); display: none; }
  .menu.open { display: flex; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu ul a { display: block; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 1rem; }
  .menu .btn { margin-top: 16px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 64px 0 72px; }
  .section { padding: 60px 0; }
  .grid3, .steps, .foot-grid { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
}

/* Temas por servicio */
:root, .theme-brand { --acc1: #FACC15; --acc2: #F59E0B; --lt1: #FACC15; --lt2: #F59E0B; --on-acc: #0F172A; --ink-acc: #A16207; }
.theme-ecommerce   { --acc1: #34D399; --acc2: #2DD4BF; --lt1: #6EE7B7; --lt2: #5EEAD4; --on-acc: #0F172A; --ink-acc: #047857; }
.theme-publicidad  { --acc1: #FB923C; --acc2: #F472B6; --lt1: #FDBA74; --lt2: #F9A8D4; --on-acc: #0F172A; --ink-acc: #C2410C; }
.theme-chatbots    { --acc1: #7C3AED; --acc2: #2563EB; --lt1: #C4B5FD; --lt2: #93C5FD; --on-acc: #FFFFFF; --ink-acc: #6D28D9; }
.theme-correo-corporativo { --acc1: #38BDF8; --acc2: #22D3EE; --lt1: #7DD3FC; --lt2: #67E8F9; --on-acc: #0F172A; --ink-acc: #0369A1; }
.theme-hosting     { --acc1: #A3E635; --acc2: #22C55E; --lt1: #BEF264; --lt2: #86EFAC; --on-acc: #0F172A; --ink-acc: #4D7C0F; }
/* Toque extra IA: brillo en tres tonos */
.theme-chatbots .hero h1 em { background-image: linear-gradient(90deg, #C4B5FD, #A5B4FC, #93C5FD, #67E8F9); }
.theme-chatbots .hero { background:
  radial-gradient(900px 520px at 88% -10%, rgba(139,92,246,.38), transparent 62%),
  radial-gradient(700px 420px at 105% 85%, rgba(59,130,246,.30), transparent 60%),
  radial-gradient(600px 380px at 30% 120%, rgba(34,211,238,.14), transparent 60%),
  linear-gradient(180deg, #0F172A 0%, #1E1B4B 100%); }
/* El botón Contacto del menú mantiene el amarillo de marca */
.menu .btn-yellow { background: var(--yellow); color: var(--navy); }
