/* Dimacais: sitio corporativo. Mismo sistema visual que las apps (inventory, presupuesto). */
:root {
  --ink: #0b1020;
  --ink-2: #131c38;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e5e9f2;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --brand: #12c9a0;
  --brand-ink: #058a6c;
  --brand-soft: #dcfaf1;
  --accent: #6d5dfc;
  --accent-soft: #ebe8ff;
  --sky: #22b8ee;
  --sun: #ffb547;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(11, 16, 32, 0.25);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --grad: linear-gradient(135deg, #12c9a0 0%, #22b8ee 50%, #6d5dfc 100%);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.025em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--sky) 55%, transparent); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 12px 22px; border-radius: 14px; border: 1px solid transparent; font: 700 15px/1 var(--font);
  cursor: pointer; text-decoration: none !important; transition: transform 0.12s, box-shadow 0.12s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(18, 201, 160, 0.32); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.24); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; border-radius: 12px; }

/* ---- Navegacion ---- */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, calc((100vw - 1160px) / 2)); background: rgba(11, 16, 32, 0.84);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); color: #fff;
}
.logo { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 800; letter-spacing: 0.18em; font-size: 17px; }
.logo:hover { text-decoration: none; }
.logo img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 6px 18px rgba(18, 201, 160, 0.3); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: #c8d3ea; font-weight: 600; font-size: 15px; }
.nav-links a.btn { color: #fff; }
@media (max-width: 820px) { .nav-links a:not(.btn) { display: none; } .logo { font-size: 15px; } }

/* ---- Portada ---- */
.hero {
  color: #fff; overflow: hidden;
  background: radial-gradient(1100px 600px at 85% -10%, rgba(109, 93, 252, 0.45), transparent 60%),
    radial-gradient(900px 520px at -5% 30%, rgba(18, 201, 160, 0.3), transparent 60%), var(--ink);
}
.hero-inner { max-width: 1160px; margin: 0 auto; padding: 76px 16px 104px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero-inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 72px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #b9f5e6; background: rgba(18, 201, 160, 0.14); border: 1px solid rgba(18, 201, 160, 0.35); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); display: inline-block; }
.hero h1 { font-size: clamp(38px, 6.2vw, 66px); font-weight: 800; letter-spacing: -0.04em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: #c3cde3; max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Ilustracion: el paraguas en el centro y las apps conectadas */
.network { position: relative; width: min(470px, 100%); aspect-ratio: 1; margin: 0 auto; }
.network-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.network-lines path { fill: none; stroke: rgba(63, 227, 189, 0.55); stroke-width: 0.45; stroke-dasharray: 1.4 1.6; stroke-linecap: round; animation: flow 14s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -60; } }
.network-core { position: absolute; left: 50%; top: 50%; width: 46%; transform: translate(-50%, -50%); border-radius: 26%; box-shadow: var(--shadow-lg), 0 0 80px rgba(18, 201, 160, 0.25); }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.96); color: var(--text); font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.chip small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.chip i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-style: normal; color: #fff; flex: 0 0 auto; }
.chip.c1 { left: -2%; top: 8%; }
.chip.c2 { right: -4%; top: 22%; animation-delay: -2s; }
.chip.c3 { left: 2%; bottom: 10%; animation-delay: -4s; }
.chip.c4 { right: 0; bottom: 2%; animation-delay: -1s; opacity: 0.9; }
@keyframes float { 50% { transform: translateY(-8px); } }
/* Chip que lleva a una app (Clientes -> customers.dimacais.com) */
a.chip { text-decoration: none; cursor: pointer; transition: box-shadow 0.15s; }
a.chip:hover { text-decoration: none; box-shadow: var(--shadow-lg), 0 0 0 3px rgba(109, 93, 252, 0.35); }
@media (max-width: 480px) { .chip { font-size: 12px; padding: 8px 10px; } .chip i { width: 28px; height: 28px; } .chip small { font-size: 11px; } }

/* ---- Secciones ---- */
.section { max-width: 1160px; margin: 0 auto; padding: 88px 16px; }
.section-head { max-width: 700px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 10px; }

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.app-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; transition: transform 0.15s, box-shadow 0.15s; }
.app-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1); }
.app-card .app-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; }
.app-card h3 { font-size: 20px; margin: 0; }
.app-card p { color: var(--muted); margin: 0; flex: 1; }
.app-card .domain { font-size: 13px; color: var(--muted); font-weight: 600; }
.app-card .btn { align-self: flex-start; }
.badge { position: absolute; top: 20px; right: 20px; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); }
.badge.soon { background: var(--accent-soft); color: var(--accent); }
.app-card.soon { background: transparent; border-style: dashed; box-shadow: none; }
.app-card.soon:hover { transform: none; box-shadow: none; }

.band { background: var(--ink); color: #fff; }
.band .section-head p, .band .muted { color: #a9b6d3; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .mv { grid-template-columns: 1fr; } }
.mv-card { border-radius: 22px; padding: 32px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.mv-card h3 { font-size: 24px; display: flex; align-items: center; gap: 12px; }
.mv-card h3 span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); }
.mv-card p { color: #c3cde3; font-size: 17px; margin: 0; }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.value .v-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; background: var(--brand-soft); color: var(--brand-ink); }
.value:nth-child(5n + 2) .v-icon { background: var(--accent-soft); color: var(--accent); }
.value:nth-child(5n + 3) .v-icon { background: color-mix(in srgb, var(--sky) 15%, transparent); color: #0e8fc0; }
.value:nth-child(5n + 4) .v-icon { background: color-mix(in srgb, var(--sun) 22%, transparent); color: #b8730a; }
.value h3 { font-size: 18px; margin-bottom: 6px; }
.value p { color: var(--muted); margin: 0; font-size: 15px; }

.slogan { text-align: center; background: var(--grad); color: #fff; border-radius: 28px; padding: 60px 24px; }
.slogan h2 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; margin-bottom: 14px; }
.slogan p { font-size: 18px; opacity: 0.92; max-width: 640px; margin: 0 auto 26px; }
.slogan .btn { background: #fff; color: var(--ink); }

.footer { max-width: 1160px; margin: 0 auto; padding: 34px 16px 46px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.footer .logo { color: var(--text); font-size: 14px; }
.footer .logo img { width: 30px; height: 30px; }

/* Pagina 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; background: var(--ink); color: #fff; }
.notfound img { width: 110px; margin: 0 auto 20px; border-radius: 28px; }
.notfound p { color: #a9b6d3; }

/* Comunidad Dimacais */
.community-counts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 24px; }
.community-counts .count { display: flex; align-items: baseline; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--surface, #fff); border: 1px solid var(--line, #e5e9f2); color: inherit; text-decoration: none; font-weight: 600; }
.community-counts .count b { font-size: 1.4rem; }
.community { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.community .member { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--surface, #fff); border: 1px solid var(--line, #e5e9f2); border-left: 4px solid var(--c, #12c9a0); min-width: 0; }
.community .member b { overflow-wrap: anywhere; }
.community .member small { color: var(--muted, #64748b); overflow-wrap: anywhere; }
.community .app-tag { align-self: flex-start; margin-top: 4px; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--c, #12c9a0) 14%, transparent); color: var(--c, #12c9a0); }
.c-inventory { --c: #0b9e7e; }
.c-finance { --c: #6d5dfc; }
.c-greatshape { --c: #d9480f; }
.community .muted, .community-counts + .community .muted { grid-column: 1 / -1; }
.center { text-align: center; }
.community p.muted { color: var(--muted); }
