/* ===== Tokens ===== */
:root {
  --ink: #1F2430;
  --ink-soft: #2A3040;
  --gold: #C8B392;
  --gold-light: #E4D9C4;
  --cream: #F4F1EC;
  --off-white: #FAF8F5;
  --white: #FFFFFF;
  --line: #E7E1D4;
  --text-muted: #6B7280;

  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;

  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== Buttons ===== */
.btn {
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--solid {
  background: var(--ink);
  color: var(--white);
}
.btn--solid:hover { background: var(--gold); color: var(--ink); }

.btn--lg { padding: 0.85rem 1.8rem; font-size: 0.95rem; }

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.navbar__inner {
  max-width: 1200px;
  height: 84px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

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

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  flex: none;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
}

.navbar__menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex: 1;
  min-width: 0;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.navbar__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.navbar__link:hover { opacity: 1; color: var(--gold); }

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar__user {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
}
.navbar__burger-bar {
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.navbar__burger.is-open .navbar__burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.is-open .navbar__burger-bar:nth-child(2) { opacity: 0; }
.navbar__burger.is-open .navbar__burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .navbar__burger { display: flex; }
  .navbar__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(250, 248, 244, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -28px rgba(35, 43, 57, 0.35);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .navbar__menu.is-open { max-height: 80vh; opacity: 1; visibility: visible; overflow-y: auto; }
  .navbar__links { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1.25rem 0.25rem; }
  .navbar__link { padding: 0.75rem 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .navbar__actions { flex-direction: column; align-items: stretch; gap: 0.6rem; padding: 1rem 1.25rem 1.25rem; }
  .navbar__actions .btn { width: 100%; text-align: center; }
  .navbar__user { padding: 0 1.25rem; }
}

/* ===== Hero ===== */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3.5rem;
  text-align: center;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 1.1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 auto 1.2rem;
  max-width: 20ch;
  color: var(--ink);
}

.hero__title .accent { color: var(--gold); font-style: italic; }

.hero__sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 2rem;
}

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

/* ===== Secciones genéricas ===== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section__head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.8rem;
  margin: 0 0 0.6rem;
}

.section__sub {
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 auto;
}

/* ===== Cards de herramientas ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.tool-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:not(.tool-card--soon):hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 50px -34px rgba(35, 43, 57, 0.35);
}

.tool-card--soon { opacity: 0.6; }

.tool-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.tool-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

.tool-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.tool-card__tag {
  align-self: flex-start;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(179, 149, 94, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}

/* ===== Pasos "cómo funciona" ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step__num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
}

.step__title {
  font-weight: 600;
  margin: 0;
}

.step__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 1rem 2.5rem; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { text-align: center; }
}