/**
 * Estilos Frontend — Bersoft Home: Hero Slider TLUBIN Industrial B2B.
 * Transiciones Cinemáticas, Composición Asimétrica 42/58 y Micro-interacciones Emil Kowalski.
 *
 * @package Bersoft_Home
 * @version 0.8.0
 */

/* ==========================================================================
   1. ESTRUCTURA BASE, PERSPECTIVA 3D Y PREVENCIÓN DE FOUC / CLS
   ========================================================================== */

.bersoft-hero-section {
	width: 100%;
	position: relative;
	overflow: hidden;
	background-color: #091922;
	box-sizing: border-box;
	contain: layout style;
}

.bersoft-hero-slider {
	width: 100%;
	position: relative;
	height: var(--bs-hero-h-d, 700px);
	overflow: hidden;
	perspective: 1400px;
	perspective-origin: 50% 50%;
}

.bersoft-hero-track {
	width: 100%;
	height: 100%;
	position: relative;
	transform-style: preserve-3d;
}

/* ==========================================================================
   2. DIAPOSITIVAS (SLIDES) Y CAPAS
   ========================================================================== */

.bersoft-hero-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 1;
	box-sizing: border-box;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transform-style: preserve-3d;
}

/* La primera diapositiva es visible sin JS; después sólo la activa.
   Evitar !important en estados que deben animarse. */
.bersoft-hero-slider:not(.is-ready) .bersoft-hero-slide:first-child,
.bersoft-hero-slide.is-active,
.bersoft-hero-slide.is-anim-entering,
.bersoft-hero-slide.is-anim-leaving {
 visibility: visible;
}
.bersoft-hero-slider:not(.is-ready) .bersoft-hero-slide:first-child,
.bersoft-hero-slide.is-active { opacity: 1; pointer-events: auto; z-index: 2; }
.bersoft-hero-slide.is-anim-leaving { pointer-events: none; z-index: 3; }
.bersoft-hero-slide.is-anim-entering { pointer-events: none; z-index: 4; }
/* El contenido no depende de JS para ser visible. */
.bersoft-hero-slide .bersoft-hero-content,
.bersoft-hero-slide .bersoft-hero-eyebrow,
.bersoft-hero-slide .bersoft-hero-title,
.bersoft-hero-slide .bersoft-hero-desc,
.bersoft-hero-slide .bersoft-hero-actions { visibility: visible; }

/* Capa 1: Fotografía Semántica con Focal Points */
.bersoft-hero-bg-layer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: 1;
	transform-style: preserve-3d;
}

.bersoft-hero-picture,
.bersoft-hero-bg-color {
	width: 100%;
	height: 100%;
	display: block;
}

.bersoft-hero-bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--bs-bg-pos-d, center center);
	display: block;
	transform: scale(1.0);
	transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.bersoft-hero-section[data-image-motion="true"] .bersoft-hero-slide.is-active .bersoft-hero-bg-img {
 transform: scale(1.018);
}

/* Capa 2: Overlay Gradual */
.bersoft-hero-overlay-layer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	pointer-events: none;
}

/* Capa 3: Contenedor de Contenido Asimétrico */
.bersoft-hero-container {
	position: relative;
	z-index: 3;
	width: 100%;
	max-width: var(--bs-container-max, 1380px);
	margin: 0 auto;
	padding: 0 var(--bs-container-padding, 36px);
	box-sizing: border-box;
	display: flex;
	height: 100%;
	transform-style: preserve-3d;
}

/* Matriz Espacial de Posición */
.bersoft-hero-container.bersoft-pos-x-left   { justify-content: flex-start; }
.bersoft-hero-container.bersoft-pos-x-center { justify-content: center; }
.bersoft-hero-container.bersoft-pos-x-right  { justify-content: flex-end; }

.bersoft-hero-container.bersoft-pos-y-top    { align-items: flex-start; padding-top: 60px; }
.bersoft-hero-container.bersoft-pos-y-middle { align-items: center; }
.bersoft-hero-container.bersoft-pos-y-bottom { align-items: flex-end; padding-bottom: 70px; }

.bersoft-hero-content {
	width: 100%;
	box-sizing: border-box;
}

/* Composición Asimétrica en Escritorio (~42–45% contenido / ~55–58% fotografía) */
@media (min-width: 1024px) {
	.bersoft-hero-container.bersoft-pos-x-left .bersoft-hero-content {
		flex: 0 0 44%;
		max-width: 580px;
	}
}

/* ==========================================================================
   3. TIPOGRAFÍA Y ACCIONES CTA
   ========================================================================== */

