/* ===========================================================================
   style.css — Landing page
   Paleta y tokens coherentes con demos.css
   =========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:              #DCE2EA;
  --surface:         #FFFFFF;
  --surface-alt:     #F4F6F9;

  --text:            #032D60;
  --text-secondary:  #44546F;
  --text-muted:      #66758C;

  --border:          #C7D0DB;
  --border-light:    #D4DCE6;

  --cta:             #0176D3;
  --cta-hover:       #025CB2;
  --cta-light:       #EAF5FE;

  --accent:          #0B5CAB;
  --accent-light:    #EEF4FF;

  --hero-from:       #16325C;
  --hero-to:         #1B3F73;

  --radius-sm:   6px;
  --radius:      8px;
  --radius-lg:   12px;
  --shadow:      0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.04);
  --shadow-lg:   0 10px 25px -5px rgba(0,0,0,.1), 0 4px 10px -4px rgba(0,0,0,.06);
  --font:        'Manrope', system-ui, -apple-system, sans-serif;
  --ease:        180ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22,50,92,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: .7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-size: .92rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav__links a {
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color var(--ease);
}
.nav__links a:hover { color: #fff; }

.nav__cta {
  font-size: .78rem !important;
  font-weight: 600 !important;
  color: var(--hero-from) !important;
  background: #fff;
  padding: .4rem .9rem;
  border-radius: var(--radius-sm);
  transition: background var(--ease), transform var(--ease);
}
.nav__cta:hover { background: #EAF5FE; transform: translateY(-1px); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: .25rem;
}

/* ===== HERO =============================================================== */
.hero {
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 60%, #244e8a 100%);
  color: #fff;
  text-align: center;
  padding: 4.5rem 1.5rem 4rem;
}

.hero__eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.55);
  margin-bottom: .75rem;
}

.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  max-width: 720px;
  margin: 0 auto .9rem;
}

.hero__sub {
  font-size: clamp(.92rem, 1.5vw, 1.08rem);
  color: rgba(255,255,255,.72);
  max-width: 560px;
  margin: 0 auto 1.8rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}

/* ===== BUTTONS ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  font-size: .875rem;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: #fff;
  color: var(--hero-from);
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.btn--primary:hover {
  background: #EAF5FE;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.3);
}
.btn--outline-light:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.5);
}

.btn--cta {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 1px 2px rgba(1,118,211,.18);
}
.btn--cta:hover {
  background: var(--cta-hover);
  box-shadow: 0 2px 6px rgba(1,118,211,.22);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  padding: .5rem .75rem;
}
.btn--ghost:hover { background: var(--accent-light); }

.btn--sm { font-size: .8rem; padding: .45rem .9rem; }

/* ===== SECTIONS =========================================================== */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section__eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cta);
  margin-bottom: .5rem;
}

.section__title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .4rem;
}

.section__sub {
  font-size: .92rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2rem;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.section--alt .section__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* ===== DEMOS GRID ========================================================= */
.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.demo-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease), transform var(--ease);
}
.demo-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.demo-card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .85rem;
  flex-shrink: 0;
}
.demo-card__icon svg { width: 22px; height: 22px; }

.demo-card__icon--excel { background: #E8F5E9; color: #2E7D32; }
.demo-card__icon--dashboard { background: #E3F2FD; color: #1565C0; }
.demo-card__icon--api { background: #FFF3E0; color: #E65100; }
.demo-card__icon--pdf { background: #FCE4EC; color: #AD1457; }

.demo-card__title {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: .3rem;
}

.demo-card__desc {
  font-size: .82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 1rem;
}

.demo-card__badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .75rem;
}
.demo-card__badge--live { color: #059669; }
.demo-card__badge--soon { color: var(--text-muted); }

.demo-card__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.demo-card__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--cta);
  text-decoration: none;
  transition: gap var(--ease);
}
.demo-card__link:hover { gap: .55rem; }
.demo-card__link--disabled {
  color: var(--text-muted);
  pointer-events: none;
}

/* ===== SERVICES GRID ====================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.service-card {
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.3rem;
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}

.service-card__num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card__body { flex: 1; min-width: 0; }

.service-card__title {
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: .2rem;
}

.service-card__desc {
  font-size: .8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: .5rem;
}

.service-card__price {
  font-size: .76rem;
  font-weight: 600;
  color: var(--cta);
  background: var(--cta-light);
  display: inline-block;
  padding: .2rem .55rem;
  border-radius: 100px;
}

/* ===== PROCESO ============================================================ */
.proceso {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .75rem;
  margin-top: .5rem;
}

.proceso__step {
  text-align: center;
  padding: 1.1rem .75rem;
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}

.proceso__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hero-from);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .5rem;
}

.proceso__label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .15rem;
}

.proceso__sub {
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== CONTACT ============================================================ */
.contact {
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1.5rem;
}

.contact__title {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 800;
  margin-bottom: .5rem;
}

.contact__sub {
  font-size: .92rem;
  color: rgba(255,255,255,.7);
  max-width: 480px;
  margin: 0 auto 1.5rem;
}

.contact__channels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.contact__item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color var(--ease);
}
.contact__item:hover { color: #fff; }
.contact__item svg { flex-shrink: 0; opacity: .7; }

/* ===== FOOTER ============================================================= */
.footer {
  background: #0F1D31;
  color: rgba(255,255,255,.45);
  text-align: center;
  padding: 1.5rem;
  font-size: .75rem;
  line-height: 1.6;
}

.footer a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color var(--ease);
}
.footer a:hover { color: #fff; }

.footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: .5rem;
  list-style: none;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

/* ===== RESPONSIVE ========================================================= */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .nav__links--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(22,50,92,.98);
    padding: 1rem 1.5rem;
    gap: .75rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  .hero { padding: 3rem 1.25rem 2.5rem; }

  .section { padding: 2.5rem 1.25rem; }
  .section--alt .section__inner { padding: 2.5rem 1.25rem; }

  .services-grid { grid-template-columns: 1fr; }
  .demos-grid { grid-template-columns: 1fr; }
  .proceso { grid-template-columns: repeat(2, 1fr); }

  .contact { padding: 2.5rem 1.25rem; }
  .contact__channels { flex-direction: column; gap: .75rem; }
}

@media (max-width: 480px) {
  .proceso { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
