/**
 * Survivo Events - Custom Single Product Styles
 * Siguiendo el diseño actual de survivo.com.ar
 * Mobile-First Design
 */

/* ==========================================================================
   LOADER DE PÁGINA
   ========================================================================== */

.survivo-page-loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.survivo-page-loader.hidden {
	opacity: 0;
	visibility: hidden;
}

.survivo-loader-spinner {
	width: 50px;
	height: 50px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #5b00ea;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* ==========================================================================
   ELIMINAR PADDING Y MARGENES DE ASTRA - SOLO EN CONTENIDO DEL PRODUCTO
   ========================================================================== */

#survivo-single-event {
	margin: 0 !important;
	padding: 0 !important;
}

/* Solo afectar el contenedor del contenido principal, no el header */
body.single-product .site-content {
	padding: 0 !important;
}

body.single-product #primary {
	margin: 0 !important;
	padding: 0 !important;
}

body.single-product #primary .site-main {
	padding: 0 !important;
	margin: 0 !important;
}

body.single-product #primary .ast-container {
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.single-product #primary .ast-article-single,
body.single-product #primary .ast-article-post {
	padding: 0 !important;
	margin: 0 !important;
}

body.single-product #primary article.product {
	margin: 0 !important;
	padding: 0 !important;
}

body.single-product .entry-content {
	margin: 0 !important;
	padding: 0 !important;
}

/* Asegurarse de que no haya padding en mobile */
@media (max-width: 768px) {
	body.single-product .site-content,
	body.single-product #primary,
	body.single-product .ast-container {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	/* Prevenir overflow horizontal en mobile - SOLO en página, NO en mapa */
	body.single-product {
		overflow-x: hidden !important;
	}

	.survivo-event-image {
		overflow-x: hidden;
		max-width: 100%;
	}

	.survivo-event-container {
		overflow-x: hidden !important;
	}

	.survivo-event-content-wrapper {
		overflow-x: hidden !important;
	}

	/* Importante: el mapa-scroll DEBE tener scroll horizontal */
	.mapa-scroll {
		overflow-x: auto !important;
	}
}

.survivo-event-container {
	background: #ffffff;
	width: 100%;
	max-width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Ocultar elementos de WooCommerce que no necesitamos */
.survivo-event-container .woocommerce-product-rating,
.survivo-event-container .product_meta,
.survivo-event-container .woocommerce-tabs,
.survivo-event-container .related.products,
.survivo-event-container .woocommerce-breadcrumb {
	display: none !important;
}

/* ==========================================================================
   IMAGEN DEL EVENTO
   ========================================================================== */

.survivo-event-image {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	background: #f5f5f5;
	position: relative;
	overflow: hidden;
}

/* Mobile: Siempre full width */
.survivo-event-image img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	max-height: 600px;
}

@media (min-width: 769px) {
	.survivo-event-image img {
		max-height: 500px;
	}
}

/* Desktop: Manejo inteligente según aspect ratio */
@media (min-width: 769px) {
	/* Contenedor principal se vuelve flex cuando es imagen vertical */
	body.single-product .survivo-event-container[data-layout="vertical"] {
		display: grid;
		grid-template-columns: 450px 1fr;
		gap: 40px;
		max-width: 1400px;
		margin: 0 auto;
		padding: 0 40px;
		box-sizing: border-box;
		overflow: visible;
	}

	body.single-product .survivo-event-container[data-layout="vertical"] .survivo-event-image {
		grid-column: 1;
		grid-row: 1;
		position: sticky;
		top: 20px;
		align-self: start;
		width: 450px;
		flex-shrink: 0;
	}

	body.single-product .survivo-event-container[data-layout="vertical"] .survivo-event-content-wrapper {
		grid-column: 2;
		grid-row: 1;
		padding: 40px 30px 40px 0 !important;
		min-width: 0;
		max-width: 100%;
		overflow: visible;
	}

	/* Asegurar que todos los elementos hijos respeten el max-width */
	body.single-product .survivo-event-container[data-layout="vertical"] .survivo-event-content-wrapper > * {
		max-width: 100%;
		box-sizing: border-box;
	}

	.survivo-event-image {
		display: flex;
		justify-content: center;
		align-items: center;
		min-height: 400px;
		background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
	}

	/* Imagen horizontal (landscape) - Full width como antes */
	.survivo-event-image img[data-aspect="horizontal"],
	.survivo-event-image img {
		width: 100%;
		max-height: 600px;
		object-fit: cover;
	}

	/* Imagen vertical (portrait - formato IG) - Centrada y controlada */
	.survivo-event-image img[data-aspect="vertical"] {
		width: 100% !important;
		max-width: 450px;
		height: auto;
		object-fit: contain;
		box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
		border-radius: 8px;
	}
}

/* ==========================================================================
   CONTENEDOR DE CONTENIDO
   ========================================================================== */

.survivo-event-content-wrapper {
	max-width: 800px;
	margin: 0 auto;
	padding: 30px 20px;
	box-sizing: border-box;
}

@media (min-width: 769px) {
	.survivo-event-content-wrapper {
		padding: 50px 40px;
	}

	/* En layout horizontal, mantener columna más angosta y centrada */
	body.single-product .survivo-event-container[data-layout="horizontal"] .survivo-event-content-wrapper {
		max-width: 800px;
		margin: 0 auto;
	}
}

/* ==========================================================================
   INFORMACIÓN DEL EVENTO
   ========================================================================== */

/* Wrapper para título + botón de compartir */
.survivo-title-share-wrapper {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 24px;
	overflow: visible;
	position: relative;
	margin-right: 0;
	padding-right: 0;
}

@media (min-width: 769px) {
	body.single-product .survivo-event-container[data-layout="vertical"] .survivo-title-share-wrapper,
	body.single-product .survivo-event-container[data-layout="vertical"] .survivo-event-meta-item,
	body.single-product .survivo-event-container[data-layout="vertical"] .survivo-purchase-section,
	body.single-product .survivo-event-container[data-layout="vertical"] .survivo-map-section,
	body.single-product .survivo-event-container[data-layout="vertical"] .survivo-event-description {
		margin-right: 0;
		padding-right: 0;
	}
}

.survivo-event-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 28px;
	font-weight: 600;
	color: #000000;
	margin: 0;
	line-height: 1.3;
	flex: 1;
}

