/* ESTB – Motivos Slider v1.2.0 — réplica de la sección "why" de la home ESTB */
.estb-rs {
	--rs-navy: #123A4A;
	--rs-coral: #E75655;
	--rs-teal: #3F807C;
	--rs-secondary: #CBDDE2;
	--rs-bg-c1: #E75655;
	--rs-bg-c2: #3F807C;
	--rs-bg-c3: #D8B596;
	--rs-bg-c4: #1C4658;

	--rs-max: 1440px;
	--rs-gutter: clamp(22px, 5vw, 72px);
	--rs-cols: 7;
	--rs-gap: 8px;
	--rs-card-minh: 190px;
	--rs-card-radius: 14px;
	--rs-icon-size: 38px;
	--rs-icon: #C9E0E0;
	--rs-ctrl-size: 36px;
	--rs-ctrl-pill: rgba(18, 58, 74, .94);
	--rs-ctrl-hover: var(--rs-teal);
	--rs-detail-max: 760px;

	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--rs-navy);
	color: #fff;
	padding: 40px var(--rs-gutter) 15px;
	box-sizing: border-box;
}
.estb-rs--bg-none { background: transparent; }
.estb-rs *, .estb-rs *::before, .estb-rs *::after { box-sizing: border-box; }
.estb-rs h2, .estb-rs h3, .estb-rs h4, .estb-rs p { margin: 0; }
.estb-rs [hidden] { display: none !important; }
.estb-rs a { color: inherit; }

/* Reset de botones del tema (Hello Elementor pinta los button en rosa) */
.estb-rs button,
.estb-rs button:hover,
.estb-rs button:focus {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	font: inherit;
	color: #fff;
	text-transform: none;
	letter-spacing: normal;
	text-decoration: none;
	cursor: pointer;
	white-space: normal;
	line-height: normal;
}

/* ---------- Fondo ---------- */
.estb-rs__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	pointer-events: none;
	background: var(--rs-navy);
}
.estb-rs__bg-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 40% center;
	border: 0;
	border-radius: 0;
}
.estb-rs__stripes { display: block; width: 100%; height: 100%; }
.estb-rs__stripes-g { animation: estb-rs-drift 14s ease-in-out infinite alternate; }
.estb-rs.is-still .estb-rs__stripes-g { animation-play-state: paused; }
@keyframes estb-rs-drift {
	from { transform: translate(0, 0); }
	to { transform: translate(-120px, 60px); }
}
.estb-rs.has-fade .estb-rs__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(18, 58, 74, .96) 0%, rgba(18, 58, 74, .863) 26%, rgba(18, 58, 74, 0) 66%);
}

.estb-rs__inner { max-width: var(--rs-max); margin: 0 auto; }

/* ---------- Cabecera ---------- */
.estb-rs__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 10px;
}
.estb-rs__heading { padding: 9px 0; }
.estb-rs .estb-rs__title {
	font-size: 14px;
	line-height: 1.4;
	font-weight: 600;
	letter-spacing: 0;
	color: #fff;
	padding: 0;
}
.estb-rs .estb-rs__subtitle {
	font-size: 12px;
	line-height: 1.4;
	margin-top: 4px;
	color: var(--rs-secondary);
}

/* ---------- Controles ---------- */
.estb-rs__controls {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: none;
	background: var(--rs-ctrl-pill);
	padding: 5px 8px;
	border-radius: 26px;
}
.estb-rs__position {
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	color: var(--rs-secondary);
	margin: 0 10px 0 6px;
	white-space: nowrap;
}
.estb-rs .estb-rs__btn,
.estb-rs .estb-rs__btn:hover,
.estb-rs .estb-rs__btn:focus {
	display: grid;
	place-items: center;
	width: var(--rs-ctrl-size);
	height: var(--rs-ctrl-size);
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .27);
	border-radius: 50%;
	background: rgba(18, 58, 74, .44);
	color: #fff;
	font-size: 19px;
	line-height: 1;
	transition: background .25s, border-color .25s;
}
.estb-rs .estb-rs__motion,
.estb-rs .estb-rs__motion:hover,
.estb-rs .estb-rs__motion:focus { font-size: 12px; margin-left: 6px; }
@media (hover: hover) {
	.estb-rs .estb-rs__btn:hover { background: var(--rs-ctrl-hover); border-color: var(--rs-ctrl-hover); }
}

