/* ARQA – Ficha de curso */
.af {
	--af-sand: #dfdacf;
	--af-sand-soft: #ebe8e0;
	--af-accent: #b59a7d;
	--af-accent-dk: #8c7357;
	--af-ink: #474747;
	--af-ink-dk: #2f2d2b;
	--af-white: #fff;
	--af-radius: 14px;
	--af-head: "Jedira", "Cormorant Garamond", Georgia, serif;
	--af-sub: "Humanist", "Gill Sans", "Segoe UI", sans-serif;
	--af-body: "Humanist", "Gill Sans", "Segoe UI", sans-serif;
	color: var(--af-ink);
	font-family: var(--af-body);
	font-size: 17px;
	line-height: 1.65;
	overflow-x: clip;
}
.af *, .af *::before, .af *::after { box-sizing: border-box; }
.af img { max-width: 100%; height: auto; display: block; }
.af :where(ul) { list-style: none; margin: 0; padding: 0; }

/* Cinta animada */
.af-band {
	background: var(--af-ink);
	color: var(--af-sand);
	overflow: hidden;
	white-space: nowrap;
	font-size: 13px;
	letter-spacing: .14em;
	padding: 11px 0;
}
.af-band__track { display: inline-flex; animation: af-marquee 38s linear infinite; }
.af-band__track span { padding: 0 2.2em; }
.af-band__track span::after { content: "✦"; margin-left: 4.4em; color: var(--af-accent); }
@keyframes af-marquee { to { transform: translateX(-50%); } }

.af-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px 96px; }

/* Cabecera */
.af-hero { text-align: center; padding: 56px 0 36px; }
.af-eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--af-accent-dk); margin: 0 0 14px; }
.af .af-title { font-family: var(--af-head); font-weight: 400; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.08; color: var(--af-ink); margin: 0 0 22px; }
.af-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.af-chips li { border: 1px solid var(--af-accent); border-radius: 999px; padding: 5px 16px; font-size: 16px; color: var(--af-accent-dk); background: rgba(255,255,255,.5); }

/* Layout */
.af-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; }
.af-aside { position: sticky; top: 110px; }

.af-cover { margin: 0 0 28px; border-radius: var(--af-radius); overflow: hidden; background: var(--af-sand); }
.af-cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
/* Video de presentación */
.af .af-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #1d1d1d; }
.af .af-video iframe, .af .af-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.af .af-video__play { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: var(--af-sand) !important; cursor: pointer; display: block; }
.af .af-video__play img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transition: transform .6s ease; }
.af .af-video__play:hover img { transform: scale(1.03); }
.af .af-video__icon { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(223, 218, 207, .94); color: #474747; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 28px rgba(0, 0, 0, .22); transition: transform .25s ease, background .25s ease; }
.af .af-video__icon svg { margin-left: 4px; }
.af .af-video__play:hover .af-video__icon, .af .af-video__play:focus-visible .af-video__icon { transform: scale(1.08); background: #B59A7D; }
.af .af-video__play:focus-visible { outline: 3px solid var(--af-accent); outline-offset: -3px; }
.af .af-video--embed iframe { position: absolute; }

/* Cifras */
.af-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin: 0 0 56px; }
.af-stats li { background: var(--af-sand-soft); border-radius: var(--af-radius); padding: 20px 14px; text-align: center; min-width: 0; overflow: hidden; }
.af-stats strong { display: block; font-family: var(--af-head); font-weight: 400; font-size: 30px; line-height: 1.15; color: var(--af-ink); }
/* Valores con texto (nivel, acceso): más chicos y nunca se salen del recuadro */
.af-stats strong.af-stat-text { font-size: clamp(19px, 2.1vw, 24px); overflow-wrap: anywhere; hyphens: auto; }
.af-stats li > span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--af-accent-dk); }

