/* ==========================================================================
   GTV Paradas Slider Styles
   Exact design matching ticket reference with Swiper support
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
	--gtv-navy: #0d1b38;
	--gtv-navy-light: #182a52;
	--gtv-yellow: #f5b72e;
	--gtv-red-accent: #c93b2b;
	--gtv-mint-bg: #d2f5eb;
	--gtv-mint-text: #097764;
	--gtv-text-dark: #0d1b38;
	--gtv-text-muted: #5a6578;
	--gtv-text-subtle: #828e9e;
	--gtv-border: #0d1b38;
	--gtv-border-light: #e2e8f0;
	--gtv-font-display: 'Bebas Neue', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--gtv-font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.gtv-paradas-slider-wrapper {
	width: 100%;
	max-width: 1060px;
	margin: 0 auto;
	box-sizing: border-box;
	font-family: var(--gtv-font-body);
	position: relative;
}

.gtv-paradas-slider-wrapper * {
	box-sizing: border-box;
}

/* ==========================================
   HEADER: PRÓXIMA PARADA / FALTAN 9 DÍAS
   ========================================== */
.gtv-paradas-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 20px;
	padding: 0 4px;
}

.gtv-paradas-header-title {
	font-family: var(--gtv-font-display);
	font-size: 34px;
	letter-spacing: 1px;
	color: var(--gtv-navy);
	margin: 0;
	line-height: 1;
	text-transform: uppercase;
}

.gtv-paradas-header-countdown {
	font-family: var(--gtv-font-display);
	font-size: 20px;
	letter-spacing: 1.2px;
	color: var(--gtv-red-accent);
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1;
}

/* ==========================================
   SLIDER CONTAINER & SWIPER
   ========================================== */
.gtv-slider-main-container {
	position: relative;
	width: 100%;
}

.gtv-slider-main-container.gtv-slider-vertical {
	display: flex;
	align-items: center;
	gap: 16px;
}

.gtv-paradas-swiper {
	width: 100%;
	padding: 4px 2px;
	overflow: hidden;
}

.gtv-paradas-swiper.gtv-swiper-vertical {
	flex: 1;
	min-width: 0;
	height: 320px;
}

.gtv-parada-slide {
	width: 100%;
	height: auto;
	display: flex;
	justify-content: center;
}

/* ==========================================
   TICKET CARD (BOLETO)
   ========================================== */
.gtv-ticket-card {
	display: flex;
	width: 100%;
	background: #ffffff;
	border: 2px solid var(--gtv-border);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(13, 27, 56, 0.05);
	position: relative;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gtv-ticket-card:hover {
	box-shadow: 0 10px 32px rgba(13, 27, 56, 0.08);
}

/* ==========================================
   TALÓN IZQUIERDO (AMARILLO)
   ========================================== */
.gtv-ticket-stub {
	background-color: var(--gtv-yellow);
	width: 160px;
	min-width: 140px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: stretch;
	padding: 24px 18px;
	position: relative;
	z-index: 2;
}

.gtv-stub-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	min-height: 180px;
	text-align: left;
}

.gtv-stub-label {
	font-family: var(--gtv-font-display);
	font-size: 14px;
	letter-spacing: 2px;
	font-weight: 700;
	color: var(--gtv-navy);
	text-transform: uppercase;
}

.gtv-stub-number {
	font-family: var(--gtv-font-display);
	font-size: 78px;
	line-height: 0.9;
	color: var(--gtv-navy);
	letter-spacing: -1px;
	margin: 12px 0;
	display: block;
}

.gtv-stub-total {
	font-family: var(--gtv-font-body);
	font-size: 13px;
	font-weight: 600;
	color: var(--gtv-navy);
	line-height: 1.2;
}

/* ==========================================
   DIVISOR PERFORADO
   ========================================== */
.gtv-ticket-divider-perforation {
	position: relative;
	width: 0;
	flex-shrink: 0;
	z-index: 3;
}

