/* ============================================================
   KALAS · Software de construcción — sistema de estilos
   Marca: naranja #d4621a · Playfair Display + DM Sans + DM Mono
   ============================================================ */

:root {
  /* Brand */
  --ink: #0f1419;
  --ink-mid: #1e2a36;
  --orange: #d4621a;
  --orange-light: #e07a3a;
  --orange-soft: #fbeee4;
  --paper: #f8f7f4;
  --paper2: #f1eeea;
  --cream: #faf8f5;
  --white: #ffffff;
  --muted: #6b6560;
  --muted-light: #918a83;
  --line: #e2ded8;
  --line-light: #eceae6;
  --blue: #2563a8;
  --green: #1a8a4a;
  --red: #c0392b;

  /* Spacing (8px grid) */
  --space-sm: .5rem; --space-md: 1rem; --space-lg: 1.5rem;
  --space-xl: 2rem; --space-2xl: 3rem; --space-3xl: 4rem;
  --space-4xl: 6rem; --space-5xl: 8rem;

  /* Radius */
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-full: 9999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15,20,25,.05);
  --shadow-md: 0 4px 6px -1px rgba(15,20,25,.07), 0 2px 4px -2px rgba(15,20,25,.05);
  --shadow-lg: 0 10px 15px -3px rgba(15,20,25,.08), 0 4px 6px -4px rgba(15,20,25,.04);
  --shadow-xl: 0 20px 30px -8px rgba(15,20,25,.12), 0 8px 12px -6px rgba(15,20,25,.06);

  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
p  { font-size: clamp(1rem, 1.4vw, 1.1rem); color: var(--ink-mid); }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-xl); }
section { padding: var(--space-4xl) 0; }
@media (max-width: 768px){ section { padding: var(--space-3xl) 0; } }

.bg-paper { background: var(--paper); }
.bg-paper2 { background: var(--paper2); }
.bg-white { background: var(--white); }
.bg-ink { background: var(--ink); color: var(--cream); }
.bg-ink h1,.bg-ink h2,.bg-ink h3 { color: var(--white); }
.bg-ink p { color: rgba(250,248,245,.78); }

/* Labels / eyebrow */
.eyebrow {
  font-family: 'DM Mono', monospace; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange); font-weight: 500;
  display: inline-block; margin-bottom: var(--space-md);
}
.lead { font-size: clamp(1.1rem,1.8vw,1.32rem); color: var(--muted); max-width: 46ch; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 16px 0; transition: all .3s ease;
  background: rgba(248,247,244,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled { padding: 11px 0; box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-xl); display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'DM Sans'; font-weight: 700; font-size: 1.18rem; letter-spacing: -.01em; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; }
.brand b { color: var(--orange); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: .96rem; font-weight: 500; color: var(--ink-mid); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink); }
@media (max-width: 880px){
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw,320px); height: 100vh;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px;
    background: var(--white); padding: 0 var(--space-2xl); transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1); box-shadow: var(--shadow-xl);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: var(--radius-md);
  font-family: 'DM Sans'; font-weight: 600; font-size: 1rem; cursor: pointer;
  border: none; transition: all .25s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-light); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212,98,26,.32); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: 17px 34px; font-size: 1.06rem; }

/* ---------- Hero ---------- */
.hero { padding-top: 168px; padding-bottom: var(--space-4xl); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-3xl); align-items: center; }
.hero h1 { margin-bottom: var(--space-lg); }
.hero .lead { margin-bottom: var(--space-xl); max-width: 50ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: var(--space-lg); font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--green); }
@media (max-width: 900px){ .hero-grid { grid-template-columns: 1fr; gap: var(--space-2xl); } .hero { padding-top: 130px; } }

/* dashboard mock */
.mock {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line-light); background: var(--paper); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar i:nth-child(1){ background:#e07a3a;} .mock-bar i:nth-child(2){ background:#dfc14a;} .mock-bar i:nth-child(3){ background:#7fae6b;}
.mock-bar span { margin-left: 8px; font-family:'DM Mono'; font-size: .74rem; color: var(--muted); }
.mock-body { padding: 18px; }
.mock-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line-light); font-size: .9rem; }
.mock-row:last-child { border-bottom: none; }
.mock-row .lbl { color: var(--ink-mid); font-weight: 500; }
.bar { height: 7px; background: var(--paper2); border-radius: 99px; overflow: hidden; margin-top: 5px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg,var(--orange),var(--orange-light)); border-radius: 99px; }
.pill { font-family:'DM Mono'; font-size: .68rem; padding: 3px 9px; border-radius: 99px; font-weight: 500; letter-spacing: .03em; }
.pill.green { background: rgba(26,138,74,.12); color: var(--green); }
.pill.red { background: rgba(192,57,43,.12); color: var(--red); }
.pill.blue { background: rgba(37,99,168,.12); color: var(--blue); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-xl); text-align: center; }
.stat .num { font-family: 'Playfair Display'; font-size: clamp(2rem,4vw,3rem); font-weight: 700; color: var(--orange); line-height: 1; }
.stat .cap { font-size: .9rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 720px){ .stats { grid-template-columns: repeat(2,1fr); gap: var(--space-lg); } }

