/* ==========================================================================
   Landing Prácticas y Memorias 2027
   Figma: landing-practicas-memorias-2027 (nodo 1:7), lienzo de 1440 px.
   Todo va bajo .pym27: el tema carga Materialize y un reset `body *` que
   pisarían los estilos si no se acotan.
   ========================================================================== */

html { scroll-behavior: smooth; }

.pym27 {
	--pym-orange: #F16027;
	--pym-orange-share: #FF5C35;
	--pym-amber: #FC9932;
	--pym-yellow: #FFC400;
	--pym-red: #C9381F;
	--pym-wine: #952D33;
	--pym-green: #004B49;
	--pym-green-dark: #08302F;
	--pym-beige: #F0EAE3;
	--pym-beige-soft: #F7F4F0;
	--pym-beige-light: #F8F5F1;
	--pym-slate: #1E293B;
	--pym-slate-soft: #64748B;
	--pym-line: #E2E8F0;

	--pym-font-title: "cronos-pro", "questa-sans", sans-serif;
	--pym-font-body: "questa-sans", sans-serif;

	/* El header del tema es fijo y mide 93 px. */
	padding-top: 93px;
	font-family: var(--pym-font-body);
	color: #000;
	background: #fff;
	overflow-x: clip;
}

.pym27 *,
.pym27 *::before,
.pym27 *::after { box-sizing: border-box; }

/* Resets con :where() para que pesen 0,1,0: le ganan a las reglas por etiqueta
   del tema (h2{margin-bottom:20px}) pero pierden contra las clases de abajo. */
.pym27 :where(img) { display: block; max-width: 100%; }

/* El formulario queda fuera de los resets: debe verse como en la página actual. */
.pym27 :where(h1, h2, h3, h4, p, ul, ol):where(:not(.pym27-form *)) {
	margin: 0;
	padding: 0;
	font-weight: inherit;
	letter-spacing: 0;
	text-transform: none;
}

.pym27 :where(ul, ol, li):where(:not(.pym27-form *)) { list-style: none; }
.pym27 :where(ul li):where(:not(.pym27-form *))::before { content: none; }

.pym27 section[id] { scroll-margin-top: 100px; }

/* ---------------------------------------------------------------- header del tema
   Sin scroll, el tema deja el header transparente con el logo invertido y
   bajado 20vh, pensado para páginas con foto oscura arriba. En el diseño el
   header va siempre en su estado "con scroll": fondo blanco y logo oscuro.
   Mismo peso que las reglas del tema (0,2,2) y se cargan después, así que ganan. */
