/* Carrusel de la portada (Home) */
/* La portada ocupa todo el alto de la pantalla bajo el menú (75px) */
#op3-element-HkehRTUM {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: calc(100vh - 75px);
	padding-top: 60px !important;
	padding-bottom: 60px !important;
}

#op3-element-HkehRTUM > [data-op3-element-container] {
	position: static;
	width: 100%;
}

@media (max-width: 767px) {
	#op3-element-HkehRTUM {
		min-height: 75vh;
	}
}

.ch-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 1s ease;
}

.ch-slide.activo {
	opacity: 1;
}

/* Sombra azul a la izquierda para que el texto se lea sobre la foto de la oficina */
.ch-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(12, 20, 64, .82) 0%, rgba(12, 20, 64, .62) 50%, rgba(12, 20, 64, .3) 100%);
}

.ch-flecha {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, .8);
	border-radius: 50%;
	background: rgba(0, 0, 0, .35);
	color: #fff;
	font-size: 22px;
	line-height: 44px;
	text-align: center;
	cursor: pointer;
	transition: background .2s;
}

.ch-flecha:hover,
.ch-flecha:focus {
	background: rgba(0, 0, 0, .65);
	color: #fff;
}

.ch-prev { left: 20px; }
.ch-next { right: 20px; }

.ch-puntos {
	position: absolute;
	bottom: 15px;
	left: 0;
	right: 0;
	z-index: 5;
	display: flex;
	justify-content: center;
	gap: 10px;
}

.ch-puntos button {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.ch-puntos button.activo {
	background: #fff;
}

@media (max-width: 767px) {
	.ch-flecha {
		width: 36px;
		height: 36px;
		font-size: 16px;
		line-height: 32px;
	}
	.ch-prev { left: 6px; }
	.ch-next { right: 6px; }
}

/* Celular: el texto va sobre la foto, y cada foto se ve completa (sin recortar). Los costados
   se rellenan con la misma foto ampliada y desenfocada, en vez de un color de fondo */
@media (max-width: 767px) {
	#op3-element-HkehRTUM {
		min-height: 0;
		padding-top: 30px !important;
		padding-bottom: 36px !important;
	}

	/* La capa de imagen traía de fondo la foto del paraguas: se quita */
	#op3-element-HkehRTUM [data-op3-background="image"] { background: none !important; }

	/* Sin las capas gris claro y oscura de OptimizePress de la portada */
	#op3-element-HkehRTUM > [data-op3-element-container] > [data-op3-border] > [data-op3-background="base"]::before,
	#op3-element-HkehRTUM > [data-op3-element-container] > [data-op3-border] > [data-op3-background="base"]::after,
	#op3-element-HkehRTUM > [data-op3-element-container] > [data-op3-border] > [data-op3-background="overlay"]::before,
	#op3-element-HkehRTUM > [data-op3-element-container] > [data-op3-border] > [data-op3-background="overlay"]::after { display: none; }

	.ch-slide { overflow: hidden; background: none !important; }

	/* Fondo: la misma foto, ampliada y desenfocada */
	.ch-slide::before {
		content: "";
		position: absolute;
		inset: -24px;
		background: var(--foto) center / cover no-repeat;
		filter: blur(20px);
	}

	/* Encima: la foto completa, con una sombra suave para que el texto se lea */
	.ch-slide::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(180deg, rgba(12, 20, 64, .35) 0%, rgba(12, 20, 64, .5) 100%), var(--foto) center / contain no-repeat;
	}

	#op3-element-HkehRTUM h1,
	#op3-element-HkehRTUM h2 { text-shadow: 0 1px 8px rgba(0, 0, 0, .55); }
}

/* Computador: sin la sombra oscura pareja de OptimizePress; solo una sombra azul detrás del texto (a la
   izquierda) y la foto con sus colores reales hacia la derecha */
@media (min-width: 768px) {
	#op3-element-HkehRTUM > [data-op3-element-container] > [data-op3-border] > [data-op3-background="overlay"]::before,
	#op3-element-HkehRTUM > [data-op3-element-container] > [data-op3-border] > [data-op3-background="overlay"]::after { display: none; }

	#op3-element-HkehRTUM [data-op3-background="image"] { background: none !important; }

	.ch-slide::after { background: linear-gradient(90deg, rgba(12, 20, 64, .82) 0%, rgba(12, 20, 64, .6) 40%, rgba(12, 20, 64, 0) 75%); }
}