/* Secciones */
.af-sec { margin: 0 0 56px; }
.af .af-h2 { font-family: var(--af-head); font-weight: 400; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; color: var(--af-ink); margin: 0 0 22px; }
.af .af-h3 { font-family: var(--af-sub); font-weight: 500; font-size: 22px; color: var(--af-ink); margin: 0 0 14px; }
.af .af-prose h1, .af .af-prose h2, .af .af-prose h3, .af .af-prose h4 { font-family: var(--af-sub); font-weight: 500; color: var(--af-ink); line-height: 1.25; margin: 1.2em 0 .5em; }
.af .af-prose h3 { font-size: 24px; text-align: left !important; text-decoration: none; }
.af .af-prose [style*="underline"] { text-decoration: none !important; }
.af .af-prose h4 { font-size: 21px; font-style: italic; text-align: left !important; }
.af .af-prose p { margin: 0 0 1em; }
.af-prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.af-prose li { margin-bottom: .35em; }
.af .af-prose strong { color: var(--af-ink-dk); }

/* Tarjetas "Qué vas a aprender" */
.af-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.af-cards li { display: flex; gap: 14px; background: var(--af-white); border: 1px solid var(--af-sand); border-radius: var(--af-radius); padding: 18px 20px; transition: transform .25s ease, box-shadow .25s ease; }
.af-cards li:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(71,71,71,.1); }
.af-cards svg { flex: none; color: var(--af-accent); margin-top: 3px; }

/* Listas */
.af-list li { display: flex; gap: 12px; padding: 7px 0; }
.af-list svg { flex: none; color: var(--af-accent); margin-top: 6px; }
.af-list--box { background: var(--af-sand-soft); border-radius: var(--af-radius); padding: 18px 26px; }
.af-two { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }

/* Acordeón */
.af-acc details { background: var(--af-white); border: 1px solid var(--af-sand); border-radius: 12px; margin-bottom: 10px; }
.af-acc summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative; font-family: var(--af-sub); font-size: 19px; }
.af-acc summary::-webkit-details-marker { display: none; }
.af-acc summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--af-accent); transition: transform .2s; }
.af-acc details[open] summary::after { content: "–"; }
.af-acc details > p { margin: 0; padding: 0 20px 18px; }
.af-acc details ul { padding: 0 20px 14px; }
.af-acc details li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--af-sand-soft); color: var(--af-ink); }
.af-acc details li svg { color: var(--af-accent); }

/* Reseñas */
.af-avg { color: var(--af-accent-dk); margin: -10px 0 18px; }
.af-reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.af-reviews blockquote { margin: 0; background: var(--af-white); border: 1px solid var(--af-sand); border-radius: var(--af-radius); padding: 22px; }
.af-reviews p { margin: 8px 0 12px; }
.af-reviews cite { font-style: normal; font-size: 14px; color: var(--af-accent-dk); letter-spacing: .06em; }
.af-stars { color: var(--af-accent); display: flex; gap: 2px; }