.gtv-dashed-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: -1px;
	border-left: 2px dashed var(--gtv-border);
}

/* ==========================================
   CUERPO DEL BOLETO (BLANCO)
   ========================================== */
.gtv-ticket-body {
	flex: 1;
	background: #ffffff;
	padding: 26px 36px 28px 36px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

/* BADGES */
.gtv-ticket-badges {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.gtv-badge {
	display: inline-flex;
	align-items: center;
	font-family: var(--gtv-font-body);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 4px;
	line-height: 1.2;
}

.gtv-badge-dark {
	background-color: var(--gtv-navy);
	color: var(--gtv-yellow);
}

.gtv-badge-status {
	background-color: var(--gtv-mint-bg);
	color: var(--gtv-mint-text);
}

.gtv-badge-past {
	background-color: #f1f5f9 !important;
	color: #64748b !important;
}

.gtv-ticket-card-past {
	opacity: 0.92;
}

/* TÍTULO Y LUGAR */
.gtv-ticket-title {
	font-family: var(--gtv-font-display);
	font-size: 25px;
	line-height: 1.05;
	letter-spacing: 0.5px;
	color: var(--gtv-navy);
	margin: 0 0 4px 0;
	text-transform: uppercase;
}

.gtv-ticket-location {
	font-family: var(--gtv-font-body);
	font-size: 20px;
	color: var(--gtv-text-muted);
	margin: 0 0 16px 0;
	font-weight: 500;
}

/* LÍNEA SEPARADORA */
.gtv-ticket-line-separator {
	width: 100%;
	border-top: 1.5px dotted #d8dee8;
	margin: 0 0 18px 0;
}

/* METADATOS (FECHA, HORARIO, ENTRADA) */
.gtv-ticket-meta-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 16px;
	margin-bottom: 22px;
}

.gtv-meta-item {
	display: flex;
	flex-direction: column;
}

.gtv-meta-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.2px;
	color: var(--gtv-text-subtle);
	text-transform: uppercase;
	margin-bottom: 4px;
}

.gtv-meta-value {
	font-size: 15.5px;
	font-weight: 800;
	color: var(--gtv-navy);
	line-height: 1.25;
}

/* BOTONES DE ACCIÓN */
.gtv-ticket-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.gtv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--gtv-font-body);
	font-size: 13.5px;
	font-weight: 700;
	padding: 9px 22px;
	border-radius: 999px;
	text-decoration: none !important;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	cursor: pointer;
	white-space: nowrap;
}

.gtv-btn-primary {
	background-color: var(--gtv-navy);
	color: #ffffff !important;
	border: 1.8px solid var(--gtv-navy);
}

.gtv-btn-primary:hover {
	background-color: var(--gtv-navy-light);
	border-color: var(--gtv-navy-light);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(13, 27, 56, 0.2);
}

.gtv-btn-outline {
	background-color: #ffffff;
	color: var(--gtv-navy) !important;
	border: 1.8px solid var(--gtv-navy);
}

.gtv-btn-outline:hover {
	background-color: #f8fafc;
	border-color: var(--gtv-navy);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ==========================================
   FLECHAS DE NAVEGACIÓN (OCULTAS)
   ========================================== */
.gtv-swiper-button-prev,
.gtv-swiper-button-next {
	display: none !important;
}

/* ==========================================
   DOCK DE NAVEGACIÓN VERTICAL (LADO DERECHO)
   ========================================== */
.gtv-vertical-nav-dock {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	z-index: 5;
}

.gtv-vertical-nav-dock .gtv-swiper-pagination {
	position: static !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center;
	gap: 8px;
	background: #ffffff;
	border: 1.5px solid var(--gtv-border);
	padding: 10px 6px;
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(13, 27, 56, 0.06);
	width: auto !important;
	margin: 0 !important;
}

.gtv-vertical-nav-dock .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: #cbd5e1;
	opacity: 1;
	border-radius: 999px;
	transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	margin: 0 !important;
	cursor: pointer;
	position: relative;
	outline: none;
}

