/**
 * Punto Secreto — Hero Slider (Estilos Oficiales Modulares)
 * Proporción automática (64:27 desktop, 16:9 tablet, 4:5 móvil), flujo normal de altura con .ps-hero-stage,
 * overflow: hidden contenedor raíz, navegación con bottom: 0, degradado borgoña y chat dinámico.
 */
.ps-hero-widget {
	--ps-hero-red: #B30000;
	--ps-hero-dark: #161615;
	--ps-hero-pink: #FDF2F4;
	--ps-hero-btn-bg: #B30000;
	--ps-hero-btn-hover-bg: #8F0000;
	--ps-hero-btn-color: #FFFFFF;
	--ps-hero-nav-accent: #B30000;
	--ps-hero-arrow-color: #B30000;
	--ps-hero-arrow-bg: rgba(255, 255, 255, 0.9);
	--ps-hero-h: 640px;
	--ps-hero-content-max-w: 560px;
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	min-height: auto;
	overflow: hidden;
	clear: both;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: inherit;
	color: #FFFFFF;
	background: #161615;
}
.ps-hero-widget *, .ps-hero-widget *::before, .ps-hero-widget *::after {
	box-sizing: border-box;
	font-family: inherit;
}

/* Escenario que reserva la altura visible exacta en el flujo normal */
.ps-hero-stage {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 64 / 27;
	overflow: hidden;
	outline: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
.ps-hero-stage picture,
.ps-hero-stage img,
.ps-hero-stage video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ps-hero-widget.ps-hero-custom-height .ps-hero-stage {
	aspect-ratio: auto;
	height: var(--ps-hero-h, 640px);
	min-height: 400px;
}

/* Transición Punto Reveal: expansión circular desde la zona del punto rojo */
.ps-hero-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 1;
	overflow: hidden;
	clip-path: circle(0% at 20% 90%);
	transition: clip-path 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease 0.3s, visibility 0.7s;
}
.ps-hero-slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 2;
	clip-path: circle(150% at 20% 90%);
	transition: clip-path 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

/* Fondo multimedia: Picture y Video */
.ps-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.ps-hero-picture, .ps-hero-img, .ps-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ps-hero-video { z-index: 1; }

/* Overlay degradado borgoña localizado detrás del texto (Identidad Punto Secreto) */
.ps-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(58, 7, 16, 0.85) 0%, rgba(58, 7, 16, 0.35) 45%, rgba(58, 7, 16, 0) 75%);
}

