/* PORTFOLIO MAIN */
.portfolio-main {
	padding-top: 8.75rem;
}

/* SEARCH */
.portfolio-search {
	padding: 5rem 0 3.5rem;
}

/* DEFAULT STATE */

.portfolio-search-label {
	color: var(--Negro-texto, #27282b);

	font-family: "Optima Nova Light";
	font-size: 36px;
	font-style: normal;
	font-weight: 400;
	line-height: 46px;

	text-decoration: none;
}

/* SEARCH STATE CONTAINER */

.portfolio-search-label-searched {
	color: var(--Negro-texto, #27282b);

	font-family: "Inter";
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;

	/* hard reset */
	text-decoration: none;
}

/* Work underlined, clickable */

.portfolio-search-label-searched .is-work,
.breadcrumb-work {
	color: var(--Negro-texto, #27282b);

	font-family: "Inter";
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;

	cursor: pointer;

	/* FORCE underline */
	text-decoration-line: underline;
	text-decoration-style: solid;
	text-decoration-color: currentColor;
	text-decoration-thickness: 1px;
	text-underline-offset: auto;
	text-decoration-skip-ink: auto;
}

/* Search results never underlined */

.portfolio-search-label-searched .is-results {
	color: var(--Negro-texto, #27282b);

	font-family: "Inter";
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;

	/* FORCE no underline */
	text-decoration: none;
}

/* / SEARCH RESULTS (not underlined) */
.portfolio-search-label-searched .is-results {
	color: var(--Negro-texto, #27282b);

	font-family: "Inter";
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: normal;

	text-decoration: none;
}

.portfolio-keywords-input {
	width: 100%;
	color: var(--Plata-oscuro, #b2b2b2);
	font-family: "Optima Nova Light";
	font-size: 48px;
	font-weight: 400;
	line-height: 110%;
	border: none;
	border-bottom: 0px;
	background: transparent;
	outline: none;
	text-align: center;
}

.portfolio-keywords-input::placeholder {
	color: var(--Plata-oscuro, #b2b2b2);
	font-family: "Optima Nova Light";
	font-size: 48px;
	font-weight: 400;
	line-height: 110%;
}

.portfolio-search-btn {
	color: var(--Negro-texto, #27282b);
	font-family: "Inter";
	font-size: 16px;
	font-weight: 300;
	background: none;
	border: none;
	cursor: pointer;
}

.portfolio-advanced-link,
.portfolio-reset-link {
	color: var(--Negro-texto, #27282b);
	font-family: "Inter";
	font-size: 16px;
	font-weight: 300;
	text-decoration: underline;
	cursor: pointer;
}

/* ADVANCED PANEL */
#advanced-panel {
	border-top: 0px solid #e5e5e5;
	padding-top: 32px;
}

.portfolio-select {
	width: 100%;
	color: var(--Negro-texto, #27282b);
	font-family: "Inter";
	font-size: 16px;
	font-weight: 300;
	border: none;
	border-bottom: 0px solid #ccc;
	background: transparent;
	padding: 8px 0;
	appearance: none;
}

.portfolio-select option {
	background: #f2f3f2;
}

/* GRID */
.portfolio-grid {
	padding: 5rem 0;
}

/* LADDER GRID (LEGACY – NEUTRALIZED) */
.portfolio-ladder {
	display: block;
}

/* CARD */
.portfolio-card {
	width: 100%;
	content-visibility: auto;
	contain-intrinsic-size: 900px 600px;
}

.portfolio-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.portfolio-card-media {
	position: relative;
	width: 100%;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: #f2f3f2;
}

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

.portfolio-card-meta {
	position: absolute;
	top: 24px;
	left: 24px;
	right: 24px;
	z-index: 2;
	pointer-events: none;
}

.portfolio-card-title {
	margin: 0 0 4px 0;
	color: #fff;
	font-family: "Optima Nova Light";
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.2;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.portfolio-card-client {
	display: block;
	color: #fff;
	font-family: "Inter";
	font-size: 1rem;
	font-weight: 300;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-transform: uppercase;
}

/* SEARCH RESULTS */
.portfolio-results {
	padding: 64px 0;
}

.portfolio-results-header {
	padding-bottom: 16px;
	border-bottom: 1px solid #e5e5e5;
	margin-bottom: 24px;
	font-family: "Inter";
	font-size: 12px;
	letter-spacing: 0.12em;
}

.portfolio-row {
	padding: 32px 0;
	border-bottom: 1px solid #e5e5e5;
}

/* TITLE */
.portfolio-result-title a {
	color: var(--Negro-texto, #27282b);
	font-family: "Optima Nova Light";
	font-size: 48px;
	font-weight: 400;
	line-height: 110%;
	text-decoration: none;
}

/* BRAND */
.portfolio-result-brand strong {
	display: block;
	color: var(--Negro-texto, #27282b);
	font-family: "Inter";
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
}

.portfolio-result-brand em {
	display: block;
	color: var(--Negro-texto, #27282b);
	font-family: "Inter";
	font-size: 16px;
	font-style: italic;
	font-weight: 300;
	line-height: normal;
}

/* TAGS */
.portfolio-result-tags {
	color: var(--Negro-texto, #27282b);
	font-family: "Inter";
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
}

/* THUMBNAIL */
.portfolio-result-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
}

.portfolio-result-thumb img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
}

/* SKELETON FACEBOOK STYLE */

.skeleton-line,
.skeleton-thumb {
	position: relative;
	overflow: hidden;
	background: #e5e5e5;
}

.skeleton-line {
	height: 16px;
	border-radius: 2px;
}

.skeleton-thumb {
	width: 95px;
	height: 70px;
	border-radius: 2px;
}

.skeleton-line::after,
.skeleton-thumb::after {
	content: "";
	position: absolute;
	top: 0;
	left: -150%;
	height: 100%;
	width: 150%;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
	animation: skeletonShimmer 1.3s infinite;
}

@keyframes skeletonShimmer {
	100% {
		left: 150%;
	}
}

/* MOBILE */
@media (max-width: 991px) {
	.portfolio-keywords-input,
	.portfolio-keywords-input::placeholder {
		font-size: 32px;
	}

	.portfolio-card-meta {
		top: 16px;
		left: 16px;
		right: 16px;
	}

	.portfolio-card-title {
		font-size: 1.5rem;
	}

	.portfolio-card {
		margin-bottom: 2rem;
	}

	.portfolio-card:last-child {
		margin-bottom: 0;
	}

	.portfolio-main {
		padding-top: 4rem;
	}

	.portfolio-search {
		padding: 1rem;
	}

	.portfolio-grid {
		padding: 1rem 0;
	}

	/* stack results cleanly */
	.portfolio-row .row > div {
		margin-bottom: 12px;
	}
}

/* LADDER STRUCTURE (CSS ONLY) */
@media (min-width: 992px) {
	.portfolio-ladder {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2rem;
		align-items: start;
		--ladder-offset: 5rem;
		padding-bottom: var(--ladder-offset);
	}

	.portfolio-card:nth-child(even) {
		transform: translateY(var(--ladder-offset));
	}
}

.portfolio-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 100%);
	z-index: 1;
	pointer-events: none;
}

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

/* PORTFOLIO RESULTS RESPONSIVE */

/* Desktop header visible by default */
.portfolio-results-header {
	display: block;
}

/* Mobile labels hidden by default */
.portfolio-mobile-label {
	display: none;
}

/* MOBILE LAYOUT */
@media (max-width: 991px) {
	.portfolio-card:nth-child(even) {
		transform: none;
	}

	/* Hide desktop table header */
	.portfolio-results-header {
		display: none;
	}

	/* Stack result rows vertically */
	.portfolio-result-row {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.portfolio-result-row > div {
		width: 100%;
	}

	/* Show mobile labels */
	.portfolio-mobile-label {
		display: block;
		color: var(--Plata-oscuro, #B2B2B2);
		font-family: "Inter";
		font-size: 12px;
		font-style: normal;
		font-weight: 300;
		line-height: 22px; /* 183.333% */
		text-transform: uppercase;
	}

	/* Make thumbnail full width and move to bottom */
	.portfolio-result-thumb {
		order: 99;
	}

	.portfolio-result-thumb img {
		width: 100%;
		height: auto;
		object-fit: cover;
	}

	/* Skeleton stack fix */
	#portfolio-skeleton .row {
		display: flex;
		flex-direction: column;
		gap: 18px;
	}

	#portfolio-skeleton .col-4,
	#portfolio-skeleton .col-3,
	#portfolio-skeleton .col-2 {
		width: 100%;
	}
}

.portfolio-grid-sentinel {
	height: 1px;
}

.portfolio-grid-loading {
	padding: 1rem 0 0;
	color: var(--Negro-texto, #27282b);
	font-family: "Inter";
	font-size: 14px;
	font-weight: 300;
	text-align: center;
}

.portfolio-card-skeleton {
	pointer-events: none;
}

.portfolio-card-skeleton .portfolio-card-link {
	cursor: default;
}

.portfolio-card-skeleton .portfolio-card-media {
	background: #e5e5e5;
	position: relative;
}

.portfolio-card-skeleton .portfolio-card-media::after {
	content: "";
	position: absolute;
	top: 0;
	left: -150%;
	height: 100%;
	width: 150%;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
	animation: skeletonShimmer 1.2s infinite;
}

.portfolio-skeleton-line {
	display: block;
	background: rgba(255, 255, 255, 0.45);
	border-radius: 2px;
	margin-bottom: 8px;
	position: relative;
	overflow: hidden;
}

.portfolio-skeleton-line.skeleton-title {
	width: 70%;
	height: 18px;
}

.portfolio-skeleton-line.skeleton-client {
	width: 38%;
	height: 12px;
}
