/**
 * Components CSS — lancergroup-base
 *
 * Estilos mínimos para los componentes interactivos de los patterns
 * (tabs, slider). Resto de componentes (hero, features, pricing, etc.)
 * se estiliza vía theme.json + clases generadas por core blocks.
 */

/* --- Tabs ------------------------------------------------------------- */

.lg-tabs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	border-bottom: 1px solid var(--wp--preset--color--border);
	margin-bottom: var(--wp--preset--spacing--40);
}

.lg-tabs__tab {
	background: none;
	border: 0;
	padding: 0.625rem 1rem;
	font: inherit;
	cursor: pointer;
	color: var(--wp--preset--color--contrast-soft);
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: color 0.15s, border-color 0.15s;
}

.lg-tabs__tab:hover,
.lg-tabs__tab:focus-visible {
	color: var(--wp--preset--color--contrast);
}

.lg-tabs__tab.is-active {
	color: var(--wp--preset--color--accent);
	border-bottom-color: var(--wp--preset--color--accent);
	font-weight: 600;
}

.lg-tabs__panel {
	padding: var(--wp--preset--spacing--40) 0;
}

.lg-tabs__panel[hidden] {
	display: none;
}

/* --- Slider ----------------------------------------------------------- */

.lg-slider {
	position: relative;
	overflow: hidden;
}

.lg-slider__track {
	position: relative;
}

.lg-slider__slide[hidden] {
	display: none;
}

.lg-slider__controls {
	align-items: center;
}

.lg-slider__prev,
.lg-slider__next {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 50%;
	width: 2.5rem;
	height: 2.5rem;
	font-size: 1.25rem;
	cursor: pointer;
	color: var(--wp--preset--color--contrast);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.lg-slider__prev:hover,
.lg-slider__next:hover {
	background: var(--wp--preset--color--border);
}

.lg-slider__dots {
	display: flex;
	gap: 0.5rem;
}

.lg-slider__dot {
	width: 0.625rem;
	height: 0.625rem;
	border-radius: 50%;
	border: 0;
	background: var(--wp--preset--color--border);
	cursor: pointer;
	padding: 0;
	transition: background 0.15s, transform 0.15s;
}

.lg-slider__dot.is-active {
	background: var(--wp--preset--color--accent);
	transform: scale(1.3);
}

/* --- Details (FAQ accordion) ----------------------------------------- */

.wp-block-details > summary {
	cursor: pointer;
	font-weight: 600;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.wp-block-details > summary::after {
	content: "+";
	font-size: 1.25rem;
	color: var(--wp--preset--color--contrast-soft);
	transition: transform 0.15s;
}

.wp-block-details[open] > summary::after {
	content: "−";
}

/* --- List style: no-bullets ------------------------------------------ */

ul.is-style-no-bullets,
ul.is-style-no-bullets li {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}

ul.is-style-no-bullets a {
	color: inherit;
	text-decoration: none;
}

ul.is-style-no-bullets a:hover {
	text-decoration: underline;
}