.bersoft-hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--e-global-typography-primary-font-family, var(--bs-font-family-heading, inherit));
	font-size: 13px;
	font-weight: var(--e-global-typography-secondary-font-weight, 600);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tlubin-hero-primary-light);
	margin-bottom: 14px;
	line-height: 1.2;
}

.bersoft-hero-eyebrow::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--tlubin-hero-primary-light);
	box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.bersoft-hero-title {
	font-family: var(--e-global-typography-primary-font-family, var(--bs-font-family-heading, inherit));
	font-size: clamp(32px, 3.65vw, 54px);
	font-weight: var(--e-global-typography-primary-font-weight, 700);
	line-height: 1.12;
	letter-spacing: -0.025em;
	color: #FFFFFF;
	margin: 0 0 18px 0;
	text-wrap: balance;
}

.bersoft-hero-desc {
	font-family: var(--e-global-typography-text-font-family, var(--bs-font-family-body, inherit));
	font-size: clamp(15.5px, 1.25vw, 17.5px);
	line-height: 1.6;
	color: #CBD5E1;
	margin: 0 0 32px 0;
	text-wrap: pretty;
	max-width: 540px;
}

.bersoft-hero-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 6px;
}

/* Botones CTA Emil Kowalski */
.bersoft-hero-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 30px;
	min-height: 48px;
	font-family: var(--e-global-typography-text-font-family, var(--bs-font-family-body, inherit));
	font-size: 15px;
	font-weight: var(--e-global-typography-accent-font-weight, 600);
	text-decoration: none;
	border-radius: var(--bs-cta-radius, 999px);
	transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
	box-sizing: border-box;
	cursor: pointer;
	line-height: 1;
}

