/* ===================== JomaTech · estilos ===================== */
:root {
  --bg: #f7f6fb;
  --bg-2: #efecf7;
  --surface: #ffffff;
  --ink: #24222c;
  --ink-2: #3b3946;
  --muted: #64617a;
  --line: #e4e0ee;
  --brand: #7b5cc6;
  --brand-d: #5f43a8;
  --brand-l: #b9a5ec;
  --brand-50: #f3effc;
  --brand-100: #e7defa;
  --silver-1: #f4f3f8;
  --silver-2: #d6d3df;
  --graphite: #2c2b31;
  --ok: #12a37a;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(36 34 44 / 4%), 0 12px 32px -14px rgb(91 67 168 / 22%);
  --shadow-lg: 0 30px 60px -28px rgb(60 40 120 / 35%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.022em; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--brand-l); outline-offset: 2px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 96px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-d);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -10px rgb(123 92 198 / 70%); }
.btn-primary:hover { background: var(--brand-d); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-l); color: var(--brand-d); }
.btn-wa { background: #1faa59; color: #fff; }
.btn-wa:hover { background: #178f4a; }
.btn svg { width: 18px; height: 18px; }

/* ---------- navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgb(247 246 251 / 82%); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 4px 12px -4px rgb(44 43 49 / 45%); }
.brand-name { font-family: "Exo 2", "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 21px; letter-spacing: .01em; }
.brand-name span { color: var(--brand); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover { background: var(--brand-50); color: var(--brand-d); }
.nav-cta { padding: 10px 18px; font-size: 14px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }
.mobile-menu { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 420px at 85% 0%, rgb(185 165 236 / 45%), transparent 65%),
    radial-gradient(560px 380px at 0% 20%, rgb(214 211 223 / 70%), transparent 60%);
}
.circuit { position: absolute; color: var(--brand-l); opacity: .45; pointer-events: none; }
.circuit.tl { top: 10px; left: -30px; width: 260px; }
.circuit.br { bottom: -20px; right: -30px; width: 300px; transform: rotate(180deg); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.pill b { background: var(--brand-100); color: var(--brand-d); padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); margin: 22px 0 20px; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand) 10%, #9c84dc 55%, #8a879a 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: 19px; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 14px; color: var(--muted); font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--ok); }

/* tablero de productos del hero */
.suite {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 22px; box-shadow: var(--shadow-lg);
}
.suite-top { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.suite-top img { width: 44px; height: 44px; border-radius: 12px; }
.suite-top strong { display: block; font-size: 15px; }
.suite-top small { color: var(--muted); font-size: 13px; }
.suite-top .live { margin-left: auto; white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--ok); background: #e5f6f0; padding: 4px 10px; border-radius: 999px; }
.suite-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.suite-item {
  display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--silver-1); text-decoration: none;
  transition: border-color .15s, background .15s, transform .15s;
}
.suite-item:hover { border-color: var(--brand-l); background: var(--brand-50); transform: translateY(-2px); }
.suite-item strong { display: block; font-size: 14.5px; line-height: 1.2; }
.suite-item small { color: var(--muted); font-size: 12.5px; line-height: 1.3; display: block; }
.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; font-weight: 600; display: flex; gap: 10px; align-items: center;
}
.float-card .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px #d9f3ea; }
.float-card.a { top: -18px; right: 24px; }
.float-card.b { bottom: -20px; left: -18px; }

/* íconos de producto */
.picon {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, #ffffff, var(--brand-100)); border: 1px solid var(--brand-100); color: var(--brand-d);
}
.picon svg { width: 22px; height: 22px; }
.picon.lg { width: 56px; height: 56px; border-radius: 16px; }
.picon.lg svg { width: 28px; height: 28px; }

/* ---------- cifras ---------- */
.stats { padding: 0 0 24px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat { padding: 26px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-size: 32px; letter-spacing: -.03em; color: var(--brand-d); }
.stat span { color: var(--muted); font-size: 14.5px; }

/* ---------- productos (resumen) ---------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pcard {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .18s, border-color .18s;
}
.pcard:hover { transform: translateY(-4px); border-color: var(--brand-l); }
.pcard .tag { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.pcard h3 { font-size: 22px; margin-bottom: 10px; }
.pcard p { color: var(--muted); font-size: 15.5px; flex: 1; }
.pcard .links { display: flex; gap: 16px; margin-top: 20px; font-size: 14.5px; font-weight: 700; }
.pcard .links a { color: var(--brand-d); text-decoration: none; }
.pcard .links a:hover { text-decoration: underline; }

/* ---------- detalle por producto ---------- */
.product { padding: 88px 0; border-top: 1px solid var(--line); }
.product:nth-of-type(even) { background: var(--surface); }
.product .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product.flip .info { order: 2; }
.product .head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.product .head .kicker { font-size: 13px; font-weight: 700; color: var(--brand-d); text-transform: uppercase; letter-spacing: .07em; }
.product .head h2 { font-size: clamp(30px, 3.6vw, 40px); }
.product h3.tagline { font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; color: var(--ink-2); margin-bottom: 14px; letter-spacing: -.01em; }
.product .desc { color: var(--muted); font-size: 17px; margin-bottom: 24px; }
.product .for { font-size: 14.5px; color: var(--ink-2); background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 12px; padding: 12px 14px; margin-bottom: 24px; }
.product .for b { color: var(--brand-d); }
.product .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 16px 46px; position: relative;
}
.product:nth-of-type(odd) .feature { background: var(--surface); }
.feature::before {
  content: ""; position: absolute; left: 16px; top: 19px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--brand-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f43a8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.feature strong { display: block; font-size: 15px; margin-bottom: 3px; }
.feature span { color: var(--muted); font-size: 14px; line-height: 1.5; display: block; }
.feature.wide { grid-column: 1 / -1; }

/* ---------- servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.service h3 { font-size: 19px; margin: 16px 0 8px; }
.service p { color: var(--muted); font-size: 15px; }

/* ---------- modelos ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--brand); position: relative; }
.plan.featured::after { content: "Más elegido"; position: absolute; top: -13px; left: 28px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan .kind { font-size: 13px; font-weight: 700; color: var(--brand-d); text-transform: uppercase; letter-spacing: .07em; }
.plan h3 { font-size: 24px; margin: 8px 0 10px; }
.plan > p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.plan ul { display: grid; gap: 10px; margin-bottom: 26px; flex: 1; }
.plan li { padding-left: 28px; position: relative; font-size: 15px; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 6px; background: var(--brand-50); color: var(--brand-d); font-size: 12px; font-weight: 800; display: grid; place-items: center; }

/* ---------- por qué ---------- */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.eco {
  position: relative; width: 100%; max-width: 480px; aspect-ratio: 1; margin: 0 auto;
  background: radial-gradient(circle at 50% 50%, var(--brand-50) 0%, transparent 62%);
}
.eco-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eco-lines circle { fill: none; stroke: var(--line); stroke-width: .4; }
.eco-lines path { fill: none; stroke: var(--brand-l); stroke-width: .5; stroke-dasharray: 1.6 1.6; animation: eco-flow 3s linear infinite; }
@keyframes eco-flow { to { stroke-dashoffset: -6.4; } }
.eco-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 8px; font-family: "Exo 2", sans-serif; font-weight: 700; font-size: 15px; color: var(--brand-d);
}
.eco-hub img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 0 0 8px var(--surface), 0 0 0 9px var(--brand-100), 0 18px 40px -12px rgb(91 67 168 / 55%); }
.eco-node {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 6px; width: 96px; text-align: center;
  font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--ink-2); text-decoration: none;
}
.eco-node .picon { width: 48px; height: 48px; background: var(--surface); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.eco-node:hover .picon { transform: translateY(-3px); border-color: var(--brand-l); }
.eco-node:hover { color: var(--brand-d); }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.why-list h4 { font-size: 17px; margin: 12px 0 6px; }
.why-list p { color: var(--muted); font-size: 15px; }

/* ---------- proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-family: "Exo 2", sans-serif; font-size: 30px; font-weight: 700; color: var(--brand-l); display: block; margin-bottom: 10px;
}
.step h4 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 16px 30px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--brand); font-weight: 500; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 18px; }

/* ---------- contacto ---------- */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
  background: linear-gradient(150deg, #ffffff 0%, var(--brand-50) 55%, var(--silver-1) 100%);
  border: 1px solid var(--line); border-radius: 28px; padding: 48px; box-shadow: var(--shadow-lg);
}
.contact h2 { font-size: clamp(30px, 4vw, 42px); margin: 12px 0 14px; }
.contact .lead { color: var(--muted); font-size: 17px; margin-bottom: 28px; }
.channels { display: grid; gap: 12px; }
.channel {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: border-color .15s;
}
.channel:hover { border-color: var(--brand-l); }
.channel small { display: block; color: var(--muted); font-size: 13px; }
.channel strong { font-size: 16px; }
form.quote { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.field textarea { min-height: 96px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 13px; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- footer ---------- */
footer { padding: 64px 0 32px; color: var(--muted); font-size: 14.5px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot h5 { color: var(--ink); font-size: 14px; margin: 0 0 12px; }
.foot a { display: block; text-decoration: none; padding: 4px 0; }
.foot a:hover { color: var(--brand-d); }
.foot .about { max-width: 320px; margin-top: 14px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 13.5px; }
.made { display: inline-flex; align-items: center; gap: 6px; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: #1faa59; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgb(31 170 89 / 60%);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }

/* animación de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eco-lines path { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .products-grid, .services-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu.open { display: grid; gap: 4px; padding: 8px 20px 20px; border-top: 1px solid var(--line); }
  .mobile-menu a { text-decoration: none; font-weight: 600; padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 10px; border-bottom: 0; }
  .hero .wrap, .product .wrap, .why, .contact { grid-template-columns: 1fr; }
  .product.flip .info { order: 0; }
  .plans { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section, .product { padding: 64px 0; }
  .hero { padding: 40px 0 64px; }
  .products-grid, .services-grid, .features, .why-list, .steps, .row2, .suite-grid { grid-template-columns: 1fr; }
  .contact { padding: 26px 18px; border-radius: 22px; }
  form.quote { padding: 20px; }
  .float-card.b { left: 8px; }
  .foot { grid-template-columns: 1fr; }
  .eco-node { width: 78px; font-size: 12px; }
  .eco-node .picon { width: 42px; height: 42px; }
  .eco-hub img { width: 68px; height: 68px; border-radius: 18px; }
  .stat { padding: 20px 16px; }
  .stat strong { font-size: 26px; }
  .hero-actions .btn, .product .actions .btn { width: 100%; }
}

/* evita que el contenido de las columnas ensanche la página en móvil */
.hero .wrap > *, .product .wrap > *, .why > *, .contact > *, .suite-item > span { min-width: 0; }
.eco-hub span { background: var(--surface); padding: 0 6px; border-radius: 6px; }
