/* =========================================================================
   Academia María Belén · tema propio (Fiproyecto), sobre la base fp-cactus.
   Dirección: un cuaderno íntimo. Crema melocotón de fondo, tinta burdeos, la flor de loto
   como firma que se dibuja sola. Fraunces (serif cálida, con eje óptico) + Figtree.
   ========================================================================= */

@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(../fonts/fraunces-latin-opsz-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 700; font-display: swap; src: url(../fonts/fraunces-latin-opsz-italic.woff2) format('woff2'); }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(../fonts/figtree-latin-wght-normal.woff2) format('woff2'); }

:root {
	--bg: #fbf4ee;
	--bg-2: #f5e5da;
	--bg-3: #efd6c8;
	--paper: #fffaf6;
	--ink: #2b1519;
	--muted: #6d5156;
	--accent: #6e2335;
	--accent-2: #561a29;
	--deep: #3a1220;
	--on-deep: #f8e9df;
	--rose: #d9a493;
	--line: #ead8cc;
	--serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
	--sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--t1: clamp(2.5rem, 1.5rem + 4vw, 5.25rem);
	--t2: clamp(2rem, 1.45rem + 2.2vw, 3.5rem);
	--t3: clamp(1.3rem, 1.15rem + .5vw, 1.6rem);
	--t4: 1.0625rem;
	--t5: .9rem;
	--m: clamp(20px, 4vw, 64px);
	--max: 1320px;
	--sec: clamp(88px, 10vw, 168px);
	--r: 22px;
	--cab: 78px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--cab) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: var(--t4); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -.012em; margin: 0 0 .5em; font-optical-sizing: auto; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--rose); color: var(--ink); }