/* Contenido Editorial con entrada secuenciada Punto Reveal */
.ps-hero-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; position: relative; height: 100%; display: flex; align-items: center; }
.ps-hero-content { max-width: var(--ps-hero-content-max-w, 560px); z-index: 3; color: #FFFFFF; }

.ps-hero-geo {
	display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; letter-spacing: 1px;
	text-transform: uppercase; color: #FDF2F4; opacity: 0; transform: translateY(12px); margin-bottom: 8px;
	transition: opacity 0.35s ease 0.1s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.ps-hero-slide.is-active .ps-hero-geo { opacity: 0.9; transform: translateY(0); }

.ps-hero-eyebrow {
	display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
	color: #FDF2F4; opacity: 0; transform: translateY(12px); margin-bottom: 10px;
	transition: opacity 0.35s ease 0.1s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.ps-hero-slide.is-active .ps-hero-eyebrow { opacity: 1; transform: translateY(0); }

.ps-hero-title {
	font-size: clamp(32px, 4.2vw, 54px); font-weight: 700; line-height: 1.12; color: #FFFFFF; margin: 0 0 16px;
	letter-spacing: -0.8px; opacity: 0; transform: translateY(16px);
	transition: opacity 0.35s ease 0.18s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.18s;
}
.ps-hero-slide.is-active .ps-hero-title { opacity: 1; transform: translateY(0); }

.ps-hero-desc {
	font-size: clamp(15px, 1.3vw, 17.5px); line-height: 1.55; color: rgba(255, 255, 255, 0.92); margin: 0 0 28px;
	max-width: 480px; opacity: 0; transform: translateY(14px);
	transition: opacity 0.35s ease 0.26s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.26s;
}
.ps-hero-slide.is-active .ps-hero-desc { opacity: 0.92; transform: translateY(0); }

/* Botón CTA único por slide */
.ps-hero-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: var(--ps-hero-btn-bg, #B30000);
	color: var(--ps-hero-btn-color, #FFFFFF) !important; border-radius: 9999px; font-size: 14px; font-weight: 600;
	text-decoration: none !important; border: 1px solid transparent; box-shadow: 0 4px 14px rgba(179, 0, 0, 0.28);
	opacity: 0; transform: translateY(12px);
	transition: opacity 0.35s ease 0.34s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.34s, background-color 0.2s ease, box-shadow 0.2s ease;
}
.ps-hero-slide.is-active .ps-hero-btn { opacity: 1; transform: translateY(0); }
.ps-hero-btn:hover { background: var(--ps-hero-btn-hover-bg, #8F0000); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(179, 0, 0, 0.38); }
.ps-hero-btn:active { transform: scale(0.98); }
.ps-hero-btn-arrow { font-size: 16px; transition: transform 0.15s ease; }
.ps-hero-btn:hover .ps-hero-btn-arrow { transform: translateX(3px); }

/* Chat flotante dinámico con coordenadas libres por slide (sin línea decorativa por defecto) */
.ps-hero-chat {
	position: absolute; left: var(--ps-chat-x, 72%); top: var(--ps-chat-y, 68%); max-width: var(--ps-chat-max-width, 360px);
	transform: translate(-50%, -50%); opacity: 0; z-index: 4; pointer-events: auto; text-align: var(--ps-chat-align, center);
	transition: opacity 0.4s ease 0.44s, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.44s;
}
.ps-hero-slide.is-active .ps-hero-chat { opacity: 1; transform: translate(-50%, -50%); }
.ps-hero-chat-bubble {
	display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.4);
	border-left: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14); text-decoration: none !important; color: #161615; width: max-content; max-width: 100%;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.ps-hero-chat-bubble:hover { background: #FFFFFF; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2); }
.ps-hero-chat-bubble:active { transform: scale(0.98); }
.ps-hero-chat-bubble:focus-visible { outline: 2px solid var(--ps-hero-red); outline-offset: 2px; }
.ps-hero-chat-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ps-hero-chat-text { font-size: 13px; font-weight: 600; color: #161615; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 0.25s ease, transform 0.25s ease; }
.ps-hero-chat-text.is-fading { opacity: 0; transform: translateY(-4px); }

/* Barra de navegación inferior contenida dentro del escenario con bottom: 0 */
.ps-hero-nav-bar { position: absolute; bottom: 0; left: 0; right: 0; width: 100%; z-index: 5; pointer-events: none; padding: 0 0 24px 0; }
.ps-hero-nav-bar .ps-hero-container { height: auto; min-height: 0; }
.ps-hero-nav-flex { display: flex; align-items: center; justify-content: space-between; gap: 20px; pointer-events: auto; width: 100%; }
.ps-hero-nav-left { display: flex; align-items: center; gap: 16px; }
.ps-hero-secret-tag { font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #FFFFFF; opacity: 0.9; }
.ps-hero-progress-track { width: 90px; height: 3px; background: rgba(255, 255, 255, 0.25); border-radius: 3px; overflow: hidden; position: relative; }
.ps-hero-progress-bar { height: 100%; width: 0%; background: var(--ps-hero-nav-accent, #B30000); border-radius: 3px; position: relative; }
.ps-hero-counter { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.85); letter-spacing: 1px; }

.ps-hero-nav-right { display: flex; align-items: center; gap: 10px; }
.ps-hero-nav-btn, .ps-hero-pause-btn {
	width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.6);
	background: var(--ps-hero-arrow-bg, rgba(255, 255, 255, 0.9)); color: var(--ps-hero-arrow-color, #B30000);
	display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
	backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ps-hero-nav-btn:hover, .ps-hero-pause-btn:hover { background: #B30000; color: #FFFFFF; border-color: #B30000; transform: scale(1.05); }
.ps-hero-nav-btn:active, .ps-hero-pause-btn:active { transform: scale(0.98); }
.ps-hero-nav-btn:focus-visible, .ps-hero-pause-btn:focus-visible { outline: 2px solid #B30000; outline-offset: 2px; }

/* Responsive Tablet: 768px a 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
	.ps-hero-stage { aspect-ratio: 16 / 9; }
	.ps-hero-widget.ps-hero-custom-height .ps-hero-stage { aspect-ratio: auto; height: var(--ps-hero-h, 520px); }
	.ps-hero-title { font-size: 36px; }
	.ps-hero-desc { font-size: 15px; }
	.ps-hero-chat { left: var(--ps-chat-x-t, var(--ps-chat-x, 68%)); top: var(--ps-chat-y-t, var(--ps-chat-y, 72%)); }
}

/* Responsive Móvil: hasta 767px (Proporción y reserva de altura en el wrapper del widget) */
@media (max-width: 767px) {
	.elementor-widget-punto_secreto_hero {
		position: relative;
		display: block;
		flex: 0 0 auto !important;
		align-self: stretch !important;
		width: 100% !important;
		max-width: 100% !important;
		aspect-ratio: 4 / 5 !important;
		min-width: 0 !important;
		overflow: hidden !important;
	}
	.elementor-widget-punto_secreto_hero > .elementor-widget-container,
	.elementor-widget-punto_secreto_hero .ps-hero-widget,
	.elementor-widget-punto_secreto_hero .ps-hero-stage {
		width: 100% !important;
		height: 100% !important;
		min-height: 0 !important;
	}
	.elementor-widget-punto_secreto_hero .ps-hero-stage {
		aspect-ratio: auto !important;
	}
	.elementor-widget-punto_secreto_hero.ps-hero-custom-height,
	.elementor-widget-punto_secreto_hero:has(.ps-hero-custom-height) {
		aspect-ratio: auto !important;
		height: var(--ps-hero-h, 480px) !important;
	}
	.ps-hero-slide { clip-path: none !important; transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s ease; }
	.ps-hero-slide.is-active { clip-path: none !important; transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
	.ps-hero-container { padding: 0 18px; }
	.ps-hero-overlay { background: linear-gradient(180deg, rgba(58, 7, 16, 0.35) 0%, rgba(58, 7, 16, 0.92) 100%); }
	.ps-hero-content { max-width: 100%; }
	.ps-hero-geo { font-size: 10px; margin-bottom: 4px; }
	.ps-hero-eyebrow { font-size: 10.5px; margin-bottom: 6px; }
	.ps-hero-title { font-size: clamp(20px, 5.5vw, 26px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.4px; }
	.ps-hero-desc { font-size: 13px; line-height: 1.35; margin: 0 0 14px; max-width: 290px; }
	.ps-hero-btn { padding: 10px 18px; font-size: 12px; }
	.ps-hero-chat { left: var(--ps-chat-x-m, var(--ps-chat-x, 50%)); top: var(--ps-chat-y-m, var(--ps-chat-y, 80%)); max-width: calc(100vw - 36px); }
	.ps-hero-chat-bubble { padding: 8px 14px; }
	.ps-hero-chat-text { font-size: 11.5px; }
	.ps-hero-widget.ps-hero-hide-mobile-chat .ps-hero-chat { display: none !important; }
	.ps-hero-nav-bar { padding: 0 0 14px 0; }
	.ps-hero-progress-track { width: 50px; }
	.ps-hero-hide-mobile-nav .ps-hero-nav-right { display: none !important; }
	.ps-hero-hide-mobile-nav .ps-hero-nav-flex { justify-content: flex-start; }
	.ps-hero-show-mobile-nav .ps-hero-nav-btn,
	.ps-hero-show-mobile-nav .ps-hero-pause-btn { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
	.ps-hero-slide, .ps-hero-slide.is-active { clip-path: none !important; transition: opacity 0.2s linear !important; }
	.ps-hero-content *, .ps-hero-chat { transform: none !important; transition: none !important; }
}