/* ---------- Tarjetas ---------- */
.estb-rs__track {
	display: flex;
	position: relative;
	gap: var(--rs-gap);
	padding: 7px 0 12px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.estb-rs__track::-webkit-scrollbar { display: none; }

.estb-rs .estb-rs__card,
.estb-rs .estb-rs__card:hover,
.estb-rs .estb-rs__card:focus {
	--rs-accent: var(--rs-coral);
	--rs-glow: rgba(231, 86, 85, .28);
	--rs-halo: rgba(231, 86, 85, .13);
	position: relative;
	flex: 0 0 calc((100% - (var(--rs-cols) - 1) * var(--rs-gap)) / var(--rs-cols));
	min-width: 0;
	min-height: var(--rs-card-minh);
	padding: 20px 16px 22px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: var(--rs-card-radius);
	background: linear-gradient(145deg, rgba(23, 63, 78, .96), rgba(18, 58, 74, .98) 80%);
	color: #fff;
	text-align: left;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: 16px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
	transition: transform .3s, border-color .3s, box-shadow .3s;
	isolation: isolate;
	overflow: hidden;
}
.estb-rs .estb-rs__card.is-accent-teal { --rs-accent: var(--rs-teal); --rs-glow: rgba(63, 128, 124, .44); --rs-halo: rgba(63, 128, 124, .19); }
.estb-rs .estb-rs__panel.is-accent-teal { --rs-accent: var(--rs-teal); }
.estb-rs .estb-rs__panel { --rs-accent: var(--rs-coral); }

.estb-rs .estb-rs__card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(ellipse at 90% 0%, var(--rs-glow), transparent 75%);
	opacity: 0;
	transition: opacity .35s;
}
.estb-rs .estb-rs__card::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 14px;
	right: 14px;
	height: 2px;
	border-radius: 2px;
	background: var(--rs-accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .28s;
}
.estb-rs .estb-rs__card[aria-expanded="true"] {
	border-color: var(--rs-accent);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .094), 0 6px 18px var(--rs-halo);
	transform: translateY(-3px);
}
.estb-rs .estb-rs__card[aria-expanded="true"]::after { transform: scaleX(1); }
.estb-rs .estb-rs__card[aria-expanded="true"]::before { opacity: 1; }
.estb-rs .estb-rs__card[aria-expanded="true"] .estb-rs__icon { color: var(--rs-accent); }

