/* ================================================================
   DEKEVA — ebook.css · Ficha individual de ebook (/recursos/{slug})
   Depende de recursos-base.css (tokens + chrome + componentes).
================================================================ */

/* ── Hero split ───────────────────────────────────────────── */
.eb-hero {
  padding: clamp(140px, 16vw, 200px) 0 clamp(70px, 9vw, 120px);
  background:
    radial-gradient(100% 70% at 90% 0%, var(--blue-dim), transparent 55%),
    var(--bg);
}
.eb-hero__inner {
  width: var(--cont); margin-inline: auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 5rem); align-items: start;
}

/* ── Columna info ─────────────────────────────────────────── */
.eb-back {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); transition: color .35s, gap .35s var(--ease);
}
.eb-back:hover { color: var(--blue); gap: .8rem; }
.eb-cat {
  display: inline-block; margin-top: 1.6rem;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); padding: .4rem .8rem; border: 1px solid rgba(3,47,212,.25); border-radius: 999px;
}
.eb-title {
  margin-top: 1.2rem;
  font-family: var(--f-display); font-weight: 300; line-height: 1.02;
  font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.03em;
}
.eb-sub { margin-top: 1.2rem; font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--blue); font-family: var(--f-display); font-style: italic; line-height: 1.4; }
.eb-desc { margin-top: 1.6rem; font-size: 1.02rem; color: #55534e; line-height: 1.7; max-width: 560px; }

.eb-learn { margin-top: 2.4rem; }
.eb-learn__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text); margin-bottom: 1.1rem; }
.eb-learn__list { list-style: none; display: flex; flex-direction: column; gap: .9rem; }
.eb-learn__list li {
  position: relative; padding-left: 2rem; font-size: 1rem; color: #3d3b37; line-height: 1.5;
}
.eb-learn__list li::before {
  content: ''; position: absolute; left: 0; top: .5em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 4px var(--blue-dim);
}

.eb-meta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.eb-meta__item {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding: .4rem .8rem; background: var(--bg-soft); border-radius: 999px;
}

/* ── Columna aside (portada + form), sticky en desktop ───────── */
.eb-aside { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 1.6rem; }

.eb-cover {
  aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #0d0d0b, #1c1c33 60%, var(--blue) 170%);
  box-shadow: 0 30px 70px rgba(13,13,11,.18);
  display: flex; align-items: center; justify-content: center;
}
.eb-cover img { width: 100%; height: 100%; object-fit: cover; }
.eb-cover__ph {
  font-family: var(--f-display); font-style: italic; color: rgba(255,255,255,.85);
  font-size: 1.4rem; text-align: center; padding: 0 2rem; line-height: 1.2;
}

/* ── Form card ────────────────────────────────────────────── */
.eb-form-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.8rem; box-shadow: 0 14px 40px rgba(13,13,11,.06);
}
.eb-form__title { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; letter-spacing: -0.01em; }
.eb-form__hint { margin-top: .35rem; font-size: .9rem; color: var(--muted); }

.eb-field { display: block; margin-top: 1.1rem; }
.eb-field__label { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.eb-field input {
  width: 100%; padding: .85rem 1rem; font-size: 1rem; font-family: var(--f-body);
  background: var(--bg-soft); border: 1px solid transparent; border-radius: 10px;
  color: var(--text); transition: border-color .3s, background .3s;
}
.eb-field input::placeholder { color: #b7b5b0; }
.eb-field input:focus { outline: none; background: #fff; border-color: var(--blue); }

/* Honeypot — fuera de pantalla, invisible para humanos */
.eb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.eb-consent { display: flex; gap: .6rem; margin-top: 1.2rem; font-size: .82rem; color: #6b6963; line-height: 1.45; }
.eb-consent input { margin-top: .2rem; accent-color: var(--blue); width: 16px; height: 16px; flex-shrink: 0; }

.eb-error { display: none; margin-top: 1rem; font-size: .88rem; color: #c0392b; }
.eb-error.show { display: block; }

/* .dkv-recursos prefix para ganar al reset `body.dkv-recursos button` (0,1,2) */
.dkv-recursos .eb-submit {
  position: relative; width: 100%; margin-top: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: none;
  color: #fff; background: var(--blue); padding: 1.05rem 1.5rem; border-radius: 12px;
  cursor: pointer; transition: background .35s, transform .3s var(--ease-lux);
}
.dkv-recursos .eb-submit:hover { background: #0225a8; color: #fff; transform: translateY(-1px); }
.dkv-recursos .eb-submit[disabled] { opacity: .7; cursor: default; transform: none; }
.eb-submit__spin { display: none; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: eb-spin .7s linear infinite; }
.eb-submit.loading .eb-submit__label { opacity: .6; }
.eb-submit.loading .eb-submit__spin { display: inline-block; }
@keyframes eb-spin { to { transform: rotate(360deg); } }

.eb-privacy { margin-top: 1rem; font-size: .74rem; color: var(--muted); line-height: 1.4; text-align: center; }
.eb-privacy a { color: var(--muted); text-decoration: underline; }
.eb-privacy a:hover { color: var(--blue); }

/* ── Estado éxito ─────────────────────────────────────────── */
.eb-success { text-align: center; padding: 1rem .5rem 1.4rem; animation: eb-fade .5s var(--ease); }
@keyframes eb-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.eb-success__check {
  width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
}
.eb-success__title { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; }
.eb-success__msg { margin-top: .5rem; font-size: .95rem; color: #55534e; line-height: 1.5; }
.dkv-recursos .eb-download {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.4rem;
  font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: none;
  color: #fff; background: var(--blue); padding: 1rem 1.6rem; border-radius: 12px;
  transition: background .35s, transform .3s var(--ease-lux);
}
.dkv-recursos .eb-download:hover { background: #0225a8; transform: translateY(-2px); color: #fff; }
.eb-success__hint { margin-top: 1.2rem; font-size: .78rem; color: var(--muted); }

/* ── Not found ────────────────────────────────────────────── */
.eb-hero--notfound { min-height: 70vh; display: flex; align-items: center; }
.eb-notfound { width: var(--cont); margin-inline: auto; text-align: center; }
.eb-notfound h1 { margin: 1rem 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(2rem,5vw,3.2rem); letter-spacing: -0.02em; }
.eb-notfound p { color: #6b6963; margin-bottom: 2rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 960px) {
  .eb-hero__inner { grid-template-columns: 1fr; }
  .eb-aside { position: static; order: -1; max-width: 420px; margin-inline: auto; width: 100%; }
  .eb-cover { max-width: 300px; margin-inline: auto; }
}
