:root {
  /* Claro cálido: marfil, café oscuro y el dorado del logo */
  --bg: #faf6ef;
  --bg-soft: #f3ece0;
  --surface: #ffffff;
  --border: #e6dccb;
  --text: #2b2118;
  --text-soft: #6b5a47;
  --heading: #1f1710;
  --accent: #8d6119;        /* dorado oscuro: contraste AA en texto y botones */
  --accent-hover: #73500f;
  --accent-light: #c99a45;  /* dorado del logo: detalles decorativos */
  --accent-tint: rgba(184, 134, 47, .12);
  --shadow: rgba(60, 40, 15, .18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 18px/1.65 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--heading); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.eyebrow { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-bottom: .75rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-size: 1.15rem; color: var(--text-soft); }
.prose p { color: var(--text); }
.lead p { color: var(--text-soft); }
.empty { color: var(--text-soft); text-align: center; padding: 2rem 0; }

/* ---------- Encabezado ---------- */
.site-header { border-bottom: 1px solid var(--border); background: rgba(250,246,239,.94); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.logo { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--heading); text-decoration: none; letter-spacing: .03em; }
.site-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.site-nav a { color: var(--text-soft); text-decoration: none; padding: .35rem .7rem; border-radius: 6px; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--heading); background: var(--accent-tint); }
@media (max-width: 480px) { .header-inner { padding-top: .5rem; padding-bottom: .5rem; } .site-nav { width: 100%; margin-left: -.7rem; } }

/* ---------- Botones ---------- */
.btn { display: inline-block; padding: .7rem 1.3rem; border-radius: 999px; border: 1px solid var(--accent); color: var(--heading); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background .2s, color .2s; }
.btn:hover { background: var(--accent-tint); color: var(--heading); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.5rem 0; }
.text-link { font-weight: 600; text-decoration: none; }

