/* ==========================================================================
   Project Slider - estilos base
   Los colores, radios, fuentes, etc. se aplican vía selectores dinámicos
   generados por los controles de Elementor (ver class-project-slider-widget.php)
   ========================================================================== */

.ps-container {
	position: relative;
	width: 100%;
}

/* --------------------------------------------------------------------
   Base de Swiper (a prueba de fallos).
   Elementor registra el SCRIPT de Swiper como dependencia, pero no
   siempre encola una hoja de estilos base junto a él. Sin estas reglas
   mínimas (position, overflow, flex, transform) los slides se apilan
   como bloques normales y el slider se ve como un espacio vacío alto.
   Estas reglas replican lo esencial de swiper.css, sin depender de que
   Elementor la cargue por su cuenta.
   -------------------------------------------------------------------- */
.ps-swiper.swiper {
	position: relative;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	overflow: hidden;
	list-style: none;
	padding: 0;
	z-index: 1;
}

.ps-swiper .swiper-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 1;
	display: flex;
	align-items: stretch;
	transition-property: transform;
	box-sizing: content-box;
}

.ps-swiper .swiper-slide {
	flex-shrink: 0;
	width: 100%;
	height: auto;
	position: relative;
	transition-property: transform;
	display: flex;
}

.ps-swiper.swiper-fade .swiper-slide {
	pointer-events: none;
	transition-property: opacity;
}

.ps-swiper.swiper-fade .swiper-slide-active {
	pointer-events: auto;
}

/* Tarjeta / diapositiva */
.ps-slide {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	text-decoration: none !important;
	overflow: hidden;
	background-color: #1a1a1a; /* fallback, sobreescrito por control de color */
}

/* Elimina cualquier subrayado heredado del navegador/tema cuando la
   diapositiva es un enlace <a>, incluyendo sus elementos hijos. */
a.ps-slide,
a.ps-slide:hover,
a.ps-slide:focus,
a.ps-slide:visited,
a.ps-slide *,
a.ps-slide *:hover {
	text-decoration: none !important;
	color: inherit;
}

.ps-slide__image-wrap {
	width: 100%;
	overflow: hidden;
	position: relative;
}

.ps-slide__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.ps-slide:hover .ps-slide__image {
	transform: scale( 1.04 );
}

.ps-slide__content {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ps-slide__badge {
	display: inline-block;
	align-self: flex-start;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 13px;
	line-height: 1.4;
	background-color: #ffffff;
	color: #000000;
}

.ps-slide__title {
	margin: 0;
	font-size: 20px;
	line-height: 1.3;
	color: #ffffff;
}

/* ==========================================================================
   Navegación (flechas)
   ========================================================================== */
.ps-nav {
	display: flex;
	gap: 10px;
	margin-bottom: 16px;
}

.ps-nav--bottom-right {
	order: 2;
	justify-content: flex-end;
	margin-bottom: 0;
	margin-top: 16px;
}

.ps-nav--bottom-center {
	order: 2;
	justify-content: center;
	margin-bottom: 0;
	margin-top: 16px;
}

.ps-nav--bottom-left {
	order: 2;
	justify-content: flex-start;
	margin-bottom: 0;
	margin-top: 16px;
}

.ps-nav--top-right {
	justify-content: flex-end;
}

.ps-nav--top-center {
	justify-content: center;
}

.ps-container {
	display: flex;
	flex-direction: column;
}

.ps-nav__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background-color: #ffffff;
	color: #1a1a1a;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
	padding: 0;
	flex-shrink: 0;
}

.ps-nav__btn:hover {
	opacity: 0.85;
}

.ps-nav__btn.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

.ps-nav__btn svg {
	width: 45%;
	height: 45%;
	fill: currentColor;
}

/* Flechas a los costados (superpuestas sobre el slider) */
.ps-nav__btn--sides {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	z-index: 10;
}

.ps-nav__btn--sides.ps-nav__btn--prev {
	left: 10px;
}

.ps-nav__btn--sides.ps-nav__btn--next {
	right: 10px;
}

/* ==========================================================================
   Paginación
   ========================================================================== */
.ps-pagination {
	position: relative;
	margin-top: 16px;
	text-align: center;
}

.ps-pagination.swiper-pagination-progressbar {
	height: 4px;
	background: rgba( 0, 0, 0, 0.1 );
}

/* ==========================================================================
   Soporte para efectos 3D (coverflow, cube, flip, cards)
   ========================================================================== */
.ps-swiper.swiper-3d {
	perspective: 1200px;
}

.ps-swiper.swiper-3d .swiper-wrapper {
	transform-style: preserve-3d;
}

.ps-swiper.swiper-3d .swiper-slide-shadow,
.ps-swiper.swiper-3d .swiper-slide-shadow-left,
.ps-swiper.swiper-3d .swiper-slide-shadow-right,
.ps-swiper.swiper-3d .swiper-slide-shadow-top,
.ps-swiper.swiper-3d .swiper-slide-shadow-bottom {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 10;
}

.ps-swiper.swiper-3d .swiper-slide-shadow {
	background: rgba( 0, 0, 0, 0.15 );
}

.ps-swiper.swiper-3d .swiper-slide-shadow-left {
	background-image: linear-gradient( to left, rgba( 0, 0, 0, 0.5 ), rgba( 0, 0, 0, 0 ) );
}

.ps-swiper.swiper-3d .swiper-slide-shadow-right {
	background-image: linear-gradient( to right, rgba( 0, 0, 0, 0.5 ), rgba( 0, 0, 0, 0 ) );
}

.ps-swiper.swiper-3d .swiper-slide-shadow-top {
	background-image: linear-gradient( to top, rgba( 0, 0, 0, 0.5 ), rgba( 0, 0, 0, 0 ) );
}

.ps-swiper.swiper-3d .swiper-slide-shadow-bottom {
	background-image: linear-gradient( to bottom, rgba( 0, 0, 0, 0.5 ), rgba( 0, 0, 0, 0 ) );
}

.ps-swiper.swiper-cube {
	overflow: visible;
}

.ps-swiper.swiper-cube .swiper-slide {
	pointer-events: none;
	backface-visibility: hidden;
	z-index: 1;
	visibility: hidden;
	transform-origin: 0 0;
	width: 100%;
	height: 100%;
}

.ps-swiper.swiper-cube .swiper-slide-active,
.ps-swiper.swiper-cube .swiper-slide-next,
.ps-swiper.swiper-cube .swiper-slide-prev {
	pointer-events: auto;
	visibility: visible;
}

.ps-swiper.swiper-flip .swiper-slide {
	backface-visibility: hidden;
	z-index: 1;
}

.ps-swiper.swiper-flip .swiper-slide-active {
	z-index: 2;
}

.ps-swiper.swiper-cards {
	overflow: visible;
}

.ps-swiper.swiper-cards .swiper-slide {
	overflow: hidden;
}

/* ==========================================================================
   Responsive general
   ========================================================================== */
@media ( max-width: 767px ) {
	.ps-slide__title {
		font-size: 17px;
	}
}