/* ══════════════════════════════════════════════════════════════════
   Hero Slider for Elementor

   Los colores usan los tokens de la maqueta con valor de reserva, así
   que si el sitio define :root{--casa:…} el widget lo sigue solo. Los
   controles de Elementor pisan estas reglas cuando se tocan desde el
   panel: lo de aquí es solo el punto de partida.
   ══════════════════════════════════════════════════════════════════ */

.hse-hero-slider {
	position: relative;
	overflow: hidden;
}

.hse-track {
	position: relative;
	width: 100%;
}

.hse-slide {
	display: none;
	position: relative;
	width: 100%;
	min-height: 70vh;
	background-color: var(--papel, #FAF7F0);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	align-items: center;
}

.hse-slide.hse-active {
	display: flex;
}

.hse-content {
	position: relative;
	z-index: 2;
	max-width: 720px;
	padding: 60px 80px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
}

.hse-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--verde-900, #5A6139);
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	gap: 16px;
}

/* La maqueta acompaña el eyebrow con una línea corta al costado, no con
   un subrayado a todo el ancho. */
.hse-eyebrow::after {
	content: "";
	flex: 1;
	height: 1px;
	max-width: 120px;
	background: var(--linea, #DCD3C0);
}

.hse-title {
	font-size: 46px;
	line-height: 1.12;
	letter-spacing: -.01em;
	font-weight: 400;
	color: var(--casa, #7C563D);
	margin: 0 0 24px;
}

.hse-description {
	font-size: 17px;
	line-height: 1.6;
	color: var(--tinta, #2E2B26);
	margin: 0 0 32px;
	max-width: 58ch;
}

.hse-buttons {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.hse-btn {
	display: inline-block;
	padding: 16px 28px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	border: 1px solid transparent;
	border-radius: var(--radio, 2px);
	transition: background-color .2s ease-out, color .2s ease-out,
		border-color .2s ease-out, transform .2s ease-out;
}

.hse-btn-primary {
	background-color: var(--dune-900, #8E4530);
	border-color: var(--dune-900, #8E4530);
	color: #ffffff;
}

.hse-btn-primary:hover {
	background-color: var(--casa, #7C563D);
	border-color: var(--casa, #7C563D);
}

.hse-btn-secondary {
	background-color: transparent;
	border: 1px solid var(--clay, #B88D6A);
	color: var(--verde-900, #5A6139);
}

.hse-btn-secondary:hover {
	background-color: var(--cloth, #E9DFC6);
	border-color: var(--casa, #7C563D);
	color: var(--casa, #7C563D);
}

.hse-btn:active {
	transform: translateY(1px);
}

/* ── Controles ─────────────────────────────────────────────────── */

.hse-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 50%;
	background: rgba(250, 247, 240, .8);
	color: var(--casa, #7C563D);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease;
}

.hse-arrow:hover {
	background: rgba(250, 247, 240, .98);
}

.hse-arrow-prev { left: 24px; }
.hse-arrow-next { right: 24px; }

/* Fila inferior: pausa + puntos, alineadas entre sí. */
.hse-controls {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 16px;
}

.hse-dots {
	display: flex;
	gap: 10px;
}

.hse-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: none;
	background: rgba(46, 43, 38, .25);
	padding: 0;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.hse-dot.hse-active {
	background: rgba(46, 43, 38, .75);
	transform: scale(1.2);
}

/* ── Botón de pausa ────────────────────────────────────────────────
   WCAG 2.2.2: el carrusel se mueve solo, así que hace falta poder
   detenerlo. Es un <button> real, alcanzable con Tab. No hay control
   en el panel para ocultarlo. */

.hse-pause {
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid var(--clay, #B88D6A);
	border-radius: 50%;
	background: rgba(250, 247, 240, .8);
	color: var(--casa, #7C563D);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease;
}

.hse-pause:hover {
	background: rgba(250, 247, 240, .98);
}

/* Dos barras = está girando, se puede pausar. */
.hse-pause__icon {
	display: block;
	width: 8px;
	height: 10px;
	border-left: 3px solid currentColor;
	border-right: 3px solid currentColor;
}

/* Triángulo = está detenido, se puede reanudar. */
.hse-pause--parado .hse-pause__icon {
	width: 0;
	height: 0;
	border-left: 9px solid currentColor;
	border-right: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	margin-left: 2px;
}

/* ── Foco de teclado ───────────────────────────────────────────────
   Requisito de accesibilidad de la maqueta: visible en todo elemento
   interactivo. No quitar. */
.hse-hero-slider :where(a, button):focus-visible {
	outline: 2px solid var(--dune-900, #8E4530);
	outline-offset: 3px;
}

.hse-dot:focus-visible {
	outline-offset: 4px;
}

/* ── Movimiento reducido ───────────────────────────────────────────
   El JS ya evita que el carrusel arranque solo. Esto apaga además las
   transiciones, igual que hace la maqueta en el resto del sitio. */
@media (prefers-reduced-motion: reduce) {
	.hse-hero-slider *,
	.hse-btn {
		transition: none !important;
		animation: none !important;
	}
	.hse-btn:active {
		transform: none;
	}
}

/* ── Móvil ─────────────────────────────────────────────────────────*/
@media (max-width: 767px) {
	.hse-content {
		padding: 40px 24px;
	}

	.hse-title {
		font-size: 32px;
	}

	.hse-arrow {
		width: 36px;
		height: 36px;
	}

	.hse-btn {
		width: 100%;
		text-align: center;
	}
}