/* ---------- Portada (inicio) ---------- */
.hero { padding: 3rem 0 2rem; background: radial-gradient(ellipse at 75% 30%, rgba(201,154,69,.22), transparent 60%), linear-gradient(var(--bg-soft), var(--bg)); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.hero-image img { border-radius: 14px; box-shadow: 0 24px 60px var(--shadow); display: block; width: 100%; }
@media (max-width: 800px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero-image { order: -1; max-width: 360px; margin: 0 auto; }
  .hero .cta-row { justify-content: center; }
}

.page-hero { padding: 3rem 0 1.5rem; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.section { padding: 3rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.section-head a { text-decoration: none; font-size: .95rem; }

/* ---------- Libros ---------- */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2rem; }
@media (max-width: 480px) { .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; } }
.book-card { text-decoration: none; color: inherit; display: block; }
.book-card h3 { margin: .9rem 0 .2rem; }
.book-card p { color: var(--text-soft); font-size: .95rem; margin: 0; }
.book-cover { aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; text-align: center; padding: 0; box-shadow: 0 12px 30px var(--shadow); transition: transform .25s; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-cover span { font-family: var(--serif); font-size: 1.3rem; color: var(--heading); padding: 1rem; }
.book-card:hover .book-cover { transform: translateY(-4px); }

.book-layout { display: grid; grid-template-columns: 340px 1fr; gap: 3.5rem; align-items: start; }
.book-detail-cover img, .book-detail-cover .book-cover { width: 100%; border-radius: 8px; box-shadow: 0 24px 60px rgba(60,40,15,.28); display: block; }
.book-detail .subtitle { font-size: 1.25rem; color: var(--text-soft); font-style: italic; font-family: var(--serif); margin-top: -.25rem; }
.buy { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.buy h2 { font-size: 1.4rem; margin: 0; }
@media (max-width: 800px) {
  .book-layout { grid-template-columns: 1fr; gap: 2rem; }
  .book-detail-cover { max-width: 260px; margin: 0 auto; }
}

.readers-callout, .podcast-callout { margin-top: 2.5rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.readers-callout h2, .podcast-callout h2 { font-size: 1.5rem; }
.readers-callout p, .podcast-callout p { color: var(--text-soft); }

/* ---------- Para lectores ---------- */
.readers-hero-inner { display: flex; gap: 2.5rem; align-items: center; }
.readers-cover { width: 160px; border-radius: 6px; box-shadow: 0 14px 34px var(--shadow); flex-shrink: 0; }
@media (max-width: 640px) { .readers-hero-inner { flex-direction: column; text-align: center; gap: 1.5rem; } .readers-cover { width: 130px; } }

.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.resource { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; display: flex; flex-direction: column; }
.resource h2 { font-size: 1.45rem; margin-bottom: .5rem; }
.resource .prose { color: var(--text-soft); font-size: .98rem; flex: 1; }
.resource .prose p { color: var(--text-soft); }
.resource .btn { align-self: flex-start; margin-top: .5rem; }
.resource-type { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }

.preview-bar { background: #6b3f12; color: #fff; text-align: center; padding: .5rem 1rem; font-size: .9rem; }
.error-page { text-align: center; padding: 5rem 0; }

.narrow-wrap { max-width: 760px; }
.meta { color: var(--text-soft); font-size: .9rem; margin: 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.chip { display: inline-block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .35rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Episodios ---------- */
.episode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem 1.5rem; }
.episode-card { text-decoration: none; color: inherit; display: block; }
.episode-card .episode-thumb { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface); margin-bottom: .75rem; }
.episode-card .episode-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.episode-card:hover .episode-thumb img { transform: scale(1.03); }
.episode-card h3 { font-size: 1.25rem; margin: 0 0 .25rem; }

.hero-episode { position: relative; display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px var(--shadow); color: #fff; text-decoration: none; }
.hero-episode img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-episode-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.25rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,.85)); font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; text-align: left; }
.hero-episode-title small { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #f0c77a; margin-bottom: .25rem; }
.play-icon { position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(154,107,31,.95); box-shadow: 0 6px 24px rgba(0,0,0,.35); transition: transform .2s; }
.play-icon::after { content: ''; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.hero-episode:hover .play-icon, .player-facade:hover .play-icon { transform: scale(1.08); }

.player { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; margin: 1.5rem 0; box-shadow: 0 20px 50px var(--shadow); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.player-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scriptures { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent-light); padding: .75rem 1rem; border-radius: 0 8px 8px 0; }
.related { border-top: 1px solid var(--border); }

.search { display: flex; gap: .5rem; max-width: 520px; margin-top: 1.25rem; }
.search input, .subscribe-form input, .site-form input, .site-form textarea {
  flex: 1; min-width: 0; padding: .7rem 1rem; font: inherit; font-size: 1rem; color: var(--text); background: var(--surface); border: 1px solid #d9ccb6; border-radius: 10px;
}
.search input { border-radius: 999px; }
.search input:focus, .subscribe-form input:focus, .site-form input:focus, .site-form textarea:focus { outline: 3px solid rgba(154,107,31,.25); border-color: var(--accent); }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.25rem; }
.chips a { padding: .35rem .9rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; color: var(--text-soft); text-decoration: none; font-size: .9rem; }
.chips a:hover { border-color: var(--accent); color: var(--heading); }
.chips a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2.5rem; color: var(--text-soft); font-size: .95rem; }
.pagination a { text-decoration: none; font-weight: 600; }

/* ---------- Estudios ---------- */
.study-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.study-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.study-card-image { aspect-ratio: 16 / 9; background: var(--bg-soft); overflow: hidden; }
.study-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.study-card:hover .study-card-image img { transform: scale(1.04); }
.study-card-image.is-placeholder { display: flex; align-items: center; justify-content: center; padding: 1.25rem; text-align: center;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 55%), linear-gradient(135deg, #c99a45 0%, #8d6119 100%); }
.placeholder-ref { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.2; color: #fff; text-shadow: 0 1px 8px rgba(60, 40, 15, .35); }
.study-card-body { padding: 1.1rem 1.3rem 1.3rem; }
.study-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.study-card h3 { margin-bottom: .35rem; }
.study-card p { color: var(--text-soft); font-size: .98rem; margin: 0 0 .5rem; }
.scripture-ref { font-family: var(--serif); font-style: italic; color: var(--accent) !important; font-size: 1.05rem; }
.scripture-ref.big { font-size: 1.35rem; margin-top: -.25rem; }
.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.series-card { display: flex; gap: 1rem; align-items: center; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }
.series-card:hover { border-color: var(--accent); }
.series-card img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.series-card h3 { margin: 0 0 .2rem; }
.study-steps { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.study-steps li { border-bottom: 1px solid var(--border); }
.study-steps a { display: flex; gap: 1.25rem; padding: 1.25rem 0; text-decoration: none; color: inherit; }
.study-steps a:hover strong { color: var(--accent); }
.step-number { flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.2rem; }
.step-body { display: flex; flex-direction: column; gap: .15rem; }
.step-body strong { font-family: var(--serif); font-size: 1.35rem; color: var(--heading); font-weight: 600; }
.step-summary { color: var(--text-soft); font-size: .95rem; }
.study-cover { width: 100%; border-radius: 12px; margin: 1rem 0 1.5rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--heading); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: .4rem; }
.questions { margin-top: 2.5rem; padding: 1.5rem 1.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.questions h2 { font-size: 1.5rem; }
.questions ol { margin: 0; padding-left: 1.3rem; }
.questions li { margin-bottom: .6rem; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.prev-next a { display: block; padding: 1rem 1.25rem; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; color: var(--heading); font-family: var(--serif); font-size: 1.1rem; }
.prev-next a:hover { border-color: var(--accent); }
.prev-next small { display: block; font-family: var(--sans); font-size: .8rem; color: var(--text-soft); margin-bottom: .2rem; }
.prev-next .next { text-align: right; grid-column: 2; }
@media (max-width: 560px) { .prev-next { grid-template-columns: 1fr; } .prev-next .next { grid-column: 1; } }

/* ---------- Suscripción y formularios ---------- */
.subscribe { margin-top: 3rem; padding: 2rem; border-radius: 16px; background: linear-gradient(135deg, #f5e7cb, #fbf3e4); border: 1px solid #ead8b4; display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.5rem 2rem; align-items: center; }
.subscribe h2 { font-size: 1.7rem; margin-bottom: .35rem; }
.subscribe p { color: var(--text-soft); margin: 0; }
.subscribe-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.subscribe-form input { flex: 1 1 160px; }
@media (max-width: 760px) { .subscribe { grid-template-columns: 1fr; padding: 1.5rem; } }
.home-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.home-links a { display: flex; flex-direction: column; padding: 1.25rem 1.5rem; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; }
.home-links a:hover { border-color: var(--accent); }
.home-links strong { font-family: var(--serif); font-size: 1.35rem; color: var(--heading); }
.home-links span { color: var(--accent); font-size: .95rem; }
@media (max-width: 560px) { .home-links { grid-template-columns: 1fr; } }

.site-form label { display: block; margin-bottom: 1rem; font-weight: 600; font-size: .95rem; color: var(--heading); }
.site-form label small { font-weight: 400; color: var(--text-soft); }
.site-form input, .site-form textarea { display: block; width: 100%; margin-top: .35rem; }
.site-form textarea { resize: vertical; }
.site-form label.check { display: flex; gap: .6rem; align-items: center; font-weight: 400; color: var(--text); }
.site-form label.check input { flex: none; width: 1.1rem; height: 1.1rem; margin: 0; padding: 0; accent-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field-error { color: #b3261e; font-size: .9rem; margin: -.6rem 0 1rem; }
.fine-print { font-size: .85rem; color: var(--text-soft); margin-top: 1rem; }
.notice { padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.5rem; }
.notice.ok { background: #e8f4ec; border: 1px solid #b9dcc5; }
.notice.error { background: #fbe9e7; border: 1px solid #f1c3bd; color: #8c1d16; }
.site-flash { padding: .8rem 0; background: #e8f4ec; color: #1f5a35; border-bottom: 1px solid #b9dcc5; }
.site-flash.error { background: #fbe9e7; color: #8c1d16; border-color: #f1c3bd; }

/* ---------- Venta directa ---------- */
.direct-sale { display: flex; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 1rem 0 .5rem; padding: 1.1rem 1.25rem; border: 1px solid var(--accent-light); border-radius: 12px; background: #fdf6e8; }
.direct-sale strong { color: var(--heading); }
.direct-sale .meta { margin-top: .25rem; }
.price { color: var(--accent); font-weight: 600; white-space: nowrap; }
.order-head { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 2rem; }
.order-head h1 { margin-bottom: .25rem; }
.order-cover { width: 120px; height: auto; border-radius: 6px; box-shadow: 0 12px 30px var(--shadow); flex-shrink: 0; }
@media (max-width: 560px) { .order-head { flex-direction: column; align-items: center; text-align: center; } .order-cover { width: 110px; } }
.site-form .btn { margin: 0 .5rem .5rem 0; }

/* Tarjetas sobre fondo claro: sombra suave */
.study-card, .series-card, .resource, .questions, .readers-callout, .podcast-callout, .home-links a, .prev-next a {
  background: var(--surface); box-shadow: 0 1px 3px rgba(60, 40, 15, .06);
}
.study-card:hover, .series-card:hover, .home-links a:hover, .prev-next a:hover { box-shadow: 0 8px 24px rgba(60, 40, 15, .10); }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 2.5rem 0; text-align: center; margin-top: 2rem; }
.social { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; justify-content: center; gap: 1.25rem; }
.social svg { width: 22px; height: 22px; fill: var(--accent); display: block; }
.social a:hover svg { fill: var(--accent-hover); }
.copy { font-size: .8rem; color: var(--text-soft); margin: 0; }
.subscribe-note { grid-column: 1 / -1; margin: 0; }
.copy a { color: inherit; }
.site-form label.check.consent { align-items: flex-start; font-size: .92rem; }
.site-form label.check.consent input { margin-top: .3rem; }
.book-video { margin: 1.25rem 0 1.75rem; }
.book-video .player { margin: 0 0 .5rem; }

/* ---------- Pie: Ama Mejor y enlaces ---------- */
.partner { display: flex; align-items: center; justify-content: center; gap: 1.25rem 2rem; flex-wrap: wrap; max-width: 760px; margin: 0 auto 2rem; padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; color: var(--text); box-shadow: 0 1px 3px rgba(60, 40, 15, .06); transition: box-shadow .2s, border-color .2s; }
.partner:hover { border-color: #5bb08a; box-shadow: 0 8px 24px rgba(60, 40, 15, .10); }
.partner img { width: 190px; height: auto; flex-shrink: 0; }
.partner-text { display: flex; flex-direction: column; gap: .2rem; text-align: left; }
.partner-text strong { font-family: var(--serif); font-size: 1.3rem; color: var(--heading); line-height: 1.2; }
.partner-text span { color: #1f6b52; font-weight: 600; font-size: .95rem; }
@media (max-width: 560px) { .partner { flex-direction: column; } .partner-text { text-align: center; } }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 .75rem; font-size: .9rem; }
.footer-links a { color: var(--text-soft); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Spotify (solo audio) ---------- */
.listen { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: center; padding: 2rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.listen-text h2 { font-size: 2rem; }
.listen-text p:not(.eyebrow) { color: var(--text-soft); }
.listen-player { width: 100%; border: 0; border-radius: 12px; display: block; }
.listen.compact { padding: 1.25rem 1.5rem; gap: 1.5rem; }
.listen.compact .listen-text h2 { font-size: 1.5rem; margin-bottom: .25rem; }
.listen.compact .listen-text p:not(.eyebrow) { margin: 0 0 .75rem; font-size: .98rem; }
.listen.compact .eyebrow { margin-bottom: .35rem; }
.listen-band { padding-bottom: 0; }
@media (max-width: 760px) {
  .listen { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem; text-align: center; }
}
