/* Acuerdo Status Badge */
.aero-acuerdo-ultima-actualizacion {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	font-family: Montserrat, sans-serif;
	font-size: 0.9375rem;
	line-height: 1.4;
	color: inherit;
}

.aero-acuerdo-ultima-actualizacion__icon {
	display: block;
	flex: 0 0 auto;
	width: 1.125rem;
	height: 1.125rem;
}

.aero-acuerdo-ultima-actualizacion__label,
.aero-acuerdo-ultima-actualizacion__date {
	display: inline;
}

.aero-acuerdo-ultima-actualizacion__label {
	font-weight: 600;
}

/* Acuerdo Status Badge */
.aero-acuerdo-status-badge {
	display: inline-block;
	padding: 0.75px 12px;
	border-radius: 1rem;
	font-family: Montserrat, sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: none;
	color: white;
}

.aero-acuerdo-status--en_proceso {
	background: #f5c000 !important;
}

.aero-acuerdo-status--finalizado {
	background: #0dab4e !important;
}

.aero-acuerdo-status--draft {
	background: #888 !important;
}

.aero-acuerdo-status--pending {
	background: #0073aa !important;
}

/* Metrics Component */
.aero-acuerdo-metricas {
	display: flex;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	flex-wrap: wrap;
	gap: 1.25rem;
	margin-bottom: 1.875rem;
}

.aero-metrica {
	background-color: #fff;
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	flex: 1 1 15.625rem;
	gap: 1rem;
	align-items: flex-start;
}

.aero-acuerdo-metricas[data-count] .aero-metrica {
	flex-basis: calc(33.333% - 1rem);
	max-width: 33.333%;
}

.aero-acuerdo-metricas[data-count="1"] .aero-metrica,
.aero-acuerdo-metricas[data-count="2"] .aero-metrica {
	flex-basis: calc(50% - 0.625rem);
	max-width: 50%;
}

.aero-acuerdo-metricas[data-count="4"] .aero-metrica {
	flex-basis: calc(50% - 0.625rem);
	max-width: 50%;
}

.aero-acuerdo-metricas {
	justify-content: center;
}

/* Responsive Metrics */
@media (max-width: 768px) {
	.aero-acuerdo-metricas[data-count] .aero-metrica,
	.aero-acuerdo-metricas[data-count="1"] .aero-metrica,
	.aero-acuerdo-metricas[data-count="2"] .aero-metrica,
	.aero-acuerdo-metricas[data-count="4"] .aero-metrica {
		flex-basis: 100%;
		max-width: 100%;
	}
}

