/* Aula · la clase sobre cacao con cristal; la lámina cambia de fondo (marfil, cacao o salvia). */
.au { min-height: 100vh; padding: 0; }
.au-in { width: min(1220px, calc(100% - 32px)); margin: 0 auto; padding: 100px 0 70px; }
body.au-lock { overflow: hidden; }

/* Barra superior de cristal */
.au-bar { display: flex; align-items: center; gap: 18px; min-height: 66px; padding: 0 12px 0 10px; border-radius: var(--y-r-pill); background: rgba(255, 255, 255, 0.12); box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22); backdrop-filter: blur(26px) saturate(140%); -webkit-backdrop-filter: blur(26px) saturate(140%); }
.au-back { display: inline-flex; align-items: center; gap: 8px; flex: none; max-width: 220px; padding: 9px 14px 9px 10px; border-radius: var(--y-r-pill); font-size: 13px; font-weight: 600; color: rgba(247, 241, 234, 0.86); transition: background var(--y-dur-fast) ease; }
.au-back span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-chev { font-size: 20px; line-height: 1; margin-top: -2px; }
.au-ttl { flex: 1; min-width: 0; display: grid; gap: 3px; text-align: center; }
.au-ttl small { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(247, 241, 234, 0.56); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-ttl b { font: 500 23px/1.05 var(--y-font-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-save { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 12px; color: rgba(247, 241, 234, 0.66); }
.au-save > i { width: 7px; height: 7px; border-radius: 50%; background: #9ea993; box-shadow: 0 0 0 4px rgba(158, 169, 147, 0.18); transition: background var(--y-dur-fast) ease; }
.au-save.is-busy > i { background: var(--y-champagne); animation: auPulse 1s ease-in-out infinite; }
.au-save.is-error > i { background: #d98b7c; box-shadow: 0 0 0 4px rgba(217, 139, 124, 0.2); }
.au-save .model-text-link { color: var(--y-champagne-soft); }
@keyframes auPulse { 50% { opacity: 0.35; } }
.au-mine { flex: none; padding: 9px 14px; border-radius: var(--y-r-pill); font-size: 13px; font-weight: 600; color: rgba(247, 241, 234, 0.86); background: rgba(255, 255, 255, 0.08); transition: background var(--y-dur-fast) ease; }
.au-menu { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; flex: none; position: relative; }
.au-menu span, .au-menu::before, .au-menu::after { content: ""; position: absolute; left: 12px; right: 12px; height: 1.5px; border-radius: 2px; background: currentColor; }
.au-menu::before { top: 15px; } .au-menu span { top: 21px; } .au-menu::after { top: 27px; left: 18px; }
@media (hover: hover) and (pointer: fine) { .au-back:hover, .au-mine:hover { background: rgba(255, 255, 255, 0.14); } }
.au-guest { margin-top: 16px; }

/* Rejilla: índice de cristal y escenario */
.au-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 22px; margin-top: 22px; align-items: start; }
.au .courses-sidebar-toggle, .au-index-close { display: none; }
.model-lesson { min-width: 0; }
.model-bonus-intro { font-size: 13px; line-height: 1.7; color: rgba(247, 241, 234, 0.66); max-width: 650px; margin: 0 0 16px; }
.au-stagewrap { display: grid; gap: 18px; }
.au-stagewrap[hidden] { display: none; }
.model-stage { position: relative; scroll-margin-top: 20px; border-radius: var(--y-r-lg); overflow: hidden; color: var(--y-cacao); background: linear-gradient(160deg, #f7f1ea, #efe5da); box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.model-slide[hidden] { display: none !important; }
.model-slide { min-height: 600px; display: grid; align-items: stretch; background: linear-gradient(160deg, #f7f1ea, #efe5da); }
.model-slide:not([hidden]) .model-copy > *, .model-slide:not([hidden]) .model-photo { animation: ySlideIn 640ms var(--y-ease) both; }
.model-slide:not([hidden]) .model-copy > :nth-child(2) { animation-delay: 70ms; }
.model-slide:not([hidden]) .model-copy > :nth-child(3) { animation-delay: 140ms; }
.model-slide:not([hidden]) .model-copy > :nth-child(4) { animation-delay: 200ms; }
.model-slide:not([hidden]) .model-copy > :nth-child(n + 5) { animation-delay: 260ms; }
.model-slide.has-image { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.model-photo { margin: 0; position: relative; min-width: 0; overflow: hidden; }
.model-photo img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.model-copy { padding: 56px 58px 56px 20px; align-self: center; min-width: 0; overflow-wrap: anywhere; }
/* Desktop: the slide fits the screen with its controls, and long content (practices, quizzes, fichas) scrolls inside it instead of stretching the page */
@media (min-width: 761px) {
  .model-slide { height: clamp(600px, calc(100dvh - 280px), 860px); min-height: 0; }
  .model-copy { max-height: 100%; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(33, 26, 23, 0.22) transparent; }
  .model-copy:focus-visible { outline: 2px solid var(--y-champagne); outline-offset: -4px; }
}
.model-copy .courses-kicker { font-size: 11px; color: var(--y-clay); margin-bottom: 22px; letter-spacing: 0.14em; }
.model-copy h2 { font-size: clamp(36px, 3.6vw, 56px); line-height: 0.98; margin: 0 0 22px; text-wrap: balance; outline-offset: 8px; }
.model-copy h2:focus:not(:focus-visible) { outline: none; }
.model-intro { font-size: 16px; line-height: 1.75; color: rgba(33, 26, 23, 0.7); margin: 0 0 24px; max-width: 470px; }
.model-copy p { line-height: 1.75; }
.model-cover-list { list-style: none; padding: 0; margin: 28px 0; font-size: 14px; line-height: 2.2; color: rgba(33, 26, 23, 0.72); }
.model-cover-list li::before { content: "—"; margin-right: 14px; color: var(--y-champagne); }
.model-discover .model-row { border-top: 1px solid rgba(33, 26, 23, 0.12); padding: 14px 0; display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.model-discover .model-row > div { min-width: 0; }
.model-discover .model-row .model-sum { display: block; font-size: 14px; font-weight: 600; }
.model-discover .model-row p { margin: 4px 0 0; }
.model-subhead { grid-column: 1 / -1; font: 600 11px var(--y-font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--y-clay); margin: 22px 0 8px; }
.model-example-list > .model-subhead { margin: 14px 0 0; padding: 0; background: none; box-shadow: none; }
.model-example-list p { white-space: pre-line; }
.model-after { font-size: 14px; line-height: 1.75; color: rgba(33, 26, 23, 0.72); margin: 18px 0 0; max-width: 560px; }
.model-tone-cacao .model-after, .model-tone-cacao .model-subhead { color: #d3b690; }
/* Slides without a picture use the whole width instead of leaving half of it empty */
@media (min-width: 761px) {
  .model-slide:not(.has-image) .model-copy { width: 100%; max-width: 980px; justify-self: center; box-sizing: border-box; }
  .model-slide.has-video .model-copy { max-width: 1040px; }
  .model-slide:not(.has-image) .model-intro { max-width: 680px; }
  .model-slide:not(.has-image) .model-example-list { max-width: none; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .model-slide:not(.has-image) .model-discover { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
}
/* Animation: wide video under the slide title */
.model-video { margin: 26px 0 6px; display: grid; gap: 12px; }
.model-video video { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 22px; background: #f3ebe1; box-shadow: 0 18px 40px rgba(60, 39, 19, 0.12); display: block; }
.model-video figcaption { font-size: 11px; letter-spacing: 0.08em; color: #8a7358; }
.model-tone-cacao .model-video figcaption { color: #cdb28e; }
.model-discover .model-num { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--y-font-sans); background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1px rgba(33, 26, 23, 0.12); color: var(--y-clay); }
.model-discover p { font-size: 14px; line-height: 1.6; color: rgba(33, 26, 23, 0.7); }
.model-detail { margin-top: 22px; border-top: 1px solid rgba(33, 26, 23, 0.12); padding-top: 14px; font-size: 13px; color: rgba(33, 26, 23, 0.72); max-width: 470px; }
.model-detail summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--y-cacao); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.model-detail summary::-webkit-details-marker { display: none; }
.model-detail summary::after { content: "+"; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(33, 26, 23, 0.06); transition: transform 320ms var(--y-ease); }
.model-detail[open] summary::after { transform: rotate(45deg); }
.model-detail p { font-size: 13px; margin-bottom: 0; white-space: pre-line; }
.model-example-list { display: grid; gap: 10px; max-width: 470px; }
.model-example-list > div { padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.model-example-list span { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--y-clay); }
.model-example-list p { font-size: 15px; margin: 4px 0 0; }
.model-ingredient-list { list-style: none; padding: 0; margin: 22px 0; font-size: 14px; }
.model-ingredient-list li { padding: 9px 0; border-bottom: 1px solid rgba(33, 26, 23, 0.1); }
.model-text-link { font: 600 13px/1.7 var(--y-font-sans); color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(184, 150, 114, 0.7); background: none; border: 0; padding: 0; cursor: pointer; }
.model-practice-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; font-size: 14px; line-height: 1.6; max-width: 480px; }
.model-practice-steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.model-practice-steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--y-font-sans); background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1px rgba(33, 26, 23, 0.12); color: var(--y-clay); }
.model-practice .courses-textarea { max-width: 480px; min-height: 96px; font-size: 14px; background: rgba(255, 255, 255, 0.55); }
.model-fine { font-size: 12px; color: rgba(33, 26, 23, 0.6); line-height: 1.6; }
.model-status { font-size: 13px; line-height: 1.6; margin: 10px 0 0; }
.model-quiz .model-copy { width: 100%; max-width: 760px; justify-self: center; padding: 50px 40px; }
.model-quiz .courses-question { margin: 22px 0; }
.model-quiz legend { font-size: 16px; font-weight: 600; line-height: 1.5; margin-bottom: 12px; }
.model-takeaways { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; font-size: 14px; line-height: 1.6; max-width: 470px; }
.model-takeaways li { display: flex; gap: 12px; align-items: baseline; }
.model-takeaways li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--y-champagne); flex: none; transform: translateY(-2px); }
.model-download { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; max-width: 470px; padding: 12px 16px 12px 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 1px 0 #fff; color: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; transition: transform var(--y-dur-fast) ease, box-shadow var(--y-dur-fast) ease; }
.model-download small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--y-clay); margin-bottom: 4px; }
.model-download b { font-size: 20px; }
.model-download .ln-doc { background: var(--y-cacao); color: var(--y-ink); }
.model-download + .model-download { margin-top: 10px; }
@media (hover: hover) and (pointer: fine) { .model-download:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(33, 26, 23, 0.12), inset 0 1px 0 #fff; } }
.model-completion { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(33, 26, 23, 0.12); font-size: 14px; line-height: 1.6; max-width: 470px; }
.model-completion .courses-button { margin-top: 14px; min-height: 52px; padding: 0 28px; }
#model-remaining { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 6px; }

/* Controles de paso: anterior, puntos y siguiente */
.au-ctl { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.au-ctl .btn { min-width: 128px; gap: 8px; }
.au-ctl .btn:disabled { opacity: 0.35; cursor: default; transform: none; }
.au-dots { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 8px 18px; border-radius: var(--y-r-pill); background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.model-rail { display: flex; align-items: center; gap: 7px; }
.model-rail button { position: relative; width: 14px; height: 6px; padding: 0; border: 0; border-radius: var(--y-r-pill); background: rgba(247, 241, 234, 0.28); cursor: pointer; transition: width 320ms var(--y-ease), background 200ms ease; }
.model-rail button::after { content: ""; position: absolute; inset: -19px -4px; }
.model-rail button.visited { background: rgba(224, 201, 168, 0.55); }
.model-rail button[aria-current="step"] { width: 30px; background: var(--y-champagne-soft); }
.au-count { font-size: 12px; font-weight: 600; color: rgba(247, 241, 234, 0.72); white-space: nowrap; }
.model-class-navigation { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--y-line-dark); font-size: 13px; color: rgba(247, 241, 234, 0.8); }
.model-next-lesson { max-width: 68%; text-align: right; line-height: 1.5; }
.model-next-lesson small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--y-champagne-soft); margin-bottom: 6px; }
.model-next-lesson span { font: 500 20px/1.2 var(--y-font-serif); }
@media (hover: hover) and (pointer: fine) { .model-next-lesson:hover span { color: var(--y-champagne-soft); } }
.model-error { padding: 14px 18px; margin: 16px 0; border-radius: 18px; background: rgba(184, 154, 146, 0.18); color: #f3d9d2; font-size: 14px; line-height: 1.6; }
.au #courses-message:not(:empty) { margin-top: 16px; }

/* Clase completada */
.au-done { border-radius: var(--y-r-lg); overflow: hidden; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2); outline: none; animation: ySlideIn 520ms var(--y-ease) both; }
.au-done-in { display: grid; grid-template-columns: 0.85fr 1.15fr; min-height: 600px; color: var(--y-ink); background: radial-gradient(circle at 82% 8%, rgba(184, 150, 114, 0.22), transparent 42%), radial-gradient(circle at 8% 92%, rgba(120, 128, 113, 0.16), transparent 32%), #1d1612; }
.au-done-art { position: relative; display: grid; place-items: center; padding: 44px; }
.au-done-art::before { content: ""; position: absolute; width: 330px; height: 330px; border-radius: 42% 58% 54% 46% / 48% 42% 58% 52%; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24); }
.au-done-art img { position: relative; width: min(360px, 100%); height: auto; filter: drop-shadow(0 34px 34px rgba(0, 0, 0, 0.35)); animation: floatingCard 6.5s ease-in-out infinite; }
.au-done-copy { padding: 56px 58px 56px 10px; display: grid; align-content: center; justify-items: start; gap: 16px; }
.au-done-copy .courses-kicker { display: inline-flex; gap: 8px; align-items: center; margin: 0; color: #d3b690; }
.au-done-copy h2 { font-size: clamp(46px, 5vw, 64px); line-height: 0.96; margin: 0; }
.au-done-copy h2 em { color: #d3b690; }
.au-done-copy p { margin: 0; font-size: 15px; line-height: 1.7; color: rgba(247, 241, 234, 0.74); max-width: 470px; }
.au-checks { display: grid; gap: 10px; font-size: 15px; }
.au-checks div { display: flex; gap: 12px; align-items: center; }
.au-checks svg { width: 18px; height: 18px; color: #9ea993; stroke-width: 2.2; }
.au-next { display: grid; gap: 4px; padding: 14px 18px; border-radius: 22px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(247, 241, 234, 0.16); max-width: 520px; width: 100%; transition: background var(--y-dur-fast) ease; }
.au-next small { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #d3b690; }
.au-next b { font: 500 22px/1.15 var(--y-font-serif); }
@media (hover: hover) and (pointer: fine) { .au-next:hover { background: rgba(255, 255, 255, 0.13); } }

.courses-model button:focus-visible, .courses-model a:focus-visible, .courses-model summary:focus-visible, .courses-model select:focus-visible { outline: 2px solid var(--y-champagne); outline-offset: 4px; }
.courses-model [hidden] { display: none !important; }

/* Tableta y móvil: el índice pasa a un cajón y los controles a una barra flotante */
@media (max-width: 960px) {
  .au-grid { grid-template-columns: 1fr; }
  .au-menu { display: inline-block; }
  .au-mine { display: none; }
  .au .courses-sidebar { position: fixed; top: 0; bottom: 0; right: 0; left: auto; z-index: 80; width: min(360px, calc(100vw - 40px)); margin: 0; border-radius: 28px 0 0 28px; background: #201a17; overflow-y: auto; padding: 26px 20px 30px; transform: translateX(105%); visibility: hidden; transition: transform 420ms var(--y-ease), visibility 420ms; box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45); }
  .au .courses-sidebar.is-open { transform: none; visibility: visible; }
  .au .courses-sidebar details { display: block; }
  .au-index-close { display: block; position: absolute; top: 16px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); cursor: pointer; }
  .au-index-close::before, .au-index-close::after { content: ""; position: absolute; left: 13px; right: 13px; top: 21px; height: 1.5px; background: #fff; transform: rotate(45deg); }
  .au-index-close::after { transform: rotate(-45deg); }
  .au .courses-sidebar h2 { padding-right: 50px; }
  .au-shade { position: fixed; inset: 0; z-index: 79; background: rgba(0, 0, 0, 0.5); animation: yFadeIn 240ms ease both; }
  .au-done-in { grid-template-columns: 1fr; min-height: 0; }
  .au-done-art { padding: 30px 30px 0; }
  .au-done-art img { width: 240px; }
  .au-done-copy { padding: 20px 26px 32px; }
}
@media (max-width: 760px) {
  .au-in { width: calc(100% - 24px); padding: 84px 0 110px; }
  .au-bar { min-height: 56px; gap: 6px; padding: 0 6px; }
  .au-back span:last-child, .au-save span:not(.model-text-link) { display: none; }
  .au-ttl b { font-size: 18px; }
  .au-ttl small { font-size: 9px; }
  .au-guest { grid-template-columns: 20px minmax(0, 1fr); }
  .au-guest .y-banner-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .model-stage { border-radius: 26px; }
  .model-slide, .model-slide.has-image { grid-template-columns: 1fr; min-height: 0; }
  .model-copy, .model-quiz .model-copy { padding: 26px 22px 30px; }
  .model-copy h2 { font-size: 38px; }
  .model-intro { font-size: 15px; }
  .au-ctl { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; padding: 8px; border-radius: var(--y-r-pill); background: rgba(33, 26, 23, 0.88); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); }
  .au-ctl .btn { min-width: 0; min-height: 40px; padding: 0 14px; font-size: 12px; }
  .au-ctl #model-prev { width: 44px; padding: 0; font-size: 0; }
  .au-ctl #model-prev span { font-size: 20px; }
  .au-dots { background: none; box-shadow: none; padding: 0; backdrop-filter: none; gap: 8px; }
  .au-count { display: none; }
  .model-rail { gap: 5px; }
  .model-rail button { width: 10px; }
  .model-rail button[aria-current="step"] { width: 22px; }
  .model-class-navigation { flex-direction: column; align-items: flex-start; }
  .model-next-lesson { max-width: none; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .model-slide:not([hidden]) .model-copy > *, .model-slide:not([hidden]) .model-photo, .au-done, .au-done-art img, .au-shade, .au-save.is-busy > i { animation: none !important; }
  .model-rail button, .au .courses-sidebar, .model-detail summary::after, .model-download { transition: none !important; }
}

/* Láminas en cacao: superficies translúcidas y texto marfil */
.model-tone-cacao .model-example-list > div, .model-tone-cacao .model-download, .model-tone-cacao .courses-option, .model-tone-cacao .courses-textarea { background: rgba(255, 255, 255, 0.08); color: var(--y-ink); box-shadow: inset 0 0 0 1px rgba(247, 241, 234, 0.14); }
.model-tone-cacao .model-example-list span, .model-tone-cacao .model-download small { color: #d3b690; }
.model-tone-cacao .model-discover .model-row, .model-tone-cacao .model-detail, .model-tone-cacao .model-completion, .model-tone-cacao .model-ingredient-list li { border-color: rgba(247, 241, 234, 0.16); }
.model-tone-cacao .model-discover p, .model-tone-cacao .model-detail, .model-tone-cacao .model-fine, .model-tone-cacao .model-cover-list { color: rgba(247, 241, 234, 0.74); }
.model-tone-cacao .model-detail summary { color: var(--y-ink); }
.model-tone-cacao .model-detail summary::after { background: rgba(255, 255, 255, 0.1); color: #d3b690; }
.model-tone-cacao .model-num, .model-tone-cacao .model-practice-steps li::before { background: rgba(255, 255, 255, 0.08); color: #d3b690; box-shadow: inset 0 0 0 1px rgba(247, 241, 234, 0.16); }
.model-tone-cacao .courses-check input, .model-tone-cacao .courses-option input { accent-color: #d3b690; }
.model-tone-cacao .model-download .ln-doc { background: var(--y-ink); color: var(--y-cacao); }
.model-download .ln-doc { width: 40px; height: 48px; border-radius: 10px; display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; }

/* Actividades de práctica (mito o dato, clasificar, calculadora) */
.act { margin: 0 0 22px; max-width: 520px; }
.act-kicker { font: 600 11px var(--y-font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--y-clay); margin: 0 0 10px; }
.act-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.act-item { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px rgba(33, 26, 23, 0.1); }
.act-prompt { margin: 0 0 10px; font-size: 14px; line-height: 1.55; }
.act-choices, .act-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.act-choice, .act-chip span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: var(--y-r-pill); border: 0; background: #fffdf9; box-shadow: inset 0 0 0 1px rgba(33, 26, 23, 0.16); font: 500 13px var(--y-font-sans); color: var(--y-cacao); cursor: pointer; transition: transform var(--y-dur-fast) var(--y-ease), box-shadow var(--y-dur-fast) ease, background var(--y-dur-fast) ease; }
.act-choice:active, .act-chip span:active { transform: scale(0.97); }
.act-choice:focus-visible, .act-chip input:focus-visible + span { outline: 2px solid var(--y-champagne); outline-offset: 2px; }
.act-choice[aria-pressed="true"], .act-chip input:checked + span { background: rgba(188, 162, 129, 0.22); box-shadow: inset 0 0 0 1.5px rgba(184, 150, 114, 0.8); }
.act-choice.is-right { background: rgba(120, 128, 113, 0.2); box-shadow: inset 0 0 0 1.5px var(--y-ok); }
.act-choice.is-wrong { box-shadow: inset 0 0 0 1.5px var(--y-champagne); }
.act-chip { position: relative; }
.act-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.act-chip input:disabled + span { opacity: 0.45; cursor: not-allowed; }
.act-feedback .courses-feedback { margin: 10px 0 0; }
.act-field { border: 0; padding: 0; margin: 0 0 16px; display: block; }
.act-field legend, .act-pct > span { font: 600 13px var(--y-font-sans); margin-bottom: 8px; display: block; }
.act-pct input, .act-row input { width: 92px; min-height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(33, 26, 23, 0.18); background: #fffdf9; font: 500 15px var(--y-font-sans); color: var(--y-cacao); }
.act-pct small { display: block; color: var(--y-muted); font-size: 12px; margin-top: 6px; }
.act-split { display: grid; gap: 8px; margin: 0 0 14px; }
.act-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font-size: 14px; }
.act-row small { color: var(--y-muted); }
.act-result { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1px rgba(33, 26, 23, 0.1); }
.act-big { font: 400 34px/1.1 var(--y-font-serif); margin: 0 0 6px; }
.act-note { margin: 0; font-size: 13px; color: var(--y-muted); }
.act-result .courses-feedback { margin: 10px 0 0; }
.act-done { margin: 12px 0 0; font-size: 13px; color: var(--y-ok-ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .act-choice:hover, .act-chip span:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(184, 150, 114, 0.7); } }

/* Animación dentro de la lámina: nunca arranca sola */
.model-anim { margin: 4px 0 20px; max-width: 520px; }
.model-anim video { width: 100%; border-radius: 16px; background: var(--y-paper-soft); display: block; }
.model-anim.is-pending { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--y-muted); padding: 10px 16px; border-radius: var(--y-r-pill); background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px rgba(33, 26, 23, 0.1); }
.model-anim.is-pending span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: rgba(33, 26, 23, 0.06); color: var(--y-clay); }

/* Certificado al terminar la última clase */
.au-cert { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(247, 241, 234, 0.18); display: grid; gap: 12px; justify-items: start; }
.au-cert p { margin: 0; }
@media (prefers-reduced-motion: reduce) { .act-choice, .act-chip span { transition: none; } }

.yami-personal-tools { margin: 26px 0; padding: 22px; border: 1px solid #d8ccbe; border-radius: 18px; background: #f7f1ea; color: #211a17; }
.yami-personal-tools .courses-label { display: block; margin: 18px 0; }
.yami-personal-tools textarea, .yami-personal-tools input { display: block; width: 100%; box-sizing: border-box; margin-top: 8px; }
.yami-personal-tools summary { cursor: pointer; padding: 14px 0; }
.yami-personal-tools fieldset { border: 0; padding: 0; margin: 14px 0; min-width: 0; }
@media(max-width:600px) { .yami-personal-tools { padding: 14px; } }
