/* Faro Eventos — carrusel de eventos (Faro Panamá)
 * Colores y tamaños ajustables con las variables de .faroev */

.faroev {
	--fe-red: #cc0000;
	--fe-accent: #ff2a2a;
	--fe-ink: #0f0f0f;
	--fe-txt: #222;
	--fe-radius: 24px;

	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 44px 84px 40px;
	background: #fff;
	border-radius: var(--fe-radius);
	box-shadow: 0 12px 44px rgba(0, 0, 0, .08);
	font-family: inherit;
	color: var(--fe-txt);
}

.faroev *,
.faroev *::before,
.faroev *::after {
	box-sizing: border-box;
}

/* ---------- Carrusel principal (eventos) ---------- */

.faroev .faroev-track {
	display: flex;
	align-items: flex-start;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	outline: none;
	transition: height .35s ease;
}

.faroev .faroev-track::-webkit-scrollbar,
.faroev .faroev-gal-track::-webkit-scrollbar {
	display: none;
}

.faroev .faroev-track:focus-visible,
.faroev .faroev-gal-track:focus-visible {
	outline: 2px solid var(--fe-accent);
	outline-offset: 4px;
	border-radius: 12px;
}

.faroev .faroev-slide {
	flex: 0 0 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: 48px;
	align-items: center;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.faroev .faroev-slide--noimg {
	grid-template-columns: minmax(0, 1fr);
	max-width: 820px;
	margin-inline: auto;
}

.faroev .faroev-body {
	min-width: 0;
}

/* ---------- Texto ---------- */

.faroev .faroev-title {
	margin: 0 0 18px;
	padding: 0;
	font-family: inherit;
	font-size: clamp(1.6rem, 3.2vw, 2.5rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0;
	text-transform: none;
	color: var(--fe-ink);
	overflow-wrap: break-word;
}

.faroev .faroev-red {
	color: var(--fe-red);
}

.faroev .faroev-text {
	font-size: clamp(1rem, 1.4vw, 1.125rem);
	line-height: 1.65;
	color: var(--fe-txt);
	overflow-wrap: break-word;
}

.faroev .faroev-text > *:first-child {
	margin-top: 0;
}

.faroev .faroev-text > *:last-child {
	margin-bottom: 0;
}

.faroev .faroev-text p {
	margin: 0 0 .9em;
}

.faroev .faroev-text ul,
.faroev .faroev-text ol {
	margin: 0 0 1em 1.25em;
	padding: 0;
}

.faroev .faroev-text li {
	margin-bottom: .35em;
}

.faroev .faroev-text a {
	color: var(--fe-red);
	text-decoration: underline;
	word-break: break-word;
}

/* ---------- Carrusel interno (imágenes) ---------- */

.faroev .faroev-media {
	position: relative;
	min-width: 0;
}

.faroev .faroev-gal {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
}

.faroev .faroev-gal-track {
	display: flex;
	align-items: center;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	outline: none;
}

.faroev .faroev-gal-slide {
	flex: 0 0 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	scroll-snap-align: center;
	scroll-snap-stop: always;
}

.faroev .faroev-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	max-height: min(72vh, 560px);
	margin: 0;
	object-fit: contain;
	border-radius: 16px;
	-webkit-user-drag: none;
}

/* ---------- Botones (flechas) ---------- */

.faroev button.faroev-btn,
.faroev button.faroev-gbtn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--fe-accent) !important;
	line-height: 1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .2s ease;
}

.faroev button.faroev-btn {
	width: 46px;
	height: 46px;
	flex: 0 0 auto;
}

.faroev button.faroev-btn:hover,
.faroev button.faroev-btn:focus-visible {
	background: rgba(255, 42, 42, .1) !important;
}

.faroev button.faroev-gbtn {
	position: absolute;
	top: 50%;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	background: rgba(255, 255, 255, .9) !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18) !important;
	z-index: 2;
}

.faroev button.faroev-gbtn:hover,
.faroev button.faroev-gbtn:focus-visible {
	background: #fff !important;
}

.faroev .faroev-gprev {
	left: 8px;
}

.faroev .faroev-gnext {
	right: 8px;
}

.faroev .faroev-btn svg,
.faroev .faroev-gbtn svg {
	display: block;
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.faroev .faroev-gbtn svg {
	width: 20px;
	height: 20px;
}

/* ---------- Puntos ---------- */

.faroev .faroev-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 28px;
}

.faroev .faroev-dots,
.faroev .faroev-gdots {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}

.faroev .faroev-gdots {
	margin-top: 14px;
	gap: 8px;
}

.faroev button.faroev-dot,
.faroev button.faroev-gdot {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	display: block !important;
	width: 10px;
	height: 10px;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--fe-red) !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: width .3s ease, opacity .3s ease;
	-webkit-tap-highlight-color: transparent;
}

.faroev button.faroev-gdot {
	width: 8px;
	height: 8px;
	opacity: .4;
}

/* Zona táctil más grande sin cambiar el tamaño visible */
.faroev button.faroev-dot::after,
.faroev button.faroev-gdot::after {
	content: "";
	position: absolute;
	inset: -10px -4px;
}

.faroev button.faroev-dot.is-active {
	width: 38px;
}

.faroev button.faroev-gdot.is-active {
	width: 24px;
	opacity: 1;
}

/* ---------- Sin eventos ---------- */

.faroev-empty {
	max-width: 760px;
	margin: 0 auto;
	padding: 24px 16px;
	text-align: center;
	font-size: 1.05rem;
	line-height: 1.6;
}

/* ---------- PC: flechas a los lados del recuadro ---------- */

@media (min-width: 769px) {
	.faroev .faroev-nav {
		display: block;
	}

	.faroev .faroev-nav .faroev-dots {
		margin: 0 auto;
	}

	.faroev button.faroev-prev,
	.faroev button.faroev-next {
		position: absolute;
		top: 50%;
		margin-top: -23px;
	}

	.faroev .faroev-prev {
		left: 18px;
	}

	.faroev .faroev-next {
		right: 18px;
	}
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
	.faroev {
		padding: 36px 72px 32px;
	}

	.faroev .faroev-slide {
		gap: 32px;
	}
}

/* ---------- Móvil ---------- */

@media (max-width: 768px) {
	.faroev {
		--fe-radius: 18px;
		padding: 18px 14px 14px;
		box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
	}

	.faroev .faroev-slide,
	.faroev .faroev-slide--noimg {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
		max-width: none;
	}

	/* La imagen va primero, el texto debajo */
	.faroev .faroev-media {
		order: -1;
	}

	.faroev .faroev-title {
		margin-bottom: 10px;
		font-size: clamp(1.35rem, 6vw, 1.75rem);
		line-height: 1.25;
	}

	.faroev .faroev-text {
		font-size: 1rem;
		line-height: 1.6;
	}

	.faroev .faroev-img {
		max-height: 70vh;
	}

	.faroev .faroev-nav {
		margin-top: 18px;
		gap: 8px;
	}

	.faroev button.faroev-btn {
		width: 44px;
		height: 44px;
	}
}

@media (max-width: 380px) {
	.faroev {
		padding: 14px 10px 10px;
	}
}

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

	.faroev button.faroev-dot,
	.faroev button.faroev-gdot {
		transition: none;
	}
}