[hidden] { display: none !important; }
.ch-oculto, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ch-saltar { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 10px; text-decoration: none; transition: top .2s; }
.ch-saltar:focus { top: 12px; color: var(--bg); }
.ch-trampa { position: absolute; left: -9999px; }
.ch-t1 { font-size: var(--t1); }
.ch-t2 { font-size: var(--t2); }
.ch-t3 { font-size: var(--t3); }
.ch-eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.1em; }
.ch-nota { font-size: var(--t5); color: var(--muted); }
.ch-ancho { width: min(100% - 2 * var(--m), var(--max)); margin-inline: auto; }
.ch-main { display: block; min-height: 50vh; }
.ch-main:focus { outline: 0; }
mark.ch-pend { background: #fde3a7; color: #5b3a00; padding: 0 .3em; border-radius: 4px; font-size: .9em; }

/* Botones y enlaces */
.ch-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: 0 1.6em; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; font-size: 1rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .25s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease); box-shadow: 0 10px 24px -14px rgba(110, 35, 53, .9); }
.ch-btn:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); }
.ch-btn:active { transform: translateY(1px); }
.ch-btn--s { min-height: 44px; padding: 0 1.2em; font-size: .94rem; }
.ch-btn--claro { background: var(--paper); color: var(--accent); box-shadow: none; }
.ch-btn--claro:hover { background: #fff; color: var(--accent-2); }
.ch-btn--borde { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.ch-btn--borde:hover { background: var(--accent); color: #fff; }
.ch-enl, .ch-enl-claro { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; min-height: 44px; }
.ch-enl svg, .ch-enl-claro svg { width: 1.15em; height: 1.15em; transition: transform .3s var(--ease-out); }
.ch-enl:hover svg, .ch-enl-claro:hover svg { transform: translateX(4px); }
.ch-enl-claro { color: var(--on-deep); }
.ch-enl-claro:hover { color: #fff; }

/* Franja de borrador */
.ch-borrador { margin: 0; padding: 8px var(--m); background: var(--deep); color: var(--on-deep); font-size: .8rem; text-align: center; line-height: 1.4; }

/* ---------- Cabecera ---------- */
.ch-cab { position: sticky; top: 0; z-index: 90; background: rgba(251, 244, 238, .92); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: transform .4s var(--ease-out), border-color .3s; }
.ch-cab.is-sombra { border-bottom-color: var(--line); }
.ch-cab.is-oculta { transform: translateY(-100%); }
.admin-bar .ch-cab { top: 32px; }
@media (max-width: 782px) { .admin-bar .ch-cab { top: 46px; } }
.ch-cab-in { width: min(100% - 2 * var(--m), var(--max)); margin-inline: auto; height: var(--cab); display: flex; align-items: center; gap: 28px; }
.ch-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); text-decoration: none; margin-right: auto; }
.ch-logo:hover { color: var(--accent); }
.ch-logo-loto { width: 46px; height: auto; flex: none; }
.ch-logo-txt { display: flex; flex-direction: column; line-height: 1; }
.ch-logo-a { font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.ch-logo-n { font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.01em; }
.ch-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 2vw, 30px); }
.ch-nav a { position: relative; color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 0; }
.ch-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out); }
.ch-nav a:hover::after, .ch-nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.ch-acc { display: flex; align-items: center; gap: 14px; }
.ch-entrar { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; font-weight: 500; min-height: 44px; }
.ch-entrar svg { width: 22px; height: 22px; }
.ch-menu-btn { display: none; width: 46px; height: 46px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; align-items: center; justify-content: center; }
.ch-hamb { position: relative; width: 22px; height: 12px; }
.ch-hamb i { position: absolute; left: 0; width: 100%; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.ch-hamb i:first-child { top: 0; }
.ch-hamb i:last-child { top: 10px; }
.ch-menu-btn[aria-expanded="true"] .ch-hamb i:first-child { top: 5px; transform: rotate(45deg); }
.ch-menu-btn[aria-expanded="true"] .ch-hamb i:last-child { top: 5px; transform: rotate(-45deg); }
.ch-movil { position: fixed; inset: var(--cab) 0 0; z-index: 89; background: var(--bg); padding: 28px var(--m) calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto; overscroll-behavior: contain; }
.ch-movil[hidden] { display: none; }
.ch-mv-l { list-style: none; margin: 0; padding: 0; }
.ch-mv-l a { display: block; padding: 12px 0; font-family: var(--serif); font-size: clamp(2rem, 8vw, 2.6rem); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.ch-mv-l a[aria-current] { color: var(--accent); font-style: italic; }
.ch-movil.is-on .ch-mv-l li { animation: ch-sube .5s var(--ease-out) both; animation-delay: calc(var(--i) * 45ms); }
.ch-mv-pie { display: grid; gap: 14px; padding-top: 28px; }
.ch-mv-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; color: var(--ink); text-decoration: none; font-weight: 500; }
.ch-mv-wa svg { width: 22px; height: 22px; color: #1f9e53; }
html.ch-bloqueo { overflow: hidden; }
@keyframes ch-sube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 1060px) {
	.ch-nav, .ch-solo-esc { display: none; }
	.ch-menu-btn { display: inline-flex; }
}
@media (max-width: 520px) {
	.ch-entrar span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ch-logo-loto { width: 38px; }
	.ch-logo-n { font-size: 1.3rem; }
}

/* ---------- Flor de loto (se dibuja sola) ---------- */
.ch-loto .p { stroke-dasharray: 120; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
	.ch-logo-loto .p, .ch-hero-loto .p { animation: ch-traza 2.2s var(--ease-out) both; }
	.ch-loto .p2, .ch-loto .p3 { animation-delay: .25s; }
	.ch-loto .p4, .ch-loto .p5 { animation-delay: .5s; }
	.ch-loto .p6 { animation-delay: .8s; }
	.ch-hero-loto { animation: ch-respira 7s ease-in-out 2.4s infinite; transform-origin: 50% 90%; }
}
@keyframes ch-traza { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
@keyframes ch-respira { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }

/* ---------- Imágenes ---------- */
.ch-fig { position: relative; margin: 0; }
.ch-fig img { width: 100%; }
.ch-orienta { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(43, 21, 25, .6); color: #fff; font-size: .7rem; letter-spacing: .02em; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }

/* ---------- Portada: cabecera ---------- */
.ch-hero { position: relative; isolation: isolate; min-height: min(92svh, 860px); display: flex; align-items: flex-end; color: var(--on-deep); background: var(--deep); overflow: hidden; }
.ch-hero-img, .ch-hero-img .ch-fig { position: absolute; inset: 0; z-index: -2; }
.ch-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.ch-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(42, 12, 22, .88) 0%, rgba(58, 18, 32, .66) 38%, rgba(58, 18, 32, .12) 72%), linear-gradient(0deg, rgba(42, 12, 22, .55), transparent 45%); }
.ch-hero-in { width: min(100% - 2 * var(--m), var(--max)); margin: 0 auto; padding: 140px 0 clamp(56px, 8vw, 110px); }
.ch-hero .ch-eyebrow { color: var(--rose); }
.ch-hero-h { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.65rem); font-family: var(--sans); font-weight: 500; letter-spacing: 0; max-width: 30ch; margin-bottom: .8em; color: #fff; }
.ch-hero-cita { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(2.4rem, 1.4rem + 4.2vw, 5.4rem); line-height: 1.02; letter-spacing: -.02em; max-width: 16ch; margin: 0 0 .6em; color: #fff; text-wrap: balance; }
.ch-hero-b { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.ch-hero-loto { position: absolute; right: max(var(--m), calc((100vw - var(--max)) / 2)); bottom: clamp(48px, 7vw, 100px); width: clamp(110px, 14vw, 220px); color: var(--rose); opacity: .85; }
.ch-hero-loto .p { stroke-width: 1; }
.ch-hero .ch-orienta { bottom: 16px; right: 16px; }
@media (max-width: 760px) {
	.ch-hero { min-height: 86svh; }
	.ch-hero::before { background: linear-gradient(0deg, rgba(42, 12, 22, .92) 10%, rgba(58, 18, 32, .55) 60%, rgba(58, 18, 32, .25)); }
	.ch-hero-loto { top: 26px; bottom: auto; width: 84px; }
	.ch-hero .ch-orienta { top: 14px; left: 14px; right: auto; bottom: auto; }
}

/* ---------- Portada: así es ---------- */
.ch-asi { width: min(100% - 2 * var(--m), var(--max)); margin: 0 auto; padding: clamp(48px, 6vw, 84px) 0 0; }
.ch-asi-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.ch-asi-l li { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; align-items: start; }
.ch-asi-l svg { grid-row: span 2; width: 30px; height: 30px; color: var(--accent); }
.ch-asi-l b { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.2; }
.ch-asi-l span { color: var(--muted); font-size: .98rem; }
@media (max-width: 820px) { .ch-asi-l { grid-template-columns: 1fr; } }

/* ---------- Portada: programa destacado y su camino ---------- */
.ch-dest { width: min(100% - 2 * var(--m), var(--max)); margin: var(--sec) auto 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ch-dest .ch-t2 { font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem); font-style: italic; font-weight: 300; color: var(--accent); }
.ch-dest-x { font-size: 1.15rem; max-width: 34em; }
.ch-dest-precio { font-size: 1.5rem; font-family: var(--serif); margin: 1.2em 0 .4em; }
.ch-dest-precio del { color: var(--muted); font-size: .75em; margin-right: .4em; }
.ch-dest-precio ins { text-decoration: none; color: var(--accent); }
.ch-dest-regalo { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.ch-dest-regalo svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.ch-dest-b { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 1.6em; }
.ch-dest-b .ch-enl svg { width: 1.4em; height: 1.4em; }
.ch-camino { list-style: none; margin: 0; padding: clamp(28px, 4vw, 52px); position: relative; background: var(--bg-2); border-radius: 260px 260px var(--r) var(--r); display: grid; gap: clamp(18px, 2.4vw, 30px); padding-top: clamp(90px, 10vw, 140px); }
.ch-camino::before { content: ""; position: absolute; left: calc(clamp(28px, 4vw, 52px) + 27px); top: clamp(110px, 12vw, 160px); bottom: clamp(48px, 6vw, 80px); width: 1.5px; background: var(--accent); transform-origin: top; transform: scaleY(var(--linea, 1)); transition: transform 1.6s var(--ease-out); }
.ch-camino li { position: relative; display: flex; align-items: center; gap: 22px; }
.ch-camino-n { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--accent); font-family: var(--serif); font-size: 1.1rem; box-shadow: inset 0 0 0 1.5px var(--accent); position: relative; z-index: 1; }
.ch-camino-t { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.3rem); line-height: 1.1; }
.ch-camino.is-espera { --linea: 0; }
.ch-camino.is-espera li { opacity: 0; transform: translateX(-12px); }
.ch-camino li { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i) * 160ms + 200ms); }
@media (max-width: 900px) { .ch-dest { grid-template-columns: 1fr; } .ch-camino { border-radius: 180px 180px var(--r) var(--r); } }

