/* Mejoras de experiencia en castellano. */
html {
	scrollbar-gutter:     stable;
}

.site-loader[hidden] {
	display:     none !important;
}

body.is-loading {
	overflow:     hidden;
}

.site-loader {
	position:     fixed;
	inset:     0;
	z-index:     10000;
	display:     grid;
	place-items:     center;
	background:     #101417;
	color:     #fff;
	transition:     opacity 420ms ease, visibility 420ms ease;
}

.site-loader::before {
	content:     "";
	position:     absolute;
	inset:     0 0 0 50%;
	background:     rgba(255,255,255,.018);
	border-left:     1px solid rgba(255,255,255,.06);
}

.loader-inner {
	position:     relative;
	width:     min(340px, 76vw);
}

.loader-inner > img {
	filter:     invert(1);
	object-fit:     contain;
	margin-bottom:     24px;
}

.loader-claim {
	font-size:     18px;
	line-height:     1.15;
	letter-spacing:     -.03em;
	margin-bottom:     42px;
}

.loader-claim strong {
	font-size:     25px;
}

.loader-claim span {
	color:     #f52d54;
}

.loader-percentage {
	display:     flex;
	align-items:     baseline;
	gap:     8px;
	margin-bottom:     18px;
	font-size:     clamp(72px, 11vw, 100px);
	line-height:     1;
	letter-spacing:     -.06em;
	font-variant-numeric:     tabular-nums;
}

.loader-percent-sign {
	color:     #b8c0c4;
	font-size:     28px;
	letter-spacing:     0;
}

.loader-progress {
	height:     2px;
	background:     #3b4449;
	overflow:     hidden;
}

.loader-progress > span {
	display:     block;
	width:     100%;
	height:     100%;
	background:     #f52d54;
	transform:     scaleX(0);
	transform-origin:     left;
	transition:     transform 180ms ease;
}

.loader-caption {
	color:     #b8c0c4;
	font-size:     10px;
	letter-spacing:     .04em;
	margin:     15px 0 0;
}

.site-loader.is-leaving {
	opacity:     0;
	visibility:     hidden;
	pointer-events:     none;
}

/* Las dos capas conservan su ancho: solo se modifica el recorte. */
.world-surf {
	inset:     0;
	width:     100%;
	clip-path:     inset(0 calc(100% - var(--split)) 0 0);
}

.world-coaster {
	inset:     0;
	width:     100%;
	clip-path:     inset(0 0 0 var(--split));
}

.world-image-motion {
	width:     100%;
	height:     100%;
	animation:     world-drift 18s ease-in-out infinite alternate;
}

.world-coaster .world-image-motion {
	animation-direction:     alternate-reverse;
}

.world-pane img {
	animation:     none;
	transform:     scale(1);
	transition:     transform 800ms cubic-bezier(.2,.65,.3,1);
}

.world-pane.is-zoomed img {
	transform:     scale(1.07);
}

body[data-motion="off"] .world-image-motion {
	animation:     none;
}

body[data-motion="off"] .world-pane img {
	transform:     none;
}

/* Zoom separado del transform que usa la entrada del bloque. */
.image-zoom {
	display:     block;
	width:     100%;
	overflow:     hidden;
	line-height:     0;
}

.image-zoom > img {
	width:     100%;
	transform:     scale(1);
	transition:     transform 800ms cubic-bezier(.2,.65,.3,1), filter 350ms ease;
}

.reel > .image-zoom {
	position:     absolute;
	inset:     0;
	height:     100%;
	z-index:     -2;
}

.reel > .image-zoom > img {
	height:     100%;
	object-fit:     cover;
	object-position:     68% center;
}

.article-reading-layout {
	display:     grid;
	grid-template-columns:     minmax(200px, 245px) minmax(0, 760px);
	justify-content:     center;
	align-items:     start;
	gap:     55px;
}

.article-reading-layout .article-body {
	width:     100%;
	margin:     0;
	min-width:     0;
	max-width:     none;
}

.article-toc {
	position:     sticky;
	top:     95px;
	max-height:     calc(100svh - 130px);
	overflow-y:     auto;
	border-top:     2px solid var(--ink);
	padding-top:     17px;
}

.article-toc summary {
	display:     flex;
	align-items:     center;
	justify-content:     space-between;
	font-size:     21px;
	font-weight:     700;
	letter-spacing:     -.03em;
	cursor:     pointer;
	list-style:     none;
	padding-bottom:     12px;
}

.article-toc summary::-webkit-details-marker {
	display:     none;
}

.toc-chevron {
	width:     7px;
	height:     7px;
	border-right:     1.5px solid var(--red);
	border-bottom:     1.5px solid var(--red);
	transform:     rotate(45deg);
	transition:     transform 200ms ease;
	margin-right:     5px;
}

.article-toc[open] .toc-chevron {
	transform:     rotate(225deg);
}

.article-toc ol {
	padding:     0;
	margin:     4px 0 0;
	list-style:     none;
}

.article-toc li {
	border-bottom:     1px solid var(--line);
}

.article-toc a {
	display:     block;
	padding:     13px 0 13px 13px;
	border-left:     2px solid transparent;
	font-size:     12px;
	line-height:     1.55;
	color:     #555;
}

