/* ═══════════════════════════════════════════════════════════════════
   MODALS — Kiosko Jalisco Redesign
   Overrides cards-modal.css with the new cyan/dark glass aesthetic
   defined in kiosk-redesign.css. Loads AFTER cards-modal.css.
   ═══════════════════════════════════════════════════════════════════ */

/* ───── 1. CHROME (header + bottom close button) ───── */

.card-modal {
	background:
		radial-gradient(ellipse 1100px 800px at 50% 0%, rgba(0, 172, 212, 0.18) 0%, transparent 60%),
		radial-gradient(ellipse 700px 500px at 100% 100%, rgba(2, 218, 253, 0.08) 0%, transparent 55%),
		linear-gradient(180deg, rgba(0, 8, 20, 0.97) 0%, rgba(0, 4, 12, 0.98) 100%) !important;
	backdrop-filter: blur(32px) saturate(140%);
	-webkit-backdrop-filter: blur(32px) saturate(140%);
}

/* Decorative top accent bar */
.card-modal::before {
	background: linear-gradient(90deg,
		transparent 0%,
		rgba(0, 172, 212, 0) 8%,
		var(--cyan) 35%,
		var(--cyan-glow) 50%,
		var(--cyan) 65%,
		rgba(0, 172, 212, 0) 92%,
		transparent 100%) !important;
	box-shadow: 0 0 24px rgba(0, 172, 212, 0.6);
}

/* Header row */
.modal-header {
	flex-shrink: 0;
	padding: 28px 36px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	border-bottom: 1px solid rgba(0, 172, 212, 0.18);
	background: linear-gradient(180deg, rgba(0, 28, 48, 0.6) 0%, transparent 100%);
}
.modal-title {
	margin: 0;
	font: 700 36px/1 var(--f-display);
	color: #fff;
	letter-spacing: -0.5px;
}

