/* agriNews Campus · integración del diseño 2026 con WordPress.
   Se carga detrás de agrinewscampus.css (la hoja del mockup, sin cambios). */

/* 1. WebP Express envuelve las imágenes en <picture>: la hoja del mockup usa selectores "> img". */
body.campus-page picture, .site-header picture, .site-footer picture { display: contents; }
body.campus-page .course-hero > picture > img {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .45;}
body.campus-page .hero__mosaic > picture > img {width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-l);}
body.campus-page .hero__mosaic > picture:first-child > img {grid-row: span 2;}
body.campus-page .photo-band > picture > img {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;}
body.campus-page .band--photo > picture > img {position: absolute; right: 0; top: 0; width: 48%; height: 100%; object-fit: cover; z-index: -1; -webkit-mask-image: linear-gradient(to left, #000 55%, transparent); mask-image: linear-gradient(to left, #000 55%, transparent); opacity: .85;}
@media (max-width: 760px) { body.campus-page .band--photo > picture > img {width: 100%; opacity: .25;} }
body.campus-page .course-hero > picture > img {opacity: .72;}
body.campus-page .welcome > picture > img {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;}
body.campus-page .note--img > picture > img {width: 96px; height: 72px; object-fit: cover; border-radius: 10px;}
body.campus-page .page-band > picture > img {position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; object-position: center 45%;}
body.campus-page .prof-modal__grid > picture > img {width: 100%; height: 100%; min-height: 300px; object-fit: cover; background: var(--paper-2);}
@media (max-width: 640px) { body.campus-page .prof-modal__grid > picture > img {min-height: 0; height: 220px;} }
body.campus-page .course-hero > picture > img {opacity: 1;}
body.campus-page .page-band > picture > img, body.campus-page .course-hero > picture > img {animation: zoomIn 1.2s var(--ease) backwards;}

/* 2. Tipografía: eCademy imprime body/h1-h6 { Poppins } y el kit de Elementor pone botones en Poppins 800 y mayúsculas. */
body.campus-page { font-family: var(--f-body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper, #fff); }
body.campus-page :is(h1, h2, h3, h4, h5, h6) { font-family: var(--f-display); }
body .site-header, body .site-footer { font-family: var(--f-body); font-size: 16px; line-height: 1.5; }
body .site-header :is(h1, h2, h3, h4), body .site-footer :is(h1, h2, h3, h4) { font-family: var(--f-display); }
body .site-header :is(button, input), body .site-footer :is(button, input) { font-family: var(--f-body); text-transform: none; letter-spacing: normal; }
body .site-header .nav__link { font-weight: 600; color: inherit; line-height: inherit; }
body .site-header .icon-btn, body .site-header .avatar-btn { color: var(--ink); }
body .site-footer .nl-band button { font-weight: 700; }

/* 3. Cabecera en las páginas antiguas (Elementor, LearnDash, BuddyPress, Mi Campus) */
body.campus-legacy .site-header { position: sticky; top: 0; z-index: 999; }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
body.campus-legacy .site-header a:hover { text-decoration: none; }
body.campus-legacy .site-header ul { margin: 0; padding: 0; list-style: none; }
body.campus-legacy .site-footer ul { margin: 0; padding: 0; list-style: none; }
body.campus-legacy .site-footer { margin-top: 0; }

/* 4. Carrito de siempre (custom_cart_popup): contador en la cabecera nueva */
.site-header .cart-button { position: relative; text-decoration: none; }
.site-header .cart-button #cart-count, .site-header .cart-button .cart-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent, #e4344a); color: #fff; font: 700 11px/18px var(--f-body); text-align: center; }

/* 5. eCademy convierte los <select> con nice-select (JS); en las páginas nuevas se usa el select nativo del diseño */
body.campus-page .nice-select { display: none !important; }
body.campus-page select.select, body.campus-page .cat2__sort select { display: block !important; }

/* 6. Premium: selector de edición (productos de agrifm) */
#campus-premium-pick { max-width: 520px; width: calc(100% - 32px); }
.cpp-list { list-style: none; margin: 0; padding: 8px 24px 24px; display: grid; gap: 10px; }
.cpp-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line, #e2e8ea); border-radius: 12px; }
.cpp-item span { display: grid; } .cpp-item small { color: var(--muted, #5b6b73); }

/* 7. Formularios Contact Form 7 con el aspecto del diseño (newsletter del pie y Contacto) */
.nl-band .campus-cf7--nl .cf7-flex-newsletter { display: flex !important; gap: 10px; flex-wrap: wrap; max-width: none !important; }
.nl-band .campus-cf7--nl br { display: none; }
.nl-band .campus-cf7--nl .wpcf7-form-control-wrap { flex: 1 1 240px; display: block; }
.nl-band .campus-cf7--nl input[type="email"] { width: 100%; height: 50px; border: 0; border-radius: 40px; padding: 0 22px; font: 400 1rem var(--f-body); background: #fff; color: var(--ink); }
.nl-band .campus-cf7--nl input[type="submit"] { height: 50px; border: 0; border-radius: 40px; padding: 0 30px; background: #423e4f; color: #fff; font: 600 1.05rem var(--f-body); text-transform: none; cursor: pointer; line-height: 50px; }
.nl-band .campus-cf7--nl input[type="submit"]:hover { background: #2c2938; }
.nl-band .campus-cf7 .wpcf7-response-output { margin: 10px 0 0; border-radius: 10px; color: #0d4f53; background: rgba(255,255,255,.7); font-size: .9rem; }
.nl-band .campus-cf7 .wpcf7-spinner { display: none; }

.campus-cf7 .cf7-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.campus-cf7 .cf7-row-full { display: block; }
@media (max-width: 640px) { .campus-cf7 .cf7-row { grid-template-columns: minmax(0, 1fr); } }
.campus-cf7 :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line, #d9e2e7); border-radius: 12px; font: 400 1rem var(--f-body); color: var(--ink); background: #fff; }
.campus-cf7 textarea { min-height: 140px; resize: vertical; }
.campus-cf7 :is(input, select, textarea):focus { outline: none; border-color: var(--brand-sky, #40c6ce); box-shadow: 0 0 0 4px var(--brand-sky-soft, #e4f7f8); }
.campus-cf7 .cf7-checks { display: grid; gap: 8px; margin: 14px 0 18px; font-size: .92rem; }
.campus-cf7 .cf7-checks .wpcf7-list-item { margin: 0; }
.campus-cf7 input[type="submit"], .campus-cf7 .cf7-btn { width: 100%; min-height: 50px; border: 0; border-radius: 40px; background: var(--brand-sky, #40c6ce); color: #06302f; font: 700 1.05rem var(--f-body); text-transform: none; cursor: pointer; }
.campus-cf7 .wpcf7-not-valid-tip { font-size: .85rem; margin-top: 4px; }
.campus-cf7 .wpcf7-response-output { border-radius: 12px; margin: 14px 0 0 !important; }

/* 8. Caja de compra: la lógica es la de siempre (shortcodes); aquí solo el aspecto */
.campus-buybox .elementor-button, .campus-buybox .choice-btn-buy, .campus-buybox .choice-btn-add {
  display: flex !important; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 10px; padding: 12px 20px !important;
  border-radius: 40px !important; border: 0 !important; background: var(--brand-sky, #40c6ce) !important; color: #06302f !important; box-shadow: none !important;
  font: 700 1rem/1.2 var(--f-body) !important; text-transform: none !important; letter-spacing: normal !important; text-decoration: none !important;
}
.campus-buybox .elementor-button:hover, .campus-buybox .choice-btn-buy:hover { filter: brightness(.95); }
.campus-buybox .elementor-button * { color: inherit !important; font: inherit !important; text-decoration: none !important; }
.campus-buybox .choice-btn-buy { background: transparent !important; color: var(--ink) !important; border: 2px solid var(--brand-sky, #40c6ce) !important; }
.campus-buybox .choice-btn-premium-upsell { border-radius: 40px !important; text-transform: none !important; font-family: var(--f-body) !important; }
.campus-buybox :is(h1, h2, h3, h4) { font-family: var(--f-display); text-transform: none; }
.campus-buybox .anc-product-choice { margin-top: 0 !important; }
.campus-buybox > .campus-buybox__logic > :first-child { margin-top: 0 !important; }

/* 9. Cabecera y pie a salvo de Bootstrap/eCademy en las páginas antiguas (Mi Campus, BuddyPress, Elementor…) */
body .site-header .wrap.nav { flex-wrap: nowrap; margin-bottom: 0; }
body .site-header :is(.icon-btn, .avatar-btn, .burger, .hsearch-toggle, .lang__btn) { padding: 0; margin: 0; }
body .site-header .nav__link { padding: 8px 12px; margin: 0; white-space: nowrap; }
body .site-header .hsearch input { padding: 0; border: 0; border-radius: 0; height: 100%; box-shadow: none; background: none; margin: 0; }
body .site-header .badge { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
body .site-header img { max-width: none; }
body .site-header .brand img { height: 34px; width: auto; max-width: none; }
body .site-footer .nl-band__in, body .site-footer .foot-grid { margin: 0 auto; }
body .site-footer .campus-cf7--nl input[type="submit"] { width: auto; flex: 0 0 auto; margin: 0; }
@media (max-width: 760px) { body .site-footer .campus-cf7--nl input[type="submit"] { width: 100%; } }
body .site-header .hsearch input { background: transparent !important; width: 100%; }
body .site-header .badge { width: auto; }
body .site-header .cart-count[data-empty] { display: none !important; }
.campus-cf7 input[type="submit"], .campus-cf7 .cf7-btn { background: var(--brand-sky, #40c6ce) !important; color: #06302f !important; border: 0 !important; }
.campus-cf7 select { color: var(--ink) !important; -webkit-text-fill-color: var(--ink); appearance: auto; }
.nl-band .campus-cf7--nl .wpcf7-form-control-wrap { flex: 1 1 200px; }
/* Con sesión iniciada hay un botón más (avatar): en pantallas estrechas se compactan para que quepa el menú */
@media (max-width: 420px) {
  body .site-header .nav__tools { gap: 4px; }
  body .site-header .nav__tools > .icon-btn, body .site-header .lang__btn, body .site-header .avatar-btn { width: 36px; height: 36px; }
  body .site-header .brand img { height: 28px; }
}

/* 10. Ventanas del diseño (<dialog class="modal">): Bootstrap define .modal { display: none } */
dialog.modal[open] { display: block !important; position: fixed; opacity: 1; z-index: 100000; height: auto; overflow: auto; }
dialog.modal:not([open]) { display: none !important; }

/* 11. Carrito lateral de siempre (custom_cart_popup): solo aspecto */
.custom-cart-popup, .custom-cart-popup * { font-family: var(--f-body, "Figtree", system-ui, sans-serif); }
.custom-cart-popup :is(h2, h3, .xoo-wsc-header, .custom-cart-header) { font-family: var(--f-display, "Schibsted Grotesk", sans-serif); }
.custom-cart-popup .xoo-wsc-ft-btn { display: inline-flex !important; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px !important; border-radius: 40px !important; text-decoration: none !important; font-weight: 700 !important; text-transform: none !important; }
.custom-cart-popup .xoo-wsc-ft-btn-checkout { background: var(--brand-sky, #40c6ce) !important; color: #06302f !important; border: 0 !important; }
.custom-cart-popup .xoo-wsc-ft-btn-continue { background: transparent !important; color: var(--ink, #0d3b52) !important; border: 1px solid var(--line, #d9e2e7) !important; }
.custom-cart-popup a:not(.xoo-wsc-ft-btn) { color: var(--ink, #0d3b52); }
body.campus-page .prof-grid .prof { max-width: none; }
body .site-footer .nl-band .campus-cf7--nl input[type="submit"] { background: #423e4f !important; color: #fff !important; border: 0 !important; }

/* Titulares: sin cifras tabulares. El mockup pone font-variant-numeric: tabular-nums en body y, con Schibsted Grotesk,
   la coma y el punto toman el ancho de una cifra («agriNews , el grupo», «Hola , Prueba»). Las cifras .num siguen tabulares. */
h1, h2, h3, h4, h5, h6, .h3, .h-sec, .feat__title, .page-band h1, [class*="__title"], .card__title, .ct-tabs, .faq dt, .welcome h2, .app-head h1,
.photo-band blockquote, .float-card strong, .feature-mini strong, .sp-tile strong, .faces strong, .feat__ticket strong, .sp-panels strong, .mosaic strong,
.pm-card__mag strong, .ch-tutor__who strong, .ab-faces strong, .ab-flag, .reto-card strong, .retos-hero__weekly strong, .ill-tile strong, .feat__tutor strong,
.cert-doc strong, .reto-level strong, .animal-res h3, .contact-card a, .search-dlg input, .map strong, .pm-compare thead th, .emp-table b, .buy-sticky strong { font-variant-numeric: normal; }
h1 .num, h2 .num, h3 .num, .kpis .num, .reto-score b { font-variant-numeric: tabular-nums; }

/* Medios del grupo agriNews (template-parts/campus-medios.php): 5 en fila / 3 en tablet / 2 en móvil */
.media-grid { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; --mg-cols: 5; }
.media-grid > li { flex: 0 0 calc((100% - (var(--mg-cols) - 1) * 16px) / var(--mg-cols)); min-width: 0; }
.media-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 100%; min-height: 150px; padding: 22px 16px 18px;
  background: var(--white, #fff); border: 1px solid var(--line, #dde8ec); border-radius: 18px; text-decoration: none; color: var(--ink, #0d3b52);
  transition: border-color .2s, box-shadow .2s, transform .2s; }
.media-card__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 64px; }
.media-card__logo img { max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .25s, opacity .25s; }
.media-card__sector { font-size: .85rem; font-weight: 600; color: var(--muted, #5b6b75); text-align: center; line-height: 1.3; white-space: nowrap; }
.media-card:hover, .media-card:focus-visible { border-color: var(--brand-sky, #40c6ce); box-shadow: 0 10px 28px rgba(13, 59, 82, .10); transform: translateY(-2px); }
.media-card:hover .media-card__logo img, .media-card:focus-visible .media-card__logo img { filter: none; opacity: 1; }
.media-card--dark { background: var(--brand-ink, #0d3b52); border-color: var(--brand-ink, #0d3b52); }
.media-card--dark .media-card__sector { color: #cfe6ec; }
.media-card--dark .media-card__logo img { opacity: .8; }
@media (max-width: 1024px) { .media-grid { --mg-cols: 3; } }
@media (max-width: 640px) { .media-grid { --mg-cols: 2; gap: 12px; } .media-grid > li { flex-basis: calc((100% - 12px) / 2); } .media-card { min-height: 128px; padding: 18px 12px 14px; } .media-card__logo { height: 54px; } .media-card__logo img { max-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .media-card { transition: none; } .media-card:hover { transform: none; } }

/* Vídeo de presentación (campus_video_box / hero de la home): póster = imagen destacada, botón de play del diseño encima */
.vbox { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #0b1622; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.14); isolation: isolate; }
.vbox__img, .vbox__video, .vbox__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.vbox__img { object-fit: cover; }
.vbox__video { object-fit: contain; background: #000; }
.vbox__play { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; border: 0; padding: 0;
  background: #fff; color: var(--ink, #0d3b52); font-size: 30px; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 30px rgba(0,0,0,.35); transition: transform .2s; }
.vbox__play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); }
.vbox__play:hover, .vbox__play:focus-visible { transform: translate(-50%, -50%) scale(1.07); }
.vbox__play i { margin-left: 4px; }
.vbox.is-playing .vbox__play { display: none; }
a.vbox--none { cursor: pointer; }
@media (max-width: 640px) { .vbox { border-radius: 14px; } .vbox__play { width: 64px; height: 64px; font-size: 24px; } }

/* Ficha de curso: la caja de vídeo sustituye al botón suelto y se ve también en móvil */
/* Ficha de curso: solo el botón de play (como en el diseño), también visible en móvil */
@media (max-width: 960px) { body .course-hero .ch-video { display: flex !important; flex-direction: row; justify-self: start; } }
body .course-hero .ch-video.ch-video--none { display: none !important; }
/* Fondos de hero: ACF «imagen_de_background», centrado abajo y cubriendo todo el hero */
.course-hero > img.ch-bg, .feat__bg { object-fit: cover; object-position: center bottom; }
.video-modal__frame video { width: 100%; height: 100%; display: block; background: #000; }

/* Hero de la home: imagen destacada del curso de fondo, con capa oscura para leer el texto */
.feat--dark::before { display: none !important; }
.feat__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
/* Capa oscura: el hero tiene fondo negro (mockup) y la imagen va atenuada encima, más oscura del lado del texto.
   El ::after del mockup sigue siendo el fundido inferior hacia el contenido. */
.feat__bg { opacity: .42; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.7) 45%, #000 100%); mask-image: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.7) 45%, #000 100%); }
@media (max-width: 960px) { .feat__bg { opacity: .34; -webkit-mask-image: none; mask-image: none; } }
.feat__media .feat__video { aspect-ratio: auto; background: none; border: 0; box-shadow: none; overflow: visible; border-radius: 0; animation: none; }
.feat__media .feat__video::after { display: none; }
.feat__vmeta { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 2px 0; font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.8); }
.feat__vmeta span + span::before { content: "·"; margin-right: 10px; opacity: .6; }
.vbox:not(.is-playing) .vbox__video { object-fit: cover; }

/* Hero de la home: esqueleto mientras el script decide el curso (no se ve contenido de relleno) */
.feat__skel { display: none; }
.feat.is-loading .feat__skel { display: grid; gap: 14px; margin: 6px 0 22px; max-width: 620px; }
.feat.is-loading :is([data-f-kicker], [data-f-title], [data-f-lead], [data-f-facts], [data-f-team], [data-f-cta], .feat__vmeta, [data-f-ticket]) { display: none !important; }
.sk { display: block; border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.07) 25%, rgba(255,255,255,.16) 37%, rgba(255,255,255,.07) 63%); background-size: 400% 100%; animation: campus-sk 1.4s ease infinite; }
.sk--kicker { height: 14px; width: 42%; }
.sk--title { height: clamp(34px, 4vw, 52px); width: 92%; border-radius: 12px; }
.sk--line { height: 16px; width: 100%; }
.sk--short { width: 62%; }
.sk--facts { height: 46px; width: 72%; margin-top: 8px; }
.sk--media { width: 100%; aspect-ratio: 16 / 9; border-radius: 20px; }
.feat:not(.is-loading) .sk--media { display: none; }
@keyframes campus-sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }
/* Fondo: aparece con un fundido cuando ya es el del curso correcto */
.feat__bg { transition: opacity .6s ease; }
.feat__bg:not(.is-in) { opacity: 0 !important; }
.feat.is-loading .feat__new { visibility: hidden; }

/* Siluetas de fondo (.bg-animal): nunca más altas que su sección (en bloques bajos se cortaban por arriba) */
.bg-animal::before { width: auto !important; height: min(clamp(160px, 17vw, 250px), calc(100% - 2 * clamp(12px, 2vw, 28px))); aspect-ratio: 1; }
@media (max-width: 700px) { .bg-animal::before { height: min(200px, calc(100% - 24px)); } }

/* Reproductor propio de los vídeos de curso (window.CampusPlayer en campus.js) */
.cplayer { position: relative; outline: none; }
.cplayer:focus-visible { box-shadow: 0 0 0 3px var(--brand-sky, #40c6ce); }
.cplayer video { cursor: pointer; }
.cplayer.is-idle, .cplayer.is-idle video { cursor: none; }
.cplayer__ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; color: #fff; font-family: var(--f-body, "Figtree", sans-serif); }
.cplayer__ui > * { pointer-events: auto; }
.cplayer__ui::before { content: ""; position: absolute; inset: auto 0 0; height: 46%; pointer-events: none;
  background: linear-gradient(to top, rgba(6, 18, 30, .88), rgba(6, 18, 30, .35) 55%, transparent); transition: opacity .3s; }
.cplayer__title { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.6); transition: opacity .3s; pointer-events: none; }
.cplayer__title i { color: var(--brand-sky, #40c6ce); font-size: 1.2rem; }
.cplayer__title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cplayer.is-playing-v .cplayer__title { opacity: 0; }
/* Play grande (en pausa) */
.cplayer__big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; border: 0; padding: 0;
  background: #fff; color: var(--ink, #0d3b52); font-size: 30px; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 30px rgba(0,0,0,.35); transition: opacity .25s, transform .2s; }
.cplayer__big::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); }
.cplayer__big i { margin-left: 4px; }
.cplayer__big:hover { transform: translate(-50%, -50%) scale(1.07); }
.cplayer.is-playing-v .cplayer__big { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.85); }
/* Cargando */
.cplayer__spin { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 4px solid rgba(255,255,255,.25);
  border-top-color: var(--brand-sky, #40c6ce); animation: cplayer-spin .8s linear infinite; opacity: 0; transition: opacity .2s; pointer-events: none; }
.cplayer.is-loading-v .cplayer__spin { opacity: 1; }
@keyframes cplayer-spin { to { transform: rotate(360deg); } }
/* Barra */
.cplayer__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 10px 12px 12px; transition: opacity .3s, transform .3s; }
.cplayer:not(.is-started) .cplayer__bar { opacity: 0; pointer-events: none; }
.cplayer.is-idle .cplayer__bar, .cplayer.is-idle .cplayer__ui::before { opacity: 0; }
.cplayer.is-idle .cplayer__bar { transform: translateY(6px); pointer-events: none; }
.cplayer__btn { flex: none; min-width: 38px; height: 38px; padding: 0 8px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 20px;
  display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.cplayer__btn:hover, .cplayer__btn:focus-visible { background: rgba(255,255,255,.14); outline: none; }
.cplayer__btn[data-c="play"] { background: var(--brand-sky, #40c6ce); color: #06302f; }
.cplayer__btn[data-c="play"]:hover { background: #fff; color: var(--ink, #0d3b52); }
.cplayer__speed { border-radius: 999px; font: 700 .82rem/1 var(--f-body, "Figtree", sans-serif); min-width: 44px; border: 1px solid rgba(255,255,255,.3); height: 30px; }
.cplayer__time { flex: none; font-size: .82rem; font-weight: 600; font-variant-numeric: tabular-nums; padding: 0 6px; opacity: .92; }
.cplayer__sep { margin: 0 4px; opacity: .55; }
.cplayer__track { position: relative; flex: 1; height: 26px; display: flex; align-items: center; min-width: 60px; }
.cplayer__track::before, .cplayer__buf, .cplayer__fill { content: ""; position: absolute; left: 0; top: 50%; height: 5px; margin-top: -2.5px; border-radius: 99px; pointer-events: none; }
.cplayer__track::before { right: 0; background: rgba(255,255,255,.25); }
.cplayer__buf { background: rgba(255,255,255,.38); width: 0; }
.cplayer__fill { background: var(--brand-sky, #40c6ce); width: 0; }
.cplayer__track:hover::before, .cplayer__track:hover .cplayer__buf, .cplayer__track:hover .cplayer__fill { height: 7px; margin-top: -3.5px; }
.cplayer__track input { position: relative; z-index: 1; width: 100%; height: 26px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.cplayer__track input::-webkit-slider-runnable-track { height: 26px; background: transparent; }
.cplayer__track input::-moz-range-track { height: 26px; background: transparent; }
.cplayer__track input::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; margin-top: 5.5px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-sky, #40c6ce); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.cplayer__track input::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 3px solid var(--brand-sky, #40c6ce); }
.cplayer__track input:focus-visible { outline: none; }
.cplayer__track input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(64,198,206,.45); }
.cplayer.is-fs { border-radius: 0 !important; background: #000; }
.cplayer.is-fs video { object-fit: contain !important; }
@media (max-width: 640px) {
  .cplayer__big { width: 64px; height: 64px; font-size: 24px; }
  .cplayer__bar { gap: 2px; padding: 6px 6px 8px; }
  .cplayer__btn { min-width: 34px; height: 34px; font-size: 18px; }
  .cplayer__speed { min-width: 40px; height: 28px; }
  .cplayer__time { font-size: .74rem; padding: 0 4px; }
  .cplayer__sep, .cplayer__time [data-c="dur"] { display: none; }
  .cplayer__title { font-size: .85rem; top: 10px; left: 12px; }
}
@media (prefers-reduced-motion: reduce) { .cplayer__spin { animation-duration: 2s; } }
/* Con el reproductor propio, el botón de la caja de la home ya no hace falta tras empezar */
.vbox.is-playing.cplayer .vbox__play { display: none; }

/* Ventana del vídeo de la ficha */
dialog.video-modal { width: min(1040px, calc(100% - 32px)); border-radius: 22px; background: transparent; box-shadow: none; }
dialog.video-modal::backdrop { background: rgba(6, 18, 30, .86); backdrop-filter: blur(6px); }
.video-modal__head { display: flex; flex-direction: column; gap: 2px; margin: 0 56px 12px 2px; color: #fff; }
.video-modal__kicker { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-sky, #40c6ce); }
.video-modal__head strong { font-family: var(--f-display, "Schibsted Grotesk", sans-serif); font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.25; font-variant-numeric: normal; }
.video-modal__frame { position: relative; border-radius: 20px; background: #000; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); border: 1px solid rgba(255,255,255,.12); }
.video-modal__close { top: 0 !important; right: 0; width: 44px; height: 44px; border-radius: 50% !important; }
@media (max-width: 640px) { dialog.video-modal { width: calc(100% - 20px); } .video-modal__frame { border-radius: 14px; } }

/* Newsletter del pie: correo y botón en una sola línea (los formularios CF7 usan cf7-inline-newsletter o cf7-flex-newsletter) */
.nl-band .campus-cf7--nl :is(.cf7-inline-newsletter, .cf7-flex-newsletter) { display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 8px; max-width: 560px !important;
  background: #fff; border-radius: 999px; padding: 5px; box-shadow: 0 10px 30px -12px rgba(6, 48, 47, .45); }
.nl-band .campus-cf7--nl :is(.cf7-inline-newsletter, .cf7-flex-newsletter) .wpcf7-form-control-wrap { flex: 1 1 auto; min-width: 0; }
.nl-band .campus-cf7--nl :is(.cf7-inline-newsletter, .cf7-flex-newsletter) input[type="email"] { height: 46px; background: transparent; padding: 0 16px; }
.nl-band .campus-cf7--nl :is(.cf7-inline-newsletter, .cf7-flex-newsletter) input[type="email"]:focus { outline: none; }
.nl-band .campus-cf7--nl :is(.cf7-inline-newsletter, .cf7-flex-newsletter):focus-within { box-shadow: 0 0 0 3px rgba(13, 59, 82, .35), 0 10px 30px -12px rgba(6, 48, 47, .45); }
.nl-band .campus-cf7--nl :is(.cf7-inline-newsletter, .cf7-flex-newsletter) input[type="submit"] { flex: none; height: 46px; padding: 0 24px; white-space: nowrap; }
.nl-band .campus-cf7--nl :is(.cf7-inline-newsletter, .cf7-flex-newsletter) .wpcf7-not-valid-tip { position: absolute; top: calc(100% + 10px); left: 16px; font-size: .82rem; color: #7a1020; background: rgba(255,255,255,.9); padding: 2px 8px; border-radius: 6px; }
.nl-band .campus-cf7--nl .wpcf7-form-control-wrap { position: relative; }
@media (max-width: 420px) {
  .nl-band .campus-cf7--nl :is(.cf7-inline-newsletter, .cf7-flex-newsletter) input[type="email"] { padding: 0 12px; font-size: .95rem; }
  .nl-band .campus-cf7--nl :is(.cf7-inline-newsletter, .cf7-flex-newsletter) input[type="submit"] { padding: 0 16px; font-size: .95rem; }
}
.nl-band .campus-cf7--nl :is(.cf7-inline-newsletter, .cf7-flex-newsletter) input[type="submit"] { width: auto !important; max-width: 50%; flex: 0 0 auto !important; margin: 0 !important; }
.nl-band .campus-cf7--nl :is(.cf7-inline-newsletter, .cf7-flex-newsletter) .wpcf7-form-control-wrap { flex: 1 1 0 !important; width: auto !important; min-width: 0 !important; }
.nl-band .campus-cf7--nl :is(.cf7-inline-newsletter, .cf7-flex-newsletter) input[type="email"] { width: 100% !important; min-width: 0; margin: 0 !important; }

/* Profesores: la foto redonda (width 100% + margen lateral 10%) se salía de la tarjeta */
body .prof-grid .prof img, body .prof img { width: 80% !important; max-width: 220px; height: auto; aspect-ratio: 1; margin: 6px auto 4px !important; display: block; border-radius: 50%; object-fit: cover; }
/* Hero de la home: la ficha de precio tapa la barra del reproductor; se retira mientras se ve el vídeo */
.feat__ticket { transition: opacity .3s, transform .3s; }
.feat__media:has(.cplayer.is-started) .feat__ticket { opacity: 0; transform: translateY(12px); pointer-events: none; }
.feat__media .feat__vmeta { position: static !important; justify-content: flex-start; }
.feat__media .feat__vmeta[hidden] { display: none !important; }

/* Cabecera en móviles estrechos (≤389 px): logo y botones algo más pequeños para que quepan los cinco iconos */
@media (max-width: 389px) {
  .site-header .wrap.nav { gap: 8px; }
  .site-header .brand { flex: 0 1 auto; min-width: 0; }
  .site-header .brand img { width: 104px !important; height: auto !important; max-width: 100%; }
  .site-header .nav__tools { gap: 3px !important; flex: none; }
  .site-header .nav__tools .icon-btn, .site-header .nav__tools .avatar-btn, .site-header .nav__tools .avatar-btn .avatar { width: 34px !important; height: 34px !important; min-width: 34px; }
  .site-header .nav__tools .icon-btn i { font-size: 1.05rem; }
}
@media (max-width: 339px) { .site-header .brand img { width: 88px !important; } }



/* Ficha: «¿Cómo funciona la certificación?» en móvil, sello arriba y texto a todo el ancho (antes, una palabra por línea) */
@media (max-width: 760px) {
  body .cert { display: block !important; }
  body .cert > img { width: 96px !important; height: auto !important; margin: 0 0 14px !important; float: none !important; }
  body .cert .cert__text { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; columns: auto !important; }
  body .cert .cert__text ul { padding-left: 1.1em; }
}

/* ---------- Revisión móvil (24-11-2026) ---------- */
@media (max-width: 640px) {
  /* Especie → «Quién enseña aquí»: dos columnas, tarjetas al ancho de su columna */
  body .faculty { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  body .faculty .prof { max-width: none !important; width: 100% !important; }
  body .faculty .prof h3 { overflow-wrap: anywhere; }
  /* Bandas con botón largo («Hazte Premium por solo 150 € al año») */
  body .band .btn, body .split .btn { white-space: normal !important; max-width: 100%; text-align: center; justify-content: center; }
  /* Premium: el precio no se parte («150» / «€») */
  body .pm-price { flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
  body .pm-price > :first-child, body .pm-price strong, body .pm-price b { white-space: nowrap; }
  /* Selector de especie (Premium): las pastillas pasan de línea en vez de cortarse */
  body .sp-pills__row { flex-wrap: wrap !important; gap: 8px !important; }
  body .sp-pills__row .sp-pill { flex: 0 0 auto; }
  /* Nosotros: la ilustración del grupo no se sale por la izquierda */
  body .ab-group-art { max-width: 100% !important; height: auto !important; margin-inline: auto !important; display: block; }
  /* Enlaces del pie con más zona táctil */
  body .site-footer ul a { display: inline-block; padding: 6px 0; }
  /* Etiquetas muy pequeñas */
  body .choice-summary-badge, body .flag, body .feat__tutor small { font-size: .72rem !important; }
}
/* Hero de la home en móvil: la ficha de precio va debajo del vídeo (tapaba «Presentación del curso») */
@media (max-width: 860px) {
  body .feat__media { display: flex; flex-direction: column; gap: 10px; }
  body .feat__media .feat__ticket { position: static !important; transform: none !important; align-self: flex-start; margin: 0 !important; }
  body .feat__media .feat__vmeta { order: 1; }
  body .feat__media .feat__ticket { order: 2; }
}
/* Contacto: botón «Enviar solicitud» legible y sin la flecha suelta del desplegable «motivo» (se elige con las pestañas) */
body .campus-cf7 input.wpcf7-submit, body .campus-cf7 .cf7-btn { color: #fff !important; }
body .ct-form .wpcf7-form-control-wrap[data-name="motivo"] { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; margin: 0 !important; padding: 0 !important; }
body .ct-form .wpcf7-form-control-wrap[data-name="motivo"]::before, body .ct-form .wpcf7-form-control-wrap[data-name="motivo"]::after { display: none !important; }
body .ct-form .cf7-col:has(select[name="motivo"]) { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; margin: 0 !important; padding: 0 !important; }
/* Profesores en móvil: dos columnas, foto más pequeña */
@media (max-width: 640px) {
  body .prof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  body .prof-grid .prof { padding: 10px 8px 12px !important; }
  body .prof-grid .prof img { width: 84% !important; max-width: 150px; }
  body .prof-grid .prof h3 { font-size: .95rem !important; overflow-wrap: anywhere; }
  body .prof-grid .prof p { font-size: .78rem !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 640px) { body .band .btn { display: block !important; width: 100%; text-align: center; } body .band .btn > * { display: inline; } }
/* Tablas de contenido (páginas legales, cookies…) en móvil: desplazamiento horizontal propio en vez de cortarse */
@media (max-width: 640px) {
  body main :is(.entry-content, .elementor-widget-text-editor, .elementor-widget-container, .cmplz-document, article) table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 640px) {
  body table:not(.pm-compare):not(.emp-table):not(.data):not(.cplayer *) { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  body .learndash-wrapper table, body .wpProQuiz_content table, body .custom-cart-popup table { display: table !important; overflow: visible !important; }
}
/* Revisión móvil (2): logo dentro de su caja a ≤389 px; miniaturas de «Nuevo» de la home sin salirse */
@media (max-width: 389px) { body .site-header a.brand img { width: 104px !important; max-width: 104px !important; min-width: 0 !important; height: auto !important; } }
@media (max-width: 640px) { body .feature-mini img { max-width: 100%; flex: none; } body .feature-mini { min-width: 0; } }

/* 12. Carrito con el diseño del mockup (dialog.drawer de componentes.html). Solo aspecto: el marcado y la lógica siguen en custom_cart_popup() de functions.php */
@keyframes campusCartIn { from { transform: translateX(100%); } to { transform: none; } }
body #custom-cart-overlay.custom-cart-overlay { background: rgba(17, 17, 24, .45) !important; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
body #custom-cart-popup.custom-cart-popup { top: 0 !important; right: 0 !important; bottom: 0 !important; left: auto !important; transform: none !important; width: min(440px, 100%) !important; max-width: 100% !important; height: 100dvh !important; max-height: 100dvh !important; border-radius: 0 !important; background: var(--paper, #f3f9fb) !important; color: var(--ink, #0d3b52); box-shadow: -20px 0 60px -20px rgba(17, 17, 24, .35) !important; }
body #custom-cart-popup.custom-cart-popup[style*="flex"] { animation: campusCartIn .35s var(--ease, cubic-bezier(.2, .7, .2, 1)); }
body #custom-cart-popup .custom-cart-header { background: var(--paper, #f3f9fb) !important; padding: 20px 24px !important; border-bottom: 1px solid var(--line, #e2ebee) !important; gap: 16px; }
body #custom-cart-popup .custom-cart-title { font: 800 var(--step-2, 1.6rem)/1.1 var(--f-display, "Schibsted Grotesk", sans-serif) !important; letter-spacing: -.02em; color: var(--ink, #0d3b52); }
body #custom-cart-popup .custom-cart-close,
body #custom-cart-popup .remove-item { flex: none; display: grid !important; place-items: center; width: 40px !important; height: 40px !important; padding: 0 !important; border: 1px solid var(--line, #e2ebee) !important; border-radius: 10px !important; background: var(--white, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%230d3b52'%3E%3Cpath d='M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128 50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128Z'/%3E%3C/svg%3E") center / 18px no-repeat !important; font-size: 0 !important; color: transparent !important; text-decoration: none !important; cursor: pointer; transition: border-color .2s, background-color .2s; }
body #custom-cart-popup .custom-cart-close:hover, body #custom-cart-popup .remove-item:hover { border-color: var(--line-strong, #c9d6dc) !important; background-color: var(--accent-soft, #ddf5f6) !important; }
body #custom-cart-popup .custom-cart-close:focus-visible, body #custom-cart-popup .remove-item:focus-visible { outline: 2px solid var(--accent, #40c6ce); outline-offset: 2px; }
body #custom-cart-popup .custom-cart-body { flex: 1 1 auto !important; overflow: hidden; }
body #custom-cart-popup #cart-items-list { padding: 8px 24px !important; margin: 0 !important; height: 100%; overflow-y: auto; }
body #custom-cart-popup #cart-items-list > p { margin: 0 !important; padding: 48px 0; text-align: center; color: var(--ink-3, #5b6b75); }
body #custom-cart-popup .custom-cart-item { margin: 0 !important; padding: 16px 0 !important; border: 0 !important; border-bottom: 1px solid var(--line, #e2ebee) !important; border-radius: 0 !important; box-shadow: none !important; background: none !important; }
body #custom-cart-popup .custom-cart-item .xoo-wsc-product:not(.subscriptions-bundle) { display: grid !important; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: none !important; }
body #custom-cart-popup .xoo-wsc-img-col { width: 72px !important; max-width: 72px !important; margin: 0 !important; padding: 0 !important; }
body #custom-cart-popup .xoo-wsc-img-col img { display: block; width: 72px !important; height: 52px !important; object-fit: cover; border-radius: 8px; }
body #custom-cart-popup .xoo-wsc-sum-col { min-width: 0; padding: 0 !important; margin: 0 !important; }
body #custom-cart-popup .xoo-wsc-sm-info { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; margin: 0 !important; }
body #custom-cart-popup .xoo-wsc-sm-left { display: contents; }
body #custom-cart-popup .xoo-wsc-pname { font: 600 .93rem/1.3 var(--f-body, "Figtree", sans-serif) !important; color: var(--ink, #0d3b52) !important; }
body #custom-cart-popup .xoo-wsc-pqty { margin: 0 !important; text-align: right; white-space: nowrap; }
body #custom-cart-popup .xoo-wsc-pqty-price { font-size: .93rem; font-weight: 600; color: var(--ink, #0d3b52); font-variant-numeric: normal; }
body #custom-cart-popup .xoo-wsc-pqty-price + span { display: block; margin: 2px 0 0 !important; font-size: .72rem !important; }
body #custom-cart-popup .xoo-wsc-sm-right, body #custom-cart-popup .xoo-wsc-smr-del { margin: 0 !important; padding: 0 !important; }
body #custom-cart-popup .xoo-wsc-footer { padding: 20px 24px calc(20px + env(safe-area-inset-bottom)) !important; border-top: 1px solid var(--line, #e2ebee) !important; background: var(--paper, #f3f9fb) !important; display: grid; gap: 12px; }
body #custom-cart-popup #cart-total .xoo-wsc-bt-ft { margin: 0 !important; padding: 0 !important; border: 0 !important; }
body #custom-cart-popup #cart-total .xoo-wsc-bt-ft-in { display: flex !important; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 1.05rem; color: var(--ink, #0d3b52); }
body #custom-cart-popup #cart-total .xoo-wsc-bt-ft-l span, body #custom-cart-popup #cart-total .xoo-wsc-bt-ft-amt { color: var(--ink, #0d3b52) !important; font-size: 1.05rem !important; }
body #custom-cart-popup #cart-total .xoo-wsc-bt-ft-amt { font-weight: 600; font-variant-numeric: normal; }
body #custom-cart-popup .xoo-wsc-ft-buttons-cont { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 4px; margin: 0 !important; width: 100%; }
body #custom-cart-popup #checkout-button[style*="none"] { display: none !important; }
body #custom-cart-popup .xoo-wsc-ft-btn { width: 100% !important; margin: 0 !important; }
body #custom-cart-popup #checkout-button:not([style*="none"]) { display: flex !important; }
body #custom-cart-popup .xoo-wsc-ft-btn-checkout { min-height: 50px; border-radius: 12px !important; font-weight: 600 !important; background: var(--brand-sky, #40c6ce) !important; color: #06302f !important; }
body #custom-cart-popup .xoo-wsc-ft-btn-checkout:hover { background: #36bcc4 !important; }
body #custom-cart-popup .xoo-wsc-ft-btn-continue { min-height: 40px; padding: 8px 12px !important; border: 0 !important; background: none !important; color: #0b7a80 !important; font-weight: 600 !important; white-space: nowrap; justify-self: center; width: auto !important; }
body #custom-cart-popup .xoo-wsc-ft-btn-continue:hover { text-decoration: underline !important; }
@media (max-width: 480px) { body #custom-cart-popup .custom-cart-header { padding: 16px 20px !important; } body #custom-cart-popup #cart-items-list { padding: 4px 20px !important; } body #custom-cart-popup .xoo-wsc-footer { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)) !important; } body #custom-cart-popup .custom-cart-item .xoo-wsc-product:not(.subscriptions-bundle) { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; } body #custom-cart-popup .xoo-wsc-img-col, body #custom-cart-popup .xoo-wsc-img-col img { width: 64px !important; max-width: 64px !important; height: 48px !important; } body #custom-cart-popup .xoo-wsc-sm-info { gap: 10px; } }
body #custom-cart-popup .xoo-wsc-sm-right { padding-left: 6px !important; }

/* Revisión móvil (3) */
/* Retos: la etiqueta «Reto de la semana» dentro de la tarjeta (la tarjeta recorta lo que sale) */
body .reto-card .reto-card__week { top: 12px; right: 12px; }
/* Banda «¿Quieres enseñar…?»: en móvil una columna, ilustración encima sin pisar el título y botón entero */
@media (max-width: 760px) {
  body .band.band--art .split { grid-template-columns: minmax(0, 1fr) !important; gap: 20px; }
  body .band.band--art .band-art { flex-direction: column; align-items: flex-start; }
  body .band.band--art .band-art img { width: 180px !important; margin: -24px 0 0 -12px !important; }
  body .band.band--art .band-art h2 { max-width: none; }
  body .band.band--art .btn { white-space: normal; width: 100%; justify-content: center; }
}
/* Pie: descripción legible sobre el fondo oscuro (un estilo genérico de <p> la ponía gris) y logo alineado a la izquierda */
body .site-footer .foot-brand p { color: rgba(255, 253, 248, .75) !important; }
body .site-footer .foot-brand img { object-fit: contain; object-position: left center; }
/* Profesores: franja «¿Trabajas en el sector…?» en móvil, texto a lo ancho y botón debajo; buscador fijo opaco */
@media (max-width: 640px) {
  body .teach-strip { flex-wrap: wrap; align-items: center; gap: 12px 14px; }
  body .teach-strip p { flex: 1 1 200px; min-width: 0; margin: 0; }
  body .teach-strip .btn { flex: 1 1 100%; justify-content: center; }
  body .toolbar { background: var(--paper, #f3f9fb) !important; backdrop-filter: none !important; }
}
/* Tarjetas de formación: pie (precio/Premium + lecciones) sin columnas estrechas en móvil */
@media (max-width: 640px) {
  body .card__foot { flex-wrap: wrap; gap: 4px 12px; }
  body .card__foot > * { white-space: nowrap; }
}

/* Tarjetas de formaciones que el alumno ya tiene: etiqueta de estado, progreso y enlace directo a la lección */
body .card .card__mine { position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink, #0d3b52); font: 700 .74rem/1.2 var(--f-body, "Figtree", sans-serif); box-shadow: 0 2px 10px rgba(13, 59, 82, .18); }
body .card .card__mine i { font-size: 1rem; color: var(--brand-sky-ink, #0b7a80); }
body .card .card__mine--done { background: #0b7a80; color: #fff; }
body .card .card__mine--done i { color: #fff; }
body .card .card__prog { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 5px; background: rgba(255, 255, 255, .55); }
body .card .card__prog i { display: block; height: 100%; background: var(--brand-sky, #40c6ce); }
body .card .card__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-sky-ink, #0b7a80); white-space: nowrap; }
body .card:hover .card__go i { transform: translateX(3px); transition: transform .2s; }
body .feature-mini--mine small b { color: var(--brand-sky-ink, #0b7a80); font-weight: 700; }
/* Caja de compra: todo lo que se pulsa con cursor de mano (el botón «Comprar…» salía con la flecha normal) */
body .campus-buybox :is(button, .choice-btn, .choice-btn-buy, .choice-btn-add, .product-selector, .product-choice-card, .elementor-button, .matriculate-button, [role="button"]):not(:disabled):not([aria-disabled="true"]) { cursor: pointer !important; }
