/* ==========================================================================
   Campus Paway · Página de inicio — body.paway-home
   ========================================================================== */
body.paway-home {
	--pw-brand: #3800d7; --pw-brand-700: #2a00a8; --pw-brand-900: #14004f; --pw-brand-50: #f1edff; --pw-brand-100: #e3dbff;
	--pw-accent: #e5383b;
	--pw-ink: #110f24; --pw-ink-2: #45425e; --pw-muted: #75728d; --pw-line: #e4e2ee; --pw-line-2: #d3d0e2; --pw-bg: #f6f5fa;
	--pw-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--pw-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
	--pw-shadow: 0 1px 2px rgba(17, 15, 36, .04), 0 14px 34px -20px rgba(17, 15, 36, .3);
}
body.paway-home main#wp--skip-link--target { margin: 0 !important; padding: 0 !important; background: #fff; }
body.paway-home .wp-site-blocks > main, body.paway-home .wp-site-blocks > footer { margin-block-start: 0 !important; }
.paway-home-page { font-family: var(--pw-font); color: var(--pw-ink); line-height: 1.55; }
.paway-home-page *, .paway-home-page *::before, .paway-home-page *::after { box-sizing: border-box; }
.paway-home-page h1, .paway-home-page h2, .paway-home-page h3 { font-family: var(--pw-font) !important; margin: 0; letter-spacing: -.02em; }
.paway-home-page p { margin: 0; }
.ph-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }

/* Botones */
.ph-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 12px;
	font: 600 15.5px/1.2 var(--pw-font); text-decoration: none !important; transition: transform .15s, background .15s, box-shadow .15s;
}
.ph-btn:hover { transform: translateY(-1px); }
.ph-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ph-btn--light { color: var(--pw-brand-900) !important; background: #fff; box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .6); }
.ph-btn--light::after { content: "→"; }
.ph-btn--light:hover { background: var(--pw-brand-50); }
.ph-btn--outline { color: #fff !important; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.ph-btn--outline:hover { background: rgba(255, 255, 255, .16); }

/* Hero */
.ph-hero {
	position: relative; isolation: isolate; overflow: hidden; color: #fff; padding-block: clamp(48px, 8vw, 96px);
	background:
		radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .12) 1px, transparent 1.4px) 0 0 / 24px 24px,
		radial-gradient(70% 90% at 100% 0%, rgba(110, 61, 255, .55) 0%, rgba(110, 61, 255, 0) 60%),
		radial-gradient(50% 60% at 0% 100%, rgba(229, 56, 59, .22) 0%, rgba(229, 56, 59, 0) 70%),
		linear-gradient(165deg, #1d0076 0%, #14004f 55%, #0b0230 100%);
}
.ph-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(28px, 5vw, 64px); }
.ph-eyebrow {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px !important; padding: 6px 12px; border-radius: 999px;
	font: 600 13px/1.2 var(--pw-font); color: #d9d1ff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.ph-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pw-accent); box-shadow: 0 0 0 3px rgba(229, 56, 59, .25); }
.ph-hero h1 { font-size: clamp(38px, 5.6vw, 66px) !important; line-height: 1.02 !important; font-weight: 800 !important; color: #fff !important; letter-spacing: -.035em; }
.ph-hero h1 span { color: #c9bfff; }
.ph-lead { margin-top: 20px !important; max-width: 52ch; font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.6; color: rgba(255, 255, 255, .8); }
.ph-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ph-hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 34px 0 0 !important; padding: 22px 0 0 !important; list-style: none; border-top: 1px solid rgba(255, 255, 255, .14); }
.ph-hero__facts li { margin: 0; }
.ph-hero__facts b { display: block; font: 700 19px/1.2 var(--pw-font); color: #fff; }
.ph-hero__facts span { font-size: 13px; color: rgba(255, 255, 255, .65); }
.ph-video {
	position: relative; overflow: hidden; border-radius: 22px; aspect-ratio: 16 / 10; background: #0b0230;
	box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .12);
}
.ph-video video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Secciones */
.ph-section { padding-block: clamp(56px, 8vw, 96px); }
.ph-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(24px, 3vw, 36px); }
.ph-head--center { justify-content: center; text-align: center; }
.ph-kicker { margin-bottom: 8px !important; font: 700 12.5px/1.2 var(--pw-font); letter-spacing: .08em; text-transform: uppercase; color: var(--pw-brand); }
.ph-head h2 { font-size: clamp(26px, 3.2vw, 38px) !important; line-height: 1.12 !important; font-weight: 800 !important; color: var(--pw-ink) !important; max-width: 24ch; }
.ph-head--center h2 { margin-inline: auto; }
.ph-sub { margin-top: 10px !important; font-size: 15px; color: var(--pw-muted); }
.ph-link { font: 600 15px/1.2 var(--pw-font); color: var(--pw-brand) !important; text-decoration: none !important; white-space: nowrap; }
.ph-link::after { content: " →"; }
.ph-link:hover { text-decoration: underline !important; }

/* Programa activo: módulos */
.ph-program { background: var(--pw-bg); }
.ph-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.ph-module {
	display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid var(--pw-line);
	text-decoration: none !important; color: inherit; box-shadow: 0 1px 2px rgba(17, 15, 36, .04); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ph-module:hover { transform: translateY(-3px); border-color: var(--pw-line-2); box-shadow: var(--pw-shadow); }
.ph-module:focus-visible { outline: 2px solid var(--pw-brand); outline-offset: 3px; }
.ph-module__media { display: block; aspect-ratio: 16 / 9; background: var(--pw-brand-900); overflow: hidden; }
.ph-module__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ph-module:hover .ph-module__media img { transform: scale(1.04); }
.ph-module__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.ph-module__n { font: 600 12px/1.2 var(--pw-mono); color: var(--pw-brand); }
.ph-module__t { font: 700 15.5px/1.3 var(--pw-font); color: var(--pw-ink); }
.ph-module__by { margin-top: auto; padding-top: 8px; font-size: 13px; color: var(--pw-muted); }

/* Cómo funciona */
.ph-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 !important; padding: 0 !important; list-style: none; counter-reset: none; }
.ph-steps li { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 22px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--pw-line); }
.ph-steps li:not(:last-child)::after {
	content: ""; position: absolute; top: 40px; right: -17px; width: 18px; height: 1px; background: var(--pw-line-2);
}
.ph-steps__n {
	display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 6px; border-radius: 10px;
	font: 700 15px/1 var(--pw-mono); color: #fff; background: var(--pw-brand);
}
.ph-steps b { font-size: 16.5px; font-weight: 700; color: var(--pw-ink); }
.ph-steps span:not(.ph-steps__n) { font-size: 14.5px; color: var(--pw-ink-2); }

