/* Hercos Hero – frontend */
.hhr-hero,
.hhr-hero *,
.hhr-hero *::before,
.hhr-hero *::after { box-sizing: border-box; }

.hhr-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	width: 100%;
	height: var(--hhr-h, 640px);
	padding: 0 80px 50px;
	overflow: hidden;
	clear: both;
	background-color: var(--hhr-bg, #000);
	background-image: var(--hhr-poster, none);
	background-size: cover;
	background-position: center;
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Ancho completo de pantalla (salir de columnas del tema) */
.hhr-hero.hhr-full {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* Vídeo */
.hhr-hero video.hhr-video {
	position: absolute !important;
	top: 50%;
	left: 50%;
	z-index: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover;
	transform: translate(-50%, -50%);
	opacity: 0;
	transition: opacity .8s ease-in-out;
	pointer-events: none;
}
.hhr-hero video.hhr-video.is-ready { opacity: 1; }

.hhr-hero .hhr-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg,
		rgba(0, 0, 0, calc(var(--hhr-ov, .65) * .23)) 0%,
		rgba(0, 0, 0, var(--hhr-ov, .65)) 100%);
}

/* Línea superior brillante */
.hhr-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	z-index: 3;
	background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.4) 50%, rgba(255,255,255,0) 100%);
}

/* Mensajes apilados: solo se ve el del vídeo activo */
.hhr-hero .hhr-contents {
	position: relative;
	z-index: 2;
	display: grid;
	width: 100%;
	max-width: 550px;
}
.hhr-hero .hhr-content {
	grid-area: 1 / 1;
	visibility: hidden;
	pointer-events: none;
}
.hhr-hero .hhr-content.is-active { visibility: visible; pointer-events: auto; }

/* Alineación centrada */
.hhr-hero.hhr-align-center { justify-content: center; text-align: center; }
.hhr-hero.hhr-align-center .hhr-contents { max-width: 800px; }
.hhr-hero.hhr-align-center .hhr-sub { justify-content: center; }

/* Animación de entrada */
.hhr-hero .hhr-fade { opacity: 0; transform: translateY(20px); }
.hhr-hero .hhr-content.is-active .hhr-fade { animation: hhrReveal 1s cubic-bezier(.16, 1, .3, 1) forwards; }
.hhr-hero .hhr-content.is-active .hhr-d1 { animation-delay: .15s; }
.hhr-hero .hhr-content.is-active .hhr-d2 { animation-delay: .35s; }
.hhr-hero .hhr-content.is-active .hhr-d3 { animation-delay: .55s; }
@keyframes hhrReveal { to { opacity: 1; transform: translateY(0); } }

/* Subtítulo */
.hhr-hero .hhr-sub {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 3px;
	text-transform: uppercase;
	text-shadow: 0 2px 6px rgba(0, 0, 0, .8);
}
.hhr-hero .hhr-sub::before {
	content: '';
	display: inline-block;
	flex: none;
	width: 18px;
	height: 1px;
	background: currentColor;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .8);
}

/* Título (reseteo contra estilos de h1/h2 de Flatsome / Elementor) */
.hhr-hero .hhr-title {
	margin: 0 0 24px !important;
	padding: 0;
	font-size: clamp(34px, 4.5vw, 50px);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -1px;
	text-transform: none;
	text-shadow: 0 4px 18px rgba(0, 0, 0, .85);
}

/* Botón */
.hhr-hero .hhr-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 14px 30px;
	overflow: hidden;
	border: 1px solid var(--hhr-btn, #fff);
	border-radius: 40px;
	background: transparent;
	color: var(--hhr-btn, #fff) !important;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .5px;
	text-decoration: none !important;
	text-shadow: 0 2px 6px rgba(0, 0, 0, .8);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
	transition: all .3s ease;
}
.hhr-hero .hhr-btn::after {
	content: '';
	position: absolute;
	top: -50%;
	left: -60%;
	width: 40%;
	height: 200%;
	background: linear-gradient(60deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.4) 50%, rgba(255,255,255,0) 100%);
	transform: rotate(25deg);
	animation: hhrShimmer 4s infinite;
}
@keyframes hhrShimmer { 0% { left: -60%; } 20% { left: 140%; } 100% { left: 140%; } }

.hhr-hero a.hhr-btn:hover {
	background: var(--hhr-btn, #fff);
	color: var(--hhr-btn-hover, #0d0d0d) !important;
	transform: translateY(-2px);
	text-shadow: none;
	box-shadow: 0 10px 25px rgba(0, 0, 0, .3);
}

.hhr-hero .hhr-btn-arrow { display: inline-block; font-size: 14px; transition: transform .3s ease; }
.hhr-hero a.hhr-btn:hover .hhr-btn-arrow { transform: translate(3px, -3px); }

/* Tablet */
@media (max-width: 992px) {
	.hhr-hero { height: var(--hhr-h-t, 540px); padding: 0 40px 40px; }
}

/* Móvil */
@media (max-width: 600px) {
	.hhr-hero { height: var(--hhr-h-m, 480px); padding: 0 24px 35px; }
	.hhr-hero .hhr-contents,
	.hhr-hero.hhr-align-center .hhr-contents { max-width: 100%; }
	.hhr-hero .hhr-title { font-size: 32px; margin-bottom: 20px !important; }
	.hhr-hero .hhr-btn { padding: 13px 26px; }
}

@media (prefers-reduced-motion: reduce) {
	.hhr-hero .hhr-content.is-active .hhr-fade { animation: none; opacity: 1; transform: none; }
	.hhr-hero .hhr-btn::after { animation: none; display: none; }
}