body.page-template-template-pym-2027-php:not(.scrolled) header { background: #fff; color: #000; }
body.page-template-template-pym-2027-php:not(.scrolled) header::before { display: none; }
body.page-template-template-pym-2027-php:not(.scrolled) header .logo { filter: none; transform: none; height: 58px; }
body.page-template-template-pym-2027-php:not(.scrolled) header .sub-menu { background: #fff; box-shadow: 0 0 4px -1px rgba(201,201,201,1) !important; }
body.page-template-template-pym-2027-php:not(.scrolled) .language-chooser::before { filter: none; }
body.page-template-template-pym-2027-php:not(.scrolled) .language-chooser { border-left-color: rgba(0,0,0,.2); border-right-color: rgba(0,0,0,.2); }
body.page-template-template-pym-2027-php:not(.scrolled) #nav-icon span { background: #000; }

/* Materialize: ul:not(.browser-default) { padding-left: 0 } pesa 0,1,1. */
.pym27 .pym27-checks { padding-left: 16px; }

/* ---------------------------------------------------------------- piezas */

.pym27-badge {
	display: inline-flex;
	align-self: flex-start;
	padding: 6px 16px;
	border-radius: 100px;
	background: var(--pym-amber);
	color: #fff;
	font: 700 12px/15px var(--pym-font-body);
	text-transform: uppercase;
}

.pym27-badge--yellow {
	background: var(--pym-yellow);
	color: #000;
}

.pym27-badge--outline {
	background: transparent;
	border: 1px solid #fff;
}

.pym27-h2 {
	font: 700 40px/48px var(--pym-font-title);
	color: #000;
}
.pym27-h2--orange { color: var(--pym-orange); line-height: 44px; }
.pym27-h2--green  { color: var(--pym-green); }

.pym27-h3 { font: 700 22px/28px var(--pym-font-body); }
.pym27-h4 { font: 700 18px/22px var(--pym-font-body); }

.pym27-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 28px;
	border-radius: 100px;
	border: 1px solid currentColor;
	background: transparent;
	font: 700 18px/22px var(--pym-font-body);
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.pym27-btn--outline-light { color: #fff; }
.pym27-btn--outline-light:hover { background: #fff; color: var(--pym-orange); }
.pym27-btn--solid { color: #fff; border-color: var(--pym-orange); background: var(--pym-orange); }
.pym27-btn--solid:hover,
.pym27-btn--solid:focus { color: #fff; border-color: #d94f19; background: #d94f19; }

.pym27-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font: 700 18px/22px var(--pym-font-body);
	text-decoration: none;
}
.pym27-link-arrow svg { transition: transform .2s; }
.pym27-link-arrow:hover,
.pym27-link-arrow:focus { color: #fff; }
.pym27-link-arrow:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------------- hero */

.pym27-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 20px 30px 0;
}

.pym27-hero__card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
	padding: 60px;
	border-radius: 40px;
	background: var(--pym-orange);
	color: #fff;
}

.pym27-hero__title { font: 700 50px/50px var(--pym-font-title); }
.pym27-hero__lead  { font: 500 30px/38px var(--pym-font-body); color: var(--pym-yellow); }
.pym27-hero__text  { font: 700 22px/29px var(--pym-font-body); }

.pym27-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px;
	margin-top: 20px;
}

.pym27-hero__media img {
	width: 100%;
	height: 100%;
	/* La altura la manda la tarjeta naranja: así la foto de portada queda
	   apaisada (≈4:3) y cabe el grupo completo sin recortar a nadie. */
	object-fit: cover;
	border-radius: 40px;
}

/* ---------------------------------------------------------------- sobre el programa */

.pym27-about {
	display: grid;
	grid-template-columns: 600fr 600fr;
	align-items: center;
	gap: 80px;
	max-width: 1440px;
	margin: 0 auto;
	padding: 80px;
}

.pym27-about__media img {
	width: 100%;
	height: auto; /* el atributo height="960" del <img> anularía el aspect-ratio */
	aspect-ratio: 600 / 480;
	object-fit: cover;
	border-radius: 30px;
}

.pym27-about__body { display: flex; flex-direction: column; gap: 24px; }
.pym27-about__lead { font: 500 22px/31px var(--pym-font-body); }
.pym27-about__note {
	padding: 24px;
	border-radius: 16px;
	background: var(--pym-beige);
	color: var(--pym-green-dark);
	font: 500 15px/21px var(--pym-font-body);
}

/* ---------------------------------------------------------------- información del programa */

.pym27-info {
	background: var(--pym-beige);
	padding: 100px 30px 0;
}

.pym27-info__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	max-width: 1380px;
	margin: 0 auto;
}

.pym27-card {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 20px;
	min-height: 380px;
	padding: 32px;
	border-radius: 30px;
	color: #fff;
	box-shadow: 0 12px 24px rgba(15, 23, 42, .03);
}
.pym27-card--wine   { background: var(--pym-wine); }
.pym27-card--red    { background: var(--pym-red); }
.pym27-card--orange { background: var(--pym-orange); }
.pym27-card--amber  { background: var(--pym-amber); }

.pym27-card__title { font: 700 40px/44px var(--pym-font-title); }
.pym27-card__text  { font: 400 17px/21px var(--pym-font-body); }

.pym27-card__icon { display: block; width: 120px; height: 120px; }
.pym27-card__icon svg { width: 100%; height: 100%; }

.pym27-card__label {
	font: 700 14px/18px var(--pym-font-body);
	text-transform: uppercase;
}
.pym27-card__value {
	margin-top: -14px; /* gap de 6 px entre etiqueta y valor en el Figma */
	font: 700 40px/48px var(--pym-font-title);
}
.pym27-card__foot {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font: 700 16px/20px var(--pym-font-body);
}
.pym27-card__foot::before {
	content: "";
	width: 16px;
	height: 4px;
	border-radius: 2px;
	background: var(--pym-yellow);
}

/* ---------------------------------------------------------------- collage + llamado */

.pym27-collage { position: relative; }

.pym27-collage__canvas {
	position: relative;
	aspect-ratio: 1440 / 1040;
	max-height: 1040px;
	background: var(--pym-beige);
	overflow: hidden;
}

/* Las fotos se funden hacia el blanco de la sección siguiente. */
.pym27-collage__canvas::after {
	content: "";
	position: absolute;
	inset: 50% 0 0 0;
	background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,.46) 38%, rgba(255,255,255,.76) 63%, #fff 100%);
	pointer-events: none;
}

.pym27-collage__photo {
	position: absolute;
	left:   calc(var(--x) / 1440 * 100%);
	top:    calc(var(--y) / 1040 * 100%);
	width:  calc(var(--w) / 1440 * 100%);
	height: calc(var(--h) / 1040 * 100%);
	object-fit: cover;
	border-radius: 20px;
}

.pym27-experiences {
	position: relative;
	z-index: 1;
	display: grid;
	/* El video es un Short vertical: va al lado del texto y no a lo ancho. */
	grid-template-columns: 1fr 360px;
	align-items: center;
	gap: 72px;
	max-width: 1040px;
	/* Sube sobre la parte del collage que ya se fundió a blanco. */
	margin: -200px auto 0;
	padding: 0 40px 100px;
}

.pym27-experiences__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 32px;
}

