/* Avanza Card Carousel — Lic. Pedro Duarte */
.acc-carousel {
	--acc-per-view: 3;
	--acc-gap: 70px;
	--acc-scroll: 1;
	--acc-badge-x: 27px;
	position: relative;
	width: 100%;
}

.acc-stage {
	position: relative;
	padding: 0;
	box-sizing: border-box;
}

.acc-viewport {
	overflow: hidden;
	width: 100%;
	touch-action: pan-y;
	/* deja lugar al número que sobresale y a la elevación del hover */
	padding: 10px var(--acc-badge-x);
	margin: -10px calc(-1 * var(--acc-badge-x));
}

.acc-track {
	display: flex;
	gap: var(--acc-gap);
	will-change: transform;
	transition-property: transform;
	transition-timing-function: cubic-bezier(.25, .8, .25, 1);
}

.acc-slide {
	flex: 0 0 calc((100% - (var(--acc-per-view) - 1) * var(--acc-gap)) / var(--acc-per-view));
	min-width: 0;
	display: flex;
}

.acc-carousel.is-dragging .acc-track { transition: none !important; }
.acc-carousel.is-dragging .acc-card { pointer-events: none; }
.acc-carousel.is-dragging,
.acc-carousel.is-dragging * { cursor: grabbing; user-select: none; }

/* Tarjeta */
.acc-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #fff;
	border: 1px solid #e3e3e3;
	box-sizing: border-box;
	position: relative;
	text-decoration: none !important;
	color: inherit;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
a.acc-card { cursor: pointer; }
a.acc-card:focus-visible { outline: 2px solid #b31533; outline-offset: 3px; }

.acc-card__image {
	position: relative;
	height: 380px;
	overflow: hidden;
	flex-shrink: 0;
	border-top-left-radius: inherit;
	border-top-right-radius: inherit;
}

/* Número */
.acc-card__number {
	position: absolute;
	z-index: 2;
	top: 22px;
	left: calc(-1 * var(--acc-badge-x));
	display: inline-block;
	padding: 6px 8px 4px;
	background: #b31533;
	color: #fff;
	font-size: 64px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -1px;
	pointer-events: none;
}
.acc-card__image img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	transition: transform .5s ease;
	-webkit-user-drag: none;
}

.acc-card__body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 28px 30px 42px;
	text-align: left;
}

.acc-card__title {
	margin: 0 0 20px;
	font-size: 32px;
	line-height: 1.05;
	font-weight: 400;
	color: #111;
	transition: color .3s ease;
}

.acc-card__desc { margin: 0 0 28px; font-size: 19px; line-height: 1.1; color: #1a1a1a; }

.acc-card__divider { height: 1px; background: #dddddd; margin: 0 0 22px; }
.acc-card__desc p:last-child { margin-bottom: 0; }

.acc-btn-bottom-yes .acc-card__footer { margin-top: auto; }

.acc-card__button {
	display: inline-block;
	padding: 10px 32px;
	background: #b31533;
	color: #fff;
	font-size: 18px;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease;
	white-space: nowrap;
	cursor: pointer;
}

/* Hover */
.acc-hover-lift .acc-card:hover,
.acc-hover-both .acc-card:hover { transform: translateY(-6px); }
.acc-hover-zoom .acc-card:hover .acc-card__image img,
.acc-hover-both .acc-card:hover .acc-card__image img { transform: scale(1.07); }

/* Flechas */
.acc-arrow {
	position: absolute;
	top: 44%;
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: #b31533;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .3s ease, color .3s ease, opacity .3s ease;
	box-shadow: none;
}
.acc-arrow svg { width: 26px; height: 26px; fill: #fff; }
.acc-arrow--prev { left: -32px; }
.acc-arrow--next { right: -32px; }
@media (max-width: 1024px) { .acc-arrow--prev { left: -24px; } .acc-arrow--next { right: -24px; } }
@media (max-width: 767px)  { .acc-arrow--prev { left: 2px; }  .acc-arrow--next { right: 2px; } }
.acc-arrow:focus { outline: none; }
.acc-arrow:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.acc-arrow.is-disabled { opacity: .35; cursor: default; }
.acc-carousel.is-static .acc-arrow { display: none; }

/* Puntos */
.acc-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 50px;
}
.acc-carousel.is-static .acc-dots { display: none; }
.acc-dot {
	width: 19px;
	height: 19px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: #d6d6d6;
	cursor: pointer;
	transition: background-color .3s ease, transform .3s ease;
}
.acc-dot:hover { transform: scale(1.15); }
.acc-dot.is-active { background: #000; }

/* Responsive (al final para que tenga prioridad) */
@media (max-width: 1024px) {
	.acc-carousel { --acc-per-view: 2; --acc-gap: 40px; --acc-badge-x: 20px; }
}
@media (max-width: 767px) {
	.acc-carousel { --acc-per-view: 1; --acc-gap: 24px; --acc-badge-x: 12px; }
	.acc-stage { padding: 0 22px; }
	.acc-card__title { font-size: 26px; }
	.acc-card__desc { font-size: 16px; }
	.acc-card__number { font-size: 44px; }
	.acc-arrow { width: 40px; height: 40px; font-size: 16px; }
	.acc-arrow svg { width: 16px; height: 16px; }
}