@media (min-width: 769px) {
	.survivo-event-title {
		font-size: 36px;
	}
}

/* Grupo de compartir con menú */
.survivo-share-group {
	position: relative;
}

/* Botón de Compartir */
.survivo-share-button {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #ffffff;
	border: 2px solid #5b00ea;
	border-radius: 30px;
	color: #5b00ea;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
	flex-shrink: 0;
}

.survivo-share-button:hover {
	background: #5b00ea;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(91, 0, 234, 0.3);
}

.survivo-share-button:active {
	transform: translateY(0);
}

.survivo-share-button svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.survivo-share-button svg circle,
.survivo-share-button svg path {
	stroke: currentColor;
}

/* Menú desplegable de compartir */
.survivo-share-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 200px;
	background: #ffffff;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1000;
	overflow: hidden;
}

.survivo-share-menu.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.survivo-share-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	color: #333333;
	text-decoration: none;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 15px;
	font-weight: 500;
	border: none;
	background: transparent;
	width: 100%;
	text-align: left;
	cursor: pointer;
	transition: all 0.2s ease;
}

.survivo-share-option:hover {
	background: #f5f5f5;
	color: #5b00ea;
}

.survivo-share-option svg {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

/* Mobile y pantallas medianas: botón más compacto */
@media (max-width: 1024px) {
	.survivo-share-button span {
		display: none;
	}

	.survivo-share-button {
		padding: 10px;
		min-width: 44px;
		justify-content: center;
	}

	.survivo-share-button svg {
		width: 20px;
		height: 20px;
	}
}

@media (max-width: 768px) {
	.survivo-share-menu {
		right: auto;
		left: 50%;
		transform: translateX(-50%) translateY(-10px);
	}

	.survivo-share-menu.active {
		transform: translateX(-50%) translateY(0);
	}
}

.survivo-event-producer {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid #e0e0e0;
}

.survivo-producer-logo {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #5b00ea;
}

.survivo-producer-name {
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #000000;
}

.survivo-event-meta-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 20px;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #333333;
}

.survivo-icon {
	flex-shrink: 0;
	color: #5b00ea;
	margin-top: 2px;
}

.survivo-event-meta-item strong {
	color: #000000;
	font-weight: 600;
}

.survivo-event-description {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 1px solid #e0e0e0;
	margin-right: 0;
}

@media (min-width: 769px) {
	.survivo-event-description {
		margin-right: 0;
		padding-right: 0;
	}
}

.survivo-section-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 22px;
	font-weight: 600;
	color: #000000;
	margin-bottom: 20px;
}