.gtv-vertical-nav-dock .swiper-pagination-bullet:hover {
	background: var(--gtv-yellow);
	transform: scale(1.3);
}

.gtv-vertical-nav-dock .swiper-pagination-bullet-active {
	width: 8px;
	height: 26px;
	background: var(--gtv-navy) !important;
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(13, 27, 56, 0.25);
}

/* ==========================================
   FOOTER CON INDICADOR DE SWIPE Y CONTADOR
   ========================================== */
.gtv-slider-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
	padding: 0 2px;
}

.gtv-slider-hint {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: #ffffff;
	border: 1.5px solid var(--gtv-border);
	border-radius: 999px;
	padding: 6px 14px 6px 8px;
	box-shadow: 0 2px 8px rgba(13, 27, 56, 0.05);
	transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
	user-select: none;
	cursor: pointer;
}

.gtv-slider-hint:hover {
	border-color: var(--gtv-navy);
	background: #fafcff;
	transform: translateY(-1.5px);
	box-shadow: 0 4px 14px rgba(13, 27, 56, 0.12);
	opacity: 1 !important;
}

.gtv-slider-hint.gtv-hint-interacted {
	opacity: 0.82;
}

.gtv-swipe-icon-wrap {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(13, 27, 56, 0.06);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--gtv-navy);
	flex-shrink: 0;
	position: relative;
	transition: background 0.2s ease;
}

.gtv-slider-hint:hover .gtv-swipe-icon-wrap {
	background: rgba(254, 219, 58, 0.28);
}

.gtv-swipe-track-icon {
	display: block;
	color: var(--gtv-navy);
}

.gtv-swipe-dot {
	transform-origin: 8px 12px;
	animation: gtv-swipe-dot-glide 1.6s ease-in-out infinite;
}

@keyframes gtv-swipe-dot-glide {
	0%, 100% {
		transform: translateY(-4px);
		opacity: 0.55;
	}
	50% {
		transform: translateY(4px);
		opacity: 1;
	}
}

.gtv-swipe-arrow-u {
	animation: gtv-swipe-arrow-u-pulse 1.6s ease-in-out infinite;
}

.gtv-swipe-arrow-d {
	animation: gtv-swipe-arrow-d-pulse 1.6s ease-in-out infinite;
}

@keyframes gtv-swipe-arrow-u-pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.35;
	}
}

@keyframes gtv-swipe-arrow-d-pulse {
	0%, 100% {
		opacity: 0.35;
	}
	50% {
		opacity: 1;
	}
}

.gtv-hint-text {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.7px;
	color: var(--gtv-navy);
	text-transform: uppercase;
	line-height: 1;
}

.gtv-hint-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--gtv-navy);
	animation: gtv-badge-bounce 1.6s ease-in-out infinite;
}

@keyframes gtv-badge-bounce {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(3px);
	}
}

.gtv-slider-counter-info {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-family: var(--gtv-font-display);
	letter-spacing: 0.5px;
	color: var(--gtv-text-muted);
	padding-right: 4px;
}

.gtv-counter-current {
	font-size: 20px;
	font-weight: 800;
	color: var(--gtv-navy);
}

.gtv-counter-sep {
	color: #94a3b8;
	font-size: 16px;
}