/* ---------- Secciones ---------- */
.ch-sec { width: min(100% - 2 * var(--m), var(--max)); margin: var(--sec) auto 0; }
.ch-sec-cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(28px, 3.5vw, 48px); }
.ch-sec-cab .ch-t2 { margin: 0; }
.ch-sec-x { max-width: 30em; color: var(--muted); margin: 0; }

/* Tarjetas de cursos (plugin) dentro del tema */
.ch .fpa-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.ch .fpa-tarjeta { border-radius: var(--r); overflow: hidden; background: var(--paper); transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); box-shadow: 0 1px 0 var(--line); }
.ch .fpa-tarjeta:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(58, 18, 32, .45); }
.ch .fpa-tarjeta-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.ch .fpa-tarjeta-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.ch .fpa-tarjeta:hover .fpa-tarjeta-img img { transform: scale(1.04); }

/* Biblioteca: caminos */
.ch-bib-l { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ch-bib-l a { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto 28px; align-items: center; gap: 18px; padding: clamp(18px, 2.2vw, 28px) 6px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color .35s var(--ease), padding .45s var(--ease-out); }
.ch-bib-l a:hover { background: var(--bg-2); padding-left: 18px; padding-right: 18px; }
.ch-bib-n { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 1.15rem; }
.ch-bib-t { font-family: var(--serif); font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.4rem); line-height: 1.1; }
.ch-bib-p { color: var(--muted); font-size: .95rem; white-space: nowrap; }
.ch-bib-p del { opacity: .7; }
.ch-bib-p ins { text-decoration: none; }
.ch-bib-ir { width: 26px; height: 26px; color: var(--accent); transition: transform .4s var(--ease-out); }
.ch-bib-l a:hover .ch-bib-ir { transform: translateX(6px); }
@media (max-width: 640px) { .ch-bib-l a { grid-template-columns: 2.6rem minmax(0, 1fr) 24px; } .ch-bib-p { grid-column: 2; grid-row: 2; } .ch-bib-ir { grid-column: 3; grid-row: 1 / span 2; } }