/* Líneas de formación */
.ph-lines { background: var(--pw-bg); }
.ph-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ph-card { padding: 26px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--pw-line); transition: border-color .18s, box-shadow .18s; }
.ph-card:hover { border-color: var(--pw-brand-100); box-shadow: var(--pw-shadow); }
.ph-card__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 12px; color: var(--pw-brand); background: var(--pw-brand-50); }
.ph-card__icon svg { width: 24px; height: 24px; }
.ph-card h3 { margin-bottom: 8px !important; font-size: 19px !important; font-weight: 700 !important; color: var(--pw-ink) !important; }
.ph-card p { font-size: 15px; color: var(--pw-ink-2); }

/* Llamado a la acción */
.ph-cta { padding-block: clamp(44px, 6vw, 72px); color: #fff; background:
	radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .12) 1px, transparent 1.4px) 0 0 / 24px 24px,
	linear-gradient(120deg, #2c00b0 0%, #3800d7 55%, #5a2bff 100%); }
.ph-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.ph-cta h2 { font-size: clamp(24px, 3vw, 34px) !important; font-weight: 800 !important; color: #fff !important; }
.ph-cta p { margin-top: 8px !important; font-size: 16px; color: rgba(255, 255, 255, .8); }

/* Artículos */
.ph-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.ph-post { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid var(--pw-line); text-decoration: none !important; color: inherit; transition: transform .18s, box-shadow .18s; }
.ph-post:hover { transform: translateY(-3px); box-shadow: var(--pw-shadow); }
.ph-post__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--pw-bg); }
.ph-post__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-post__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.ph-post time { font-size: 13px; color: var(--pw-muted); }
.ph-post__t { font: 700 17px/1.35 var(--pw-font); color: var(--pw-ink); }
.ph-post__more { margin-top: 4px; font: 600 14px/1.2 var(--pw-font); color: var(--pw-brand); }
.ph-post__more::after { content: " →"; }

/* Responsive */
@media (max-width: 960px) {
	.ph-hero__grid { grid-template-columns: 1fr; }
	.ph-hero__media { order: -1; }
	.ph-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ph-steps li::after { display: none; }
	.ph-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.ph-steps { grid-template-columns: 1fr; }
	.ph-actions .ph-btn { width: 100%; }
	.ph-hero__facts { gap: 14px 22px; }
	.ph-cta__inner .ph-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.ph-btn, .ph-module, .ph-module__media img, .ph-post, .ph-card { transition: none; }
	.ph-module:hover, .ph-post:hover, .ph-btn:hover { transform: none; }
}

/* Título del hero: "No le temas a la IA." en una línea en escritorio */
.ph-hero h1 { font-size: clamp(36px, 4.3vw, 56px) !important; }
@media (min-width: 961px) { .ph-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