.gtv-counter-total {
	font-size: 16px;
	color: #64748b;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet landscape & medium screens (<= 900px) */
@media (max-width: 900px) {
	.gtv-ticket-stub {
		width: 140px;
		min-width: 125px;
		padding: 20px 14px;
	}

	.gtv-stub-number {
		font-size: 64px;
		margin: 8px 0;
	}

	.gtv-ticket-body {
		padding: 20px 24px;
	}

	.gtv-ticket-title {
		font-size: 23px;
	}

	.gtv-ticket-location {
		font-size: 16px;
		margin-bottom: 14px;
	}

	.gtv-ticket-meta-grid {
		grid-template-columns: 1.2fr 1fr 1fr;
		gap: 12px;
		margin-bottom: 18px;
	}

	.gtv-meta-value {
		font-size: 14px;
	}

	.gtv-btn {
		padding: 8px 18px;
		font-size: 13px;
	}
}

/* Tablet portrait & mobile (<= 767px) */
@media (max-width: 767px) {
	.gtv-paradas-header {
		margin-bottom: 14px;
	}

	.gtv-paradas-header-countdown {
		font-size: 16px;
	}

	.gtv-slider-main-container.gtv-slider-vertical {
		gap: 8px;
	}

	.gtv-ticket-card {
		flex-direction: column;
		border-radius: 16px;
		box-shadow: 0 4px 16px rgba(13, 27, 56, 0.05);
	}

	/* Talón superior */
	.gtv-ticket-stub {
		width: 100%;
		border-radius: 14px 14px 0 0;
		padding: 12px 18px;
		min-height: auto;
	}

	.gtv-stub-content {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		min-height: auto;
		width: 100%;
		gap: 10px;
	}

	.gtv-stub-label {
		font-size: 11px;
		letter-spacing: 1.5px;
		font-weight: 800;
	}

	.gtv-stub-number {
		font-size: 38px;
		line-height: 1;
		margin: 0;
		display: inline-block;
	}

	.gtv-stub-total {
		font-size: 11.5px;
		font-weight: 700;
		color: var(--gtv-navy);
		background: rgba(13, 27, 56, 0.08);
		padding: 4px 12px;
		border-radius: 999px;
		white-space: nowrap;
	}

	/* Divisor perforado horizontal */
	.gtv-ticket-divider-perforation {
		width: 100%;
		height: 0;
		position: relative;
	}

	.gtv-dashed-line {
		top: 0;
		left: 10px;
		right: 10px;
		bottom: auto;
		border-left: none;
		border-top: 2px dashed #d1d5db;
	}

	.gtv-notch {
		display: none;
	}

	/* Cuerpo del boleto */
	.gtv-ticket-body {
		padding: 16px 18px 20px 18px;
		border-radius: 0 0 14px 14px;
	}

	.gtv-ticket-badges {
		gap: 6px;
		margin-bottom: 8px;
	}

	.gtv-badge {
		font-size: 10px;
		letter-spacing: 0.8px;
		padding: 3.5px 8px;
	}

	.gtv-ticket-title {
		font-size: 22px;
		line-height: 1.15;
		margin: 0 0 4px 0;
		word-break: break-word;
		overflow-wrap: break-word;
	}

	.gtv-ticket-location {
		font-size: 14.5px;
		line-height: 1.35;
		margin: 0 0 12px 0;
		color: var(--gtv-text-muted);
	}

	.gtv-ticket-line-separator {
		margin: 0 0 12px 0;
	}

	/* Cuadrícula de metadatos: Fecha arriba, Horario y Entrada lado a lado */
	.gtv-ticket-meta-grid {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px 12px;
		margin-bottom: 16px;
	}

	.gtv-meta-item:first-child {
		grid-column: span 2;
	}

	.gtv-meta-label {
		font-size: 10px;
		letter-spacing: 1px;
		margin-bottom: 2px;
	}

	.gtv-meta-value {
		font-size: 13.5px;
		line-height: 1.25;
	}

	/* Botones de acción */
	.gtv-ticket-actions {
		display: flex;
		flex-direction: column;
		gap: 8px;
		width: 100%;
	}

	.gtv-btn {
		width: 100%;
		padding: 9px 14px;
		font-size: 12.5px;
		text-align: center;
		white-space: normal;
		line-height: 1.25;
	}

	/* Dock vertical de bullets */
	.gtv-vertical-nav-dock {
		flex-shrink: 0;
	}

	.gtv-vertical-nav-dock .gtv-swiper-pagination {
		padding: 8px 4px;
		gap: 6px;
		border-width: 1px;
	}

	.gtv-vertical-nav-dock .swiper-pagination-bullet {
		width: 6px;
		height: 6px;
	}

	.gtv-vertical-nav-dock .swiper-pagination-bullet-active {
		width: 6px;
		height: 20px;
	}

	/* Footer con indicador y contador */
	.gtv-slider-footer {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		gap: 8px;
		margin-top: 12px;
		padding: 0 2px;
	}

	.gtv-slider-hint {
		padding: 5px 12px 5px 7px;
		gap: 7px;
	}

	.gtv-swipe-icon-wrap {
		width: 20px;
		height: 20px;
	}

	.gtv-swipe-track-icon {
		width: 14px;
		height: 18px;
	}

	.gtv-hint-text {
		font-size: 10.5px;
		letter-spacing: 0.5px;
	}

	.gtv-slider-counter-info {
		padding-right: 2px;
	}

	.gtv-counter-current {
		font-size: 18px;
	}

	.gtv-counter-sep,
	.gtv-counter-total {
		font-size: 14px;
	}
}

/* Teléfonos estándar y compactos (<= 480px) */
@media (max-width: 480px) {
	.gtv-paradas-swiper {
		padding: 2px 0;
	}

	.gtv-slider-main-container.gtv-slider-vertical {
		gap: 6px;
	}

	.gtv-ticket-card {
		border-radius: 14px;
	}

	.gtv-ticket-stub {
		padding: 10px 14px;
		border-radius: 12px 12px 0 0;
	}

	.gtv-stub-content {
		gap: 6px;
	}

	.gtv-stub-label {
		font-size: 10px;
		letter-spacing: 1px;
	}

	.gtv-stub-number {
		font-size: 32px;
	}

	.gtv-stub-total {
		font-size: 10.5px;
		padding: 3px 9px;
	}

	.gtv-ticket-body {
		padding: 14px 14px 16px 14px;
		border-radius: 0 0 12px 12px;
	}

	.gtv-badge {
		font-size: 9.5px;
		padding: 2.5px 7px;
	}

	.gtv-ticket-title {
		font-size: 20px;
	}

	.gtv-ticket-location {
		font-size: 13.5px;
		margin-bottom: 10px;
	}

	.gtv-ticket-meta-grid {
		gap: 7px 10px;
		margin-bottom: 14px;
	}

	.gtv-meta-label {
		font-size: 9.5px;
	}

	.gtv-meta-value {
		font-size: 13px;
	}

	.gtv-ticket-actions {
		gap: 7px;
	}

	.gtv-btn {
		padding: 8px 12px;
		font-size: 12px;
	}

	.gtv-vertical-nav-dock .gtv-swiper-pagination {
		padding: 6px 3.5px;
		gap: 5px;
	}

	.gtv-vertical-nav-dock .swiper-pagination-bullet {
		width: 5px;
		height: 5px;
	}

	.gtv-vertical-nav-dock .swiper-pagination-bullet-active {
		width: 5px;
		height: 18px;
	}

	.gtv-slider-hint {
		padding: 4px 10px 4px 6px;
		gap: 6px;
	}

	.gtv-hint-text {
		font-size: 9.5px;
		letter-spacing: 0.4px;
	}
}

/* Pantallas muy pequeñas (<= 360px, ej. Galaxy Fold cerrado, iPhone SE) */
@media (max-width: 360px) {
	.gtv-ticket-body {
		padding: 12px 10px 14px 10px;
	}

	.gtv-ticket-title {
		font-size: 18px;
	}

	.gtv-stub-total {
		font-size: 9.5px;
		padding: 2px 7px;
	}

	.gtv-btn {
		padding: 7px 8px;
		font-size: 11px;
	}
}

/* Desactivar transformaciones fijas en dispositivos táctiles sin ratón */
@media (hover: none) {
	.gtv-ticket-card:hover {
		transform: none !important;
		box-shadow: 0 4px 16px rgba(13, 27, 56, 0.05) !important;
	}

	.gtv-slider-hint:hover {
		transform: none !important;
	}
}
