/* =========================================================
   content.css — lo usan TODAS las páginas de /pages/*.html
   (lo que se ve DENTRO del iframe)
   ========================================================= */

:root {
	--bg: #364874;
	--dark: #252547;
	--header: #2D345B;
	--white: #fbf9da;
	--cream: #eef5e0;
	--hover: #4C638F;
	--content-bg: #78829e;
	--green: #b8ddb8;
	--tan: #C3C89B;
	--red: #cc9292;
	--orange: #e2a97e;
	--blue: #95b5cc;
	--pink: #ffd4fb;
	--light-pink: #fce6f9; 
	--yellow: #fffea9;
	--grey: #b9b9b9;


	--photo-size: 200px;
	--photo-gap: 8px;

	--space-0: 0;
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
}

body {
	margin: 0;
	padding: 12px 16px;
	box-sizing: border-box;
	font-family: Calibri, sans-serif;
	font-size: 14px;
	line-height: 1.4rem;
	background-color: var(--content-bg);
	color: var(--dark);
}

::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: var(--green);
	border-radius: 10px;
}

::-webkit-scrollbar-thumb {
	background: var(--header);
	border-radius: 10px;
}

* {
	scrollbar-width: thin;
	scrollbar-color: var(--header) var(--green);
}

.title-inline {
	border-bottom: 3px double var(--green);
	margin: 0 0 12px 0;
	display: flex;
	flex-direction: inline;
}

.title-inline span {
	text-shadow: 1px 1px 1px var(--header);
	color: var(--cream);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.title-inline>span::before {
	content: '\25C6';
	color: var(--dynamic-color, var(--green));
	margin-right: 5px;
}

.title-inline:has(> img:first-child)>span::before {
	content: none;
}

.title-inline>img:first-child {
	padding-bottom: 8px;
	margin-right: 4px;
	display: inline-block;
}

.blog-pagination {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 3px double var(--green);
}

.green-divider {
	all: unset;
	display: block;
	border-top: 3px double var(--green);
	margin: 12px 0 12px 0;
}

.pink-divider {
	all: unset;
	display: block;
	border-top: 3px double var(--pink);
	margin: 12px 0 12px 0;
}

h1::before {
	content: '\25C6';
	color: var(--green);
	margin-right: 5px;
}

h1 {
	color: var(--cream);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: 0.5px;
	border-bottom: 3px double var(--green);
	padding: 0 0 6px 0;
	margin: 0 0 8px 0;
	text-shadow: 1px 1px 1px var(--header);
}

h1::before {
	content: '\25C6';
	color: var(--green);
	margin-right: 5px;
}

h2 {
	background: var(--hover);
	color: var(--cream);
	font-size: 14px;
	padding: 4px 8px;
	border-radius: 4px;
	border-bottom: 2px solid var(--bg);
	letter-spacing: 0.5px;
	border-left: 3px solid var(--green);
	margin-top: 6px;
}

h3 {
	margin-top: 24px;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--dark);
	font-size: 14px;
}

h3::before {
	content: '\25C6';
	color: var(--green);
	margin-right: 5px;
}

.italic {
	font-style: italic;
}

.chat {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 6px 0;
}

.chat.flex-column {
	align-items: stretch;
}

.avatar {
	flex: 0 0 80px;
	width: 80px;
	height: 80px;
	background-color: var(--bg);
	background-size: cover;
	background-repeat: no-repeat;
	border-radius: 4px;
	border: 1px solid var(--header);
}

.me-studio {
	background-image: url('assets/logo-nobg-blink.gif');
}

.me-anon {
	background-image: url('assets/default-user.png');
}

.me-ale {
	background-image: url('assets/inaudito-user.png');
}

.me-valu {
	background-image: url('assets/valuelf-user.png');
}

.me-team {
	background-image: url('assets/team-user.png');
}

.message {
	flex: 1 1 0;
	min-width: 0;
	background-color: var(--white);
	border-radius: 6px;
	padding: 12px;
	box-sizing: border-box;
	border: 1px solid var(--bg);
	line-height: 1.55;
}

.chat-orange .message {
	background-color: var(--orange);
}