.pym27-experiences__title { font: 700 44px/52px var(--pym-font-title); }

/* Doble clase: el tema estiliza `button` con fondo verde, padding y margin-top. */
.pym27 .pym27-video {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 9 / 16;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 30px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 24px 48px rgba(15, 23, 42, .18);
	cursor: pointer;
}
.pym27 .pym27-video img,
.pym27 .pym27-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}
.pym27 .pym27-video img { transition: transform .4s, opacity .3s; }
.pym27 .pym27-video:hover img { transform: scale(1.03); opacity: .85; }

.pym27-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: var(--pym-orange);
	color: #fff;
	transform: translate(-50%, -50%);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
	transition: transform .2s;
}
.pym27-video__play svg { margin-left: 4px; }
.pym27 .pym27-video:hover .pym27-video__play { transform: translate(-50%, -50%) scale(1.08); }

.pym27 .pym27-video--pendiente { cursor: default; }
.pym27 .pym27-video--pendiente img { filter: grayscale(1) brightness(.55); }
.pym27 .pym27-video--pendiente:hover img { transform: none; opacity: 1; }
.pym27-video__aviso {
	position: absolute;
	left: 50%;
	bottom: 28px;
	padding: 6px 16px;
	border-radius: 100px;
	background: rgba(255, 255, 255, .92);
	color: #000;
	font: 700 14px/18px var(--pym-font-body);
	transform: translateX(-50%);
	white-space: nowrap;
}

.pym27-deadline {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 20px 32px;
	border-radius: 20px;
	border: 1px solid #fff;
	background: var(--pym-orange);
	color: #fff;
	font: 700 20px/25px var(--pym-font-body);
}
.pym27-deadline svg { flex: none; }

/* ---------------------------------------------------------------- requisitos */

.pym27-req {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 80px 80px;
}

.pym27-req__head {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 80px;
	border-top: 1px solid var(--pym-line);
}

.pym27-req__cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	margin-top: 40px;
}

.pym27-req__col { display: flex; flex-direction: column; gap: 40px; }
.pym27-req__block { display: flex; flex-direction: column; gap: 16px; }
.pym27-req__cta { display: flex; justify-content: center; margin-top: 56px; }

.pym27-checks { display: flex; flex-direction: column; gap: 12px; }
.pym27-checks li {
	display: flex;
	gap: 12px;
	font: 400 16px/22px var(--pym-font-body);
}
.pym27-checks svg { flex: none; margin-top: 2px; color: var(--pym-orange); }
.pym27-checks strong { font-weight: 700; }

.pym27-panel {
	display: flex;
	flex-direction: column;
	padding: 30px;
	border-radius: 30px;
}
.pym27-panel--areas { gap: 20px; background: var(--pym-beige-soft); }

.pym27-area { display: flex; flex-direction: column; gap: 10px; }
.pym27-area__name { font: 500 16px/20px var(--pym-font-body); }

.pym27-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pym27-chips li {
	padding: 6px 12px;
	border-radius: 8px;
	border: 1px solid var(--pym-line);
	background: #fff;
	font: 500 14px/18px var(--pym-font-body);
}

.pym27-req__photos {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.pym27-req__photos img {
	width: 100%;
	aspect-ratio: 192 / 243;
	object-fit: cover;
	border-radius: 30px;
}

/* ---------------------------------------------------------------- inclusión */

.pym27-diversity {
	display: grid;
	grid-template-columns: 560fr 640fr;
	align-items: center;
	gap: 64px;
	padding: 80px max(80px, calc((100% - 1280px) / 2));
	background: var(--pym-beige-light);
}

.pym27-diversity__media img {
	width: 100%;
	aspect-ratio: 560 / 319;
	object-fit: cover;
	border-radius: 30px;
}

.pym27-diversity__body { display: flex; flex-direction: column; gap: 24px; }
.pym27-diversity__text { font: 500 18px/23px var(--pym-font-body); color: var(--pym-slate); }
/* ---------------------------------------------------------------- cierre */

.pym27-closing {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 540px;
	padding: 80px max(80px, calc((100% - 1280px) / 2));
	background: #1e1e1e var(--bg) center / cover no-repeat;
	color: #fff;
}
.pym27-closing::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(264deg, rgba(30,30,30,0) 0%, rgba(30,30,30,.7) 100%);
}

.pym27-closing__body {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 30px;
	max-width: 520px;
}
.pym27-closing__title { font: 700 50px/50px var(--pym-font-title); }

/* ---------------------------------------------------------------- formulario */

.pym27-form { padding: 40px 30px 100px; }
.pym27-form__inner { max-width: 100%; }
.pym27-form input[type="file"] { max-width: 100%; }