@media (hover: hover) {
	.estb-rs .estb-rs__card:hover {
		transform: translateY(-3px);
		border-color: var(--rs-accent);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 6px 18px var(--rs-halo);
	}
	.estb-rs .estb-rs__card:hover::before { opacity: 1; }
	.estb-rs .estb-rs__card:hover::after { transform: scaleX(1); }
	.estb-rs .estb-rs__card:hover .estb-rs__icon { transform: translateY(-2px); color: var(--rs-accent); }
}
.estb-rs .estb-rs__card:focus-visible { border-color: var(--rs-accent); outline: 2px solid #fff; outline-offset: -4px; }
.estb-rs .estb-rs__card:focus-visible::before { opacity: 1; }
.estb-rs .estb-rs__card:focus-visible .estb-rs__icon { color: var(--rs-accent); }
.estb-rs button:focus-visible, .estb-rs a:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.estb-rs .estb-rs__btn:focus-visible { outline-offset: 3px; }

.estb-rs__card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.estb-rs .estb-rs__num {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .02em;
	font-variant-numeric: tabular-nums;
	color: var(--rs-accent);
	line-height: 1.2;
}
.estb-rs__icon {
	display: block;
	flex-shrink: 0;
	margin-left: auto;
	width: var(--rs-icon-size);
	height: var(--rs-icon-size);
	color: var(--rs-icon);
	transition: transform .3s, color .3s;
}
.estb-rs__icon svg { display: block; width: 100%; height: 100%; stroke-width: 1.3; }
.estb-rs__icon.is-custom { font-size: var(--rs-icon-size); line-height: 1; }
.estb-rs__icon.is-custom svg { fill: currentColor; stroke: none; }

.estb-rs__card-label { display: block; }
.estb-rs .estb-rs__card-title {
	display: block;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.025em;
	color: #fff;
}
.estb-rs .estb-rs__card-sub {
	display: block;
	font-size: 12px;
	line-height: 1.4;
	color: #fff;
	margin-top: 8px;
}

/* ---------- Detalle ---------- */
.estb-rs__stage {
	position: relative;
	min-height: 215px;
	margin-top: 23px;
	padding-bottom: 45px;
}
.estb-rs__panel {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr) 30px;
	gap: 16px;
	min-height: 135px;
	padding: 20px 16px 20px 0;
	position: relative;
	isolation: isolate;
	color: #fff;
	animation: estb-rs-detail-in .25s ease-out;
}
.estb-rs__panel::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -18px -22px -24px -24px;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(18, 58, 74, .96) 0%, rgba(18, 58, 74, .93) 62%, rgba(18, 58, 74, 0) 100%);
	filter: blur(20px);
}
@keyframes estb-rs-detail-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}
.estb-rs .estb-rs__index {
	grid-area: 1 / 1;
	font-size: 14px;
	font-weight: 700;
	padding-top: 4px;
	color: var(--rs-accent);
}
.estb-rs__panel-copy { grid-area: 1 / 2; min-width: 0; }
.estb-rs .estb-rs__pane-text {
	font-size: 18px;
	line-height: 1.5;
	max-width: var(--rs-detail-max);
	color: #fff;
}
.estb-rs .estb-rs__pane-text2 {
	font-size: 14px;
	line-height: 1.55;
	margin-top: 10px;
	color: var(--rs-secondary);
	max-width: calc(var(--rs-detail-max) - 20px);
}
.estb-rs__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.estb-rs .estb-rs__tag,
.estb-rs .estb-rs__tag:hover,
.estb-rs .estb-rs__tag:visited,
.estb-rs .estb-rs__tag:focus {
	display: inline-block;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .04em;
	line-height: 1.35;
	padding: 4px 9px;
	border-radius: 20px;
	background: var(--rs-tag-bg, var(--rs-teal));
	color: var(--rs-tag-color, #fff);
	text-decoration: none;
	box-shadow: none;
	transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
@media (hover: hover) {
	.estb-rs-taghover-lift .estb-rs .estb-rs__tag.is-link:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); }
	.estb-rs-taghover-dim .estb-rs .estb-rs__tag.is-link:hover { opacity: .8; }
}
.estb-rs .estb-rs__tag.is-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.estb-rs .estb-rs__link,
.estb-rs .estb-rs__link:hover,
.estb-rs .estb-rs__link:visited,
.estb-rs .estb-rs__link:focus {
	display: flex;
	align-items: center;
	gap: var(--rs-link-gap, 10px);
	width: fit-content;
	min-height: 36px;
	margin-top: 9px;
	text-decoration: none;
	color: var(--rs-link-color, #fff);
	border-bottom: 1px solid var(--rs-link-line, rgba(255, 255, 255, .376));
	box-shadow: none;
	transition: color .2s ease, border-color .2s ease;
}
.estb-rs .estb-rs__link .estb-rs__link-text {
	font-size: 12px;
	font-weight: 400;
	line-height: normal;
	color: inherit;
}
.estb-rs .estb-rs__link .estb-rs__link-text2 {
	font-size: 10px;
	font-weight: 400;
	line-height: normal;
	color: var(--rs-link2-color, inherit);
}
.estb-rs__link-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--rs-link-icon, 16px);
	height: var(--rs-link-icon, 16px);
	margin-left: 10px;
	color: var(--rs-link-icon-color, currentColor);
	font-size: var(--rs-link-icon, 16px);
	line-height: 1;
	transition: transform .25s ease, color .2s ease;
}
.estb-rs__link-arrow svg { display: block; width: 100%; height: 100%; stroke-width: var(--rs-link-stroke, 1.5); }
.estb-rs__link-arrow i { font-size: inherit; }
@media (hover: hover) {
	.estb-rs .estb-rs__link:hover { color: var(--rs-link-color-h, var(--rs-link-color, #fff)); border-bottom-color: var(--rs-link-line-h, #fff); }
	.estb-rs .estb-rs__link:hover .estb-rs__link-arrow { transform: translate(2px, -2px); color: var(--rs-link-icon-color-h, var(--rs-link-icon-color, currentColor)); }
}

.estb-rs .estb-rs__close,
.estb-rs .estb-rs__close:hover,
.estb-rs .estb-rs__close:focus {
	grid-area: 1 / 3;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--rs-secondary);
	font-size: 19px;
	line-height: 1;
}
@media (hover: hover) {
	.estb-rs .estb-rs__close:hover { background: var(--rs-navy); color: #fff; }
}

/* ---------- Tablet (761–1250 px en el original) ---------- */
@media (max-width: 1250px) {
	.estb-rs { --rs-cols: 5; }
}
@media (max-width: 1150px) {
	.estb-rs { --rs-card-minh: 182px; }
}

/* ---------- Móvil (≤ 767 px) ---------- */
@media (max-width: 767px) {
	.estb-rs {
		--rs-gap: 10px;
		--rs-card-minh: 174px;
		--rs-icon-size: 34px;
		--rs-ctrl-size: 44px;
		padding: 32px 22px 28px;
	}
	.estb-rs__head { gap: 8px; }
	.estb-rs__heading { padding: 8px 0; }
	.estb-rs .estb-rs__title { font-size: 13px; }
	.estb-rs__controls { gap: 5px; padding: 5px; }
	.estb-rs__position { display: none; }
	.estb-rs .estb-rs__motion,
	.estb-rs .estb-rs__motion:hover,
	.estb-rs .estb-rs__motion:focus { margin-left: 2px; }
	.estb-rs__track {
		margin-right: -22px;
		padding-right: 22px;
		scroll-padding-left: 0;
	}
	.estb-rs .estb-rs__card,
	.estb-rs .estb-rs__card:hover,
	.estb-rs .estb-rs__card:focus {
		flex: 0 0 202px;
		padding: 18px 17px 20px;
		gap: 13px;
		border-radius: 12px;
	}
	.estb-rs__bg-img { object-position: 58% top; }
	.estb-rs__stage { margin-top: 22px; padding-bottom: 50px; min-height: 240px; }
	.estb-rs__panel {
		min-height: 0;
		padding: 16px 0;
		grid-template-columns: 22px minmax(0, 1fr) 44px;
		gap: 10px;
	}
	.estb-rs__panel::before {
		inset: -14px -10px -20px -14px;
		background: linear-gradient(90deg, rgba(18, 58, 74, .96), rgba(18, 58, 74, .9) 84%, rgba(18, 58, 74, .6));
		filter: blur(16px);
	}
	.estb-rs .estb-rs__pane-text { font-size: 16px; }
	.estb-rs .estb-rs__pane-text2 { font-size: 13px; }
	.estb-rs .estb-rs__close,
	.estb-rs .estb-rs__close:hover,
	.estb-rs .estb-rs__close:focus { width: 44px; height: 44px; margin-top: -8px; }
	.estb-rs .estb-rs__link,
	.estb-rs .estb-rs__link:hover { flex-wrap: wrap; gap: var(--rs-link-gap, 5px); }
}
@media (max-width: 370px) {
	.estb-rs__head { align-items: flex-start; }
	.estb-rs .estb-rs__card,
	.estb-rs .estb-rs__card:hover,
	.estb-rs .estb-rs__card:focus { flex-basis: 190px; }
	.estb-rs { --rs-ctrl-size: 40px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.estb-rs * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.estb-rs .estb-rs__card[aria-expanded="true"] { transform: none; }
}