.chat-red .message {
	background-color: var(--red);
}

.chat-green .message {
	background-color: var(--green);
}

.chat-blue .message {
	background-color: var(--blue);
}

.chat-pink .message {
	background-color: var(--pink);
}

.title {
	color: var(--white);
	border-bottom: 1px solid var(--tan);
	display: inline-block;
	padding: 3px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin: 12px auto;
}

img {
	max-width: 100%;
}

.wrap-left {
	float: left;
	margin: 4px 16px 8px 0;
}

.wrap-right {
	float: left;
	margin: 4px 16px 8px 0;
}

.sepia {
	filter: sepia(1) hue-rotate(25deg);
	transition: 0.3s all;
}

.sepia:hover {
	filter: unset;
}

.rounded {
	border-radius: 4px;
}

.border {
	border: 1px solid var(--dark);
}

.border-0 {
	border: 0;
}

.gif-col {
	flex: 1;
	min-height: 0;
	display: flex;
}

.gif-fill {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

a.button {
	display: inline-block;
	background: var(--hover);
	border-bottom: 4px solid var(--bg);
	border-right: 4px solid var(--bg);
	border-top: 4px solid var(--content-bg);
	border-left: 4px solid var(--content-bg);
	padding: 3px 6px;
	color: var(--cream);
	text-decoration: none;
	border-radius: 2px;
	outline: 1px solid var(--bg);
	text-align: center;
}

a.button:hover {
	border-bottom: 4px solid var(--content-bg);
	border-right: 4px solid var(--content-bg);
	border-top: 4px solid var(--bg);
	border-left: 4px solid var(--bg);
}

.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
	/* refuerzo extra, por si acaso */
}

ul {
	list-style: none;
	padding-left: 12px;
	margin: 0.5rem 0;
}

li {
	padding-left: 20px;
	position: relative;
}

li::before {
	content: "\2192";
	color: var(--content-bg);
	font-weight: bold;
	position: absolute;
	left: 0;
}

.card {
	background: var(--white);
	border-radius: 4px;
	border: 1px solid var(--bg);
	padding: 8px;
	box-sizing: border-box;
}

.youtube-embed {
	width: 100%;
	max-width: 100%;
	display: block;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
}

.hoverable {
	border: 1px solid var(--header);
	border-radius: 4px;
	transition: transform .35s ease;
}

.hoverable:hover {
	transform: scale(1.05);
}

.blog-post-header {
	background: var(--cream);
	color: var(--dark);
	font-size: 14px;
	padding: 4px 8px;
	border-radius: 4px;
	letter-spacing: 0.5px;
	margin-top: 5px;
	margin-bottom: 8px;
}

.photo-card {
	width: var(--photo-size);
	height: var(--photo-size);
	border: 2px solid var(--header);
	border-radius: 4px;
	background: var(--cream);
	overflow: hidden;
	transition: transform .15s ease;
}

.photo-card:hover {
	transform: scale(1.05);
}

.photo-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.light {
	background: var(--green);
	padding: 12px 8px;
	border-radius: 4px;
}

.w-50,
.width-50 {
	max-width: 50%;
}

.margin {
	margin-left: 75px;
}

table {
	border-collapse: collapse;
	width: 100%;
}

table,
th,
td {
	border: 1px solid var(--header);
}

th,
td {
	padding: 8px 10px;
	text-align: left;
	background: var(--cream);
	vertical-align: top;
}

th {
	background: var(--bg);
	color: var(--cream);
}

.border-0 td {
	border: 0;
}

.table-responsive-wrap {
	width: 100%;
	overflow-x: auto;
}

.photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(var(--photo-size), 1fr));
	gap: var(--photo-gap);
}

@media (min-width: 480px) {
	.photo-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 575.98px) {
	.chat {
		flex-direction: column;
		align-items: flex-start;
	}

	.avatar {
		margin-bottom: 4px;
	}
}

/* Display */

.flex {
	display: flex;
}

.flex-column {
	display: flex;
	flex-direction: column;
}

.flex-inline {
	display: flex;
	flex-direction: inline;
}

/* Horizontal */
.justify-start {
	justify-content: flex-start;
}

