/* CreaKit · tienda — estilos compartidos por todas las páginas */
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/BarlowCondensed-SemiBold.ttf') format('truetype');
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --glow: radial-gradient(1100px 620px at 80% -10%, #ffe9d8 0%, #fff6ef 45%, rgba(255, 255, 255, 0) 100%);
  --panel: #ffffff;
  --panel-2: #f7f5f2;
  --line: #ebe7e3;
  --line-2: #d9d3cd;
  --text: #17130f;
  --text-2: #4f4842;
  --text-3: #6f6760;
  --orange: #ff6d1f;
  --orange-hi: #e85a0c;
  --orange-soft: #fff0e6;
  --orange-text: #b8460a;
  --green-soft: #e6f6ee;
  --green-text: #1d7a4c;
  --danger: #b42318;
  --shadow: 0 1px 2px rgba(23, 19, 15, 0.04), 0 12px 32px -18px rgba(23, 19, 15, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Barlow Condensed', 'Helvetica Neue', sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; color: var(--text);
  background: var(--bg) var(--glow) no-repeat;
  font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: min(1240px, 100% - 64px); margin: 0 auto; }

/* Cabecera */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; margin: -4px; }
.wordmark { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.wordmark b { color: var(--orange); font-weight: inherit; }
.nav { display: flex; flex-wrap: wrap; gap: 22px; flex: 1; margin-left: 16px; }
.nav a, .navlink { color: var(--text-2); font-size: 14px; font-weight: 500; padding: 10px 2px; }
.nav a:hover, .navlink:hover, .nav a[aria-current='page'] { color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.crumbs { flex: 1; display: flex; gap: 10px; font-size: 14px; color: var(--text-3); }
.crumbs span:last-child { color: var(--text); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 14px; border: 0; cursor: pointer;
  font-weight: 650; font-size: 15px; transition: background 0.2s, transform 0.2s var(--ease), border-color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--orange); color: #ffffff; box-shadow: 0 12px 26px -14px rgba(255, 109, 31, 0.75); }
.btn-primary:hover { background: var(--orange-hi); }
.btn-ghost { background: #ffffff; border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: #b9b1a9; }
.btn-sm { height: 42px; font-size: 14px; padding: 0 16px; border-radius: 12px; }
.btn[disabled], .btn.is-disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* Tipografía */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.display { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 0.95; letter-spacing: 0.01em; }
.display em { font-style: normal; color: var(--orange); }
.h1 { font-size: clamp(52px, 7vw, 88px); }
.h2 { font-size: clamp(36px, 4.4vw, 52px); line-height: 1; }
.lead { margin: 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 580px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pill-orange { border: 1px solid #ffd2b5; background: var(--orange-soft); color: var(--orange-text); }
.pill-line { border: 1px solid var(--line-2); color: var(--text-2); }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tag-dark { background: rgba(255, 255, 255, 0.85); color: var(--text); border: 1px solid var(--line); }
.tag-orange { background: var(--orange-soft); color: var(--orange-text); }
.tag-green { background: var(--green-soft); color: var(--green-text); }
.ticks { display: flex; flex-wrap: wrap; gap: 22px; color: var(--text-3); font-size: 13.5px; }
.ticks span { display: flex; align-items: center; gap: 8px; }
.ticks svg { color: var(--orange); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 64px 0 56px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-art { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile { border-radius: 22px; border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; min-height: 170px; }
.tile-wide { grid-column: span 2; min-height: 210px; }
.tile-dashed { border-style: dashed; border-color: var(--line-2); color: var(--text-3); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Catálogo */
.section { padding: 40px 0 72px; display: flex; flex-direction: column; gap: 26px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head > div:first-child { display: flex; flex-direction: column; gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: #ffffff; color: var(--text-2); font-size: 14px; font-weight: 500; cursor: pointer;
}
.chip:hover { color: var(--text); }
.chip[aria-pressed='true'] { background: var(--orange-soft); border-color: var(--orange); color: var(--orange-text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; border-radius: 22px; border: 1px solid var(--line);
  background: var(--panel); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.card:hover { transform: translateY(-4px); border-color: #ffc59e; box-shadow: 0 2px 4px rgba(23,19,15,.04), 0 24px 48px -24px rgba(255, 109, 31, 0.35); }
.card[hidden] { display: none; }
.card-art { height: 168px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.card-art .row { display: flex; justify-content: space-between; gap: 8px; }
.mono { font-family: var(--display); font-size: 54px; font-weight: 700; line-height: 1; }
.mono b { color: var(--orange); font-weight: inherit; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.card-text { font-size: 14.5px; color: var(--text-2); flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.card-price { font-size: 15px; font-weight: 650; }
.card-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--orange-hi); }

/* Bloques */
.box { border-radius: 28px; border: 1px solid var(--line); background: var(--panel-2); padding: 44px; display: flex; flex-direction: column; gap: 30px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step-n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--orange); color: #ffffff; font-weight: 700; }
.step strong { font-size: 19px; font-weight: 650; }
.step span { font-size: 15px; color: var(--text-2); }
.b2b { border-radius: 28px; padding: 48px; display: flex; flex-wrap: wrap; gap: 36px; align-items: center; background: linear-gradient(120deg, #fff1e6, #ffe4cf 60%, #ffd9bd); border: 1px solid #ffd2b5; }
.b2b-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.b2b-text p { margin: 0; color: var(--text-2); font-size: 17px; max-width: 560px; }
.b2b-actions { display: flex; flex-direction: column; gap: 10px; flex: 0 1 280px; }

/* Producto */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.feature { border-radius: 22px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.feature-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.feature-head strong { font-size: 22px; }
.feature p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.media { flex: 1 1 460px; min-width: 0; aspect-ratio: 16 / 10; border-radius: 24px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-3); text-align: center; padding: 20px; }
.plans { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan { border-radius: 24px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.plan-best { border: 1.5px solid var(--orange); background: linear-gradient(170deg, #fff1e6, #ffffff 55%); box-shadow: 0 30px 60px -36px rgba(255, 109, 31, 0.55); }
.plan-name { display: flex; justify-content: space-between; align-items: center; font-size: 20px; font-weight: 700; }
.plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price strong { font-family: var(--display); font-size: 52px; font-weight: 700; line-height: 1; }
.plan-price span, .plan-note { color: var(--text-2); font-size: 15px; }
.plan ul { margin: 0; padding: 0 0 0 18px; color: var(--text-2); font-size: 15px; line-height: 1.9; }
.plan form { margin-top: auto; display: flex; flex-direction: column; }
.plan .btn { width: 100%; }
.small { font-size: 13px; color: var(--text-3); text-align: center; }
.faq { border-top: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-size: 17px; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--text-2); font-size: 15px; }

/* Cuenta */
.narrow { width: min(440px, 100% - 32px); margin: 40px auto 80px; }
.panel { border-radius: 22px; border: 1px solid var(--line); background: var(--panel); padding: 26px; box-shadow: var(--shadow); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { font-size: 13px; font-weight: 600; color: var(--text-2); display: flex; flex-direction: column; gap: 8px; }
.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: #ffffff; color: var(--text); outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 109, 31, 0.18); }
.alert { padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.alert-err { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; }
.alert-ok { color: var(--green-text); background: var(--green-soft); border: 1px solid #b7e6cd; }
.switch-link { text-align: center; font-size: 14px; color: var(--text-2); }
.switch-link a { color: var(--orange-hi); font-weight: 600; }
.account { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding: 32px 0 80px; }
.account-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.account-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.owned { display: flex; flex-direction: column; gap: 18px; }
.owned-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: flex-start; }
.owned-id { display: flex; gap: 14px; align-items: center; }
.owned-icon { width: 52px; height: 52px; border-radius: 14px; border: 1px solid #ffd2b5; display: grid; place-items: center; font-family: var(--display); font-size: 24px; font-weight: 700; }
.owned-icon b { color: var(--orange); font-weight: inherit; }
.owned-name { font-size: 20px; font-weight: 700; display: block; }
.owned-meta { font-size: 14px; color: var(--text-3); }
.key-row { display: flex; flex-wrap: wrap; gap: 8px; }
.key-row .input { flex: 1 1 280px; min-width: 0; font: 500 15px ui-monospace, Menlo, monospace; letter-spacing: 0.06em; }
.side-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.side-row a { color: var(--orange-hi); }
.empty-box { border-radius: 22px; border: 1.5px dashed var(--line-2); padding: 32px; text-align: center; color: var(--text-2); display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* Pie */
.foot { border-top: 1px solid var(--line); }
.foot .wrap { padding: 32px 0; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot a { color: var(--text-3); font-size: 14px; }
.foot a:hover { color: var(--text); }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .nav { order: 3; flex-basis: 100%; margin-left: 0; gap: 18px; }
  .hero { padding: 28px 0 32px; gap: 28px; }
  .hero-art { display: none; }
  .actions .btn { flex: 1 1 100%; }
  .box, .b2b { padding: 26px; }
  .section { padding: 16px 0 48px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px; padding: 0 20px; scrollbar-width: none; }
  .chip { flex: none; }
  .section-head { flex-direction: column; align-items: stretch; }
  .crumbs { order: 3; flex-basis: 100%; }
  .top-actions .navlink { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
