/* Tres Olas Slider — frontend */
.tos-slider {
	position: relative;
	overflow: hidden;
	width: 100%;
	touch-action: pan-y;
}

/* A todo el ancho de la pantalla aunque esté dentro de la caja del theme o de una columna centrada.
   Woodmart recorta el desborde horizontal (body overflow-x: clip), así que no aparece scroll. */
.tos-slider--completo {
	width: 100vw;
	max-width: 100vw;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
}

.tos-slider__pista {
	display: flex;
	transition: transform 600ms cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}

.tos-slider__slide {
	flex: 0 0 100%;
	min-width: 0;
	align-self: center; /* Si una slide no tiene imagen mobile, queda centrada en el alto. */
}

.tos-slider__slide a,
.tos-slider__slide picture {
	display: block;
}

.tos-slider__slide img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	user-select: none;
	-webkit-user-drag: none;
}

/* Botones (flechas y puntos): Woodmart estiliza todo <button> con
   :is(.btn,.button,button,[type=button]) y su CSS carga DESPUÉS que este, con la misma
   especificidad que una clase sola (y 0,2,0 en :hover). Por eso los selectores van con
   «.tos-slider button.» (0,2,1) y se resetea todo lo que el theme les pone. */
.tos-slider button.tos-slider__flecha,
.tos-slider button.tos-slider__punto {
	gap: 0;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	font-size: 0;
	line-height: 0;
	text-transform: none;
	letter-spacing: 0;
	outline: none;
	cursor: pointer;
}

/* Flechas: solo en pantallas con mouse. En touch se pasa con el dedo. */
.tos-slider button.tos-slider__flecha {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: none;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	color: #1f4950;
	opacity: 0;
	transition: opacity 200ms, background-color 200ms;
}

.tos-slider__flecha svg {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tos-slider button.tos-slider__flecha--prev { left: 16px; }
.tos-slider button.tos-slider__flecha--next { right: 16px; }

@media (hover: hover) and (pointer: fine) {
	.tos-slider button.tos-slider__flecha { display: inline-flex; align-items: center; justify-content: center; }
	.tos-slider:hover button.tos-slider__flecha,
	.tos-slider button.tos-slider__flecha:focus-visible { opacity: 1; }
	.tos-slider button.tos-slider__flecha:hover { background: #fff; color: #1f4950; box-shadow: none; }
}

.tos-slider__puntos {
	position: absolute;
	right: 0;
	bottom: 16px;
	left: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 4px;
}

/* Área táctil de 24px con el punto visible de 10px. */
.tos-slider button.tos-slider__punto {
	position: relative;
	display: block;
	width: 24px;
	height: 24px;
	border-radius: 0;
	background: none;
	transition: none;
}

.tos-slider button.tos-slider__punto:hover {
	background: none;
	box-shadow: none;
}

/* Todos del mismo tamaño: el activo relleno, el resto solo el borde. La sombra suave los
   separa de una foto clara. */
.tos-slider__punto::after {
	content: "";
	position: absolute;
	top: 7px;
	left: 7px;
	box-sizing: border-box;
	width: 10px;
	height: 10px;
	border: 1.5px solid #fff;
	border-radius: 50%;
	background: transparent;
	filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.4));
	transition: background-color 200ms;
}

.tos-slider__punto[aria-current="true"]::after {
	background: #fff;
}

.tos-slider button.tos-slider__flecha:focus-visible,
.tos-slider button.tos-slider__punto:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.tos-slider__pista { transition: none; }
}