.bersoft-hero-cta.is-style-solid {
	background-color: var(--bs-cta-bg, var(--tlubin-hero-primary));
	color: var(--bs-cta-color, #FFFFFF);
	border: 1.5px solid var(--bs-cta-bg, var(--tlubin-hero-primary));
	box-shadow: 0 4px 14px rgba(15, 76, 92, 0.28);
}

.bersoft-hero-cta.is-style-solid:hover {
	background-color: var(--bs-cta-hover-bg, var(--tlubin-hero-primary-dark));
	color: var(--bs-cta-hover-color, #FFFFFF);
	border-color: var(--bs-cta-hover-bg, var(--tlubin-hero-primary-dark));
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(15, 76, 92, 0.42);
}

.bersoft-hero-cta.is-style-solid:active {
	transform: scale(0.97) translateY(0);
	box-shadow: 0 2px 8px rgba(15, 76, 92, 0.2);
}

.bersoft-hero-cta.is-style-outline {
	background-color: transparent;
	color: var(--bs-cta-color, #FFFFFF);
	border: 1.5px solid rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.bersoft-hero-cta.is-style-outline:hover {
	background-color: var(--bs-cta-hover-bg, rgba(255, 255, 255, 0.12));
	color: var(--bs-cta-hover-color, #FFFFFF);
	border-color: #FFFFFF;
	transform: translateY(-2px);
}

.bersoft-hero-cta.is-style-outline:active {
	transform: scale(0.97) translateY(0);
}

.bersoft-hero-cta:focus-visible {
	outline: 2px solid var(--tlubin-hero-primary-light);
	outline-offset: 3px;
}

/* Mini-Card de Producto Opcional */
.bersoft-hero-product-badge {
	margin-top: 24px;
	display: inline-block;
}

.bersoft-hero-product-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 14px 8px 8px;
	background: rgba(7, 24, 31, 0.8);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	text-decoration: none;
	color: #FFFFFF;
	transition: background 200ms ease, transform 180ms ease;
}

.bersoft-hero-product-link:hover {
	background: rgba(15, 76, 92, 0.9);
	transform: translateY(-2px);
}

.bersoft-hero-product-thumb {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
}

.bersoft-hero-product-info {
	display: flex;
	flex-direction: column;
	text-align: left;
}

.bersoft-hero-product-title {
	font-size: 13px;
	font-weight: 600;
	color: #FFFFFF;
	line-height: 1.2;
}

.bersoft-hero-product-price {
	font-size: 13px;
	font-weight: 700;
	color: #E0F2FE;
	margin-top: 2px;
}

.bersoft-hero-product-btn {
	color: #FFFFFF;
	margin-left: 6px;
	opacity: 0.8;
}

/* ==========================================================================
   4. FAMILIA DE TRANSICIONES 3D Y CINEMÁTICAS NATIVAS
   ========================================================================== */

/* 4.1. TRANSICIÓN: Makaha Cinematic & Fade */
.bersoft-hero-slide.effect-makaha_cinematic.is-anim-entering,
.bersoft-hero-slide.effect-fade.is-anim-entering {
	animation: bs-anim-fade-in var(--bs-slide-dur, 800ms) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.bersoft-hero-slide.effect-makaha_cinematic.is-anim-leaving,
.bersoft-hero-slide.effect-fade.is-anim-leaving {
	animation: bs-anim-fade-out var(--bs-slide-dur, 800ms) cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes bs-anim-fade-in {
	0%   { opacity: 0; visibility: visible; }
	100% { opacity: 1; visibility: visible; }
}
@keyframes bs-anim-fade-out {
	0%   { opacity: 1; visibility: visible; }
	100% { opacity: 0; visibility: hidden; }
}

/* 4.2. TRANSICIÓN: Turn 3D Vertical */
.bersoft-hero-slide.effect-turn_3d_vertical {
	transform-origin: 50% 50%;
}
.bersoft-hero-slide.effect-turn_3d_vertical.is-anim-entering {
	animation: bs-anim-turn-3d-vert-in var(--bs-slide-dur, 1800ms) cubic-bezier(0.16, 1, 0.3, 1) forwards;
	z-index: 3;
}
.bersoft-hero-slide.effect-turn_3d_vertical.is-anim-leaving {
	animation: bs-anim-turn-3d-vert-out var(--bs-slide-dur, 1800ms) cubic-bezier(0.16, 1, 0.3, 1) forwards;
	z-index: 2;
}

@keyframes bs-anim-turn-3d-vert-in {
	0% {
		opacity: 0;
		transform: perspective(1400px) rotateX(75deg) translateZ(80px);
		visibility: visible;
	}
	40% {
		opacity: 0.85;
	}
	100% {
		opacity: 1;
		transform: perspective(1400px) rotateX(0deg) translateZ(0);
		visibility: visible;
	}
}

@keyframes bs-anim-turn-3d-vert-out {
	0% {
		opacity: 1;
		transform: perspective(1400px) rotateX(0deg) translateZ(0);
		visibility: visible;
	}
	60% {
		opacity: 0.4;
	}
	100% {
		opacity: 0;
		transform: perspective(1400px) rotateX(-75deg) translateZ(80px);
		visibility: hidden;
	}
}

/* 4.3. TRANSICIÓN: Turn 3D Horizontal */
.bersoft-hero-slide.effect-turn_3d_horizontal {
	transform-origin: 50% 50%;
}
.bersoft-hero-slide.effect-turn_3d_horizontal.is-anim-entering {
	animation: bs-anim-turn-3d-horiz-in var(--bs-slide-dur, 1800ms) cubic-bezier(0.16, 1, 0.3, 1) forwards;
	z-index: 3;
}
.bersoft-hero-slide.effect-turn_3d_horizontal.is-anim-leaving {
	animation: bs-anim-turn-3d-horiz-out var(--bs-slide-dur, 1800ms) cubic-bezier(0.16, 1, 0.3, 1) forwards;
	z-index: 2;
}

@keyframes bs-anim-turn-3d-horiz-in {
	0% {
		opacity: 0;
		transform: perspective(1400px) rotateY(-80deg) translateZ(100px);
		visibility: visible;
	}
	40% {
		opacity: 0.85;
	}
	100% {
		opacity: 1;
		transform: perspective(1400px) rotateY(0deg) translateZ(0);
		visibility: visible;
	}
}

@keyframes bs-anim-turn-3d-horiz-out {
	0% {
		opacity: 1;
		transform: perspective(1400px) rotateY(0deg) translateZ(0);
		visibility: visible;
	}
	60% {
		opacity: 0.35;
	}
	100% {
		opacity: 0;
		transform: perspective(1400px) rotateY(80deg) translateZ(100px);
		visibility: hidden;
	}
}

/* 4.4. TRANSICIÓN: Cube 3D */
.bersoft-hero-slide.effect-cube_3d.is-anim-entering {
	animation: bs-anim-cube-in var(--bs-slide-dur, 1600ms) cubic-bezier(0.2, 1, 0.3, 1) forwards;
	z-index: 3;
}
.bersoft-hero-slide.effect-cube_3d.is-anim-leaving {
	animation: bs-anim-cube-out var(--bs-slide-dur, 1600ms) cubic-bezier(0.2, 1, 0.3, 1) forwards;
	z-index: 2;
}

@keyframes bs-anim-cube-in {
	0% {
		opacity: 0;
		transform: perspective(1400px) rotateY(90deg) translateZ(400px);
		visibility: visible;
	}
	50% {
		opacity: 0.9;
	}
	100% {
		opacity: 1;
		transform: perspective(1400px) rotateY(0deg) translateZ(0);
		visibility: visible;
	}
}

@keyframes bs-anim-cube-out {
	0% {
		opacity: 1;
		transform: perspective(1400px) rotateY(0deg) translateZ(0);
		visibility: visible;
	}
	100% {
		opacity: 0;
		transform: perspective(1400px) rotateY(-90deg) translateZ(400px);
		visibility: hidden;
	}
}

/* 4.5. TRANSICIÓN: Fold / Reveal 3D */
.bersoft-hero-slide.effect-fold_3d.is-anim-entering {
	animation: bs-anim-fold-in var(--bs-slide-dur, 1500ms) cubic-bezier(0.16, 1, 0.3, 1) forwards;
	z-index: 3;
	transform-origin: left center;
}
.bersoft-hero-slide.effect-fold_3d.is-anim-leaving {
	animation: bs-anim-fold-out var(--bs-slide-dur, 1500ms) cubic-bezier(0.16, 1, 0.3, 1) forwards;
	z-index: 2;
	transform-origin: right center;
}

@keyframes bs-anim-fold-in {
	0% {
		opacity: 0;
		transform: perspective(1400px) rotateY(-60deg) scale(0.92);
		visibility: visible;
	}
	100% {
		opacity: 1;
		transform: perspective(1400px) rotateY(0deg) scale(1.0);
		visibility: visible;
	}
}

@keyframes bs-anim-fold-out {
	0% {
		opacity: 1;
		transform: perspective(1400px) rotateY(0deg) scale(1.0);
		visibility: visible;
	}
	100% {
		opacity: 0;
		transform: perspective(1400px) rotateY(60deg) scale(0.92);
		visibility: hidden;
	}
}

/* 4.6. TRANSICIÓN: Slide Horizontal & Slide Vertical */
.bersoft-hero-slide.effect-slide_horizontal.is-anim-entering {
	animation: bs-anim-slide-h-in var(--bs-slide-dur, 850ms) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.bersoft-hero-slide.effect-slide_horizontal.is-anim-leaving {
	animation: bs-anim-slide-h-out var(--bs-slide-dur, 850ms) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bs-anim-slide-h-in {
	0%   { transform: translateX(100%); opacity: 1; visibility: visible; }
	100% { transform: translateX(0);    opacity: 1; visibility: visible; }
}
@keyframes bs-anim-slide-h-out {
	0%   { transform: translateX(0);     opacity: 1; visibility: visible; }
	100% { transform: translateX(-100%); opacity: 0.7; visibility: hidden; }
}

.bersoft-hero-slide.effect-slide_vertical.is-anim-entering {
	animation: bs-anim-slide-v-in var(--bs-slide-dur, 850ms) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.bersoft-hero-slide.effect-slide_vertical.is-anim-leaving {
	animation: bs-anim-slide-v-out var(--bs-slide-dur, 850ms) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bs-anim-slide-v-in {
	0%   { transform: translateY(100%); opacity: 1; visibility: visible; }
	100% { transform: translateY(0);    opacity: 1; visibility: visible; }
}
@keyframes bs-anim-slide-v-out {
	0%   { transform: translateY(0);     opacity: 1; visibility: visible; }
	100% { transform: translateY(-100%); opacity: 0.7; visibility: hidden; }
}

/* 4.7. TRANSICIÓN: Zoom In */
.bersoft-hero-slide.effect-zoom_in.is-anim-entering {
	animation: bs-anim-zoom-in var(--bs-slide-dur, 900ms) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.bersoft-hero-slide.effect-zoom_in.is-anim-leaving {
	animation: bs-anim-zoom-out var(--bs-slide-dur, 900ms) cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bs-anim-zoom-in {
	0%   { transform: scale(1.15); opacity: 0; visibility: visible; }
	100% { transform: scale(1.0);  opacity: 1; visibility: visible; }
}
@keyframes bs-anim-zoom-out {
	0%   { transform: scale(1.0);  opacity: 1; visibility: visible; }
	100% { transform: scale(0.92); opacity: 0; visibility: hidden; }
}

/* ==========================================================================
   5. ANIMACIÓN INDEPENDIENTE DEL CONTENIDO
   ========================================================================== */

/* TLUBIN: la secuencia de contenido la dirige el motor JS.
   El HTML inicial permanece visible y accesible si el JS no se ejecuta. */
.bersoft-hero-slide .bersoft-hero-content,
.bersoft-hero-slide .bersoft-hero-eyebrow,
.bersoft-hero-slide .bersoft-hero-title,
.bersoft-hero-slide .bersoft-hero-desc,
.bersoft-hero-slide .bersoft-hero-actions,
.bersoft-hero-slide .bersoft-hero-product-badge {
  transition: none;
  will-change: auto;
}

/* ==========================================================================
   6. CONTROLES DE NAVEGACIÓN EDITORIALES Y PROPORCIONADOS
   ========================================================================== */

/* Flechas Laterales */
.bersoft-hero-arrows {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 28px;
	z-index: 10;
	pointer-events: none;
}

.bersoft-hero-arrow {
	pointer-events: auto;
	width: var(--bs-arrow-size, 46px);
	height: var(--bs-arrow-size, 46px);
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.20);
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 200ms ease, border-color 200ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1), opacity 240ms cubic-bezier(0.16, 1, 0.3, 1);
	padding: 0;
	box-sizing: border-box;
}

.bersoft-hero-arrow svg {
	width: var(--bs-arrow-icon-size, 20px);
	height: var(--bs-arrow-icon-size, 20px);
	display: block;
}

/* Flechas de navegación siempre visibles con microinteracciones físicas Emil Kowalski */
.bersoft-hero-arrow {
	opacity: 1 !important;
	visibility: visible !important;
	transform: none;
	pointer-events: auto !important;
}

.bersoft-hero-prev:hover,
.bersoft-hero-next:hover {
	background-color: var(--bs-hero-accent, var(--tlubin-hero-primary)) !important;
	border-color: rgba(255, 255, 255, 0.6) !important;
	transform: scale(1.06);
}

.bersoft-hero-prev:active,
.bersoft-hero-next:active {
	transform: scale(0.96);
}

.bersoft-hero-arrow:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 3px;
	opacity: 1 !important;
	transform: translateX(0) !important;
	pointer-events: auto !important;
}

/* Barra Inferior (Dots Editoriales + Botón Pausa) */
.bersoft-hero-bottom-bar {
	position: absolute;
	bottom: 24px;
	left: 0;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	z-index: 10;
	pointer-events: none;
}

.bersoft-hero-dots {
	display: flex;
	align-items: center;
	gap: 8px;
	pointer-events: auto;
}

.bersoft-hero-dot {
	width: 36px;
	height: 24px;
	padding: 0;
	background: transparent;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bersoft-dot-inner {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.35);
	transition: width 250ms ease, background-color 250ms ease, border-radius 250ms ease;
	display: block;
}

.bersoft-hero-dot.is-active .bersoft-dot-inner {
	width: 26px;
	height: 6px;
	border-radius: 4px;
	background-color: #FFFFFF;
}

.bersoft-hero-dot:hover .bersoft-dot-inner {
	background-color: rgba(255, 255, 255, 0.85);
}

.bersoft-hero-dot:focus-visible {
	outline: none;
}
.bersoft-hero-dot:focus-visible .bersoft-dot-inner {
	outline: 2px solid #FFFFFF;
	outline-offset: 3px;
}

/* Botón de Pausa / Reanudar Accesible */
.bersoft-hero-pause-btn {
	pointer-events: auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(15, 23, 42, 0.35);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 200ms ease, border-color 200ms ease;
	padding: 0;
}

.bersoft-hero-pause-btn:hover {
	background-color: var(--bs-hero-accent, var(--tlubin-hero-primary));
	border-color: rgba(255, 255, 255, 0.5);
}

.bersoft-hero-pause-btn:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
}

.bersoft-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS (DESKTOP, LAPTOP, TABLET, MÓVIL)
   ========================================================================== */

/* Laptop (1024px - 1279px) */
@media (max-width: 1279px) {
	.bersoft-hero-slider {
		height: var(--bs-hero-h-l, 640px);
	}
	.bersoft-hero-bg-img {
		object-position: var(--bs-bg-pos-l, center center);
	}
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
	.bersoft-hero-slider {
		height: var(--bs-hero-h-t, 560px);
	}
	.bersoft-hero-bg-img {
		object-position: var(--bs-bg-pos-t, center center);
	}
	.bersoft-hero-arrows {
		padding: 0 16px;
	}
}

/* Móvil (< 768px: 414px, 390px, 360px, 320px) */
@media (max-width: 767px) {
	.bersoft-hero-slider {
		height: var(--bs-hero-h-m, 540px);
	}
	.bersoft-hero-bg-img {
		object-position: var(--bs-bg-pos-m, center top);
	}

	/* Overlay reforzado en móvil para garantizar legibilidad técnica absoluta */
	.bersoft-hero-overlay-layer {
		background: linear-gradient(0deg, rgba(9, 25, 34, 0.96) 0%, rgba(9, 25, 34, 0.82) 46%, rgba(9, 25, 34, 0.45) 80%, rgba(9, 25, 34, 0.20) 100%) !important;
	}
	
	/* Ocultar elementos marcados para móvil */
	.bs-hide-mobile,
	.bs-hide-on-mobile {
		display: none !important;
	}
	
	.bersoft-hero-container {
		padding: 0 20px;
		align-items: flex-end !important;
		padding-bottom: 56px !important;
	}
	.bersoft-hero-content {
		max-width: 100% !important;
		text-align: left !important;
	}
	.bersoft-hero-eyebrow {
		font-size: 11.5px;
		margin-bottom: 8px;
		letter-spacing: 0.12em;
	}
	.bersoft-hero-eyebrow::before {
		width: 5px;
		height: 5px;
	}
	.bersoft-hero-title {
		font-size: clamp(24px, 6.8vw, 32px);
		line-height: 1.18;
		margin-bottom: 10px;
	}
	.bersoft-hero-desc {
		font-size: 14px;
		margin-bottom: 20px;
		line-height: 1.5;
		color: #CBD5E1;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.bersoft-hero-actions {
		gap: 10px;
		width: 100%;
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}
	.bersoft-hero-cta {
		width: 100%;
		display: inline-flex;
		padding: 13px 24px;
		min-height: 48px;
		font-size: 14.5px;
		box-sizing: border-box;
		justify-content: center;
	}
	.bersoft-hero-bottom-bar {
		bottom: 14px;
	}
}

/* Pantallas Extra Pequeñas (<= 360px) */
@media (max-width: 360px) {
	.bersoft-hero-container {
		padding: 0 16px;
		padding-bottom: 50px !important;
	}
	.bersoft-hero-title {
		font-size: 22px;
	}
	.bersoft-hero-desc {
		font-size: 13.5px;
		margin-bottom: 16px;
	}
	.bersoft-hero-cta {
		padding: 12px 20px;
		font-size: 14px;
		min-height: 46px;
	}
}

/* ==========================================================================
   8. ACCESIBILIDAD — PREFERS-REDUCED-MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.bersoft-hero-slide,
	.bersoft-hero-bg-img,
	.bersoft-hero-content,
	.bersoft-hero-eyebrow,
	.bersoft-hero-title,
	.bersoft-hero-desc,
	.bersoft-hero-actions,
	.bersoft-hero-product-badge,
	.bersoft-hero-arrow,
	.bersoft-dot-inner {
		animation: none !important;
		transition: opacity 150ms ease !important;
		transform: none !important;
	}
	.bersoft-hero-slide.is-anim-entering {
		opacity: 1 !important;
		visibility: visible !important;
	}
	.bersoft-hero-slide.is-anim-leaving {
		opacity: 0 !important;
		visibility: hidden !important;
	}
}

/* Bersoft 0.7.5: navegación del hero siempre reconocible */
.bersoft-hero-section .bersoft-hero-arrows .bersoft-hero-arrow {
 opacity:1 !important; transform:none !important; pointer-events:auto !important;
 background:rgba(4,27,40,.72) !important; border:1px solid rgba(255,255,255,.72) !important;
 color:#fff !important; visibility:visible !important;
}
.bersoft-hero-section .bersoft-hero-arrow svg {display:block !important;fill:none !important;stroke:currentColor !important;stroke-width:2.5 !important;opacity:1 !important}
.bersoft-hero-section .bersoft-hero-arrow:hover {background:var(--bs-hero-accent,#0F4C5C) !important;transform:scale(1.05) !important}
.bersoft-hero-section .bersoft-hero-dot .bersoft-dot-inner {opacity:.75}
.bersoft-hero-section .bersoft-hero-dot.is-active .bersoft-dot-inner {opacity:1}
@media(max-width:767px){.bersoft-hero-section .bersoft-hero-arrows:not(.bs-hide-mobile){padding:0 8px}.bersoft-hero-section .bersoft-hero-arrows:not(.bs-hide-mobile) .bersoft-hero-arrow{width:38px;height:38px}}

/* v0.7.6: controles de hero, alcance limitado */
.bersoft-hero-section .bersoft-hero-bottom-bar .bersoft-hero-dots{display:flex!important;align-items:center!important;gap:6px!important;visibility:visible!important;opacity:1!important}
.bersoft-hero-section .bersoft-hero-bottom-bar .bersoft-hero-dot{appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:34px!important;height:34px!important;min-width:34px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;cursor:pointer!important}
.bersoft-hero-section .bersoft-hero-bottom-bar .bersoft-hero-dot .bersoft-dot-inner{display:block!important;width:8px!important;height:8px!important;background:rgba(255,255,255,.7)!important;border-radius:50%!important;opacity:1!important}
.bersoft-hero-section .bersoft-hero-bottom-bar .bersoft-hero-dot.is-active .bersoft-dot-inner{width:28px!important;height:7px!important;border-radius:999px!important;background:#fff!important}
.bersoft-hero-section .bersoft-hero-bottom-bar .bersoft-hero-pause-btn{appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:34px!important;height:34px!important;min-width:34px!important;padding:0!important;border-radius:50%!important;background:rgba(5,35,50,.85)!important;border:1px solid rgba(255,255,255,.6)!important;color:#fff!important}
.bersoft-hero-section .bersoft-hero-pause-btn svg{width:14px!important;height:14px!important;stroke:#fff!important;opacity:1!important}
.bersoft-hero-section .bersoft-hero-bottom-bar button:focus-visible{outline:2px solid var(--tlubin-hero-primary-light)!important;outline-offset:3px!important}

/* v0.7.7: asegurar trazo visible de los SVG de navegacion (incluido polyline). */
.bersoft-hero-section .bersoft-hero-arrows .bersoft-hero-arrow {display:flex!important;align-items:center!important;justify-content:center!important;color:#fff!important;}
.bersoft-hero-section .bersoft-hero-arrows .bersoft-hero-arrow svg.bersoft-icon {display:block!important;position:static!important;width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;max-width:none!important;max-height:none!important;overflow:visible!important;opacity:1!important;visibility:visible!important;fill:none!important;stroke:#fff!important;stroke-width:2.2!important;transform:none!important;}
.bersoft-hero-section .bersoft-hero-arrows .bersoft-hero-arrow svg.bersoft-icon polyline {display:inline!important;visibility:visible!important;opacity:1!important;fill:none!important;stroke:#fff!important;stroke-width:2.2!important;stroke-linecap:round!important;stroke-linejoin:round!important;vector-effect:non-scaling-stroke!important;}
@media(max-width:767px){.bersoft-hero-section .bersoft-hero-arrows .bersoft-hero-arrow svg.bersoft-icon{width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;}}

/* v0.7.8 — corrección quirúrgica: navegación circular uniforme sin contorno blanco. */
.bersoft-hero-section .bersoft-hero-arrows .bersoft-hero-arrow.bersoft-hero-prev,
.bersoft-hero-section .bersoft-hero-arrows .bersoft-hero-arrow.bersoft-hero-next {
  box-sizing: border-box !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--bs-hero-accent, var(--e-global-color-primary, #0F4C5C)) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.16) !important;
}
.bersoft-hero-section .bersoft-hero-arrows .bersoft-hero-arrow:hover {
  background: var(--e-global-color-secondary, var(--bs-hero-accent, #083747)) !important;
  border: 0 !important;
  border-radius: 50% !important;
}
@media (max-width: 767px) {
  .bersoft-hero-section .bersoft-hero-arrows .bersoft-hero-arrow.bersoft-hero-prev,
  .bersoft-hero-section .bersoft-hero-arrows .bersoft-hero-arrow.bersoft-hero-next {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }
}

/* TLUBIN 0.8.3: estética editorial y controles de movimiento sin afectar otros módulos. */
.bersoft-hero-section { font-family: var(--e-global-typography-text-font-family, inherit); }
.bersoft-hero-title { max-width: 14ch; letter-spacing: -.032em; }
.bersoft-hero-desc { max-width: 49ch; }
.bersoft-hero-cta { box-shadow: none; }
.bersoft-hero-section[data-image-motion="false"] .bersoft-hero-bg-img { transition: none; transform: none; }
@media (prefers-reduced-motion: reduce) { .bersoft-hero-section .bersoft-hero-bg-img { transform: none !important; } }

/* TLUBIN v0.8.5 — tokens globales; alcance exclusivo del Hero.
   Los valores se resuelven en cascada desde Bersoft, Elementor o WordPress.
   No se imponen colores de la antigua tienda ni se altera el resto del sitio. */
.bersoft-hero-section {
  --tlubin-hero-primary: var(--bersoft-color-primary, var(--bs-color-primary, var(--bs-primary-color, var(--e-global-color-primary, var(--wp--preset--color--primary, #00599b)))));
  --tlubin-hero-primary-dark: var(--bersoft-color-primary-dark, var(--bs-color-primary-dark, var(--e-global-color-secondary, var(--tlubin-hero-primary))));
  --tlubin-hero-primary-light: var(--bersoft-color-primary-light, var(--bs-color-primary-light, var(--e-global-color-accent, var(--tlubin-hero-primary))));
  --tlubin-hero-heading-font: var(--bs-font-family-heading, var(--e-global-typography-primary-font-family, var(--wp--preset--font-family--heading, inherit)));
  --tlubin-hero-body-font: var(--bs-font-family-body, var(--e-global-typography-text-font-family, var(--wp--preset--font-family--body, inherit)));
  font-family: var(--tlubin-hero-body-font);
}
.bersoft-hero-section .bersoft-hero-title {
  font-family: var(--tlubin-hero-heading-font);
  font-weight: var(--bs-font-weight-heading, var(--e-global-typography-primary-font-weight, 700));
}
.bersoft-hero-section .bersoft-hero-desc,
.bersoft-hero-section .bersoft-hero-eyebrow,
.bersoft-hero-section .bersoft-hero-cta { font-family: var(--tlubin-hero-body-font); }
.bersoft-hero-section .bersoft-hero-cta { box-shadow: none !important; }
.bersoft-hero-section .bersoft-hero-cta:focus-visible,
.bersoft-hero-section .bersoft-hero-arrow:focus-visible,
.bersoft-hero-section .bersoft-hero-dot:focus-visible {
  outline: 2px solid var(--tlubin-hero-primary-light) !important;
  outline-offset: 3px;
}
/* Las flechas deben tomar el mismo primario que los botones. */
.bersoft-hero-section .bersoft-hero-arrows .bersoft-hero-arrow.bersoft-hero-prev,
.bersoft-hero-section .bersoft-hero-arrows .bersoft-hero-arrow.bersoft-hero-next {
  background: var(--bs-hero-accent, var(--tlubin-hero-primary)) !important;
}
.bersoft-hero-section .bersoft-hero-arrows .bersoft-hero-arrow:hover {
  background: var(--tlubin-hero-primary-dark) !important;
}

/* TLUBIN v0.8.5 — Composición móvil: bloque centrado, texto alineado a la izquierda.
   CTA(s) de ancho intrínseco, nunca estirados a todo el viewport. */
@media (max-width: 767px) {
  .bersoft-hero-section .bersoft-hero-container {
    width: 100%;
    box-sizing: border-box;
    padding-inline: clamp(18px, 6vw, 30px) !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .bersoft-hero-section .bersoft-hero-content {
    width: min(100%, 440px) !important;
    max-width: 440px !important;
    margin-inline: auto !important;
    text-align: left !important;
  }
  .bersoft-hero-section .bersoft-hero-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    width: auto !important;
    gap: 10px !important;
  }
  .bersoft-hero-section .bersoft-hero-cta {
    width: fit-content !important;
    max-width: 100% !important;
    flex: 0 1 auto !important;
    white-space: normal;
    text-align: center;
  }
}

/* TLUBIN 0.8.6 — Navegación táctil y fotografía responsive. */
@media (max-width: 767px) {
  .bersoft-hero-section .bersoft-hero-arrows,
  .bersoft-hero-section .bersoft-hero-arrows .bersoft-hero-arrow { display:none !important; visibility:hidden !important; pointer-events:none !important; }
  .bersoft-hero-section .bersoft-hero-overlay-layer {
    background:linear-gradient(to bottom, rgba(9,25,34,var(--tlubin-overlay-m,.25)) 0%,rgba(9,25,34,.45) 43%,rgba(9,25,34,.18) 76%,rgba(9,25,34,.08) 100%) !important;
  }
  .bersoft-hero-section .bersoft-hero-container { padding-bottom:76px !important; }
  .bersoft-hero-section .bersoft-hero-content { width:min(100%,440px) !important; margin-inline:auto !important; text-align:left !important; }
  .bersoft-hero-section .bersoft-hero-actions { align-items:flex-start !important; }
  .bersoft-hero-section .bersoft-hero-cta { width:fit-content !important; max-width:100% !important; }
}
@media (min-width:768px) and (max-width:1023px) {
  .bersoft-hero-section .bersoft-hero-overlay-layer {
    background:linear-gradient(to right,rgba(9,25,34,var(--tlubin-overlay-t,.30)) 0%,rgba(9,25,34,.35) 42%,rgba(9,25,34,.06) 100%) !important;
  }
  .bersoft-hero-section .bersoft-hero-container { padding-inline:76px !important; }
  .bersoft-hero-section .bersoft-hero-content { max-width:min(100%,520px) !important; }
}
.bersoft-hero-section .bersoft-hero-slider { touch-action:pan-y pinch-zoom; }
