/* Aula Yasmin Felip · Banner compacto y foco de teclado. */
html body .cmplz-cookiebanner {
  width:min(520px,calc(100vw - 32px)) !important; max-width:calc(100vw - 32px) !important;
  left:auto !important; right:16px !important; bottom:16px !important; margin:0 !important;
  padding:18px !important; max-height:calc(100vh - 32px); max-height:calc(100svh - 32px);
  overflow:auto; box-sizing:border-box; background:#240b0c !important; color:#f7f1ea !important;
  border:1px solid #d2ab68 !important; border-radius:3px !important;
  box-shadow:0 16px 55px rgba(0,0,0,.25); font-family:'Lato',Arial,sans-serif !important;
  grid-template-columns:minmax(0,1fr) !important; grid-template-areas:none !important;
  gap:12px !important;
}
html body .cmplz-cookiebanner > * { grid-column:1 / -1 !important; grid-row:auto !important; min-width:0; }
html body .cmplz-cookiebanner .cmplz-header { padding:0 !important; min-height:32px; }
html body .cmplz-cookiebanner .cmplz-title { color:#f7f1ea !important; font-size:15px !important; font-weight:700 !important; text-transform:none !important; }
html body .cmplz-cookiebanner .cmplz-message { color:#f7f1ea !important; font-size:14px !important; line-height:1.6 !important; margin:0 !important; }
html body .cmplz-cookiebanner .cmplz-body { padding:0 !important; max-height:none !important; overflow:visible !important; }
html body .cmplz-cookiebanner .cmplz-buttons { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px !important; padding:0 !important; margin:0 !important; display:grid !important; }
html body .cmplz-cookiebanner .cmplz-btn {
  width:100% !important; min-width:0 !important; min-height:44px !important; height:auto !important;
  margin:0 !important; padding:10px 12px !important; border-radius:2px !important;
  font-family:'Lato',Arial,sans-serif !important; font-size:14px !important;
  font-weight:700 !important; line-height:1.45 !important; letter-spacing:normal !important;
  text-transform:none !important; white-space:normal !important;
}
/* Igual tamaño, contraste y peso visual para aceptar y rechazar. */
html body .cmplz-cookiebanner .cmplz-btn.cmplz-accept,
html body .cmplz-cookiebanner .cmplz-btn.cmplz-deny {
  background:#f7f1ea !important; color:#551a1c !important; border:1px solid #f7f1ea !important;
}
html body .cmplz-cookiebanner .cmplz-btn.cmplz-accept:hover,
html body .cmplz-cookiebanner .cmplz-btn.cmplz-deny:hover { background:#d2ab68 !important; border-color:#d2ab68 !important; }
html body .cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences,
html body .cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences,
html body .cmplz-cookiebanner .cmplz-btn.cmplz-manage-options {
  grid-column:1 / -1 !important; background:transparent !important;
  color:#f7f1ea !important; border:1px solid #d2ab68 !important;
}
html body .cmplz-cookiebanner .cmplz-links { margin:0 !important; padding:0 !important; }
html body .cmplz-cookiebanner .cmplz-links ul { gap:8px 14px !important; flex-wrap:wrap; }
html body .cmplz-cookiebanner .cmplz-links a { color:#f7f1ea !important; font-size:12px !important; line-height:1.6 !important; text-underline-offset:3px; }
html body .cmplz-cookiebanner .cmplz-category-title,
html body .cmplz-cookiebanner .cmplz-description,
html body .cmplz-cookiebanner .cmplz-always-active { color:#f7f1ea !important; }
html body .cmplz-cookiebanner .cmplz-close { color:#f7f1ea !important; min-width:32px; min-height:32px; }
html body .cmplz-cookiebanner :is(button,a,input,[tabindex]):focus-visible { outline:3px solid #d2ab68 !important; outline-offset:2px !important; }
/* No se altera display/visibility de categorías ni botones dependientes del consentimiento. */
html body .learndash-wrapper :is(a,button,input,select,textarea,[tabindex]):not(#yfa-focus-1):not(#yfa-focus-2):not(#yfa-focus-3):focus-visible,
html body :is(.ld-navigation__next-link,.ld-navigation__previous-link,.ld-navigation__back-to-course-link):not(#yfa-focus-1):not(#yfa-focus-2):not(#yfa-focus-3):focus-visible {
  outline:3px solid #80602d !important; outline-offset:3px !important;
  box-shadow:0 0 0 2px #fbf8f3 !important;
}
@media(max-width:480px) {
  html body .cmplz-cookiebanner { width:calc(100vw - 24px) !important; max-width:calc(100vw - 24px) !important; right:12px !important; bottom:12px !important; padding:16px !important; max-height:calc(100svh - 24px); }
}
@media(forced-colors:active) {
  html body .learndash-wrapper :is(a,button,input,select,textarea,[tabindex]):focus-visible { outline-color:Highlight !important; }
}

html body .cmplz-cookiebanner .cmplz-category { background:#3a1213 !important; border-color:rgba(210,171,104,.3) !important; }
html body .cmplz-cookiebanner .cmplz-category-header,
html body .cmplz-cookiebanner .cmplz-description { background:transparent !important; }
html body .cmplz-cookiebanner .cmplz-category-toggle { color:#d2ab68 !important; }
html body .cmplz-cookiebanner .cmplz-category-toggle svg { fill:currentColor; }

/* Portada: evitar palabras recortadas en pantallas estrechas. */
@media (max-width: 620px) {
 html body .yfa-home .yfa-hero h1 { font-size: clamp(2.5rem, 11vw, 4.1rem) !important; line-height: 1.05; overflow-wrap: anywhere; }
 html body .yfa-home .yfa-heading h2 { font-size: clamp(2rem, 9vw, 2.7rem) !important; overflow-wrap: anywhere; }
}