.justify-center {
	justify-content: center;
}

.justify-end {
	justify-content: flex-end;
}

.justify-between {
	justify-content: space-between;
}

.justify-around {
	justify-content: space-around;
}

.justify-evenly {
	justify-content: space-evenly;
}

/* Vertical */
.items-start {
	align-items: flex-start;
}

.items-center {
	align-items: center;
}

.items-end {
	align-items: flex-end;
}

/* Spacing */
.gap-0 {
	gap: var(--space-0);
}

.gap-1 {
	gap: var(--space-1);
}

.gap-2 {
	gap: var(--space-2);
}

.gap-3 {
	gap: var(--space-3);
}

.gap-4 {
	gap: var(--space-4);
}

.gap-5 {
	gap: var(--space-5);
}

.text-justify {
	text-align: justify;
	text-justify: inter-word;
}

.text-center {
	text-align: center;
}

.text-justify-center {
	text-align: justify;
	text-justify: inter-word;
	text-align-last: center;
}

/* Our Games Section */

.game-banner {
	width: 320px;
	height: 180px;
	border: 1px solid var(--dark);
	border-radius: 4px;
	-webkit-box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.5);
	box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.5);
}

.game-title {
	background: var(--hover);
	padding-left: 8px;
	border-radius: 4px 4px 0px 0px;
	border-bottom: 2px solid var(--bg);
	margin-top: 6px;
	padding: 2px 0 2px 0;
}

.game-title span:not(.game-tag, .badge) {
	color: var(--cream);
	letter-spacing: 0.5px;
	font-weight: bold;
	font-size: 16px;
}

.game-card {
	background: var(--white);
	border-radius: 0px 0px 4px 4px;
	border: 1px solid var(--bg);
	padding: 8px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.game-tag {
	background: var(--yellow);
	border: 1px solid var(--dark);
	border-radius: 4px;
	color: var(--dark);
	display: inline-flex;
	align-items: center;
	gap: 2px;
	line-height: 1em;
	padding: 2px 4px;
	font-size: small;
}

.browser-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	background-image: url('assets/browser-icon.svg');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}

.computer-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	background-image: url('assets/computer-icon.svg');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}

.console-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	background-image: url('assets/console-icon.svg');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}

.animated-sprite {
	flex-shrink: 0;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;

	image-rendering: -moz-crisp-edges;
	image-rendering: -webkit-crisp-edges;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
	transform: translateZ(0);
	-webkit-backface-visibility: hidden;
}

/* Post sections */

.post-preview {
	background: var(--white);
	border: 1px solid var(--bg);
	border-radius: 6px;
	padding: 8px;
	margin-bottom: 6px;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		"header button"
		"excerpt excerpt";
	column-gap: 12px;
	row-gap: 8px;
}

.post-preview .avatar {
	flex: 0 0 50px;
	width: 50px;
	height: 50px;
	background-color: var(--bg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 4px;
	border: 1px solid var(--header);
}

.post-header {
	grid-area: header;
	display: flex;
	gap: 10px;
}

.post-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.post-title-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.post-title {
	margin: 0;
	font-size: 20px;
	font-weight: bold;
	color: var(--header);
	text-transform: none;
	letter-spacing: 0;
}

.post-date {
	font-size: 12px;
	color: #555;
	white-space: nowrap;
}

.post-meta {
	font-size: 12px;
	color: #555;
	display: flex;
	flex-direction: row;
	gap: 8px;
}

.post-button {
	grid-area: button;
	align-self: start;
	justify-self: end;
}

.post-excerpt {
	grid-area: excerpt;
	margin-bottom: 6px;
	line-height: 1.5em;
}

.post-excerpt::before {
	content: '\25C6';
	color: var(--blue);
	margin-right: 3px;
}

@media (max-width:767px) {
	.post-preview {
		grid-template-columns: 50px 1fr;
		grid-template-areas:
			"avatar title"
			"excerpt excerpt"
			"meta meta"
			"button button";
	}

	.post-header {
		display: contents;
	}

	.post-info {
		display: contents;
	}

	.avatar {
		grid-area: avatar;
	}

	.post-title-row {
		grid-area: title;
	}

	.post-meta {
		grid-area: meta;
		justify-content: flex-end;
		/* alinea el texto a la derecha */
	}

	.post-button {
		grid-area: button;
		justify-self: stretch;
		width: 100%;
		text-align: center;
		margin-top: 8px;
	}
}


/* ---- Lightbox IMG Visualizer ---- */

.lightbox-img {
	cursor: pointer;
	filter: brightness(1);
	transition: filter 0.2s ease;
	transition: transform 0.2s ease;

}

.lightbox-img:hover {
	filter: brightness(.7);
	transform: scale(1.025);
}

.lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(37, 37, 71, 0.9);
	/* var(--dark) con transparencia */
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	box-sizing: border-box;
}

