/* *********************************************************************
 * pieces.css
 * Las secciones propias del sitio: portada partida, cinta de análisis,
 * cartelera de módulos, muro de titulares, rejilla escalonada, boletín,
 * equipo y bloques de datos.
 * ******************************************************************* */

/* *********************************************************************
 * 1. Portada partida (stage)
 * Texto a la izquierda, fotografía a la derecha dentro de una ventana
 * que recorta. El desplazamiento suave de la foto lo añade el guión de
 * la casa; si no hay guión, la foto se queda quieta y se ve igual.
 * ******************************************************************* */

.stage {
	padding-top: 74px;
	padding-bottom: 74px;
	border-bottom: 1px solid var(--rule);
}

.stage-grid {
	display: grid;
	grid-template-columns: 1.02fr 0.98fr;
	gap: 54px;
	align-items: center;
}

.stage h1 {
	margin-bottom: 22px;
}

.stage-lead {
	max-width: 40em;
	margin-bottom: 30px;
	font-size: 20px;
	line-height: 1.56;
	color: var(--mu);
}

.stage-acts {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 26px;
}

.stage-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 26px;
	padding-top: 20px;
	font-size: 15px;
	color: var(--mu);
	border-top: 1px solid var(--rule);
}

.stage-art {
	position: relative;
	height: clamp(300px, 46vh, 540px);
	overflow: hidden;
	background-color: var(--rule);
}

.stage-art img {
	position: absolute;
	top: -20px;
	left: 0;
	width: 100%;
	height: calc(100% + 40px);
	object-fit: cover;
	object-position: 68% center;
}

.stage-art::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 6px;
	content: "";
	background-image: linear-gradient(90deg, #E4572E 0%, #C13A14 100%);
}

/* *********************************************************************
 * 2. Cinta de análisis con anclaje de desplazamiento
 * ******************************************************************* */

.ribbon-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 30px;
}

.ribbon-arrows {
	display: flex;
	gap: 8px;
	flex: 0 0 auto;
}

.ribbon-arrow {
	width: 48px;
	height: 48px;
	padding: 0;
	font-size: 19px;
	line-height: 1;
	background-color: transparent;
	border: 1px solid var(--fg);
	cursor: pointer;
}

.ribbon-arrow:hover {
	color: var(--sf);
	background-color: var(--fg);
}

.ribbon-track {
	display: flex;
	gap: 24px;
	margin-right: calc(-1 * var(--gut));
	padding-right: var(--gut);
	padding-bottom: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	scrollbar-color: var(--sig) transparent;
}

.ribbon-card {
	display: flex;
	flex-direction: column;
	flex: 0 0 clamp(278px, 34vw, 442px);
	padding: 26px 26px 30px;
	scroll-snap-align: start;
	background-color: var(--sf);
	border: 1px solid var(--rule);
	border-top: 4px solid var(--fg);
}

.ribbon-tag {
	margin-bottom: 12px;
	font-family: "Exo 2 Local", "Segoe UI", Tahoma, sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sig2);
}

.ribbon-card h3 {
	margin-bottom: 16px;
}

.ribbon-fact {
	margin-bottom: 18px;
	padding-bottom: 16px;
	font-size: 15px;
	color: var(--mu);
	border-bottom: 1px dashed var(--rule);
}

.ribbon-heads {
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	counter-reset: titular;
}

.ribbon-heads li {
	position: relative;
	margin-bottom: 12px;
	padding-left: 26px;
	font-family: "Exo 2 Local", "Segoe UI", Tahoma, sans-serif;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.24;
}

.ribbon-heads li::before {
	position: absolute;
	top: 2px;
	left: 0;
	font-size: 13px;
	color: var(--sig2);
	counter-increment: titular;
	content: counter(titular) ".";
}

.ribbon-take {
	margin-top: auto;
	font-size: 15px;
	line-height: 1.55;
}

/* *********************************************************************
 * 3. Cartelera de módulos (playbill)
 * Cada renglón se abre en ficha. La transición va sobre grid-template-rows
 * para que el contenido siga en el documento aunque esté plegado.
 * ******************************************************************* */

.playbill {
	margin-top: 34px;
	border-bottom: 1px solid var(--rule);
}

.playbill-item {
	border-top: 1px solid var(--rule);
}

.playbill-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	min-height: 74px;
	padding: 16px 0;
	text-align: left;
	background-color: transparent;
	border: 0;
	cursor: pointer;
}

.playbill-name {
	display: flex;
	align-items: baseline;
	gap: 18px;
	font-family: "Exo 2 Local", "Segoe UI", Tahoma, sans-serif;
	font-size: clamp(19px, 2.1vw, 29px);
	font-weight: 600;
	line-height: 1.14;
	letter-spacing: -0.014em;
}

