/* ============================================================
   THINKBEE — hoja de estilos
   Paleta y tipografía: Manual de Identidad de Marca v4
   ============================================================ */

:root {
  --ink: #0E0F13;
  --ink-raised: #16181E;
  --ink-line: #262932;
  --white: #FFFFFF;
  --lima: #C9F24C;
  --green: #4A6B00;
  --grey: #8A8F97;
  --grey-soft: #B4B8BE;
  --magenta: #FF2E88;

  --font-display: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --max-width: 1120px;
  --gutter: 24px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.12;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem);
  font-weight: 300;
  color: var(--white);
}

h3 {
  font-size: 1.15rem;
  font-weight: 500;
}

p { margin: 0 0 1em; color: var(--grey-soft); }

a { color: inherit; }

.accent { color: var(--lima); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--lima);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 200;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--lima);
  outline-offset: 3px;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 2px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
  cursor: pointer;
}

.btn-primary {
  background: var(--lima);
  color: var(--ink);
}
.btn-primary:hover { transform: translateY(-1px); background: #d9fb6e; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--ink-line);
}
.btn-ghost:hover { border-color: var(--grey); }

.btn-block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 15, 19, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark { display: block; }

.brand-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--white);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  text-decoration: none;
  color: var(--grey-soft);
  font-size: 0.94rem;
  transition: color 0.15s var(--ease);
}
.site-nav a:hover { color: var(--white); }

.nav-cta {
  color: var(--ink) !important;
  background: var(--lima);
  padding: 9px 18px;
  border-radius: 2px;
  font-weight: 600;
}
.nav-cta:hover { color: var(--ink) !important; background: #d9fb6e; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--white);
  margin: 0 auto;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--ink-line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-kicker {
  color: var(--grey);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.6rem, 2rem + 3vw, 4.4rem);
  font-weight: 300;
  margin-bottom: 20px;
}

.hero-purpose {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-body {
  max-width: 46ch;
  font-size: 1.05rem;
  color: var(--grey-soft);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: 100%;
  max-width: 360px;
  height: auto;
  opacity: 0;
  transform: scale(0.96);
  animation: reveal 0.9s var(--ease) forwards;
  animation-delay: 0.15s;
}

@keyframes reveal {
  to { opacity: 1; transform: scale(1); }
}

.footer-logo {
  height: 34px;
  width: auto;
}

/* ============================================================
   SÍNTOMAS
   ============================================================ */

.symptoms {
  padding: 88px 0;
  border-bottom: 1px solid var(--ink-line);
}

.symptoms h2 { max-width: 20ch; margin-bottom: 40px; }

.symptom-list {
  display: grid;
  gap: 22px;
  max-width: 640px;
  margin-bottom: 40px;
}

.symptom-list p {
  display: flex;
  gap: 14px;
  font-size: 1.1rem;
  color: var(--white);
  margin: 0;
}

.symptom-mark {
  color: var(--lima);
  font-weight: 600;
  flex-shrink: 0;
}

.symptom-close {
  max-width: 60ch;
  font-size: 1.05rem;
  color: var(--grey-soft);
  border-left: 2px solid var(--lima);
  padding-left: 20px;
}

/* ============================================================
   MÉTODO
   ============================================================ */

.metodo {
  padding: 88px 0;
  border-bottom: 1px solid var(--ink-line);
}

.section-lead {
  max-width: 60ch;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

.promesa-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  position: relative;
}

.promesa-track::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink-line);
}

.promesa-track li {
  position: relative;
  padding-top: 32px;
  text-align: left;
  padding-right: 16px;
}

.promesa-track .node {
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--lima);
}

.promesa-track li:first-child .node { background: var(--lima); }

.stage-name {
  display: block;
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 500;
  line-height: 1.35;
}

/* ============================================================
   SERVICIOS
   ============================================================ */

.servicios {
  padding: 88px 0;
  border-bottom: 1px solid var(--ink-line);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
  margin-bottom: 48px;
}

.servicio {
  padding-top: 20px;
  border-top: 1px solid var(--ink-line);
}

.servicio-index {
  display: block;
  color: var(--lima);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.servicio h3 { margin-bottom: 10px; }
.servicio p { margin: 0; }

.ai-note {
  max-width: 68ch;
  font-size: 0.95rem;
  color: var(--grey);
  border-top: 1px solid var(--ink-line);
  padding-top: 28px;
}

/* ============================================================
   EQUIPO
   ============================================================ */

.equipo {
  padding: 88px 0;
  border-bottom: 1px solid var(--ink-line);
}

.equipo-lead { font-size: 1.1rem; color: var(--white); max-width: 72ch; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.team-card {
  border-top: 1px solid var(--ink-line);
  padding-top: 24px;
}

.team-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--lima);
  color: var(--lima);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.team-card h3 { margin-bottom: 4px; }

.team-role {
  color: var(--grey);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.team-card p:last-child { margin: 0; color: var(--grey-soft); font-size: 0.96rem; }

/* ============================================================
   EXPERIENCIA
   ============================================================ */

.experiencia {
  padding: 72px 0;
  border-bottom: 1px solid var(--ink-line);
}

.experiencia .section-lead { margin-bottom: 0; font-size: 1.15rem; color: var(--white); max-width: 70ch; }

/* ============================================================
   CONTACTO
   ============================================================ */

.contacto {
  padding: 96px 0 80px;
}

.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contacto-copy p { max-width: 46ch; }

.contacto-info {
  margin: 32px 0 0;
}
.contacto-info > div {
  border-top: 1px solid var(--ink-line);
  padding: 16px 0;
}
.contacto-info dt {
  color: var(--grey);
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.contacto-info dd {
  margin: 0;
  color: var(--white);
  font-size: 1.05rem;
}
.contacto-info a {
  color: var(--lima);
  text-decoration: none;
}
.contacto-info a:hover { text-decoration: underline; }

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contacto-form label {
  font-size: 0.85rem;
  color: var(--grey-soft);
  margin-top: 14px;
}

.contacto-form input,
.contacto-form textarea {
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 2px;
  resize: vertical;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
  outline: none;
  border-color: var(--magenta);
}

.contacto-form button { margin-top: 22px; }

.form-note {
  font-size: 0.8rem;
  color: var(--grey);
  margin-top: 12px;
  margin-bottom: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--ink-line);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-legal, .footer-copy {
  font-size: 0.78rem;
  color: var(--grey);
  margin: 0;
  max-width: 70ch;
}

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

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 220px; margin: 0 auto; }
  .servicios-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; gap: 24px; }
  .contacto-inner { grid-template-columns: 1fr; gap: 40px; }
  .promesa-track { grid-template-columns: repeat(4, 1fr); row-gap: 32px; }
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px var(--gutter) 28px;
    gap: 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-cta { align-self: flex-start; }
  .nav-toggle { display: flex; }
  .promesa-track { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero { padding: 64px 0 56px; }
  .symptoms, .metodo, .servicios, .equipo, .experiencia { padding: 64px 0; }
  .contacto { padding: 64px 0 56px; }
}
