/* Structural and reusable component styles across the site.
   Keep theme-overrides.css focused on palette/look-and-feel tokens. */

.archivo-grid {
	display: flex;
	flex-wrap: wrap;
}

.archivo-grid > .archivo-grid-item {
	display: flex;
	margin-bottom: 14px;
}

.archivo-grid > .archivo-grid-item > .widget-box {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
}

.archivo-grid > .archivo-grid-item > .widget-box > .widget-main {
	flex: 1 1 auto;
}

.salon-fama-page {
	background-image: url('/static/redsocial/salon-fondo.png');
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
	padding: 20px clamp(32px, 6vw, 96px) 16px;
	border-radius: 8px;
	min-height: 420px;
	max-width: 1240px;
	margin: 0 auto;
}

.salon-fama-title-wrap {
	text-align: center;
	margin: 6px 0 12px;
}

.salon-fama-title {
	display: inline-block;
	width: 40%;
	max-width: 40%;
	height: auto;
}

.salon-fama-subtitle {
	text-align: center;
	color: var(--papel-vintage-6);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
	margin-bottom: 14px;
}

.salon-fama-table-wrap {
	background: rgba(255, 255, 255, 0.9);
	border-radius: 6px;
	padding: 8px;
}

.salon-ranking-top-row {
	margin-bottom: 14px;
}

.salon-ranking-grid {
	display: flex;
	flex-wrap: wrap;
}

.salon-ranking-grid-item {
	display: flex;
	margin-bottom: 12px;
}

.salon-ranking-card {
	width: 100%;
	background: rgba(255, 255, 255, 0.38);
	border: 1px solid rgba(62, 48, 38, 0.24);
	border-radius: 10px;
	padding: 12px 10px;
	text-align: center;
	position: relative;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.salon-ranking-card-top {
	max-width: 540px;
	margin: 0 auto;
	padding-top: 18px;
	background: rgba(255, 255, 255, 0.42);
}

.salon-ranking-badge {
	position: absolute;
	top: 6px;
	left: 10px;
	font-weight: 700;
	font-size: 24px;
	line-height: 1;
	color: var(--rojo-intenso-1);
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.75);
}

.salon-ranking-avatar-wrap {
	text-align: center;
	margin: 4px 0 6px;
}

.salon-ranking-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid rgba(196, 154, 35, 0.7);
}

.salon-ranking-card-top .salon-ranking-avatar {
	width: 92px;
	height: 92px;
}

.salon-ranking-avatar-small {
	width: 64px;
	height: 64px;
}

.salon-ranking-name {
	margin: 6px 0 8px;
	color: var(--carbon-2);
	font-weight: 700;
}

.salon-stars-block,
.salon-medals-block {
	min-height: 24px;
	margin: 4px 0;
}

.salon-stars-block .fa,
.salon-medals-block .fa {
	margin: 0 2px;
}

.salon-stars-block .fa {
	font-size: 22px;
}

.star-gold {
	color: #d6a500;
}

.star-silver {
	color: #a9b0b8;
}

.star-copper {
	color: #b87333;
}

.medal-win {
	color: #2f6fb2;
}

.salon-medals-text,
.salon-losses,
.salon-empty {
	font-size: 12px;
	color: var(--carbon-2);
}

.salon-losses {
	margin-top: 6px;
}

.global-header-banner {
	width: 100%;
	height: clamp(96px, 11.5vw, 180px);
	max-height: 180px;
	overflow: hidden;
	display: flex;
	justify-content: flex-start;
	align-items: stretch;
	background: var(--papel-vintage-4);
	border-bottom: 1px solid var(--carbon-6);
	position: relative;
}

.global-header-banner img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: left center;
}

.global-header-link {
	display: block;
	width: 100%;
	height: 100%;
}

.header-user-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 5;
	padding: 0 10px;
	background: linear-gradient(to bottom, color-mix(in srgb, var(--carbon-1) 35%, transparent), transparent);
}

.header-user-overlay .navbar-buttons {
	margin-top: 0;
}

.header-user-overlay .ace-nav > li,
.header-user-overlay .ace-nav > li.green,
.header-user-overlay .ace-nav > li.light-blue,
.header-user-overlay .ace-nav > li.purple,
.header-user-overlay .ace-nav > li.grey,
.header-user-overlay .ace-nav > li.transparent {
	background: transparent;
}

.header-user-overlay .ace-nav > li > a {
	background: color-mix(in srgb, var(--rojo-intenso-1) 88%, transparent);
	color: var(--papel-vintage-6);
}

.header-user-overlay .ace-nav > li > a:hover,
.header-user-overlay .ace-nav > li.open > a {
	background: color-mix(in srgb, var(--rojo-intenso-1) 95%, transparent);
	color: var(--papel-vintage-6);
}

.header-user-overlay .user-info,
.header-user-overlay .user-info small,
.header-user-overlay .ace-icon {
	color: var(--papel-vintage-6);
}

.header-user-overlay .navbar-header {
	float: right !important;
}

.header-user-overlay .ace-nav > li {
	height: 50px;
	line-height: 50px;
}

.header-user-overlay .ace-nav > li > a {
	height: 50px;
	line-height: 50px;
}

.header-user-overlay:after {
	content: "";
	display: table;
	clear: both;
}

#navbar.navbar-default.app-navbar {
	background: transparent;
	border: 0;
	box-shadow: none;
	margin-bottom: 0;
	min-height: 0;
	height: 0;
	overflow: visible;
}

#navbar.navbar-default.app-navbar .navbar-brand {
	padding: 0;
	height: auto;
}

#navbar.navbar-default.app-navbar #navbar-container {
	min-height: 0;
	height: 0;
	padding-left: 0;
	padding-right: 0;
}

#navbar.navbar-default.app-navbar .navbar-header {
	display: none;
}

.app-navbar-brand-spacer {
	width: 0;
	height: 0;
}

@media (max-width: 991px) {
	.global-header-banner {
		height: clamp(90px, 15vw, 140px);
		max-height: 140px;
	}

	.app-navbar-brand-spacer {
		width: 140px;
		height: 40px;
	}
}

@media (max-width: 767px) {
	.archivo-grid {
		display: block;
	}

	.archivo-grid > .archivo-grid-item {
		display: block;
	}

	.salon-fama-page {
		padding: 12px 10px;
		min-height: 360px;
	}

	.salon-ranking-card-top .salon-ranking-avatar {
		width: 82px;
		height: 82px;
	}

	.header-user-overlay {
		padding: 0 6px;
	}

	.header-user-overlay .ace-nav > li,
	.header-user-overlay .ace-nav > li > a {
		height: 42px;
		line-height: 42px;
	}

	.header-user-overlay .user-info {
		display: none;
	}

	.global-header-banner {
		height: 96px;
		max-height: 96px;
	}

	.global-header-banner img {
		object-fit: cover;
		object-position: left center;
	}
}