.playbill-num {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.1em;
	color: var(--sig2);
}

.playbill-sign {
	position: relative;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border: 1px solid var(--fg);
}

.playbill-sign::before,
.playbill-sign::after {
	position: absolute;
	top: 50%;
	left: 50%;
	content: "";
	background-color: var(--fg);
	transform: translate(-50%, -50%);
}

.playbill-sign::before {
	width: 15px;
	height: 2px;
}

.playbill-sign::after {
	width: 2px;
	height: 15px;
	transition: transform 260ms ease;
}

.playbill-item.woke .playbill-sign::after {
	transform: translate(-50%, -50%) scaleY(0);
}

.playbill-item.woke .playbill-head {
	color: var(--sig2);
}

.playbill-body {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 360ms ease;
}

.playbill-item.woke .playbill-body {
	grid-template-rows: 1fr;
}

.playbill-inner {
	overflow: hidden;
}

.playbill-inner p {
	max-width: 62ch;
	padding-bottom: 26px;
	padding-left: 62px;
	color: var(--mu);
}

/* *********************************************************************
 * 4. Muro de titulares
 * Reparto irregular sobre doce columnas; ninguno de estos titulares
 * pertenece a un medio real, se escriben en clase.
 * ******************************************************************* */

.wall {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 30px 24px;
	margin-top: 36px;
}

.wall-item {
	font-family: "Exo 2 Local", "Segoe UI", Tahoma, sans-serif;
	font-weight: 600;
	line-height: 1.14;
	letter-spacing: -0.015em;
	color: var(--fg);
}

.wall-item span {
	display: block;
	margin-top: 10px;
	font-family: "Titillium Local", "Segoe UI", Tahoma, sans-serif;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mu);
}

.wall-item:nth-child(1) {
	grid-column: 1 / 7;
	font-size: clamp(23px, 2.9vw, 38px);
}

.wall-item:nth-child(2) {
	grid-column: 8 / 13;
	margin-top: 26px;
	font-size: clamp(19px, 2.1vw, 27px);
}

.wall-item:nth-child(3) {
	grid-column: 1 / 5;
	font-size: clamp(18px, 1.9vw, 24px);
}

.wall-item:nth-child(4) {
	grid-column: 6 / 11;
	margin-top: 18px;
	font-size: clamp(21px, 2.5vw, 32px);
}

.wall-item:nth-child(5) {
	grid-column: 2 / 8;
	font-size: clamp(19px, 2.2vw, 28px);
}

.wall-item:nth-child(6) {
	grid-column: 9 / 13;
	margin-top: 12px;
	font-size: clamp(18px, 1.8vw, 23px);
}

.wall-note {
	margin-top: 40px;
	padding-top: 20px;
	font-size: 15px;
	color: var(--mu);
	border-top: 1px solid var(--rule);
}

/* *********************************************************************
 * 5. Rejilla escalonada (formatos)
 * ******************************************************************* */

.stepped {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	margin-top: 40px;
}

.stepped-card {
	display: flex;
	flex-direction: column;
	padding: 30px 30px 34px;
	background-color: var(--sf);
	border: 1px solid var(--rule);
}

.stepped-card:nth-child(2) {
	transform: translateY(42px);
}

.stepped-card:nth-child(3) {
	transform: translateY(-16px);
}

.stepped-card:nth-child(4) {
	transform: translateY(26px);
}

.stepped-card h3 {
	margin-bottom: 12px;
}

.stepped-card p {
	margin-bottom: 16px;
	color: var(--mu);
}

.stepped-price {
	margin-top: auto;
	padding-top: 18px;
	font-family: "Exo 2 Local", "Segoe UI", Tahoma, sans-serif;
	font-size: 17px;
	font-weight: 600;
	color: var(--sig2);
	border-top: 1px solid var(--rule);
}

.stepped-link {
	margin-top: 14px;
	font-weight: 600;
}

/* *********************************************************************
 * 6. Boletín por correo
 * ******************************************************************* */

.digest-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 54px;
	align-items: center;
}

.digest-grid h2 {
	margin-bottom: 18px;
}

.digest-grid p {
	color: var(--dim);
}

/* *********************************************************************
 * 7. Equipo
 * Los retratos se mantienen estrechos a propósito: un retrato ancho se
 * come la pantalla en portátiles de poca altura.
 * ******************************************************************* */

.team {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 46px;
	margin-top: 40px;
}

.team-card figure {
	margin: 0;
}

.team-card img {
	width: 100%;
	max-width: 320px;
	margin-bottom: 20px;
	border-bottom: 5px solid var(--sig);
}