/* ---------- Section heading ---------- */
.sec-head { max-width: 640px; margin-bottom: var(--space-2xl); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { margin-top: var(--space-md); color: var(--muted); }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: var(--space-lg); }
.cols-3 { grid-template-columns: repeat(3,1fr); }
.cols-2 { grid-template-columns: repeat(2,1fr); }
@media (max-width: 900px){ .cols-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .cols-3,.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-xl); transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--orange-light); }
.icon-wrap { width: 52px; height: 52px; border-radius: 13px; background: var(--orange-soft); color: var(--orange);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--space-md); }
.icon-wrap svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.card p { font-size: .98rem; color: var(--muted); }
.card .tag { font-family:'DM Mono'; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green); margin-top: 12px; display: inline-block; }
.card .tag.beta { color: var(--blue); }

/* ---------- Steps ---------- */
.steps { display: grid; gap: var(--space-lg); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: var(--space-lg); align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-xl); }
.step .n { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--white);
  font-family:'Playfair Display'; font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 1rem; }

/* ---------- Split / feature row ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: center; }
.split.rev .split-media { order: -1; }
@media (max-width: 860px){ .split { grid-template-columns: 1fr; gap: var(--space-xl); } .split.rev .split-media { order: 0; } }
.check-list { list-style: none; margin-top: var(--space-lg); display: grid; gap: 12px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 1rem; color: var(--ink-mid); }
.check-list svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; margin-top: 3px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-xl); align-items: stretch; }
@media (max-width: 820px){ .price-grid { grid-template-columns: 1fr; } }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-2xl); position: relative; }
.price-card.feature { border: 2px solid var(--orange); box-shadow: var(--shadow-lg); }
.price-card .ribbon { position: absolute; top: -13px; left: var(--space-2xl); background: var(--orange); color: #fff;
  font-family:'DM Mono'; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 13px; border-radius: 99px; }
.price-amt { font-family:'Playfair Display'; font-weight: 700; font-size: 3rem; color: var(--ink); line-height: 1; }
.price-amt small { font-family:'DM Sans'; font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-sub { color: var(--muted); margin: 10px 0 var(--space-lg); font-size: .98rem; }
.price-feats { list-style: none; display: grid; gap: 12px; margin: var(--space-lg) 0; }
.price-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; color: var(--ink-mid); }
.price-feats svg { width: 19px; height: 19px; color: var(--orange); flex-shrink: 0; margin-top: 3px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: var(--space-md); }
.cta-band p { max-width: 50ch; margin: 0 auto var(--space-xl); }

/* ---------- Form ---------- */
.form-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-2xl); box-shadow: var(--shadow-md); }
.field { margin-bottom: var(--space-lg); }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 7px; color: var(--ink-mid); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: 'DM Sans'; font-size: 1rem; background: var(--paper); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(212,98,26,.12); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
@media (max-width: 560px){ .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .85rem; color: var(--muted); margin-top: var(--space-md); }

/* ---------- Contact options ---------- */
.contact-opt { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-light); }
.contact-opt:last-child { border-bottom: none; }
.contact-opt .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--orange-soft); color: var(--orange); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-opt .ic svg { width: 22px; height: 22px; }
.contact-opt .t { font-weight: 600; }
.contact-opt .s { font-size: .9rem; color: var(--muted); }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: rgba(250,248,245,.7); padding: var(--space-3xl) 0 var(--space-xl); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: var(--space-2xl); margin-bottom: var(--space-2xl); }
@media (max-width: 720px){ .foot-grid { grid-template-columns: 1fr; gap: var(--space-xl); } }
footer .brand { color: #fff; margin-bottom: var(--space-md); }
footer p { color: rgba(250,248,245,.6); font-size: .95rem; max-width: 38ch; }
.foot-col h4 { font-family: 'DM Sans'; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--orange-light); margin-bottom: var(--space-md); font-weight: 600; }
.foot-col a { display: block; color: rgba(250,248,245,.7); font-size: .95rem; padding: 5px 0; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--space-lg); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: rgba(250,248,245,.5); }

/* ---------- Animations ---------- */
.animate-on-scroll { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }
.d1{transition-delay:.08s}.d2{transition-delay:.16s}.d3{transition-delay:.24s}.d4{transition-delay:.32s}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
  .animate-on-scroll{ opacity:1; transform:none; }
}
