/* Portada de los cursos online (inc/online.php, maqueta A del 05/11). Se apoya en tokens, marco y catalogo.css. */

.ol h1,.ol h2{text-wrap:balance;letter-spacing:-.02em;margin:0}
.ol-ico{display:inline-block;width:24px;height:24px;flex:none}
.ol-ico svg{display:block;width:100%;height:100%}
.ol .cw-btn .ol-ico{width:20px;height:20px;margin-right:8px;vertical-align:-4px}

/* Foto grande con el buscador */
.ol-hero{position:relative;min-height:560px;display:flex;align-items:center;overflow:hidden;background:var(--ink)}
.ol .ol-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% 30%}
.ol-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(27,34,51,.84) 0%,rgba(27,34,51,.56) 42%,rgba(27,34,51,0) 72%)}
.ol-hero__txt{position:relative;z-index:1;width:100%;padding-block:52px 60px;color:#fff}
.ol-migas{font-size:14px;color:rgba(255,255,255,.8);margin-bottom:22px}
.ol-migas a{color:#fff;text-decoration:none}
.ol-migas a:hover{text-decoration:underline}
.ol-hero h1{font-size:clamp(38px,5.4vw,68px);line-height:1.02;font-weight:800;letter-spacing:-.035em;max-width:13ch;color:#fff}
.ol-hero h1 span{color:var(--yellow)}
.ol .ol-hero p{font-size:19px;max-width:34ch;margin:16px 0 0;color:rgba(255,255,255,.92)}
.ol .ol-hero .ct-buscar{max-width:580px}
.ol .ol-hero .ct-buscar input{border-color:#fff;box-shadow:0 18px 44px rgba(0,0,0,.25)}
.ol .ol-ventajas{display:flex;flex-wrap:wrap;gap:12px 24px;list-style:none;padding:0;margin:28px 0 0;font-weight:700;font-size:15.5px}
.ol-ventajas li{display:flex;gap:10px;align-items:center}
.ol-ventajas .ol-ico{width:36px;height:36px;padding:8px;border-radius:50%;background:var(--yellow);color:var(--ink)}

/* Mosaico de temas */
.ol-sec{padding-block:64px}
.ol .ol-t{font-size:clamp(28px,3.4vw,42px);font-weight:800;color:var(--ink)}
.ol .ol-sub{color:var(--muted);font-size:17.5px;margin:8px 0 30px}
.ol-mosaico{display:grid;grid-template-columns:repeat(4,1fr);grid-auto-rows:210px;gap:14px}
.ol .ol-foto{position:relative;border-radius:var(--r-card);overflow:hidden;text-decoration:none;color:#fff;isolation:isolate;background:var(--ink)}
.ol .ol-foto img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.ol-foto:hover img{transform:scale(1.05)}
.ol-foto::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(27,34,51,0) 35%,rgba(27,34,51,.86));z-index:0}
.ol-foto:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.ol-foto__pie{position:absolute;left:16px;right:16px;bottom:14px;z-index:1;display:flex;gap:12px;align-items:center}
.ol-foto .ol-ico{width:42px;height:42px;padding:9px;border-radius:13px;background:var(--yellow);color:var(--ink)}
.ol .ol-foto b{display:block;font-size:18px;line-height:1.2;color:#fff}
.ol-foto small{font-weight:600;opacity:.92;font-size:14px}
.ol-foto--g{grid-column:span 2;grid-row:span 2}
.ol .ol-foto--g b{font-size:26px}
.ol-foto--g .ol-ico{width:52px;height:52px;padding:11px}
.ol-foto--a{grid-row:span 2}

/* Así de fácil */
.ol-como{background:var(--bg2);padding-block:64px}
.ol-como__rejilla{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center}
.ol .ol-como__rejilla>img{border-radius:var(--r-card);aspect-ratio:4/3;object-fit:cover;width:100%;height:auto}
.ol-pasos{list-style:none;padding:0;margin:26px 0 0;display:grid;gap:20px}
.ol-pasos li{display:grid;grid-template-columns:56px 1fr;gap:16px;align-items:start}
.ol-pasos .ol-ico{width:56px;height:56px;padding:14px;border-radius:18px;background:#fff;color:var(--orange);box-shadow:0 8px 22px rgba(27,34,51,.08)}
.ol-pasos b{font-size:19px;display:block;color:var(--ink)}
.ol .ol-pasos p{margin:2px 0 0;color:var(--muted)}
.ol .ol-llama{display:flex;gap:10px;flex-wrap:wrap;margin:28px 0 0}

/* FUNDAE */
.ol-fundae{background:var(--yellow);overflow:hidden}
.ol-fundae__rejilla{display:grid;grid-template-columns:1.2fr .8fr;gap:30px;align-items:center;padding-block:50px}
.ol-fundae h2{font-size:clamp(26px,3vw,36px);font-weight:800;max-width:22ch;color:var(--ink)}
.ol .ol-fundae p{margin:10px 0 20px;max-width:50ch;font-weight:500;color:var(--ink)}
.ol .ol-fundae img{border-radius:var(--r-card);aspect-ratio:4/3;object-fit:cover;width:100%;height:auto;transform:rotate(2deg);box-shadow:0 22px 50px rgba(27,34,51,.25)}
.ol .ol-btn-ink{background:var(--ink);color:#fff}
.ol .ol-btn-ink:hover{background:#000;color:#fff}

@media (max-width:980px){
	.ol-mosaico{grid-template-columns:repeat(2,1fr);grid-auto-rows:170px}
	.ol-foto--a{grid-row:span 1}
}
@media (max-width:860px){
	.ol-como__rejilla{grid-template-columns:1fr}
}
@media (max-width:760px){
	.ol-hero{min-height:0}
	.ol .ol-hero>img{object-position:70% 20%;height:62%}
	.ol-hero::after{background:linear-gradient(180deg,rgba(27,34,51,.2) 0%,rgba(27,34,51,.9) 50%,var(--ink) 62%)}
	.ol-hero__txt{padding-top:200px}
	.ol-fundae__rejilla{grid-template-columns:1fr}
	.ol .ol-fundae img{transform:none}
}
@media (max-width:480px){
	.ol-mosaico{grid-auto-rows:150px;gap:10px}
	.ol .ol-foto b{font-size:15px}
	.ol-foto .ol-ico{width:36px;height:36px;padding:7px}
	.ol .ol-foto--g b{font-size:21px}
	.ol-foto__pie{left:12px;right:12px;bottom:12px;gap:8px;flex-direction:column;align-items:flex-start}
	.ol .ol-foto--g .ol-foto__pie{flex-direction:row;align-items:center}
	.ol .ol-foto b{hyphens:auto;overflow-wrap:anywhere}
}
@media (prefers-reduced-motion:reduce){.ol-foto img{transition:none}}

/* ======== Cada tema (template-parts/online-tema.php, maqueta A del 06/11) ======== */
.ot-hero{background:var(--bg2);border-bottom:1px solid var(--line)}
.ot-hero__rejilla{display:grid;grid-template-columns:1.05fr .95fr;gap:40px;align-items:center;padding-block:36px 48px}
.ot-migas{font-size:15px;color:var(--muted)}
.ot-migas a{color:var(--ink);font-weight:700;text-decoration:none}
.ot-migas a:hover{text-decoration:underline}
.ot .ot-insignia{display:grid;place-items:center;width:64px;height:64px;border-radius:20px;background:var(--yellow);color:var(--ink);margin:18px 0 16px}
.ot-insignia .ol-ico{width:34px;height:34px}
.ot .ot-hero h1{font-size:clamp(32px,4.4vw,54px);line-height:1.05;font-weight:800;letter-spacing:-.035em}
.ot .ot-sub{font-size:18.5px;color:var(--muted);margin:12px 0 0;max-width:38ch}
.ot .ot-hero .ct-buscar{max-width:560px}
.ot-foto{position:relative}
.ot .ot-foto img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:28px}
.ot-sello{position:absolute;left:-18px;bottom:22px;background:#fff;border-radius:18px;padding:12px 16px;display:flex;gap:12px;align-items:center;box-shadow:0 18px 40px rgba(27,34,51,.16);font-weight:700;font-size:15px;line-height:1.3}
.ot-sello .ol-ico{width:40px;height:40px;padding:9px;border-radius:12px;background:var(--ink);color:var(--yellow)}
.ot-sello small{display:block;font-weight:600;color:var(--muted);font-size:13.5px}

.ot-saltos{display:flex;flex-wrap:wrap;gap:10px;padding-block:28px 6px}
.ot .ot-saltos a{display:inline-flex;align-items:center;gap:9px;padding:8px 15px 8px 9px;border-radius:999px;background:#fff;border:2px solid var(--line);text-decoration:none;font-weight:700;font-size:15px;min-height:44px}
.ot-saltos a:hover{border-color:var(--ink)}
.ot-saltos .ol-ico{width:30px;height:30px;padding:6px;border-radius:50%;background:var(--yellow-soft)}
.ot-saltos a>span:last-child{color:var(--muted);font-weight:600}

.ot-estante{padding-block:30px 10px;scroll-margin-top:90px}
.ot .ot-estante h2{display:flex;align-items:center;gap:14px;font-size:clamp(24px,2.6vw,30px);margin:0 0 18px}
.ot-estante h2 .ol-ico{width:48px;height:48px;padding:11px;border-radius:15px;background:var(--ink);color:var(--yellow)}
.ot-estante h2 small{font-size:16px;color:var(--muted);font-weight:600;letter-spacing:0}
.ot-rejilla{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.ot-curso{display:flex;flex-direction:column;border:1.5px solid var(--line);border-radius:var(--r-card);overflow:hidden;background:#fff;transition:box-shadow .25s var(--ease),transform .25s var(--ease)}
.ot-curso:hover{box-shadow:0 16px 36px rgba(27,34,51,.12);transform:translateY(-2px)}
.ot .ot-curso__img{position:relative;background:var(--bg2);aspect-ratio:16/10;display:grid;place-items:center;overflow:hidden;color:var(--ink)}
.ot .ot-curso__img img{position:absolute;inset:12px;width:calc(100% - 24px);height:calc(100% - 24px);object-fit:contain}
.ot-curso__img .ol-ico{width:64px;height:64px;padding:14px;border-radius:20px;background:var(--yellow)}
.ot-curso__txt{padding:16px 18px 18px;display:flex;flex-direction:column;gap:10px;flex:1}
.ot .ot-curso h3{font-size:17.5px;line-height:1.3;margin:0}
.ot-curso h3 a{text-decoration:none}
.ot-curso h3 a:hover{text-decoration:underline}
.ot .ot-datos{display:flex;gap:6px 14px;flex-wrap:wrap;margin:auto 0 0;font-size:14.5px;font-weight:700;color:var(--muted)}
.ot-datos span{display:inline-flex;align-items:center;gap:6px}
.ot-datos .ol-ico{width:17px;height:17px}
.ot .ot-datos .ot-precio{color:var(--ink)}
.ot .ot-curso .cw-btn{width:100%;margin-top:4px;min-height:44px;font-size:15px}
.ot .ot-vacio{padding:30px 0;font-size:18px;color:var(--muted)}

.ot-temas{padding-block:56px 10px}
.ot .ot-temas .ol-t{margin-bottom:20px}
.ot-temas__fila{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.ot-temas__fila .ol-foto{aspect-ratio:4/3}

.ot-fin{background:var(--yellow);margin-top:48px}
.ot-fin__rejilla{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center;padding-block:40px}
.ot .ot-fin h2{font-size:clamp(24px,2.8vw,34px);max-width:24ch;margin:0}
.ot .ot-fin p{margin:8px 0 0;font-weight:500;max-width:52ch;color:var(--ink)}
.ot-fin p a{font-weight:800}
.ot .ot-fin__acc{display:flex;gap:10px;flex-wrap:wrap;margin:0}
.ot .ot-fin__acc .cw-btn--borde{box-shadow:inset 0 0 0 2px var(--ink)}

@media (max-width:900px){
	.ot-hero__rejilla{grid-template-columns:1fr;gap:26px}
	.ot-foto{order:-1}
	.ot-sello{left:12px}
	.ot-temas__fila{grid-template-columns:repeat(2,1fr)}
	.ot-fin__rejilla{grid-template-columns:1fr}
}
@media (max-width:560px){
	.ot-hero__rejilla{padding-block:20px 30px}
	.ot .ot-insignia{width:54px;height:54px;margin-top:6px}
	.ot-sello{bottom:12px;padding:9px 12px;font-size:14px}
	.ot-sello .ol-ico{width:34px;height:34px;padding:7px}
	.ot-rejilla{grid-template-columns:1fr}
	.ot-curso{flex-direction:row}
	.ot .ot-curso__img{width:112px;aspect-ratio:auto;flex:none}
	.ot .ot-curso__img img{inset:6px;width:calc(100% - 12px);height:calc(100% - 12px)}
	.ot-curso__img .ol-ico{width:52px;height:52px;padding:11px}
	.ot-curso__txt{padding:12px 14px 14px;gap:8px;min-width:0}
	.ot .ot-curso h3{font-size:16px}
	.ot .ot-curso .cw-btn{min-height:44px;padding:9px 12px;font-size:14.5px}
}
@media (prefers-reduced-motion:reduce){.ot-curso{transition:none}}