.team-card h3 {
	margin-bottom: 4px;
}

.team-card p {
	max-width: 46ch;
	color: var(--mu);
}

.team-card .team-role {
	margin-bottom: 12px;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sig2);
}

/* *********************************************************************
 * 8. Bloques de apoyo: figura ancha, datos de la casa, dos columnas
 * ******************************************************************* */

.figbox {
	margin-top: 40px;
	margin-bottom: 8px;
}

.figbox img {
	width: 100%;
	max-height: clamp(220px, 38vh, 430px);
	object-fit: cover;
}

.figbox figcaption {
	margin-top: 12px;
	font-size: 14px;
	color: var(--mu);
}

.duo {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 54px;
	align-items: start;
}

.factbar {
	margin: 0;
	padding: 28px 30px;
	background-color: var(--sf);
	border: 1px solid var(--rule);
	border-left: 5px solid var(--sig);
}

.factbar dt {
	margin-bottom: 3px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mu);
}

.factbar dd {
	margin-bottom: 20px;
	margin-left: 0;
	font-size: 17px;
	line-height: 1.5;
}

.factbar dd:last-child {
	margin-bottom: 0;
}

.factbar a {
	font-weight: 600;
}

.notecard {
	margin-top: 34px;
	padding: 26px 28px;
	background-color: var(--sf);
	border: 1px solid var(--rule);
}

.notecard h3 {
	margin-bottom: 10px;
}

.notecard p {
	max-width: 62ch;
	color: var(--mu);
}

.steplist {
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: paso;
}

.steplist li {
	position: relative;
	margin-bottom: 22px;
	padding-left: 54px;
	max-width: 60ch;
}

.steplist li::before {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	font-family: "Exo 2 Local", "Segoe UI", Tahoma, sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: var(--sf);
	background-color: var(--fg);
	counter-increment: paso;
	content: counter(paso);
}

.steplist strong {
	display: block;
	margin-bottom: 3px;
	font-family: "Exo 2 Local", "Segoe UI", Tahoma, sans-serif;
	font-size: 19px;
	font-weight: 600;
}

/* *********************************************************************
 * 9. Página de error y página de acuse
 * ******************************************************************* */

.plain {
	padding-top: 96px;
	padding-bottom: 96px;
}

.plain h1 {
	margin-bottom: 20px;
}

.plain-code {
	display: inline-block;
	margin-bottom: 24px;
	padding: 6px 14px;
	font-family: "Exo 2 Local", "Segoe UI", Tahoma, sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.2em;
	color: var(--sf);
	background-color: var(--fg);
}

.plain-links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 32px;
}

/* *********************************************************************
 * 10. Adaptación a pantallas menores
 * ******************************************************************* */

@media (max-width: 1000px) {
	.stage-grid {
		gap: 40px;
	}

	.digest-grid,
	.duo {
		gap: 38px;
	}

	.wall-item:nth-child(1) {
		grid-column: 1 / 8;
	}

	.wall-item:nth-child(2) {
		grid-column: 7 / 13;
	}

	.wall-item:nth-child(3) {
		grid-column: 1 / 6;
	}

	.wall-item:nth-child(4) {
		grid-column: 5 / 13;
	}

	.wall-item:nth-child(5) {
		grid-column: 1 / 9;
	}

	.wall-item:nth-child(6) {
		grid-column: 7 / 13;
	}
}

@media (max-width: 880px) {
	.stage-grid,
	.digest-grid,
	.duo,
	.team {
		grid-template-columns: 1fr;
	}

	.stage-art {
		order: -1;
		margin-bottom: 8px;
	}

	.team {
		gap: 38px;
	}

	.team-card img {
		max-width: 280px;
	}

	.stepped {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.stepped-card:nth-child(2),
	.stepped-card:nth-child(3),
	.stepped-card:nth-child(4) {
		transform: none;
	}
}

@media (max-width: 720px) {
	.stage {
		padding-top: 40px;
		padding-bottom: 52px;
	}

	.stage-lead {
		font-size: 18px;
	}

	.ribbon-head {
		display: block;
	}

	.ribbon-arrows {
		margin-top: 22px;
	}

	.wall {
		display: block;
	}

	.wall-item {
		margin-top: 0;
		margin-bottom: 26px;
		padding-bottom: 22px;
		border-bottom: 1px solid var(--rule);
	}

	.wall-item:last-child {
		border-bottom: 0;
	}

	.playbill-inner p {
		padding-left: 0;
	}

	.playbill-name {
		display: block;
	}

	.playbill-num {
		display: block;
		margin-bottom: 6px;
	}

	.factbar,
	.notecard {
		padding: 22px 20px;
	}

	.steplist li {
		padding-left: 46px;
	}
}