.lightbox-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

.lightbox-box {
	max-width: 90vw;
	max-height: 90vh;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	transform: scale(0.95);
	transition: transform 0.2s ease;
}

.lightbox-overlay.active .lightbox-box {
	transform: scale(1);
}

.lightbox-box img {
	max-width: 100%;
	max-height: 75vh;
	object-fit: contain;
	border-radius: 4px;
	display: block;
	cursor: zoom-in;
	user-select: none;
}

.lightbox-close {
	align-self: flex-end;
	background: var(--hover);
	color: var(--cream);
	border: 1px solid var(--bg);
	border-radius: 2px;
	width: 28px;
	height: 28px;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	font-family: Calibri, sans-serif;
}

.lightbox-close:hover {
	background: var(--bg);
}

.lightbox-img-wrap {
	position: relative;
	display: inline-block;
	line-height: 0;
}

.lightbox-zoom-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 32px;
	height: 32px;
	background: var(--red);
	border-radius: 25%;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	opacity: .35;
	transition: opacity 0.2s ease;
}

.lightbox-zoom-icon-shape {
	width: 24px;
	height: 24px;
	background-color: var(--cream);

	-webkit-mask-image: url('assets/zoom-in.svg');
	mask-image: url('assets/zoom-in.svg');
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-position: center;
	mask-position: center;
}

.lightbox-img-wrap img:hover~.lightbox-zoom-icon {
	opacity: 1;
}

/* ----------------- */

#disqus_thread {
	margin-top: 24px;
	padding: 12px;
	background: var(--white);
	border: 1px solid var(--bg);
	border-radius: 6px;
}

/* Carrusel de imagenes horizontal */

.custom-itemcarrusel {
	width: 100%;
	min-width: 0;
	overflow: hidden;
	box-sizing: border-box;
	-webkit-mask-image: linear-gradient(to right,
			transparent 0%,
			black 5%,
			black 95%,
			transparent 100%);
	mask-image: linear-gradient(to right,
			transparent 0%,
			black 5%,
			black 95%,
			transparent 100%);
}

.custom-carrusel {
	display: flex;
	width: max-content;
	animation: carrusel 30s linear infinite;
}

.custom-carrusel img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	flex-shrink: 0;
	transition: transform 0.15s ease, filter 0.15s ease;
	cursor: pointer;
	filter: brightness(.75);
	animation: balanceo 1s ease-in-out infinite;
}

.custom-carrusel img:hover {
	filter: brightness(1.15) drop-shadow(0px 0px 5px #bf00ff);
	transform: scale(1.25) rotate(0deg) !important;
	animation-play-state: paused;
	position: relative;
	z-index: 10;
}

.custom-carrusel img:nth-child(even) {
	animation-delay: 0.5s;
	animation-direction: reverse;
}

.custom-itemcarrusel:hover .custom-carrusel {
	animation-play-state: paused;
}

@keyframes carrusel {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(calc(-50% - 5px));
	}
}

@keyframes balanceo {

	0%,
	100% {
		transform: rotate(-5deg);
	}

	50% {
		transform: rotate(5deg);
	}
}

@media (max-width: 575.98px) {
	.custom-carrusel img {
		width: 44px;
		height: 44px;
	}

	.custom-carrusel {
		animation-duration: 15s;
	}

	.custom-carrusel img {
		filter: brightness(1);
	}
}