.aero-metrica-header {
	background: #0a42ab !important;
	color: #fff;
	width: 100%;
	box-sizing: border-box;
	padding: 0.5rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.aero-metrica-titulo {
	font-family: Poppins, sans-serif;
	font-size: 1.2rem !important;
	font-weight: 600;
	text-transform: none !important;
	letter-spacing: 0 !important;
	line-height: 1.3;
	color: #fff;
	padding: 0.25rem 0;
}

.aero-metrica-icono {
	font-size: 2rem;
	width: 3rem;
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: transparent;
	border-radius: 50%;
	color: #fff;
	margin-left: 0.625rem;
}

.aero-metrica-icono.dashicons,
.aero-metrica-icono .dashicons {
	font-size: 0.875rem;
	width: auto;
	height: auto;
	line-height: 1;
}

.aero-metrica-cuerpo {
	padding: 1.25rem;
	background: #fff;
	flex-grow: 1;
	display: flex;
	align-items: center;
}

.aero-metrica-valor {
	font-size: 1.8rem !important;
	font-weight: 600 !important;
	color: var(--e-global-color-primary, #0073aa);
	line-height: 1.1;
}

/* 
 * Actions Component 
 */
.aero-acuerdo-acciones {
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
	margin-bottom: 1.875rem;
	/* 30px */
}

.aero-acciones-tabs-wrapper {
	position: relative;
	padding: 1rem;
	background: #fff;
	border-bottom: none;
	border-radius: 3rem;
}

.aero-acciones-tabs {
	display: flex;
	flex-wrap: nowrap;
	/* Force single line */
	gap: 0.5rem;
	overflow-x: auto !important;
	overflow-y: hidden;
	scrollbar-width: none;
	/* Firefox */
	-ms-overflow-style: none;
	white-space: nowrap;
	scroll-behavior: smooth;
	padding-bottom: 0;
	margin-bottom: 0;
	position: relative;
	z-index: 10;
}

.aero-acciones-tabs::-webkit-scrollbar {
	height: 0;
	width: 0;
	display: none;
}

.aero-acuerdo-acciones .aero-acciones-tab {
	background: transparent;
	border: none;
	border-radius: 2rem;
	padding: 0.5rem 1rem;
	height: 42px;
	color: var(--e-global-color-primary, #0044cc);
	transition: all 0.2s ease;
	white-space: nowrap;
	flex: 0 0 auto;
	text-transform: uppercase;
	font-family: Montserrat, sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.aero-acuerdo-acciones .aero-acciones-tab:hover {
	background: transparent;
	color: var(--e-global-color-secondary, #002277);
}

.aero-acuerdo-acciones .aero-acciones-tab.is-active {
	background: var(--e-global-color-primary, #0044cc);
	color: #fff;
	box-shadow: none;
}

/* Scroll Arrows */
[type="button"]:focus:not(:focus-visible),
[type="submit"]:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
	background: var(--e-global-color-919094b);
	color: var(--e-global-color-primary, #0044cc);
}

.aero-acuerdo-acciones .aero-tax-arrow {
	position: absolute;
	top: 47%;
	transform: translateY(-50%);
	width: 2.25rem;
	/* 36px */
	height: 2.25rem;
	border-radius: 50%;
	background: #eef5ff;
	/* Soft blue background to match image */
	border: none;
	color: var(--e-global-color-primary, #0044cc);
	/* Blue arrow */
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 20;
	box-shadow: none;
	transition: all 0.2s ease;
	opacity: 0;
	pointer-events: none;
	padding: 0;
	margin: 0;
	filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.2));
	/* drop-shadow(0 0 8px ...) */
}

/* Ensure SVG is visible */
.aero-acuerdo-acciones .aero-tax-arrow svg {
	width: 0.875rem;
	/* 14px */
	height: 0.875rem;
	display: block;
	fill: none;
}

/* Show arrows when needed via JS class */
.aero-acciones-tabs-wrapper.has-scroll .aero-tax-arrow {
	opacity: 1;
	pointer-events: auto;
}

.aero-acuerdo-acciones .aero-tax-arrow:hover {
	background: #e0edff;
	color: var(--e-global-color-secondary, #002277);
	transform: translateY(-50%) scale(1.05);
}

.aero-acuerdo-acciones .aero-tax-arrow[disabled] {
	opacity: 0;
	pointer-events: none;
	cursor: default;
}

.aero-acuerdo-acciones .aero-tax-arrow--left {
	left: 1rem;
	/* Move left outside padding */
}

.aero-acuerdo-acciones .aero-tax-arrow--right {
	right: 1rem;
	/* Move right outside padding */
}

.aero-acciones-panels {
	padding: 1.875rem;
	/* 30px */
}

.aero-acciones-panel {
	display: none;
	animation: fadeIn 0.3s ease;
	max-width: 100%;
	padding-bottom: 3rem;
	margin-bottom: 3rem;
	border-bottom: 1px solid #f0f0f0;
}

.aero-acciones-panel:last-child {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: none;
}

.aero-acciones-panel.is-active {
	display: block;
}

.aero-acciones-panel h3 {
	margin-top: 0;
	margin-bottom: 0.9375rem;
	/* 15px */
	font-size: 1.25rem;
	/* 20px */
	color: #333;
}

.aero-acciones-panel p {
	color: #666;
	line-height: 1.6;
	margin-bottom: 1.25rem;
	/* 20px */
}

.aero-acciones-galeria-shell {
	margin-top: 1rem;
}

.aero-acciones-galeria-nav {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.aero-accion-descripcion p a {
	color: var(--e-global-color-primary);
}

.aero-acciones-galeria-nav-btn {
	padding: 12px !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	border-radius: 100% !important;
	border: none !important;
	background: #f0f5ff !important;
	color: var(--e-global-color-primary, #0044cc) !important;
	cursor: pointer !important;
	transition: 0.3s !important;
}

.aero-acciones-galeria-nav-btn:hover {
	background: #e2ecff !important;
	color: var(--e-global-color-secondary, #002277) !important;
}

.aero-acciones-galeria-nav-btn img {
	width: 1.5rem;
	height: 1.5rem;
	display: block;
}

.aero-acciones-galeria-nav-btn:disabled {
	opacity: 0.45;
	cursor: default !important;
}

.aero-acciones-galeria-shell.is-static .aero-acciones-galeria-nav {
	display: none;
}

.aero-acciones-galeria {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.7rem;
	align-items: flex-start;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.aero-acciones-galeria::-webkit-scrollbar {
	display: none;
}

.aero-acciones-galeria-item {
	position: relative;
	flex: 0 0 auto;
	width: max-content;
	max-width: none;
	align-self: flex-start;
}

.aero-acciones-galeria-item > a:first-of-type {
	display: inline-flex;
	align-items: flex-start;
	height: 180px;
	width: auto;
	max-width: none;
	overflow: hidden;
	border-radius: 0.5rem;
	line-height: 0;
	flex: 0 0 auto;
	box-shadow: 0 0.2rem 0.55rem rgba(0, 0, 0, 0.05);
}

.aero-acuerdo-gallery-cta-icon-wrap {
	position: absolute;
	bottom: 0.35rem;
	right: 0.35rem;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 0.25rem;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		transform 0.2s ease;
}

.aero-acuerdo-gallery-cta-icon-wrap:hover,
.aero-acuerdo-gallery-cta-icon-wrap:focus {
	background: var(--e-global-color-secondary, #0044cc);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.aero-acuerdo-gallery-cta-icon {
	display: block;
	line-height: 0;
}

.aero-acuerdo-gallery-cta-icon svg {
	width: 0.875rem;
	height: 0.875rem;
	fill: currentColor;
}

.aero-acuerdo-lightbox-cta-wrap {
	position: fixed;
	left: 50%;
	right: auto;
	bottom: 1.75rem;
	transform: translateX(-50%);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 1rem;
	box-sizing: border-box;
	pointer-events: none;
	width: auto;
	max-width: min(90vw, 42rem);
	z-index: 1000000;
}

.aero-acuerdo-lightbox-cta-wrap[hidden] {
	display: none;
}

.aero-acuerdo-lightbox-cta {
	pointer-events: auto;
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	padding: 0.45rem 0.85rem;
	border-radius: 0.375rem;
	background-color: var(--e-global-color-secondary, #0044cc);
	color: #fff;
	transition:
		background-color 0.2s ease,
		transform 0.2s ease;
}

.aero-acuerdo-lightbox-cta:hover,
.aero-acuerdo-lightbox-cta:focus {
	background-color: var(--e-global-color-primary, #003399);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.aero-acciones-galeria img {
	border-radius: 0.5rem;
	/* 8px */
	width: auto !important;
	height: 180px !important;
	max-width: none !important;
	object-fit: contain;
	display: block;
	flex: 0 0 auto;
	cursor: pointer;
	transition: transform 0.2s;
}

.aero-acciones-galeria img:hover {
	transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
	.aero-acciones-galeria,
	.aero-acciones-galeria img,
	.aero-acciones-galeria-nav-btn {
		transition: none;
		scroll-behavior: auto;
	}
}

/* Imágenes en descripciones de acciones */
.aero-acciones-panel img {
	border-radius: 0.5rem;
	max-width: 100%;
	height: auto;
}

/* 
 * Perfil Mis Acuerdos 
 */
.aero-perfil-mis-acuerdos {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.aero-perfil-mis-acuerdos__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font: inherit;
	line-height: 1;
}

.aero-perfil-mis-acuerdos__toggle:focus-visible {
	outline: 2px solid var(--e-global-color-primary, #0044cc);
	outline-offset: 2px;
	border-radius: 0.25rem;
}

.aero-perfil-mis-acuerdos__icon {
	display: block;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	object-fit: contain;
	flex-shrink: 0;
}

.aero-perfil-mis-acuerdos__name {
	font-family: Poppins, sans-serif;
	font-weight: 600;
	font-size: 0.875rem;
	line-height: 1.375rem;
	letter-spacing: 0;
	color: #fff;
	white-space: nowrap;
	align-self: center;
}

.aero-perfil-mis-acuerdos__dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 0;
	min-width: 11rem;
	padding: 0.375rem 0;
	margin: 0;
	list-style: none;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
	z-index: 50;
}

.aero-perfil-mis-acuerdos__dropdown::before {
	content: "";
	position: absolute;
	top: -0.5rem;
	left: 0;
	right: 0;
	height: 0.5rem;
}

.aero-perfil-mis-acuerdos.is-open .aero-perfil-mis-acuerdos__dropdown {
	display: block;
}

.aero-perfil-mis-acuerdos__dropdown li {
	margin: 0;
}

.aero-perfil-mis-acuerdos__dropdown a {
	display: block;
	padding: 0.5rem 1rem;
	font-size: 0.8125rem;
	color: #1f2937;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.aero-perfil-mis-acuerdos__dropdown a:hover {
	background: #f3f4f6;
	color: #111827;
}

@media (min-width: 1024px) {
	.aero-perfil-mis-acuerdos:hover .aero-perfil-mis-acuerdos__dropdown {
		display: block;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/** Mis Datos **/
.aero-submit-btn {
	border-radius: 2rem !important;
	font-family: Poppins;
	font-weight: 600 !important;
	font-size: 14px !important;
	background-color: var(--e-global-color-primary) !important;
	color: #fff !important;
	border: none !important;
}

.aero-cancel-btn {
	font-family: Poppins;
	font-weight: 600;
	font-size: 14px;
	line-height: 100%;
	color: var(--e-global-color-secondary) !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
	margin-left: 1rem;
}