/* Testimonio */
.ch-testi { margin-top: var(--sec); background: var(--deep); color: var(--on-deep); padding: clamp(72px, 9vw, 150px) var(--m); position: relative; overflow: hidden; }
.ch-testi::before { content: "«"; position: absolute; left: 50%; top: -.28em; transform: translateX(-50%); font-family: var(--serif); font-size: clamp(16rem, 30vw, 30rem); line-height: 1; color: rgba(217, 164, 147, .1); pointer-events: none; }
.ch-testi figure { position: relative; max-width: 940px; margin: 0 auto; text-align: center; }
.ch-testi blockquote { margin: 0; }
.ch-testi-g { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.6rem); line-height: 1.1; color: #fff; margin-bottom: .8em; text-wrap: balance; }
.ch-testi blockquote p:last-child { max-width: 40em; margin-inline: auto; font-size: 1.08rem; color: rgba(248, 233, 223, .82); }
.ch-testi em { color: var(--rose); font-style: italic; }
.ch-testi figcaption { margin-top: 1.8em; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rose); }

/* Comunidad (portada) */
.ch-com { width: min(100% - 2 * var(--m), var(--max)); margin: var(--sec) auto 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ch-com-img .ch-fig { border-radius: var(--r) var(--r) var(--r) 200px; overflow: hidden; }
.ch-com-img img { aspect-ratio: 4 / 5; object-fit: cover; }
.ch-check { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 10px; }
.ch-check li { position: relative; padding-left: 30px; }
.ch-check li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(-45deg); }
.ch-com-precio { font-size: 1.1rem; }
.ch-com-precio b { font-family: var(--serif); font-weight: 500; color: var(--accent); font-size: 1.3em; }
@media (max-width: 860px) { .ch-com { grid-template-columns: 1fr; } .ch-com-img { max-width: 520px; } }