.article-toc a:hover, .article-toc a[aria-current="location"] {
	color:     var(--red);
	border-left-color:     var(--red);
}

.article-body [id], .article-heading[id] {
	scroll-margin-top:     95px;
}

.article-body [tabindex="-1"]:focus, .article-heading[tabindex="-1"]:focus {
	outline:     none;
}

@media (hover: hover) and (pointer: fine) {
	.image-zoom:hover > img, .story-image:hover .image-zoom > img, .reel:hover .image-zoom > img {
		transform:     scale(1.06);
	}

}

@media (max-width: 1000px) {
	.article-reading-layout {
		grid-template-columns:     minmax(180px, 215px) minmax(0, 1fr);
		gap:     30px;
	}

}

@media (max-width: 800px) {
	.article-reading-layout {
		display:     block;
	}

	.article-toc {
		position:     static;
		max-height:     none;
		margin-bottom:     35px;
	}

	.article-toc summary {
		font-size:     23px;
	}

	.article-toc a {
		font-size:     13px;
	}

	.article-body [id], .article-heading[id] {
		scroll-margin-top:     110px;
	}

}

@media (prefers-reduced-motion: reduce) {
	.world-image-motion {
		animation:     none;
	}

	.site-loader, .loader-progress > span, .image-zoom > img, .world-pane img {
		transition:     none !important;
	}

	.image-zoom:hover > img, .story-image:hover .image-zoom > img, .reel:hover .image-zoom > img, .world-pane.is-zoomed img {
		transform:     none;
	}

}

@media print {
	.site-loader, .article-toc {
		display:     none !important;
	}

	body.is-loading {
		overflow:     visible;
	}

}

/* El distintivo y la fotografía tienen contenedores y reglas independientes. */
.chapter-video-poster {
	position:    relative;
	min-width:    0;
}

.chapter-video-poster > .image-zoom {
	position:    relative;
	inset:    auto;
	display:    block;
	width:    100%;
	height:    auto;
	aspect-ratio:    9 / 16;
	padding:    0;
	background:    transparent;
	overflow:    hidden;
}

.chapter-video-poster > .image-zoom > img {
	display:    block;
	width:    100%;
	height:    100%;
	aspect-ratio:    auto;
	object-fit:    cover;
}

.chapter-video-poster > .video-format {
	position:    absolute;
	bottom:    8px;
	left:    8px;
	z-index:    1;
	font-size:    9px;
	line-height:    1.3;
	padding:    4px 5px;
	background:    var(--night);
}

@media (max-width: 800px) {
	.reveal-item.reveal-pending {
		transform:    none;
	}

}

.loader-progress > span {
	transition:  transform 80ms linear;
}

/* Composición del texto editorial aprobado. */
.approved-copy h1 {
	font-size:   clamp(36px, 5.2vw, 68px);
	line-height:   1.04;
	max-width:   1160px;
	text-wrap:   balance;
}

.article-summary {
	padding:   24px 28px;
	margin-bottom:   42px;
	border-left:   3px solid var(--red, #c3002f);
	background:   #f3f4f3;
}

.article-summary p {
	margin:   0;
	font-size:   18px;
	line-height:   1.65;
}

.article-body li {
	padding-left:   7px;
	margin-bottom:   15px;
	font-size:   18px;
	line-height:   1.65;
}

.article-body ol {
	padding-left:   24px;
	margin:   26px 0;
}

.article-body li::marker {
	color:   var(--red, #c3002f);
	font-weight:   700;
}

.article-body table {
	min-width:   560px;
	font-size:   16px;
	line-height:   1.6;
}

.article-body caption {
	text-align:   left;
	font-weight:   700;
	padding:   0 0 14px;
}

.article-body th[scope="row"] {
	width:   34%;
	font-weight:   600;
}

.article-body .faq-answer {
	padding:   25px 0;
	border-top:   1px solid #dce0e0;
}

.article-body .faq-answer h3 {
	font-size:   clamp(21px, 2.3vw, 26px);
	line-height:   1.25;
	letter-spacing:   -.025em;
	margin:   0 0 15px;
}

.article-body .faq-answer p {
	margin-bottom:   0;
}

.article-inline-picture {
	margin:   35px 0 0;
}

.article-inline-picture img {
	display:   block;
	height:   auto;
}

.article-inline-picture figcaption {
	margin-top:   12px;
	font-size:   12px;
	line-height:   1.5;
	color:   #60696c;
}

@media (max-width: 600px) {
	.article-summary {
		padding:   20px;
	}

	.article-body li {
		font-size:   16px;
	}

}

/* El zoom se aplica al img; la entrada se aplica a su marco. */
main .content-image-frame {
	overflow:  hidden;
}

main .content-image-frame > img {
	transform:  scale(1);
	transform-origin:  center;
	transition:  transform 0.4s ease;
}

main .content-image-frame:hover > img, main .story-image:hover .content-image-frame > img, main .reel:hover .content-image-frame > img, main .worlds-hero:hover .content-image-frame > img {
	transform:  scale(1.08);
}

@media (prefers-reduced-motion: reduce) {

	main .content-image-frame > img,  main .content-image-frame:hover > img,  main .story-image:hover .content-image-frame > img,  main .reel:hover .content-image-frame > img,  main .worlds-hero:hover .content-image-frame > img {
		transform:  none;
		transition:  none;
	}

}


