/* ================================================
   KIM•ERA — AI Product Studio
   CSS Design System
   ================================================ */

/* ------------------------------------------------
   RESET & BASE
   ------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --c-bg:        #F9F9F7;
  --c-bg-white:  #FFFFFF;
  --c-dark:      #0A0A0A;
  --c-text:      #0A0A0A;
  --c-muted:     #6B6866;
  --c-border:    #E4E4E2;
  --c-accent:    #4F46E5;
  --c-accent-lt: #a5b4fc;

  /* Type scale */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --sp-xs:  8px;
  --sp-sm:  16px;
  --sp-md:  32px;
  --sp-lg:  64px;
  --sp-xl:  120px;
  --sp-2xl: 160px;

  /* Layout */
  --max-w:     1200px;
  --pad-x:     40px;

  /* Motion */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:    0.25s;
  --t-med:     0.5s;
  --t-slow:    0.7s;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

a { text-decoration: none; }
.text-link {
  color: var(--c-accent);
  font-weight: 600;
  border-bottom: 1px solid rgba(79, 70, 229, 0.3);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.text-link:hover {
  border-color: var(--c-accent);
}
.text-link--light {
  color: var(--c-accent-lt);
  font-weight: 600;
  border-bottom: 1px solid rgba(165, 180, 252, 0.3);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.text-link--light:hover {
  border-color: var(--c-accent-lt);
}
em { font-style: normal; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }


/* ------------------------------------------------
   LAYOUT UTILITIES
   ------------------------------------------------ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: var(--sp-xl) 0;
  border-top: 1px solid var(--c-border);
}

.section--dark {
  background: var(--c-dark);
  color: #fff;
  border-top: none;
}

.section--dark .section-label {
  color: rgba(255,255,255,0.35);
}

.section__header {
  max-width: 760px;
  margin-bottom: 0;
}

.mt-lg { margin-top: var(--sp-lg); }


/* ------------------------------------------------
   TYPE HELPERS
   ------------------------------------------------ */
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.section-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--c-muted);
  max-width: 600px;
}

.accent-dot {
  color: var(--c-accent);
}


/* ------------------------------------------------
   GRID SYSTEMS
   ------------------------------------------------ */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

/* Gap-line: grid items separated by 1px borders */
.gap-line {
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  overflow: hidden;
}


/* ------------------------------------------------
   CARDS
   ------------------------------------------------ */
.card {
  background: var(--c-bg);
  padding: 40px 32px;
  transition: background var(--t-fast) var(--ease);
}

.card:hover {
  background: var(--c-bg-white);
}

.card__num {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 18px;
}

.card__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.card__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-muted);
}

.card--sm {
  padding: 28px 24px;
}

.card--sm h4 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}


/* ------------------------------------------------
   BUTTONS
   ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: 7px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--c-dark);
  color: #fff;
  border-color: var(--c-dark);
}
.btn--primary:hover { background: #1f1f1f; border-color: #1f1f1f; }

.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border-color: transparent;
}
.btn--ghost:hover { border-color: var(--c-border); }

.btn--white {
  background: #fff;
  color: var(--c-dark);
  border-color: #fff;
}
.btn--white:hover { background: #eee; border-color: #eee; }

.btn--ghost-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.btn--ghost-white:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.07);
}

.btn--large { padding: 17px 38px; font-size: 15px; }

.btn-arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }


/* ------------------------------------------------
   REVEAL ANIMATIONS
   ------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  var(--t-slow) var(--ease),
    transform var(--t-slow) var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* ================================================
   NAV
   ================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 22px 0;
  transition:
    background var(--t-fast) var(--ease),
    padding    var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.nav.is-scrolled {
  background: rgba(249, 249, 247, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--c-border);
}

.nav__container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav__logo {
  display: flex;
  flex-direction: column;
  color: var(--c-text);
  line-height: 1;
  gap: 3px;
}

.nav__logo-text {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.nav__logo-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-muted);
  transition: color var(--t-fast) var(--ease);
}

.nav__link:hover { color: var(--c-text); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--c-dark);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 7px;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.nav__cta:hover { background: #1f1f1f; transform: translateY(-1px); }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.nav__toggle span {
  display: block;
  height: 1.5px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 100px;
  overflow: hidden;
}

.hero__bg-nodes {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: 52%;
  max-width: 680px;
  opacity: 0.28;
  pointer-events: none;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(-50%) translateY(0); }
  50%       { transform: translateY(-50%) translateY(-14px); }
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: clamp(44px, 7vw, 90px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
  max-width: 860px;
}

.hero__title em {
  color: var(--c-accent);
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
  color: var(--c-muted);
  max-width: 520px;
  margin-bottom: 48px;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}


/* ================================================
   TICKER
   ================================================ */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 15px 0;
  background: var(--c-bg);
}

.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.ticker__sep { font-size: 14px; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ================================================
   PROBLEMA
   ================================================ */
.problema { }


/* ================================================
   PROPUESTA DE VALOR (dark)
   ================================================ */
.valor { }

.valor__title {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 40px;
  max-width: 880px;
}

.valor__title em {
  color: var(--c-accent-lt);
}

.valor__body {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  max-width: 660px;
  margin-bottom: 40px;
}

.valor__quote {
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
  max-width: 620px;
  padding-left: 24px;
  border-left: 3px solid var(--c-accent);
  font-style: normal;
}

.valor__quote strong {
  color: #fff;
  font-weight: 700;
}


/* ================================================
   SERVICIOS
   ================================================ */
.servicio {
  background: var(--c-bg);
  padding: 48px 40px;
  transition: background var(--t-fast) var(--ease);
}

.servicio:hover { background: var(--c-bg-white); }

.servicio__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}