/* Sobre mí */
.af-about { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: center; background: var(--af-sand-soft); border-radius: 20px; padding: 28px; }
.af-about img { border-radius: var(--af-radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.af-about .af-h2 { margin-bottom: 14px; }
.af-sign { font-family: var(--af-sub); color: var(--af-accent-dk); margin: 0 0 18px; }

/* Botones */
.af .af-btn {
	display: inline-flex; justify-content: center; align-items: center; width: 100%;
	background: var(--af-ink) !important; color: #fff !important; border: 1px solid var(--af-ink) !important;
	border-radius: 8px; padding: 15px 28px; font: inherit; font-size: 17px; letter-spacing: .04em;
	text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s;
}
.af .af-btn, .af .af-sticky .af-btn { font-weight: 700; }
.af .af-btn:hover, .af .af-btn:focus-visible { background: var(--af-accent) !important; border-color: var(--af-accent) !important; color: var(--af-ink-dk) !important; transform: translateY(-1px); }
.af .af-btn--ghost { width: auto; background: transparent !important; color: var(--af-ink) !important; border-color: var(--af-ink) !important; padding: 11px 24px; }
.af .af-btn--ghost:hover { background: var(--af-ink) !important; color: #fff !important; border-color: var(--af-ink) !important; }

/* Caja de compra */
.af-buy { background: var(--af-white); border: 1px solid var(--af-accent); border-radius: 18px; padding: 26px; box-shadow: 0 18px 44px rgba(71,71,71,.12); }
.af-buy__eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--af-accent-dk); margin: 0 0 12px; }
.af-options { display: grid; gap: 10px; margin-bottom: 20px; }
.af-opt { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; border: 1.5px solid var(--af-sand); border-radius: 12px; padding: 14px 16px 14px 46px; cursor: pointer; position: relative; transition: border-color .2s, background .2s; }
.af-opt input { position: absolute; opacity: 0; }
.af-opt::before { content: ""; position: absolute; left: 16px; top: 18px; width: 18px; height: 18px; border: 1.5px solid var(--af-accent); border-radius: 50%; background: #fff; }
.af-opt.is-on { border-color: var(--af-accent); background: var(--af-sand-soft); }
.af-opt.is-on::before { background: radial-gradient(circle, var(--af-ink) 0 4px, #fff 5px); }
.af-opt:focus-within { outline: 2px solid var(--af-accent); outline-offset: 2px; }
.af-opt__name { grid-column: 1; font-family: var(--af-sub); font-size: 18px; line-height: 1.3; }
.af-opt__price { font-size: 16px; color: var(--af-accent-dk); white-space: nowrap; grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.af-opt__desc { grid-column: 1; font-size: 14px; color: var(--af-ink); opacity: .8; }

/* Guía digital a elegir: lista compacta (2 a la vista; si hay más, se recorren con las flechas) */
.af-guias { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.af-guias[hidden] { display: none; }
.af-guias legend { padding: 0; }
.af-guias__wrap { display: flex; gap: 8px; align-items: stretch; }
.af-guias__list { flex: 1; min-width: 0; display: grid; gap: 6px; align-content: start; }
.af-guias__wrap.has-nav .af-guias__list { max-height: 124px; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.af-guias__wrap.has-nav .af-guias__list::-webkit-scrollbar { display: none; }
.af-guia { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; box-sizing: border-box; border: 1.5px solid var(--af-sand); border-radius: 10px; padding: 8px 12px 8px 38px; cursor: pointer; background: #fff; transition: border-color .2s, background .2s; }
.af-guia input { position: absolute; opacity: 0; }
.af-guia::before { content: ""; position: absolute; left: 12px; top: 50%; width: 15px; height: 15px; margin-top: -8.5px; border: 1.5px solid var(--af-accent); border-radius: 50%; background: #fff; }
.af-guia.is-on { border-color: var(--af-accent); background: var(--af-sand-soft); }
.af-guia.is-on::before { background: radial-gradient(circle, var(--af-ink) 0 3.5px, #fff 4.5px); }
.af-guia__name { font-family: var(--af-sub); font-size: 16px; line-height: 1.25; }
.af-guia:focus-within { outline: 2px solid var(--af-accent); outline-offset: 2px; }
.af-guias__nav { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.af-guias__nav button { width: 30px; height: 30px; padding: 0; border: 1px solid var(--af-accent); border-radius: 50%; background: #fff; color: var(--af-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.af-guias__nav button:hover:not(:disabled) { background: #F0F0AE; }
.af-guias__nav button:disabled { opacity: .35; cursor: default; }
.af-guias__err { margin: 8px 0 0; font-size: 15px; color: #6B1D2F; }
.af-guias__err[hidden] { display: none; }

.af-price { margin: 6px 0 14px; }
.af-price__now { display: block; font-family: var(--af-head); font-size: 44px; line-height: 1.1; color: var(--af-ink); }
.af-price__tr { display: block; margin-top: 4px; color: var(--af-ink); }
.af-price__tr b { font-weight: 600; }
.af-price__tr em { font-style: normal; font-weight: 700; font-size: 13px; letter-spacing: .06em; background: #F0F0AE; color: var(--af-ink-dk); border-radius: 999px; padding: 3px 11px; margin-left: 6px; }
.af-buy__frase { font-family: var(--af-sub); font-size: 18px; line-height: 1.4; color: var(--af-accent-dk); margin: 0 0 18px; }
.af .af-added { margin: 12px 0 0; font-size: 16.5px; text-align: center; color: var(--af-ink); }
.af .af-added[hidden] { display: none; }
.af .af-added a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.af-trust { margin-top: 18px; font-size: 16.5px; }
.af-trust li { display: flex; gap: 10px; align-items: center; padding: 4px 0; }
.af-trust svg { flex: none; color: var(--af-accent); width: 18px; height: 18px; }

/* Barra fija en celular */
.af-sticky { display: none; }
#af-comprar { scroll-margin-top: 96px; }

/* Movimiento: aparición al hacer scroll */
.js .af-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .af-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 980px) {
	.af-layout { grid-template-columns: 1fr; gap: 0; }
	/* En pantallas chicas: primero el video, después la caja de compra y recién ahí el resto */
	.af-main { display: contents; }
	.af-cover--video { order: -2; margin-bottom: 24px; }
	.af-aside { position: static; order: -1; margin-bottom: 36px; }
	.af-cover:not(.af-cover--video) { display: none; }
	.af-stats { margin-bottom: 40px; }
}
@media (max-width: 640px) {
	.af { font-size: 16px; }
	.af-wrap { padding: 0 18px 120px; }
	.af-hero { padding: 36px 0 24px; }
	.af-cards, .af-reviews, .af-two { grid-template-columns: 1fr; }
	.af-about { grid-template-columns: 1fr; padding: 20px; }
	.af-about img { aspect-ratio: 16 / 11; }
	.af-buy { padding: 20px; }
	.af-price__now { font-size: 38px; }
	.af-sticky {
		display: block;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
		background: #F0F0AE; border-top: 1px solid var(--af-accent);
		box-shadow: 0 -8px 24px rgba(71,71,71,.14);
		transform: translateY(110%); transition: transform .3s ease;
	}
	.af-sticky.is-on { transform: none; }
	.af-sticky__frase { margin: 0 0 8px; text-align: center; font-family: var(--af-sub); font-size: 16px; line-height: 1.25; color: var(--af-ink-dk); }
	.af-sticky__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
	.af-sticky__price { font-family: var(--af-head); font-size: 28px; line-height: 1; color: var(--af-ink-dk); }
	.af .af-sticky .af-btn { width: auto; flex: 1 1 auto; max-width: 70%; padding: 13px 18px; line-height: 1.15; white-space: normal; background: #6B1D2F !important; border-color: #6B1D2F !important; color: #fff !important; }
	.af .af-sticky .af-btn:hover, .af .af-sticky .af-btn:focus-visible { background: #4e1522 !important; border-color: #4e1522 !important; color: #fff !important; }
}

@media (prefers-reduced-motion: reduce) {
	.af-band__track { animation: none; }
	.js .af-reveal { opacity: 1; transform: none; transition: none; }
	.af-cards li, .af-btn { transition: none; }
}

/* Problemas */
.af-problems__intro { margin: 0 0 22px; font-size: 18px; line-height: 1.6; color: var(--af-ink); }
.af .af-problems__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.af .af-problems__list li { display: flex; gap: 14px; align-items: flex-start; background: var(--af-sand-soft); border-radius: var(--af-radius); padding: 18px 20px; }
.af-problems__mark { flex: 0 0 auto; color: var(--af-accent-dk); margin-top: 2px; display: inline-flex; }
.af .af-problems__list strong { display: block; font-family: var(--af-sub); font-weight: 500; font-size: 19px; line-height: 1.3; color: var(--af-ink); }
.af .af-problems__list p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: var(--af-ink); opacity: .85; }
@media (max-width: 640px) { .af .af-problems__list { grid-template-columns: 1fr; } }

/* Etiqueta PROMO: bordó con letras claras (el "% OFF" por transferencia queda en amarillo) */
.af-opt.is-promo { margin-top: 4px; }
.af-opt__promo { position: absolute; top: -11px; right: 16px; background: #6B1D2F; color: #fff; border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; line-height: 1.4; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }

/* Precios en oferta: normal tachado + oferta más grande y en negrita, y cuánto se ahorra */
.af .af-price__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.af .af-p__old { font-size: .5em; font-weight: 400; opacity: .55; text-decoration: line-through; margin-right: 4px; }
.af .af-p__new { text-decoration: none; background: none; font-weight: 700; }
.af .af-opt__price .af-p__new { font-size: 1.18em; }
.af .af-opt__price .af-p__old { font-size: .85em; }
.af .af-sticky__price .af-p__old { font-size: .55em; }
.af .af-price__save { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #F4E6DB; color: #6B1D2F; font-size: 13px; font-weight: 700; letter-spacing: .03em; line-height: 1.3; white-space: nowrap; }
.af .af-price__save[hidden] { display: none; }
.af .af-price__tr b { font-size: 24px; font-weight: 700; }
.af .af-opt.has-tag { margin-top: 4px; }
.af .af-opt__tag { position: absolute; top: -11px; left: 16px; background: #F0F0AE; color: #474747; border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