.survivo-description-content {
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 17px;
	line-height: 1.7;
	color: #333333;
}

.survivo-description-content p {
	margin-bottom: 16px;
}

.survivo-description-content strong {
	font-weight: 600;
	color: #000000;
}

/* ==========================================================================
   SECCIÓN DE COMPRA
   ========================================================================== */

.survivo-purchase-section {
	background: #ffffff;
	border-radius: 8px;
	border: 2px solid #e0e0e0;
	padding: 30px 0;
	margin-top: 30px;
	margin-bottom: 30px;
	max-width: 100%;
	box-sizing: border-box;
}

.survivo-section-title-purchase {
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: #000000;
	margin: 0 0 24px 0;
	padding: 0 24px;
}

/* Título específico para mapa de asientos */
.survivo-map-section .survivo-section-title-purchase {
	padding: 30px 20px 0 20px;
	margin-bottom: 20px;
}

@media (min-width: 769px) {
	.survivo-map-section .survivo-section-title-purchase {
		padding: 35px 30px 0 30px;
	}
}

/* ==========================================================================
   TABLA DE TICKETS
   ========================================================================== */

.survivo-tickets-table {
	margin-bottom: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

/* Header de la tabla (solo desktop) */
.survivo-tickets-header {
	display: none;
}

@media (min-width: 769px) {
	.survivo-tickets-header {
		display: grid;
		grid-template-columns: 2fr 1fr 1.5fr;
		gap: 16px;
		padding: 12px 16px;
		background: #f5f5f5;
		border-radius: 6px 6px 0 0;
		font-family: 'Montserrat', sans-serif;
		font-size: 13px;
		font-weight: 600;
		color: #666666;
		text-transform: uppercase;
		letter-spacing: 0.5px;
	}
}

/* Fila de ticket */
.survivo-ticket-row:not(.survivo-total-row-table) {
	padding: 20px 16px;
	border: 1px solid #e0e0e0;
	margin-bottom: 12px;
	border-radius: 6px;
	background: #ffffff;
	transition: all 0.2s ease;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	align-items: center;
}

.survivo-ticket-row:hover:not(.survivo-total-row-table) {
	border-color: #5b00ea;
	box-shadow: 0 2px 8px rgba(91, 0, 234, 0.1);
}

@media (min-width: 769px) {
	.survivo-ticket-row:not(.survivo-total-row-table) {
		display: grid;
		grid-template-columns: 2fr 1fr 1.5fr;
		gap: 16px;
		align-items: center;
		margin-bottom: 0;
		border-radius: 0;
		border-top: none;
	}

	.survivo-ticket-row:nth-of-type(2) {
		border-top: 1px solid #e0e0e0;
	}

	.survivo-ticket-row:last-child {
		border-radius: 0 0 6px 6px;
	}
}

/* Columnas */
.survivo-td-type,
.survivo-td-price {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.survivo-td-qty {
	grid-column: 1 / -1; /* Ocupa ambas columnas */
	display: flex;
	flex-direction: column;
	gap: 4px;
}

@media (min-width: 769px) {
	.survivo-td-type,
	.survivo-td-price,
	.survivo-td-qty {
		flex-direction: row;
		align-items: center;
		gap: 0;
	}

	.survivo-td-qty {
		grid-column: auto; /* Vuelve a su columna normal */
	}
}

/* Labels mobile */
.survivo-mobile-label {
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 600;
	color: #666666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

@media (min-width: 769px) {
	.survivo-mobile-label {
		display: none;
	}
}

.survivo-ticket-name {
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #000000;
}

.survivo-ticket-price {
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
	font-weight: 600;
	color: #5b00ea;
}

.survivo-ticket-price .woocommerce-Price-amount {
	color: #5b00ea;
}

/* ==========================================================================
   SELECTOR DE CANTIDAD
   ========================================================================== */

.survivo-quantity-selector {
	display: flex;
	align-items: center;
	gap: 0;
	border: 2px solid #e0e0e0;
	border-radius: 30px;
	overflow: hidden;
	width: fit-content;
}

.survivo-qty-btn {
	background: #ffffff;
	border: none;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 600;
	color: #5b00ea;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: 'Montserrat', sans-serif;
}

.survivo-qty-btn:hover {
	background: #5b00ea;
	color: #ffffff;
}

.survivo-qty-btn:active {
	transform: scale(0.95);
}

.survivo-qty-input {
	width: 50px;
	height: 40px;
	border: none;
	border-left: 1px solid #e0e0e0;
	border-right: 1px solid #e0e0e0;
	text-align: center;
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #000000;
	background: #ffffff;
	-moz-appearance: textfield;
}

.survivo-qty-input::-webkit-outer-spin-button,
.survivo-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.survivo-qty-input:focus {
	outline: none;
}

/* ==========================================================================
   FILA DE TOTAL Y BOTÓN
   ========================================================================== */

.survivo-total-row-table {
	background: #f9f9f9 !important;
	border-top: 2px solid #5b00ea !important;
	padding: 24px 16px !important;
}

.survivo-total-row-table:hover {
	box-shadow: none !important;
}

/* Mobile: diseño vertical */
.survivo-td-total-label,
.survivo-td-total-amount,
.survivo-td-total-button {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.survivo-total-label {
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #000000;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.survivo-total-amount {
	font-family: 'Montserrat', sans-serif;
	font-size: 28px;
	font-weight: 700;
	color: #5b00ea;
	margin-bottom: 12px;
}

/* Desktop: grid de 3 columnas */
@media (min-width: 769px) {
	.survivo-total-row-table {
		display: grid !important;
		grid-template-columns: 2fr 1fr 1.5fr !important;
		gap: 16px;
	}

	.survivo-td-total-label,
	.survivo-td-total-amount,
	.survivo-td-total-button {
		flex-direction: row;
		align-items: center;
		gap: 0;
	}

	.survivo-total-amount {
		margin-bottom: 0;
	}
}

.survivo-btn-comprar {
	width: 100%;
	background: #5b00ea !important;
	color: #ffffff !important;
	font-family: 'Montserrat', sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	padding: 12px 24px !important;
	border-radius: 30px !important;
	border: none !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	box-shadow: 0 4px 12px rgba(91, 0, 234, 0.2) !important;
}

.survivo-btn-comprar:hover {
	background: #29006a !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 16px rgba(91, 0, 234, 0.3) !important;
}

.survivo-btn-comprar:active {
	transform: translateY(0) !important;
}

/* ==========================================================================
   NOTIFICACIONES DE WOOCOMMERCE
   ========================================================================== */

.woocommerce-notices-wrapper {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 9999;
	max-width: 400px;
	width: calc(100% - 40px);
	pointer-events: none;
}

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info {
	pointer-events: auto;
	background: #ffffff;
	border-left: 4px solid #5b00ea;
	border-radius: 8px;
	padding: 16px 20px;
	margin-bottom: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: #333333;
	animation: slideInRight 0.4s ease-out;
	position: relative;
}

.woocommerce-notices-wrapper .woocommerce-message {
	border-left-color: #46b450;
}

.woocommerce-notices-wrapper .woocommerce-error {
	border-left-color: #dc3232;
}

.woocommerce-notices-wrapper .woocommerce-info {
	border-left-color: #00a0d2;
}

.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-error::before,
.woocommerce-notices-wrapper .woocommerce-info::before {
	content: '';
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-right: 10px;
	vertical-align: middle;
	background-size: contain;
	background-repeat: no-repeat;
}

.woocommerce-notices-wrapper .woocommerce-message::before {
	content: '✓';
	color: #46b450;
	font-weight: bold;
	font-size: 18px;
}

.woocommerce-notices-wrapper .woocommerce-error::before {
	content: '✕';
	color: #dc3232;
	font-weight: bold;
	font-size: 18px;
}

.woocommerce-notices-wrapper .woocommerce-info::before {
	content: 'ℹ';
	color: #00a0d2;
	font-weight: bold;
	font-size: 18px;
}

.woocommerce-notices-wrapper a {
	color: #5b00ea;
	text-decoration: underline;
	font-weight: 600;
}

.woocommerce-notices-wrapper a:hover {
	color: #29006a;
}

/* Animación de entrada */
@keyframes slideInRight {
	from {
		transform: translateX(400px);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Mobile: notificaciones en la parte superior centrada */
@media (max-width: 768px) {
	.woocommerce-notices-wrapper {
		top: 10px;
		right: 10px;
		left: 10px;
		width: auto;
		max-width: none;
	}

	.woocommerce-notices-wrapper .woocommerce-message,
	.woocommerce-notices-wrapper .woocommerce-error,
	.woocommerce-notices-wrapper .woocommerce-info {
		padding: 14px 16px;
		font-size: 14px;
	}
}

/* ==========================================================================
   MAPA DE ASIENTOS
   ========================================================================== */

.survivo-map-section {
	background: #ffffff;
	border-radius: 8px;
	border: 2px solid #e0e0e0;
	padding: 0;
	margin-top: 30px;
	margin-bottom: 30px;
	margin-right: 0;
	max-width: 100%;
	box-sizing: border-box;
	overflow: visible;
}

.survivo-map-instructions {
	background: #f9f9f9;
	border-left: 4px solid #5b00ea;
	padding: 16px 20px;
	margin: 0 20px 30px 20px;
	border-radius: 0;
}

@media (min-width: 769px) {
	.survivo-map-instructions {
		margin: 0 30px 30px 30px;
		border-radius: 4px;
	}
}

.survivo-map-instructions p {
	margin: 0;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #333333;
}

.survivo-map-container {
	margin: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	position: relative;
	max-width: 100%;
	width: 100%;
}

/* Estilos del mapa de asientos con branding Survivo */
.cm-mapa-frontend {
	font-family: 'Source Sans Pro', sans-serif;
	padding: 0;
	width: 100% !important;
	overflow: visible !important;
}

/* Contenedor de scroll - CENTRADO AL CARGAR */
.cm-mapa-frontend .mapa-scroll {
	width: 100% !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	text-align: center !important;
	padding: 0 20px 40px 20px !important;
	/* Scroll suave */
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box !important;
}

@media (max-width: 768px) {
	.cm-mapa-frontend .mapa-scroll {
		padding: 0 0 40px 0 !important;
	}
}

/* Contenedor inline - permite centrado */
.cm-mapa-frontend .mapa-inline {
	display: inline-flex !important;
	flex-direction: column !important;
	align-items: center !important;
	width: max-content !important;
	padding: 0 30px !important;
	gap: 0 !important;
}

@media (max-width: 768px) {
	.cm-mapa-frontend .mapa-inline {
		padding: 0 20px !important;
	}
}

/* ESCENARIO - MÁS ANCHO */
.cm-mapa-frontend .escenario-top {
	background: linear-gradient(135deg, #5b00ea 0%, #29006a 100%);
	color: #ffffff;
	padding: 12px 50px !important;
	text-align: center;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 1.5px;
	border-radius: 8px;
	margin-bottom: 25px;
	margin-left: auto;
	margin-right: auto;
	box-shadow: 0 4px 12px rgba(91, 0, 234, 0.2);
	/* Ancho generoso para que sea bien visible */
	width: 70%;
	min-width: 300px;
}

/* Mobile: escenario aún más ancho */
@media (max-width: 768px) {
	.cm-mapa-frontend .escenario-top {
		width: 85%;
		min-width: auto;
	}
}

.cm-mapa-frontend .cm-leyenda-mobile {
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 14px;
	color: #666666;
	text-align: center;
	margin-bottom: 20px;
	font-style: italic;
}

/* Bloques y filas */
.cm-mapa-frontend .cm-bloque {
	margin-bottom: 20px;
}

.cm-mapa-frontend .cm-fila {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 8px;
	gap: 6px;
}

/* Asientos */
.cm-mapa-frontend .cm-asiento {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
	border-radius: 6px;
	background: #f5f5f5;
	border: 2px solid #e0e0e0;
}

.cm-mapa-frontend .cm-asiento input[type="checkbox"] {
	display: none;
}

.cm-mapa-frontend .cm-asiento .asiento-num {
	font-family: 'Montserrat', sans-serif;
	font-size: 10px;
	font-weight: 600;
	color: #333333;
	pointer-events: none;
}

/* Asiento disponible hover */
.cm-mapa-frontend .cm-asiento:not(.ocupado):hover {
	background: #e8d5ff;
	border-color: #5b00ea;
	transform: scale(1.1);
	box-shadow: 0 2px 8px rgba(91, 0, 234, 0.2);
}

/* Asiento seleccionado */
.cm-mapa-frontend .cm-asiento input[type="checkbox"]:checked + .asiento-num {
	color: #ffffff;
}

.cm-mapa-frontend .cm-asiento:has(input[type="checkbox"]:checked) {
	background: linear-gradient(135deg, #5b00ea 0%, #29006a 100%);
	border-color: #5b00ea;
	box-shadow: 0 4px 12px rgba(91, 0, 234, 0.4);
	transform: scale(1.05);
}

/* Asientos ocupados - TODOS SE VEN IGUALES EN FRONTEND */
.cm-mapa-frontend .cm-asiento.ocupado,
.cm-mapa-frontend .cm-asiento.origen-boleteria,
.cm-mapa-frontend .cm-asiento.origen-cortesia,
.cm-mapa-frontend .cm-asiento.origen-inhabilitado {
	cursor: not-allowed;
	opacity: 0.6;
	background: #dc3232 !important;
	border-color: #a00 !important;
}

.cm-mapa-frontend .cm-asiento.ocupado .asiento-num,
.cm-mapa-frontend .cm-asiento.origen-boleteria .asiento-num,
.cm-mapa-frontend .cm-asiento.origen-cortesia .asiento-num,
.cm-mapa-frontend .cm-asiento.origen-inhabilitado .asiento-num {
	color: #ffffff !important;
}

/* Botón flotante de compra para mapa */
.survivo-btn-comprar-mapa {
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 1000;
	width: auto;
	min-width: 250px;
	background: #5b00ea !important;
	color: #ffffff !important;
	font-family: 'Montserrat', sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	padding: 16px 32px !important;
	border-radius: 30px !important;
	border: none !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	box-shadow: 0 6px 20px rgba(91, 0, 234, 0.4) !important;
	animation: pulseButton 2s infinite;
}

.survivo-btn-comprar-mapa:hover {
	background: #29006a !important;
	transform: translateY(-3px) !important;
	box-shadow: 0 8px 24px rgba(91, 0, 234, 0.5) !important;
}

.survivo-btn-comprar-mapa:active {
	transform: translateY(-1px) !important;
}

.survivo-btn-comprar-mapa:disabled,
.survivo-btn-comprar-mapa[disabled] {
	background: #999999 !important;
	cursor: not-allowed !important;
	opacity: 0.7 !important;
	transform: none !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
	animation: none !important;
	pointer-events: none !important;
}

.survivo-btn-comprar-mapa:disabled:hover,
.survivo-btn-comprar-mapa[disabled]:hover {
	background: #999999 !important;
	transform: none !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Spinner de carga en el botón */
.survivo-btn-comprar-mapa.processing::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 8px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: spinLoader 0.6s linear infinite;
	vertical-align: middle;
}

@keyframes spinLoader {
	to { transform: rotate(360deg); }
}

@keyframes pulseButton {
	0%, 100% {
		box-shadow: 0 6px 20px rgba(91, 0, 234, 0.4);
	}
	50% {
		box-shadow: 0 6px 30px rgba(91, 0, 234, 0.6);
	}
}

/* Leyenda de estados */
.survivo-map-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: center;
	margin: 30px 20px 30px 20px;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 6px;
}

@media (min-width: 769px) {
	.survivo-map-legend {
		margin: 30px 30px 30px 30px;
	}
}

.survivo-legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 14px;
	color: #333333;
}

.survivo-legend-box {
	width: 24px;
	height: 24px;
	border-radius: 4px;
	border: 2px solid #e0e0e0;
}

.survivo-legend-box.disponible {
	background: #f5f5f5;
}

.survivo-legend-box.seleccionado {
	background: linear-gradient(135deg, #5b00ea 0%, #29006a 100%);
}

.survivo-legend-box.ocupado {
	background: #dc3232;
	opacity: 0.6;
}

/* Mobile adjustments */
@media (max-width: 768px) {
	.survivo-map-section {
		padding: 24px 0;
	}

	.cm-mapa-frontend .escenario-top {
		font-size: 15px !important;
		padding: 12px 40px !important;
		letter-spacing: 1.5px !important;
		min-width: 75% !important;
		max-width: 85% !important;
	}

	.cm-mapa-frontend .cm-asiento {
		width: 36px;
		height: 36px;
	}

	.cm-mapa-frontend .cm-asiento .asiento-num {
		font-size: 11px;
	}

	.cm-mapa-frontend .mapa-scroll {
		padding: 0 15px 40px !important;
	}

	.survivo-btn-comprar-mapa {
		bottom: 20px;
		right: 20px;
		left: 20px;
		min-width: auto;
		width: calc(100% - 40px);
		text-align: center;
	}
}

/* ==========================================================================
   AJUSTES RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
	.survivo-event-content-wrapper {
		padding: 20px 16px;
	}

	.survivo-event-title {
		font-size: 24px;
	}

	.survivo-purchase-section {
		margin-top: 30px;
		padding: 24px 0;
	}

	.survivo-section-title-purchase {
		padding: 0 20px;
	}
}