/* Close X (top right) */
.modal-close {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(0, 28, 48, 0.7);
	border: 1px solid var(--cyan);
	color: var(--cyan-bright);
	display: grid;
	place-items: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.modal-close:hover {
	background: rgba(0, 172, 212, 0.2);
	transform: scale(1.06) rotate(90deg);
	box-shadow: 0 0 24px rgba(0, 172, 212, 0.5);
}
.modal-close svg { width: 28px; height: 28px; }

/* Close pill (bottom center) — quick exit for touch users */
.modal-close-bottom {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 36px;
	border: 1px solid var(--cyan);
	border-radius: 999px;
	background: rgba(0, 28, 48, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: var(--cyan-bright);
	font: 700 17px var(--f-display);
	letter-spacing: 1.2px;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 8px 32px rgba(0, 172, 212, 0.35);
	transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.modal-close-bottom:hover {
	background: rgba(0, 172, 212, 0.25);
	transform: translateX(-50%) translateY(-2px);
	box-shadow: 0 12px 36px rgba(0, 172, 212, 0.5);
}
.modal-close-bottom svg { stroke: currentColor; }

/* Content area */
.modal-content {
	flex: 1;
	overflow: hidden;
	position: relative;
}

/* ───── 2. SCROLLBARS (cyan) ───── */
.places-list::-webkit-scrollbar,
.tab-content::-webkit-scrollbar { width: 6px; }
.places-list::-webkit-scrollbar-track,
.tab-content::-webkit-scrollbar-track { background: rgba(0, 172, 212, 0.05); }
.places-list::-webkit-scrollbar-thumb,
.tab-content::-webkit-scrollbar-thumb {
	background: rgba(0, 172, 212, 0.3);
	border-radius: 3px;
}
.places-list::-webkit-scrollbar-thumb:hover,
.tab-content::-webkit-scrollbar-thumb:hover { background: rgba(0, 172, 212, 0.6); }

/* ═══════════════════════════════════════════════════════════════════
   3. DIRECTORIO GASTRONÓMICO + MAPA DE SITIOS
   ═══════════════════════════════════════════════════════════════════ */

.gastronomico-container {
	grid-template-columns: 1fr 480px;
	padding: 26px 30px 110px;
}

.map-section {
	border: 1px solid rgba(0, 172, 212, 0.3);
	box-shadow:
		0 0 24px rgba(0, 172, 212, 0.15),
		0 8px 48px rgba(0, 0, 0, 0.6);
	border-radius: 22px;
	/* Contiene los z-index internos de Leaflet (panes 400-700, controles 1000)
	   en su propio stacking context. Sin esto, el mapa pinta por encima del
	   modal QR (z-index 1500) y lo recorta. */
	isolation: isolate;
}

.directory-section {
	background: linear-gradient(180deg, rgba(0, 28, 48, 0.85) 0%, rgba(0, 15, 32, 0.92) 100%);
	backdrop-filter: blur(24px) saturate(140%);
	-webkit-backdrop-filter: blur(24px) saturate(140%);
	border: 1px solid rgba(0, 172, 212, 0.25);
	box-shadow:
		0 0 24px rgba(0, 172, 212, 0.12),
		0 8px 48px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(0, 172, 212, 0.15);
	border-radius: 22px;
}

/* Search */
.search-bar { border-bottom: 1px solid rgba(0, 172, 212, 0.18); padding: 20px 22px 16px; }
.search-input {
	background: rgba(0, 172, 212, 0.06);
	border: 1px solid rgba(0, 172, 212, 0.25);
	border-radius: 14px;
	color: #fff;
	font-family: var(--f-display);
	font-size: 17px;
	padding: 16px 22px;
}
.search-input::placeholder { color: rgba(255, 255, 255, 0.45); }
.search-input:focus {
	border-color: var(--cyan);
	box-shadow: 0 0 0 3px rgba(0, 172, 212, 0.18), 0 0 20px rgba(0, 172, 212, 0.15);
}

/* Filter pills */
.category-filters {
	padding: 14px 22px 12px;
	border-bottom: 1px solid rgba(0, 172, 212, 0.14);
	gap: 8px;
}
.filter-btn {
	background: rgba(0, 172, 212, 0.06);
	border: 1px solid rgba(0, 172, 212, 0.28);
	border-radius: 999px;
	color: var(--cyan-bright);
	font-family: var(--f-display);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 9px 18px;
}
.filter-btn:hover {
	background: rgba(0, 172, 212, 0.18);
	border-color: var(--cyan);
	color: #fff;
}
.filter-btn.active {
	background: linear-gradient(135deg, rgba(0, 172, 212, 0.35), rgba(2, 218, 253, 0.18));
	border-color: var(--cyan-glow);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 0 16px rgba(0, 172, 212, 0.45);
}

/* Place items */
.places-list { padding: 14px 16px; }
.place-item {
	background: rgba(0, 172, 212, 0.05);
	border: 1px solid rgba(0, 172, 212, 0.15);
	border-left: 3px solid transparent;
	border-radius: 16px;
	padding: 18px 20px;
	margin-bottom: 10px;
}
.place-item:hover {
	background: rgba(0, 172, 212, 0.12);
	border-color: rgba(0, 172, 212, 0.5);
	border-left-color: var(--cyan-glow);
	box-shadow: 0 6px 24px rgba(0, 172, 212, 0.15);
}
.place-name { color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.place-category {
	color: var(--cyan-bright);
	font-family: var(--f-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.place-address { color: rgba(255, 255, 255, 0.7); font-family: var(--f-display); font-size: 14px; }
.place-distance { color: var(--cyan-glow); font-family: var(--f-mono); font-size: 12px; font-weight: 700; }
.place-distance svg path { stroke: var(--cyan-glow) !important; }

/* Action buttons inside place item */
.btn-directions, .btn-qr {
	flex: 1;
	padding: 11px 14px;
	border-radius: 12px;
	font-family: var(--f-display);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	transition: all 180ms ease;
}
.btn-directions {
	background: rgba(0, 172, 212, 0.12);
	border: 1px solid rgba(0, 172, 212, 0.45);
	color: var(--cyan-bright);
}
.btn-directions:hover {
	background: rgba(0, 172, 212, 0.25);
	border-color: var(--cyan);
	box-shadow: 0 0 16px rgba(0, 172, 212, 0.35);
}
.btn-qr {
	background: rgba(2, 218, 253, 0.1);
	border: 1px solid rgba(2, 218, 253, 0.45);
	color: var(--cyan-glow);
}
.btn-qr:hover {
	background: rgba(2, 218, 253, 0.2);
	border-color: var(--cyan-glow);
	box-shadow: 0 0 16px rgba(2, 218, 253, 0.4);
}

/* ───── QR sub-modal (Google Maps QR) ───── */
.qr-modal, .ar-qr-modal {
	background: rgba(0, 4, 12, 0.85);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	/* Por encima de los controles de Leaflet (z-index 1000) para que el modal
	   cubra el mapa por completo y no quede recortado. */
	z-index: 1500;
}
.qr-modal-content {
	background: linear-gradient(180deg, rgba(0, 28, 48, 0.98) 0%, rgba(0, 15, 32, 0.98) 100%);
	border: 1px solid var(--cyan);
	border-radius: 28px;
	box-shadow:
		0 0 48px rgba(0, 172, 212, 0.35),
		0 24px 64px rgba(0, 0, 0, 0.6);
	padding: 36px 40px;
}
.qr-title {
	color: #fff;
	font-family: var(--f-display);
	font-weight: 700;
	font-size: 22px;
}
.qr-code-container {
	background: #fff;
	border: 2px solid var(--cyan);
	border-radius: 14px;
	padding: 12px;
	box-shadow: 0 0 32px rgba(0, 172, 212, 0.4);
}
.qr-subtitle { color: rgba(255, 255, 255, 0.75); font-family: var(--f-display); font-size: 15px; }
.btn-primary {
	background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-glow) 100%);
	color: #001C30;
	font-family: var(--f-display);
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	border-radius: 999px;
	padding: 14px 32px;
	box-shadow: 0 8px 24px rgba(0, 172, 212, 0.4);
}
.btn-primary:hover {
	transform: scale(1.04);
	box-shadow: 0 12px 36px rgba(2, 218, 253, 0.5);
}

/* ═══════════════════════════════════════════════════════════════════
   4. FOTOGRAFÍA 3D
   ═══════════════════════════════════════════════════════════════════ */

.foto3d-container-redesign {
	padding: 36px 44px 110px;
	gap: 36px;
}

/* Left: content */
.tag-badge {
	background: rgba(2, 218, 253, 0.12);
	border: 1px solid rgba(2, 218, 253, 0.5);
	color: var(--cyan-glow);
	font-family: var(--f-display);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	box-shadow: 0 0 16px rgba(2, 218, 253, 0.25);
}

.foto3d-headline {
	font-family: var(--f-display);
	color: #fff;
	font-size: 52px;
	font-weight: 900;
	line-height: 1.05;
}
.foto3d-headline .highlight {
	background: linear-gradient(180deg, #00CFFF 0%, #007BFF 50%, #001E6C 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.foto3d-desc {
	font-family: var(--f-display);
	color: rgba(255, 255, 255, 0.78);
	font-size: 18px;
	line-height: 1.55;
}

/* Feature rows */
.feature-card {
	background: linear-gradient(90deg, rgba(0, 172, 212, 0.08), transparent);
	border-left: 2px solid rgba(0, 172, 212, 0.5);
	border-radius: 0 14px 14px 0;
	padding: 18px 22px;
}
.feature-card:hover {
	background: linear-gradient(90deg, rgba(0, 172, 212, 0.18), transparent);
	border-left-color: var(--cyan-glow);
	transform: translateX(6px);
}
.f-icon-box {
	background: rgba(0, 172, 212, 0.15);
	border: 1px solid rgba(0, 172, 212, 0.4);
	color: var(--cyan-bright);
	border-radius: 14px;
	box-shadow: 0 0 12px rgba(0, 172, 212, 0.25);
}
.f-icon-box svg { stroke: var(--cyan-bright); }
.f-text { color: #fff; font-family: var(--f-display); font-weight: 600; font-size: 17px; }

/* CTA button */
.btn-foto3d-main {
	background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-glow) 100%);
	box-shadow: 0 12px 36px rgba(0, 172, 212, 0.45);
	border-radius: 18px;
	padding: 24px;
	animation: pulse-foto3d 2.6s ease-in-out infinite;
}
@keyframes pulse-foto3d {
	0%, 100% { box-shadow: 0 12px 36px rgba(0, 172, 212, 0.45); transform: scale(1); }
	50%      { box-shadow: 0 18px 48px rgba(2, 218, 253, 0.7);  transform: scale(1.015); }
}
.btn-foto3d-main:hover {
	transform: translateY(-4px) scale(1.02);
	box-shadow: 0 18px 56px rgba(2, 218, 253, 0.7);
}
.btn-content {
	color: #001C30;
	font-family: var(--f-display);
	font-weight: 900;
	font-size: 20px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

/* Right: AR visual */
.visual-glass-panel {
	background: rgba(0, 28, 48, 0.4);
	border: 1px solid rgba(0, 172, 212, 0.35);
	border-radius: 28px;
	box-shadow:
		0 0 48px rgba(0, 172, 212, 0.25),
		inset 0 1px 0 rgba(0, 172, 212, 0.15);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

.blob-gold {
	background: var(--cyan);
}
.blob-teal {
	background: var(--cyan-glow);
}

.ar-bracket {
	border-color: var(--cyan-glow) !important;
}

.ar-live-badge {
	background: rgba(0, 172, 212, 0.2);
	border: 1px solid var(--cyan);
	color: #fff;
	font-family: var(--f-mono);
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	box-shadow: 0 0 16px rgba(0, 172, 212, 0.4);
}
.ar-live-badge .live-dot {
	background: #16CD80;
	box-shadow: 0 0 8px #16CD80;
}

.ar-scan-line {
	background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
	box-shadow: 0 0 16px var(--cyan-glow);
}

/* AR hero image — soft fade at all 4 edges so it looks embedded in the
   glass panel instead of a sharp rectangle floating in space.
   Also drops the up-and-down float animation per UX request. */
.ar-hero-img {
	max-width: 92%;
	max-height: 92%;
	object-fit: contain;
	animation: none;
	filter: drop-shadow(0 16px 36px rgba(0, 8, 20, 0.55))
	        drop-shadow(0 0 24px rgba(0, 172, 212, 0.15));
	-webkit-mask-image: radial-gradient(ellipse 92% 90% at center, #000 60%, transparent 100%);
	        mask-image: radial-gradient(ellipse 92% 90% at center, #000 60%, transparent 100%);
}

/* ═══════════════════════════════════════════════════════════════════
   5. PARTIDOS Y ESTADÍSTICAS
   ═══════════════════════════════════════════════════════════════════ */

.partidos-container { padding: 26px 30px 110px; gap: 20px; }

/* Top tabs (próximos / resultados / tabla / noticias) */
.tab-btn {
	background: rgba(0, 28, 48, 0.6);
	border: 1px solid rgba(0, 172, 212, 0.2);
	color: rgba(255, 255, 255, 0.6);
	font-family: var(--f-display);
	font-weight: 600;
	font-size: 15px;
	border-radius: 18px;
	padding: 18px 14px;
	letter-spacing: 0.3px;
}
.tab-btn:hover {
	background: rgba(0, 172, 212, 0.15);
	color: #fff;
	border-color: rgba(0, 172, 212, 0.5);
}
.tab-btn.active {
	background: linear-gradient(135deg, rgba(0, 172, 212, 0.3), rgba(2, 218, 253, 0.15));
	border-color: var(--cyan);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 0 18px rgba(0, 172, 212, 0.35);
}
.tab-btn.active svg { color: var(--cyan-glow); }

/* Content frame */
.partidos-content {
	background: linear-gradient(180deg, rgba(0, 28, 48, 0.55), rgba(0, 15, 32, 0.7));
	border: 1px solid rgba(0, 172, 212, 0.18);
	border-radius: 20px;
	padding: 22px;
}

/* Loading */
.loading-message { color: rgba(255, 255, 255, 0.6); font-family: var(--f-display); font-size: 16px; }
.spinner {
	width: 48px;
	height: 48px;
	border: 3px solid rgba(0, 172, 212, 0.15);
	border-top-color: var(--cyan-glow);
	border-radius: 50%;
}

/* Match cards */
.matches-grid {
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 16px;
}
.match-card {
	background: rgba(0, 28, 48, 0.55);
	border: 1px solid rgba(0, 172, 212, 0.18);
	border-radius: 20px;
}
.match-card:hover {
	background: rgba(0, 28, 48, 0.85);
	border-color: rgba(0, 172, 212, 0.55);
	box-shadow: 0 12px 40px rgba(0, 172, 212, 0.2);
	transform: translateY(-3px);
}

.league-pill {
	background: rgba(0, 172, 212, 0.18);
	border: 1px solid rgba(0, 172, 212, 0.45);
	color: var(--cyan-bright);
	font-family: var(--f-mono);
	font-weight: 700;
	letter-spacing: 1.2px;
}
.match-meta-date { color: rgba(255, 255, 255, 0.45); font-family: var(--f-mono); }

.team-label { color: #fff; font-family: var(--f-display); font-weight: 600; font-size: 14px; }
.team-crest-placeholder {
	background: rgba(0, 172, 212, 0.1);
	border: 1px solid rgba(0, 172, 212, 0.3);
}

.score-val {
	font-family: var(--f-mono);
	color: var(--cyan-glow);
	font-size: 34px;
	font-weight: 700;
	text-shadow: 0 0 12px rgba(2, 218, 253, 0.4);
}
.score-sep { color: rgba(255, 255, 255, 0.3); font-family: var(--f-mono); }

.status-pill {
	font-family: var(--f-mono);
	letter-spacing: 1.2px;
}
.status-pill.upcoming {
	color: #16CD80;
	background: rgba(22, 205, 128, 0.12);
	border: 1px solid rgba(22, 205, 128, 0.4);
}
.status-pill.finished {
	color: rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.match-venue-row {
	color: rgba(255, 255, 255, 0.45);
	font-family: var(--f-display);
	border-top: 1px solid rgba(0, 172, 212, 0.15);
	padding-top: 14px;
}
.match-venue-row svg { stroke: var(--cyan); opacity: 0.6; }

/* Standings */
.standings-tabs { gap: 10px; margin-bottom: 18px; }
.league-tab {
	background: rgba(0, 28, 48, 0.6);
	border: 1px solid rgba(0, 172, 212, 0.22);
	color: rgba(255, 255, 255, 0.65);
	font-family: var(--f-display);
	font-weight: 600;
	font-size: 13px;
	border-radius: 12px;
	padding: 10px 20px;
	letter-spacing: 0.5px;
}
.league-tab:hover {
	background: rgba(0, 172, 212, 0.15);
	border-color: rgba(0, 172, 212, 0.5);
	color: #fff;
}
.league-tab.active {
	background: linear-gradient(135deg, rgba(0, 172, 212, 0.3), rgba(2, 218, 253, 0.15));
	border-color: var(--cyan);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 0 14px rgba(0, 172, 212, 0.4);
}

.standings-table th {
	color: rgba(255, 255, 255, 0.55);
	font-family: var(--f-mono);
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 1.5px;
	border-bottom: 1px solid rgba(0, 172, 212, 0.2);
}
.standings-table td {
	background: rgba(0, 172, 212, 0.05);
	border-top: 1px solid rgba(0, 172, 212, 0.12);
	border-bottom: 1px solid rgba(0, 172, 212, 0.12);
	color: rgba(255, 255, 255, 0.85);
	font-family: var(--f-display);
	font-size: 14px;
}
.standings-table td:first-child { border-left: 1px solid rgba(0, 172, 212, 0.12); border-radius: 12px 0 0 12px; }
.standings-table td:last-child  { border-right: 1px solid rgba(0, 172, 212, 0.12); border-radius: 0 12px 12px 0; }
.standings-table tbody tr:hover td {
	background: rgba(0, 172, 212, 0.15);
	border-color: rgba(0, 172, 212, 0.3);
}
.position {
	font-family: var(--f-mono);
	font-weight: 700;
	color: var(--cyan-glow);
	text-shadow: 0 0 8px rgba(2, 218, 253, 0.4);
}

/* News */
.news-grid { gap: 16px; }
.news-card {
	background: rgba(0, 28, 48, 0.55);
	border: 1px solid rgba(0, 172, 212, 0.18);
	border-radius: 18px;
	padding: 22px;
}
.news-card:hover {
	background: rgba(0, 28, 48, 0.85);
	border-color: rgba(0, 172, 212, 0.5);
	transform: translateY(-3px);
	box-shadow: 0 10px 32px rgba(0, 172, 212, 0.18);
}
.news-title { color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 18px; line-height: 1.3; }
.news-description { color: rgba(255, 255, 255, 0.62); font-family: var(--f-display); font-size: 14px; line-height: 1.55; }
.news-date {
	color: var(--cyan-bright);
	font-family: var(--f-mono);
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════
   6. RESPECT prefers-reduced-motion
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
	.btn-foto3d-main,
	.match-card,
	.news-card,
	.place-item,
	.modal-close,
	.modal-close-bottom { animation: none !important; transition: none !important; }
}