.servicio__num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  flex-shrink: 0;
}

.servicio__name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.servicio__desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
  margin-bottom: 28px;
}

.servicio__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.servicio__tags span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-muted);
  padding: 5px 11px;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  transition: border-color var(--t-fast) var(--ease);
}

.servicio:hover .servicio__tags span { border-color: #c8c8c6; }


/* ================================================
   PROCESO
   ================================================ */
.proceso__steps {
  display: flex;
  flex-direction: column;
}

.proceso__step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--c-border);
  align-items: start;
}

.proceso__step:last-child {
  border-bottom: 1px solid var(--c-border);
}

.proceso__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  padding-top: 5px;
}

.proceso__step-right h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.proceso__step-right p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-muted);
  max-width: 560px;
}

.proceso__cierre {
  margin-top: 48px;
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  color: var(--c-muted);
}


/* ================================================
   DIFERENCIAL
   ================================================ */
.diferencial__list {
  border-top: 1px solid var(--c-border);
}

.diferencial__item {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: clamp(18px, 2.5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  padding: 28px 0;
  border-bottom: 1px solid var(--c-border);
  cursor: default;
  transition: color var(--t-fast) var(--ease);
}

.diferencial__item:hover { color: var(--c-accent); }

.diferencial__dot {
  font-size: 1.4em;
  line-height: 1;
  flex-shrink: 0;
}


/* ================================================
   SALUD
   ================================================ */
.salud__sub {
  font-size: 18px;
  font-weight: 500;
  color: var(--c-muted);
  margin-bottom: 24px;
  margin-top: -12px;
}

.salud__nota {
  margin-top: 36px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--c-muted);
  max-width: 640px;
  padding: 18px 20px;
  border-left: 3px solid var(--c-border);
  font-style: italic;
}


/* ================================================
   ECOSISTEMA
   ================================================ */
.ecosistema {
  background: var(--c-bg-white);
}

.ecosistema__title {
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -0.04em;
  margin-bottom: 40px;
  max-width: 700px;
}

.ecosistema__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
  margin-bottom: 56px;
}

.ecosistema__body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--c-muted);
}

.ecosistema__pillars {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ecosistema__pillar {
  padding: 14px 28px;
  border: 1.5px solid var(--c-text);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.ecosistema__pillar:hover {
  background: var(--c-text);
  color: #fff;
}

.ecosistema__div {
  font-size: 22px;
  font-weight: 300;
  color: var(--c-muted);
}


/* ================================================
   MANIFIESTO
   ================================================ */
.manifiesto {
  background: var(--c-bg);
  text-align: center;
  padding: var(--sp-2xl) 0;
}

.manifiesto__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.manifiesto__quote {
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 48px;
  max-width: 900px;
  font-style: normal;
}

.manifiesto__body {
  font-size: 18px;
  line-height: 1.9;
  color: var(--c-muted);
  max-width: 580px;
}


/* ================================================
   CTA FINAL
   ================================================ */
.cta-final { padding: var(--sp-2xl) 0; }

.cta-final__title {
  font-size: clamp(40px, 6.5vw, 82px);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -0.045em;
  color: #fff;
  margin-bottom: 56px;
  max-width: 820px;
}

.cta-final__btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}


/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: #0A0A0A;
  color: rgba(255,255,255,0.55);
  padding: 72px 0 36px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 32px;
}

.footer__logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1;
}

.footer__legal {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 16px;
}

.footer__desc {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer__col h5 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 18px;
}

.footer__col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
  transition: color var(--t-fast) var(--ease);
}

.footer__col a:hover { color: #fff; }

.footer__social {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

.footer__claim {
  font-style: italic;
}


/* ================================================
   RESPONSIVE
   ================================================ */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  :root {
    --pad-x: 32px;
    --sp-xl: 96px;
    --sp-2xl: 120px;
  }

  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .hero__bg-nodes { width: 48%; opacity: 0.18; }
}

/* Mobile — 768px */
@media (max-width: 768px) {
  :root {
    --pad-x: 24px;
    --sp-xl: 72px;
    --sp-2xl: 96px;
  }

  /* Nav mobile */
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(249,249,247,0.98);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--c-border);
    padding: 20px var(--pad-x);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.08);
  }

  .nav__links.is-open { display: flex; }
  .nav__toggle { display: flex; }

  /* Hero */
  .hero { padding: 110px 0 72px; }
  .hero__bg-nodes { display: none; }

  /* Grids */
  .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }

  /* Proceso */
  .proceso__step {
    grid-template-columns: 56px 1fr;
    gap: 20px;
  }

  /* Footer */
  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Ecosistema pillars */
  .ecosistema__pillars {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Small mobile — 480px */
@media (max-width: 480px) {
  :root { --pad-x: 20px; }

  .hero__ctas,
  .cta-final__btns { flex-direction: column; align-items: flex-start; }

  .footer__cols { grid-template-columns: 1fr; }
}