/* Sobre mí (portada) */
.ch-yo { width: min(100% - 2 * var(--m), 1080px); margin: var(--sec) auto 0; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.ch-yo-img .ch-fig { border-radius: 999px 999px var(--r) var(--r); overflow: hidden; }
.ch-yo-img img { aspect-ratio: 3 / 4; object-fit: cover; }
.ch-yo-txt p { font-size: 1.12rem; }
@media (max-width: 760px) { .ch-yo { grid-template-columns: 1fr; } .ch-yo-img { max-width: 300px; } }

/* Libros (portada) */
.ch-libs-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.ch-libs-l a { display: block; color: var(--ink); text-decoration: none; font-size: .92rem; line-height: 1.35; }
.ch-libs-l img { border-radius: 6px; box-shadow: 0 18px 32px -20px rgba(58, 18, 32, .55); transition: transform .5s var(--ease-out); margin-bottom: 12px; aspect-ratio: 3 / 4; object-fit: cover; }
.ch-libs-l a:hover img { transform: translateY(-6px) rotate(-1.5deg); }
@media (max-width: 900px) { .ch-libs-l { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Texto largo de la portada */
.ch-seo { padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.ch-seo .ch-prosa { columns: 2 22em; column-gap: clamp(32px, 5vw, 80px); }
.ch-seo .ch-prosa > * { break-inside: avoid-column; }
.ch-seo .ch-prosa h2 { column-span: all; font-size: var(--t2); margin-top: 0; }
.ch-seo .ch-prosa h3 { break-after: avoid; }

/* Cierre */
.ch-fin { margin-top: var(--sec); padding: clamp(72px, 9vw, 140px) var(--m); background: var(--accent); color: var(--on-deep); text-align: center; display: grid; justify-items: center; }
.ch-fin .ch-t2 { color: #fff; font-style: italic; font-weight: 300; max-width: 18ch; }
.ch-fin p { max-width: 34em; margin-bottom: 1.6em; }
.ch-fin-loto { width: 84px; color: var(--rose); margin-bottom: 22px; }

/* ---------- Páginas ---------- */
.ch-pag { padding: clamp(36px, 5vw, 80px) 0 var(--sec); }
.ch-pcab { margin-bottom: clamp(28px, 4vw, 56px); max-width: 52rem; }
.ch-pcab .ch-t1 { margin-bottom: .3em; }
.ch-pcab-x { font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem); color: var(--muted); max-width: 36em; }
.ch-pcab--img { width: min(100% - 2 * var(--m), var(--max)); max-width: none; margin: 0 auto; padding: clamp(36px, 5vw, 80px) 0 clamp(36px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.ch-pcab-fig { border-radius: var(--r) var(--r) var(--r) 220px; overflow: hidden; }
.ch-pcab-fig img { aspect-ratio: 4 / 5; object-fit: cover; }
.ch-pcab-fig--yo { border-radius: 999px 999px var(--r) var(--r); max-width: 440px; justify-self: center; }
@media (max-width: 860px) { .ch-pcab--img { grid-template-columns: 1fr; } }
.ch-pag-fig { border-radius: var(--r); overflow: hidden; margin-bottom: clamp(32px, 4vw, 56px); }
.ch-pag-fig img { aspect-ratio: 21 / 9; object-fit: cover; }
.ch-prosa { font-size: 1.08rem; line-height: 1.75; }
.ch-prosa > * { max-width: 42em; }
.ch-prosa--col { margin-inline: auto; max-width: 46em; }
.ch-prosa h2 { font-size: clamp(1.7rem, 1.35rem + 1.3vw, 2.5rem); margin: 1.5em 0 .5em; }
.ch-prosa h3 { font-size: var(--t3); margin: 1.5em 0 .45em; }
.ch-prosa > :first-child { margin-top: 0; }
.ch-prosa ul, .ch-prosa ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.ch-prosa li { margin-bottom: .4em; }
.ch-prosa li::marker { color: var(--accent); }
.ch-prosa strong { font-weight: 600; }
.ch-prosa blockquote { margin: 1.8em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--accent); font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.45; color: var(--accent); }
.ch-prosa .ch-ejemplo, .fpa .ch-ejemplo { display: inline-block; margin-bottom: 1.2em; padding: 6px 14px; border-radius: 999px; background: #fde3a7; color: #5b3a00; font-size: .82rem; font-weight: 600; font-family: var(--sans); font-style: normal; }
.ch-sm-firma { width: min(100% - 2 * var(--m), 46em); margin: clamp(32px, 4vw, 56px) auto var(--sec); font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem); line-height: 1.15; color: var(--accent); text-wrap: balance; }
.ch-com-pag .ch-prosa--col { padding-bottom: var(--sec); }
.ch-ventajas { list-style: none; width: min(100% - 2 * var(--m), var(--max)); margin: 0 auto clamp(48px, 6vw, 96px); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); background: var(--bg-2); border-radius: var(--r); }
.ch-ventajas li { display: grid; gap: 6px; }
.ch-ventajas svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 6px; }
.ch-ventajas b { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }
.ch-ventajas span { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) { .ch-ventajas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ch-ventajas { grid-template-columns: 1fr; } }

/* Contacto */
.ch-contacto { padding: clamp(36px, 5vw, 80px) 0 var(--sec); }
.ch-cto-rej { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ch-cto-l { display: grid; gap: 12px; }
.ch-cto { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; padding: 20px 22px; border-radius: var(--r); background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: 0 1px 0 var(--line); transition: transform .35s var(--ease-out); }
.ch-cto:hover { transform: translateY(-2px); color: var(--ink); }
.ch-cto svg { grid-row: span 2; width: 28px; height: 28px; color: var(--accent); }
.ch-cto b { font-weight: 600; }
.ch-cto span { color: var(--muted); }
.ch-cto-form { background: var(--bg-2); border-radius: var(--r); padding: clamp(24px, 3.5vw, 44px); }
@media (max-width: 820px) { .ch-cto-rej { grid-template-columns: 1fr; } }

/* Formularios propios */
.ch-form { display: grid; gap: 12px; }
.ch-form input, .ch-form textarea, .ch-des-fc input, .ch-des-fc textarea { width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); font-size: 1rem; }
.ch-form textarea { min-height: 130px; resize: vertical; }
.ch-form input:focus, .ch-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.ch-form .ch-err { outline: 2px solid #b4412e; }
.ch-form-legal { margin: 2px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.ch-form-ok, .ch-form-ko { margin: 0; padding: 12px 16px; border-radius: 12px; background: #e3efe6; color: #234a31; }
.ch-form-ko { background: #f7dcd6; color: #6d1f16; }
.ch-des-rej { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.ch-des-fc form { display: grid; gap: 12px; }
@media (max-width: 820px) { .ch-des-rej { grid-template-columns: 1fr; } }

/* Blog */
.ch-ents { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.ch-ent a { display: grid; gap: 8px; color: var(--ink); text-decoration: none; }
.ch-ent img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; }
.ch-ent-f { font-size: .85rem; color: var(--muted); }
.ch-ent-t { font-family: var(--serif); font-size: 1.4rem; line-height: 1.15; }
.ch-404 { text-align: center; display: grid; justify-items: center; }
.ch-404-loto { width: 90px; color: var(--accent); margin-bottom: 20px; }

/* ---------- Libros ---------- */
.ch-tienda { padding: clamp(36px, 5vw, 80px) 0 var(--sec); }
.ch-libros { list-style: none; margin: 0 0 var(--sec); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: clamp(22px, 3vw, 44px) clamp(16px, 2.4vw, 32px); }
.ch-libro a { display: grid; gap: 6px; color: var(--ink); text-decoration: none; }
.ch-libro-img { display: block; padding: clamp(14px, 2vw, 24px); background: var(--bg-2); border-radius: var(--r); margin-bottom: 8px; transition: background-color .4s var(--ease); }
.ch-libro-img img { border-radius: 4px; box-shadow: 0 18px 30px -18px rgba(58, 18, 32, .6); transition: transform .55s var(--ease-out); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.ch-libro a:hover .ch-libro-img { background: var(--bg-3); }
.ch-libro a:hover .ch-libro-img img { transform: translateY(-6px) rotate(-1.2deg); }
.ch-libro-ed { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ch-libro-t { font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.ch-ficha { padding: clamp(36px, 5vw, 80px) 0 var(--sec); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.ch-ficha-img { background: var(--bg-2); border-radius: var(--r); padding: clamp(24px, 4vw, 56px); position: sticky; top: calc(var(--cab) + 24px); }
.ch-ficha-img img { border-radius: 6px; box-shadow: 0 30px 50px -28px rgba(58, 18, 32, .7); }
.ch-ficha-ed { font-weight: 600; color: var(--accent); }
.ch-ficha-x { font-size: 1.12rem; }
.ch-ficha-b { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 .6em; }
.ch-ficha-desc { grid-column: 2; margin: 0; }
@media (max-width: 860px) { .ch-ficha { grid-template-columns: 1fr; } .ch-ficha-img { position: static; max-width: 460px; } .ch-ficha-desc { grid-column: 1; } }

/* ---------- Pago y cuenta (WooCommerce, sin sus estilos) ---------- */
.ch-tramite-pag { padding: clamp(32px, 4vw, 64px) 0 var(--sec); }
.ch-tramite-c .woocommerce-notices-wrapper:empty { display: none; }
.ch-tramite-c .woocommerce-error, .ch-tramite-c .woocommerce-message, .ch-tramite-c .woocommerce-info { list-style: none; margin: 0 0 20px; padding: 14px 18px; border-radius: 14px; background: var(--bg-2); }
.ch-tramite-c .woocommerce-error { background: #f7dcd6; }
.ch-tramite-c form .form-row { margin: 0 0 14px; display: grid; gap: 6px; }
.ch-tramite-c label { font-weight: 500; font-size: .95rem; }
.ch-tramite-c input.input-text, .ch-tramite-c select, .ch-tramite-c textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.ch-tramite-c .select2-container .select2-selection--single { height: 50px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.ch-tramite-c .select2-container .select2-selection--single .select2-selection__rendered { line-height: 48px; padding-left: 14px; }
.ch-tramite-c .select2-container .select2-selection--single .select2-selection__arrow { height: 48px; }
.ch-tramite-c button.button, .ch-tramite-c .button, .ch-tramite-c #place_order { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 1.8em; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; }
.ch-tramite-c #place_order { width: 100%; font-size: 1.05rem; }
.ch-tramite-c .button:hover { background: var(--accent-2); color: #fff; }
.ch-tramite-c form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.ch-tramite-c form.checkout > * { grid-column: 1; }
.ch-tramite-c #order_review_heading, .ch-tramite-c #order_review { grid-column: 2; }
.ch-tramite-c #order_review_heading { grid-row: 1; font-size: var(--t3); }
.ch-tramite-c #order_review { grid-row: 2 / span 4; background: var(--paper); border-radius: var(--r); padding: clamp(20px, 3vw, 36px); box-shadow: 0 1px 0 var(--line); }
.ch-tramite-c .col2-set .col-2:empty, .ch-tramite-c .woocommerce-additional-fields:empty { display: none; }
.ch-tramite-c table { width: 100%; border-collapse: collapse; }
.ch-tramite-c th, .ch-tramite-c td { padding: 12px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ch-tramite-c .wc_payment_methods { list-style: none; padding: 0; margin: 18px 0; }
.ch-tramite-c .payment_box { padding: 10px 14px; background: var(--bg-2); border-radius: 10px; font-size: .92rem; }
.ch-tramite-c .woocommerce-privacy-policy-text { font-size: .85rem; color: var(--muted); }
.ch-tramite-c .ch-digital label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.ch-tramite-c .ch-digital input { margin-top: .3em; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.ch-tramite-c .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.ch-tramite-c .woocommerce-MyAccount-navigation a { display: inline-flex; min-height: 42px; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--bg-2); color: var(--ink); text-decoration: none; }
.ch-tramite-c .woocommerce-MyAccount-navigation .is-active a { background: var(--accent); color: #fff; }
.ch-tramite-c .woocommerce-form-login { max-width: 460px; }
.ch-tramite-c .u-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; }
@media (max-width: 860px) { .ch-tramite-c form.checkout { grid-template-columns: 1fr; } .ch-tramite-c #order_review_heading, .ch-tramite-c #order_review { grid-column: 1; grid-row: auto; } }

/* ---------- Pie ---------- */
.ch-pie { margin-top: 0; background: var(--deep); color: var(--on-deep); }
.ch-fin + .ch-pie, main + .ch-pie { margin-top: 0; }
.ch-pie a { color: var(--on-deep); text-decoration: none; }
.ch-pie a:hover { color: #fff; text-decoration: underline; }
.ch-pie-in { width: min(100% - 2 * var(--m), var(--max)); margin: 0 auto; padding: clamp(56px, 7vw, 110px) 0 clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, .7fr); gap: clamp(32px, 5vw, 80px); }
.ch-pie-loto { width: 64px; color: var(--rose); margin-bottom: 18px; }
.ch-pie-cita { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1.15; color: #fff; max-width: 20ch; margin-bottom: .5em; }
.ch-pie-firma { color: var(--rose); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
.ch-pie-h { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); margin-bottom: 1em; }
.ch-pie-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ch-pie-wa { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.ch-pie-wa svg { width: 22px; height: 22px; }
.ch-pie-redes { display: flex; gap: 6px; }
.ch-pie-redes a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(248, 233, 223, .25); }
.ch-pie-redes svg { width: 20px; height: 20px; }
.ch-pie-leg { width: min(100% - 2 * var(--m), var(--max)); margin: 0 auto; padding: 20px 0 calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(248, 233, 223, .16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; font-size: .84rem; color: rgba(248, 233, 223, .7); }
.ch-pie-leg p { margin: 0; }
.ch-pie-leg ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (max-width: 820px) { .ch-pie-in { grid-template-columns: 1fr 1fr; } .ch-pie-frase { grid-column: 1 / -1; } }

/* ---------- Aviso de cookies ---------- */
.ch-ck { position: fixed; z-index: 95; left: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); background: var(--paper); padding: 22px 22px 18px; border-radius: var(--r); box-shadow: 0 24px 60px -24px rgba(58, 18, 32, .55); opacity: 0; transform: translateY(14px); transition: opacity .3s var(--ease), transform .35s var(--ease-out); } /* taste-skill-ignore: capa flotante */
.ch-ck.is-on { opacity: 1; transform: none; }
.ch-ck-t { margin: 0 0 6px; font-family: var(--serif); font-size: 1.3rem; }
.ch-ck-x { margin: 0 0 14px; font-size: .88rem; line-height: 1.5; }
.ch-ck-opts { display: grid; gap: 10px; margin-bottom: 14px; }
.ch-ck-opts[hidden] { display: none; }
.ch-ck-o { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .88rem; align-items: start; }
.ch-ck-o input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 2px; }
.ch-ck-b { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ch-ck-b .ch-btn { flex: 1 1 0; min-width: 110px; }
.ch-ck-b .ch-btn[data-ck="none"] { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.ch-ck-b .ch-btn[data-ck="none"]:hover { background: var(--accent); color: #fff; }
.ch-ck-cfg { border: 0; background: none; padding: 10px 4px; min-height: 44px; color: var(--muted); text-decoration: underline; cursor: pointer; }

/* ---------- Entrada de las partes ---------- */
.ch-aparece { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.ch-aparece.is-visto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.ch-aparece { opacity: 1; transform: none; }
	.ch-camino.is-espera li { opacity: 1; transform: none; }
}
.ch-ej-precio { font-family: var(--sans); font-size: .72rem; font-weight: 600; color: #8a5a00; background: #fde3a7; padding: 2px 8px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.ch-video-hueco { aspect-ratio: 16 / 9; display: grid; place-items: center; align-content: center; gap: 10px; border-radius: 18px; background: linear-gradient(135deg, var(--bg-3), var(--bg-2)); color: var(--accent); text-align: center; margin: 0 0 1.6em; }
.ch-video-hueco svg { width: 64px; height: 64px; }
.ch-video-hueco p { margin: 0; font-weight: 600; }
.ch-video-hueco small { color: var(--muted); }
.ch .fpa-cab-img, .ch .fpa-tarjeta-img { position: relative; }
@media (min-width: 861px) { .ch-tramite-c form.checkout { grid-template-rows: auto 1fr; } .ch-tramite-c form.checkout > #customer_details { grid-row: 1 / span 2; } .ch-tramite-c #order_review { grid-row: 2; } }
.ch-acepto { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); margin: 0 0 1em; }
.ch-acepto input { width: 18px; height: 18px; margin-top: .2em; flex: none; accent-color: var(--accent); }