/* ==========================================================================
   Responsivo
   ========================================================================== */

@media (max-width: 1199px) {
	.pym27-hero__card { padding: 48px; }
	.pym27-hero__title { font-size: 42px; line-height: 44px; }
	.pym27-hero__lead  { font-size: 26px; line-height: 32px; }
	.pym27-hero__text  { font-size: 19px; line-height: 26px; }

	.pym27-about { gap: 48px; padding: 64px 40px; }
	.pym27-req   { padding: 0 40px 64px; }
	.pym27-diversity, .pym27-closing { padding-left: 40px; padding-right: 40px; }

	.pym27-info__grid { grid-template-columns: repeat(2, 1fr); }
	.pym27-card { min-height: 320px; }

	.pym27-experiences__title { font-size: 34px; line-height: 42px; }
}

@media (max-width: 991px) {
	.pym27-hero { grid-template-columns: 1fr; }
	.pym27-hero__card { min-height: 0; }
	.pym27-hero__media img { min-height: 0; aspect-ratio: 4 / 3; }

	.pym27-about,
	.pym27-diversity,
	.pym27-req__cols { grid-template-columns: 1fr; }

	/* En pantallas angostas el collage pasa a una grilla. */
	.pym27-collage__canvas {
		aspect-ratio: auto;
		max-height: none;
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 12px;
		padding: 48px 20px 120px;
	}
	.pym27-collage__canvas::after { inset: 55% 0 0 0; }
	.pym27-collage__photo {
		position: static;
		width: 100%;
		height: auto;
		aspect-ratio: 3 / 4;
	}
	.pym27-collage__photo:nth-child(3n+2) { transform: translateY(24px); }

	.pym27-experiences {
		grid-template-columns: 1fr;
		justify-items: center;
		gap: 40px;
		margin-top: -60px;
		text-align: center;
	}
	.pym27-experiences__text { align-items: center; }
	.pym27-experiences__media { width: 100%; max-width: 340px; }
}

@media (max-width: 767px) {

	.pym27-hero { padding: 16px 16px 0; }
	.pym27-hero__card { padding: 36px 24px; border-radius: 28px; }
	.pym27-hero__media img { border-radius: 28px; }
	.pym27-hero__title { font-size: 34px; line-height: 36px; }
	.pym27-hero__lead  { font-size: 22px; line-height: 28px; }
	.pym27-hero__text  { font-size: 17px; line-height: 24px; }

	.pym27-h2, .pym27-card__title, .pym27-experiences__title { font-size: 28px; line-height: 33px; }

	.pym27-about { padding: 48px 16px; gap: 32px; }
	.pym27-info  { padding: 48px 16px 0; }
	.pym27-info__grid { grid-template-columns: 1fr; gap: 16px; }
	.pym27-card { min-height: 0; }
	.pym27-card__icon { width: 72px; height: 72px; }
	.pym27-card__value { font-size: 34px; line-height: 40px; }

	/* Móvil: grilla compacta de 3 columnas con 6 fotos, para no alargar la página. */
	.pym27-collage__canvas { gap: 8px; padding: 32px 16px 90px; }
	.pym27-collage__photo { border-radius: 14px; }
	.pym27-collage__photo:nth-child(3n+2) { transform: translateY(16px); }
	.pym27-collage__photo:nth-child(n+7) { display: none; }

	.pym27-experiences { margin-top: -40px; padding: 0 16px 56px; gap: 28px; }
	.pym27-experiences__text { gap: 24px; }
	.pym27-experiences__media { max-width: 300px; }
	.pym27 .pym27-video { border-radius: 20px; }
	.pym27-video__play { width: 68px; height: 68px; }
	.pym27-video__aviso { bottom: 14px; font-size: 12px; }
	.pym27-about__lead { font-size: 19px; line-height: 27px; }
	.pym27-req__cta { margin-top: 36px; }
	.pym27-req__cta .pym27-btn { width: 100%; text-align: center; }
	.pym27-deadline { padding: 16px 20px; font-size: 17px; line-height: 22px; text-align: left; }

	.pym27-req { padding: 0 16px 48px; }
	.pym27-req__head { padding-top: 48px; }
	.pym27-panel { padding: 24px 20px; border-radius: 24px; }
	.pym27-req__photos { gap: 10px; }
	.pym27-req__photos img { border-radius: 18px; }

	.pym27-diversity { padding: 48px 16px; gap: 32px; }

	.pym27-closing { min-height: 0; padding: 72px 20px; }
	.pym27-closing::before { background: linear-gradient(0deg, rgba(30,30,30,.75), rgba(30,30,30,.45)); }
	.pym27-closing__title { font-size: 34px; line-height: 38px; }

	.pym27-form { padding: 32px 16px 64px; }
}
