/* ══════════════════════════════════════════════════════════
   KIOSKO JALISCO — CARD MODAL CONTENT STYLES
   Fixed 1080×1920 canvas. Design: dark glass + gold/teal.
   ══════════════════════════════════════════════════════════ */

/* ── Animations ── */
@keyframes modal-in {
	from { opacity:0; transform:translateY(32px) scale(.98); }
	to   { opacity:1; transform:translateY(0) scale(1); }
}
@keyframes spin     { to { transform:rotate(360deg); } }
@keyframes float-img {
	0%,100% { transform:translateY(0); }
	50%     { transform:translateY(-14px); }
}
@keyframes fadeIn  { from { opacity:0; } to { opacity:1; } }
@keyframes slideUp {
	from { opacity:0; transform:translateY(22px); }
	to   { opacity:1; transform:translateY(0); }
}
@keyframes pulse {
	0%,100% { transform:scale(1); opacity:1; }
	50%     { transform:scale(1.1); opacity:.9; }
}

/* ══════════════════════════════════════════════════════════
   MODAL CHROME — position:absolute for transformed #stage
   ══════════════════════════════════════════════════════════ */
.card-modal {
	position:absolute !important;
	inset:0 !important;
	top:0 !important; left:0 !important; right:0 !important; bottom:0 !important;
	z-index:100;
	display:none; flex-direction:column;
	/* Atmospheric background — matches kiosk main screen depth */
	background:
		radial-gradient(ellipse 900px 700px at 50% 20%, rgba(11,74,85,.42) 0%, transparent 70%),
		radial-gradient(ellipse 600px 400px at 80% 80%, rgba(217,104,46,.08) 0%, transparent 60%),
		rgba(2,12,16,.97);
	backdrop-filter:blur(32px) saturate(140%);
	-webkit-backdrop-filter:blur(32px) saturate(140%);
}

/* Decorative top accent bar */
.card-modal::before {
	content:'';
	position:absolute; top:0; left:0; right:0; height:3px; z-index:10;
	background:linear-gradient(90deg,
		transparent 0%,
		#d9682e 12%,
		#e8b863 38%,
		#f6d999 55%,
		#6fe3d5 80%,
		transparent 100%
	);
}

.card-modal.active {
	display:flex;
	animation:modal-in .38s cubic-bezier(.22,1,.36,1) both;
}

/* ── modal-view: position:relative + overflow:hidden
   so the absolute QR sub-modals overlay correctly ── */
.modal-view {
	width:100%; height:100%;
	position:relative; overflow:hidden;
	pointer-events:auto;
}
.modal-view button, .modal-view a, .modal-view input,
.modal-view select, .modal-view [onclick] { pointer-events:auto !important; }

/* ── Scrollbars ── */
.places-list::-webkit-scrollbar,
.tab-content::-webkit-scrollbar { width:5px; }
.places-list::-webkit-scrollbar-track,
.tab-content::-webkit-scrollbar-track { background:rgba(245,238,220,.03); }
.places-list::-webkit-scrollbar-thumb,
.tab-content::-webkit-scrollbar-thumb { background:rgba(232,184,99,.2); border-radius:3px; }
.places-list::-webkit-scrollbar-thumb:hover,
.tab-content::-webkit-scrollbar-thumb:hover { background:rgba(232,184,99,.4); }

/* ══════════════════════════════════════════════════════════
   GASTRONOMICO / MAPAS
   ══════════════════════════════════════════════════════════ */

.gastronomico-container {
	display:grid;
	grid-template-columns:1fr 456px;
	height:100%; gap:22px;
	padding:22px 26px 104px;
	box-sizing:border-box;
}

.map-section {
	position:relative; border-radius:20px; overflow:hidden;
	border:1px solid rgba(245,238,220,.09);
	box-shadow:0 8px 48px rgba(0,0,0,.5);
}
.interactive-map,
#gastronomicMap,
#landmarksMap { width:100%; height:100%; }

/* Directory panel */
.directory-section {
	display:flex; flex-direction:column; overflow:hidden;
	border-radius:20px;
	background:linear-gradient(180deg, rgba(7,31,38,.9) 0%, rgba(4,18,22,.84) 100%);
	backdrop-filter:blur(24px) saturate(120%);
	-webkit-backdrop-filter:blur(24px) saturate(120%);
	border:1px solid rgba(232,184,99,.14);
	box-shadow:0 8px 48px rgba(0,0,0,.4), inset 0 1px 0 rgba(245,238,220,.06);
}

.search-bar {
	padding:18px 18px 14px;
	border-bottom:1px solid rgba(245,238,220,.07);
}
.search-input {
	width:100%; padding:14px 20px;
	background:rgba(245,238,220,.05);
	border:1px solid rgba(245,238,220,.1);
	border-radius:13px; outline:none;
	color:#f5eedc;
	font-family:'Manrope', sans-serif; font-size:16px;
	transition:border-color .2s, box-shadow .2s;
}
.search-input::placeholder { color:rgba(245,238,220,.3); }
.search-input:focus {
	border-color:rgba(232,184,99,.46);
	box-shadow:0 0 0 3px rgba(232,184,99,.09);
}

/* Filter pills */
.category-filters {
	display:flex; gap:7px; padding:12px 18px 10px;
	border-bottom:1px solid rgba(245,238,220,.06);
	flex-wrap:wrap;
}
.filter-btn {
	padding:8px 16px;
	background:rgba(245,238,220,.05);
	border:1px solid rgba(245,238,220,.1);
	border-radius:20px; cursor:pointer;
	font-family:'JetBrains Mono', monospace;
	font-size:11px; font-weight:500; letter-spacing:.04em;
	color:rgba(245,238,220,.52);
	white-space:nowrap;
	transition:all .2s ease;
}
.filter-btn:hover {
	background:rgba(232,184,99,.1);
	border-color:rgba(232,184,99,.3);
	color:#e8b863;
}
.filter-btn.active {
	background:rgba(232,184,99,.16);
	border-color:rgba(232,184,99,.5);
	color:#f6d999; font-weight:700;
	box-shadow:0 2px 12px rgba(232,184,99,.13);
}

/* Places list */
.places-list { flex:1; overflow-y:auto; padding:12px 14px; }

.place-item {
	border-radius:15px; padding:16px 18px; margin-bottom:9px;
	background:rgba(245,238,220,.04);
	border:1px solid rgba(245,238,220,.07);
	cursor:pointer;
	transition:all .22s ease;
}
.place-item:hover {
	background:rgba(232,184,99,.07);
	border-color:rgba(232,184,99,.26);
	transform:translateX(4px);
	box-shadow:0 4px 20px rgba(0,0,0,.2);
}
.place-name {
	font-family:'Bricolage Grotesque', sans-serif;
	font-size:17px; font-weight:700;
	color:#f5eedc; margin-bottom:4px;
}
.place-category {
	font-family:'JetBrains Mono', monospace;
	font-size:11px; font-weight:500; letter-spacing:.06em;
	color:#e8b863; margin-bottom:6px; text-transform:uppercase;
}
.place-address {
	font-family:'Manrope', sans-serif;
	font-size:13px; color:rgba(245,238,220,.46); margin-bottom:7px;
}
.place-distance {
	display:inline-flex; align-items:center; gap:5px;
	font-family:'JetBrains Mono', monospace;
	font-size:11px; font-weight:600;
	color:#6fe3d5;
	background:rgba(111,227,213,.1);
	padding:4px 11px; border-radius:20px;
}
.place-distance svg path { stroke:#6fe3d5 !important; }

.place-actions { display:flex; gap:9px; margin-top:12px; }

.btn-directions, .btn-qr {
	padding:10px 16px; border-radius:11px;
	font-family:'Manrope', sans-serif;
	font-size:13px; font-weight:600; cursor:pointer;
	border:none; transition:all .2s ease;
	display:flex; align-items:center; gap:6px;
}
.btn-directions {
	flex:1;
	background:rgba(111,227,213,.09);
	border:1px solid rgba(111,227,213,.2);
	color:#6fe3d5;
}
.btn-directions:hover { background:rgba(111,227,213,.18); border-color:rgba(111,227,213,.44); }
.btn-qr {
	background:rgba(232,184,99,.09);
	border:1px solid rgba(232,184,99,.26);
	color:#e8b863; padding:10px 14px;
}
.btn-qr:hover { background:rgba(232,184,99,.18); border-color:rgba(232,184,99,.5); }

/* ══════════════════════════════════════════════════════════
   QR SUB-MODALS — absolute inside .modal-view (position:relative)
   ══════════════════════════════════════════════════════════ */
.qr-modal,
.ar-qr-modal {
	position:absolute; inset:0; z-index:300;
	background:rgba(2,12,16,.9);
	backdrop-filter:blur(24px);
	-webkit-backdrop-filter:blur(24px);
	display:flex; align-items:center; justify-content:center;
	animation:fadeIn .22s ease;
}

.qr-modal-content {
	background:linear-gradient(180deg, rgba(7,31,38,.98), rgba(4,18,22,.96));
	border:1px solid rgba(232,184,99,.28);
	border-radius:28px; padding:52px 56px;
	max-width:520px; width:90%;
	text-align:center;
	box-shadow:0 24px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(245,238,220,.04);
	animation:slideUp .3s cubic-bezier(.22,1,.36,1);
}

.qr-title {
	font-family:'Bricolage Grotesque', sans-serif;
	font-size:26px; font-weight:800;
	background:linear-gradient(135deg, #f6d999, #e8b863);
	-webkit-background-clip:text; -webkit-text-fill-color:transparent;
	background-clip:text;
	margin-bottom:22px;
}

.qr-code-container {
	background:#fff; padding:24px; border-radius:18px;
	display:inline-block; margin:14px auto;
	box-shadow:0 8px 32px rgba(0,0,0,.3);
}
.qr-subtitle {
	font-family:'Manrope', sans-serif;
	font-size:15px; color:rgba(245,238,220,.52);
	margin:18px 0; font-weight:400;
}
.btn-primary {
	background:linear-gradient(135deg, #e8b863, #d9682e);
	border:none; color:#02191c;
	padding:15px 50px; border-radius:50px;
	font-family:'Manrope', sans-serif;
	font-size:17px; font-weight:700; cursor:pointer;
	box-shadow:0 8px 24px rgba(232,184,99,.3);
	transition:transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover { transform:scale(1.04); box-shadow:0 12px 36px rgba(232,184,99,.46); }

/* ══════════════════════════════════════════════════════════
   FOTOGRAFÍA 3D
   ══════════════════════════════════════════════════════════ */
.foto3d-container-redesign {
	display:grid; 
	grid-template-columns: 1fr 1.1fr;
	height:100%; gap:30px;
	padding:30px 40px 104px;
	box-sizing:border-box;
	align-items: center;
}

/* Left Panel: Content */
.foto3d-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
}

.foto3d-header {
	margin-bottom: 30px;
}

.tag-badge {
	display: inline-flex;
	padding: 6px 14px;
	background: rgba(111, 227, 213, 0.15);
	border: 1px solid rgba(111, 227, 213, 0.3);
	border-radius: 20px;
	color: #6fe3d5;
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 16px;
}

.foto3d-headline {
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: 46px;
	font-weight: 800;
	line-height: 1.1;
	color: #f5eedc;
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
}

.foto3d-headline .highlight {
	background: linear-gradient(135deg, #f6d999 0%, #d9682e 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.foto3d-desc {
	font-family: 'Manrope', sans-serif;
	font-size: 17px;
	color: rgba(245, 238, 220, 0.7);
	line-height: 1.6;
	max-width: 90%;
}

.foto3d-features {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 40px;
}

.feature-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	background: linear-gradient(90deg, rgba(245,238,220,0.05), transparent);
	border-left: 2px solid rgba(232, 184, 99, 0.4);
	border-radius: 0 12px 12px 0;
	transition: all 0.3s ease;
}

.feature-card:hover {
	background: linear-gradient(90deg, rgba(232,184,99,0.1), transparent);
	border-left-color: #e8b863;
	transform: translateX(4px);
}

.f-icon-box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: rgba(232, 184, 99, 0.1);
	border: 1px solid rgba(232, 184, 99, 0.2);
	border-radius: 12px;
	color: #e8b863;
}

.f-icon-box svg {
	stroke: #e8b863;
}

.f-text {
	font-family: 'Manrope', sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #f5eedc;
}

.foto3d-cta-wrapper {
	margin-top: 20px;
	margin-bottom: auto; /* This will push everything else up, and keep the button close to the features */
}

.btn-foto3d-main {
	position: relative;
	width: 100%;
	padding: 22px;
	border: none;
	border-radius: 16px;
	background: linear-gradient(135deg, #f6d999 0%, #d9682e 100%);
	cursor: pointer;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 12px 36px rgba(217, 104, 46, 0.35);
	animation: pulse-button 2.5s infinite;
}

@keyframes pulse-button {
	0%, 100% { transform: scale(1); box-shadow: 0 12px 36px rgba(217, 104, 46, 0.35); }
	50% { transform: scale(1.02); box-shadow: 0 16px 48px rgba(217, 104, 46, 0.5); }
}

.btn-foto3d-main:hover {
	transform: translateY(-4px) scale(1.02);
	box-shadow: 0 16px 48px rgba(217, 104, 46, 0.6);
	animation: none; /* stop pulse on hover */
}

.btn-glow-effect {
	position: absolute;
	top: 0; left: -100%; width: 50%; height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
	transform: skewX(-20deg);
	transition: all 0.5s ease;
}

.btn-foto3d-main:hover .btn-glow-effect {
	left: 150%;
}

.btn-content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-family: 'Manrope', sans-serif;
	font-size: 19px;
	font-weight: 800;
	color: #041216;
}

/* Right Panel: Immersive Visual */
.foto3d-visual {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.visual-blobs {
	position: absolute;
	inset: 0;
	overflow: hidden;
	z-index: 0;
	border-radius: 24px;
}

.blob {
	position: absolute;
	filter: blur(60px);
	border-radius: 50%;
	opacity: 0.4;
	animation: spin 10s linear infinite;
}

.blob-gold {
	width: 300px;
	height: 300px;
	background: #d9682e;
	top: 10%;
	right: 10%;
}

.blob-teal {
	width: 250px;
	height: 250px;
	background: #6fe3d5;
	bottom: 10%;
	left: 10%;
	animation-direction: reverse;
	animation-duration: 12s;
}

.visual-glass-panel {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 90%;
	background: rgba(7, 31, 38, 0.4);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(111, 227, 213, 0.15);
	border-radius: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 24px 64px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.05);
	overflow: hidden;
}

.ar-bracket {
	position: absolute;
	width: 30px;
	height: 30px;
	border: 2px solid rgba(111, 227, 213, 0.6);
}
.ar-top-left { top: 20px; left: 20px; border-right: none; border-bottom: none; border-top-left-radius: 8px;}
.ar-top-right { top: 20px; right: 20px; border-left: none; border-bottom: none; border-top-right-radius: 8px;}
.ar-bottom-left { bottom: 20px; left: 20px; border-right: none; border-top: none; border-bottom-left-radius: 8px;}
.ar-bottom-right { bottom: 20px; right: 20px; border-left: none; border-top: none; border-bottom-right-radius: 8px;}

.ar-live-badge {
	position: absolute;
	top: 24px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(0,0,0,0.5);
	padding: 6px 14px;
	border-radius: 20px;
	border: 1px solid rgba(255,255,255,0.1);
}

.live-dot {
	width: 8px;
	height: 8px;
	background: #ff3b30;
	border-radius: 50%;
	box-shadow: 0 0 8px #ff3b30;
	animation: pulse 2s infinite;
}

.ar-live-badge span {
	font-family: 'JetBrains Mono', monospace;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.1em;
}

.ar-hero-img {
	max-width: 90%;
	max-height: 90%;
	object-fit: contain;
	filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
	animation: float-img 6s ease-in-out infinite;
	z-index: 2;
}

.ar-scan-line {
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(111, 227, 213, 0.8), transparent);
	box-shadow: 0 0 10px rgba(111, 227, 213, 0.5);
	animation: scan-down 4s linear infinite;
	z-index: 3;
}

@keyframes scan-down {
	0% { top: 0; opacity: 0; }
	10% { opacity: 1; }
	90% { opacity: 1; }
	100% { top: 100%; opacity: 0; }
}

/* ══════════════════════════════════════════════════════════
   PARTIDOS Y ESTADÍSTICAS
   ══════════════════════════════════════════════════════════ */
.partidos-container {
	display:flex; flex-direction:column;
	height:100%; gap:18px;
	padding:22px 26px 104px;
	box-sizing:border-box;
}

/* Tabs — individual floating pills */
.partidos-tabs {
	display:flex; gap:10px; flex-shrink:0;
}
.tab-btn {
	flex:1; padding:16px 12px;
	display:flex; align-items:center; justify-content:center; gap:9px;
	background:rgba(7,31,38,.7);
	border:1px solid rgba(245,238,220,.08);
	border-radius:16px; cursor:pointer;
	font-family:'Manrope', sans-serif;
	font-size:15px; font-weight:600;
	color:rgba(245,238,220,.46);
	transition:all .22s ease;
}
.tab-btn svg { flex-shrink:0; opacity:.6; transition:opacity .22s; }
.tab-btn:hover {
	background:rgba(232,184,99,.08);
	color:rgba(245,238,220,.82);
	border-color:rgba(232,184,99,.2);
}
.tab-btn:hover svg { opacity:1; }
.tab-btn.active {
	background:linear-gradient(135deg, rgba(232,184,99,.22), rgba(217,104,46,.14));
	border-color:rgba(232,184,99,.44);
	color:#f6d999; font-weight:700;
	box-shadow:0 4px 20px rgba(232,184,99,.11);
}
.tab-btn.active svg { opacity:1; }

/* Content area */
.partidos-content {
	flex:1; overflow:hidden;
	background:linear-gradient(180deg, rgba(7,31,38,.68), rgba(4,18,22,.58));
	border:1px solid rgba(245,238,220,.07);
	border-radius:18px; padding:18px;
}
.tab-content {
	display:none; height:100%;
	overflow-y:auto; -webkit-overflow-scrolling:touch;
	animation:fadeIn .25s ease;
}
.tab-content.active { display:block; }

/* Loading */
.loading-message {
	display:flex; flex-direction:column;
	align-items:center; justify-content:center;
	height:100%; gap:16px;
	font-family:'Manrope', sans-serif;
	font-size:16px; color:rgba(245,238,220,.38);
}
.spinner {
	width:46px; height:46px; border-radius:50%;
	border:3px solid rgba(245,238,220,.07);
	border-top-color:#e8b863;
	animation:spin .85s linear infinite;
}

/* ══════════════════════════════════════════════════════════
   MATCH CARDS — new scoreboard layout
   ══════════════════════════════════════════════════════════ */
.matches-grid {
	display:grid;
	grid-template-columns:repeat(auto-fill, minmax(300px, 1fr));
	gap:14px;
}

.match-card {
	position:relative; overflow:hidden;
	border-radius:18px;
	background:rgba(7,31,38,.65);
	border:1px solid rgba(245,238,220,.08);
	transition:all .22s ease;
}
.match-card:hover {
	background:rgba(7,31,38,.85);
	border-color:rgba(232,184,99,.24);
	transform:translateY(-3px);
	box-shadow:0 10px 32px rgba(0,0,0,.35);
}

/* Blurred team background image */
.match-card-bg {
	position:absolute; inset:0;
	background-size:cover; background-position:center;
	opacity:.1; filter:blur(3px);
}

.match-card-inner {
	position:relative; z-index:1;
	padding:18px 20px;
}

/* League + date strip */
.match-meta {
	display:flex; align-items:center; gap:10px;
	margin-bottom:16px;
}
.league-pill {
	display:inline-flex;
	align-items:center;
	gap:7px;
	font-family:'JetBrains Mono', monospace;
	font-size:10px; font-weight:700; letter-spacing:.08em;
	text-transform:uppercase;
	color:#e8b863;
	background:rgba(232,184,99,.14);
	border:1px solid rgba(232,184,99,.24);
	padding:3px 10px; border-radius:20px;
	white-space:nowrap; overflow:hidden;
	max-width:180px;
}
.league-pill > span {
	overflow:hidden; text-overflow:ellipsis;
}
.league-flag {
	width:16px; height:11px;
	object-fit:cover;
	border-radius:2px;
	box-shadow:0 0 0 1px rgba(0,0,0,.22);
	flex-shrink:0;
}
.league-flag-svg {
	width:14px; height:14px;
	stroke:currentColor; fill:none;
	flex-shrink:0;
}
.match-meta-date {
	font-family:'JetBrains Mono', monospace;
	font-size:10px; color:rgba(245,238,220,.38);
	letter-spacing:.04em; white-space:nowrap;
}

/* Horizontal scoreboard */
.match-scoreboard {
	display:flex; align-items:center; gap:10px;
	margin-bottom:14px;
}
.match-team-col {
	flex:1; display:flex; flex-direction:column;
	align-items:center; gap:10px; text-align:center;
}
.team-crest {
	width:44px; height:44px; object-fit:contain;
	filter:drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.team-crest-placeholder {
	width:44px; height:44px; border-radius:50%;
	background:rgba(245,238,220,.08);
	border:1px solid rgba(245,238,220,.12);
}
.team-label {
	font-family:'Manrope', sans-serif;
	font-size:13px; font-weight:600; color:#f5eedc;
	line-height:1.25; max-width:110px;
	overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

.score-center {
	display:flex; flex-direction:column; align-items:center;
	gap:8px; flex-shrink:0;
}
.score-box {
	display:flex; align-items:center; gap:5px;
}
.score-val {
	font-family:'JetBrains Mono', monospace;
	font-size:30px; font-weight:700;
	color:#e8b863; min-width:28px; text-align:center;
	line-height:1;
}
.score-sep {
	font-family:'JetBrains Mono', monospace;
	font-size:22px; color:rgba(245,238,220,.25); font-weight:400;
}

/* Status pill */
.status-pill {
	font-family:'JetBrains Mono', monospace;
	font-size:10px; font-weight:700; letter-spacing:.08em;
	text-transform:uppercase;
	padding:4px 12px; border-radius:20px;
}
.status-pill.upcoming {
	color:#6fe3d5; background:rgba(111,227,213,.1);
	border:1px solid rgba(111,227,213,.2);
}
.status-pill.finished {
	color:rgba(245,238,220,.45); background:rgba(245,238,220,.05);
	border:1px solid rgba(245,238,220,.1);
}

/* Venue row */
.match-venue-row {
	display:flex; align-items:center; gap:6px;
	font-family:'Manrope', sans-serif;
	font-size:11px; color:rgba(245,238,220,.35);
	padding-top:12px;
	border-top:1px solid rgba(245,238,220,.06);
}
.match-venue-row svg { flex-shrink:0; stroke:rgba(245,238,220,.3); }

/* Standings */
.table-container { overflow-x:auto; }
.standings-tabs {
	display:flex; gap:8px; margin-bottom:16px;
	flex-wrap:wrap; justify-content:center;
}
.league-tab {
	background:rgba(245,238,220,.05);
	border:1px solid rgba(245,238,220,.1);
	border-radius:10px; padding:9px 18px;
	color:rgba(245,238,220,.58);
	font-family:'JetBrains Mono', monospace;
	font-size:12px; font-weight:500; cursor:pointer;
	transition:all .2s ease; white-space:nowrap;
}
.league-tab:hover { background:rgba(232,184,99,.1); border-color:rgba(232,184,99,.28); color:#e8b863; }
.league-tab.active { background:rgba(232,184,99,.16); border-color:rgba(232,184,99,.46); color:#f6d999; }

.standings-content { min-height:400px; }
.standings-table { width:100%; border-collapse:separate; border-spacing:0 7px; }
.standings-table th {
	color:rgba(245,238,220,.42);
	font-family:'JetBrains Mono', monospace;
	font-size:11px; font-weight:500;
	padding:0 12px 8px; text-align:left;
	letter-spacing:.08em; text-transform:uppercase;
	border-bottom:1px solid rgba(245,238,220,.07);
}
.standings-table td {
	background:rgba(245,238,220,.04);
	border-top:1px solid rgba(245,238,220,.06);
	border-bottom:1px solid rgba(245,238,220,.06);
	padding:13px 12px;
	color:rgba(245,238,220,.82);
	font-family:'Manrope', sans-serif; font-size:14px;
}
.standings-table td:first-child { border-left:1px solid rgba(245,238,220,.06); border-radius:10px 0 0 10px; }
.standings-table td:last-child  { border-right:1px solid rgba(245,238,220,.06); border-radius:0 10px 10px 0; }
.standings-table tbody tr:hover td { background:rgba(232,184,99,.07); border-color:rgba(232,184,99,.12); }
.position { font-family:'JetBrains Mono', monospace; font-weight:700; color:#e8b863; text-align:center; }

/* ── FIFA group-stage tables (Tabla → FIFA tab) ───────────
   Two-column grid of small tables, one per group, each with
   a labelled header. */
.standings-groups {
	display:grid;
	grid-template-columns:repeat(auto-fit, minmax(420px, 1fr));
	gap:18px 22px;
}
.standings-group {
	background:rgba(7,31,38,.55);
	border:1px solid rgba(245,238,220,.06);
	border-radius:14px;
	padding:14px 16px 4px;
}
.standings-group-title {
	font-family:'Bricolage Grotesque', sans-serif;
	font-size:15px; font-weight:800;
	letter-spacing:.04em;
	color:#f6d999;
	margin:0 0 10px;
	text-transform:uppercase;
}
.standings-group .standings-table {
	border-spacing:0 5px;
}
.standings-group .standings-table th {
	font-size:10px;
	padding:0 9px 6px;
}
.standings-group .standings-table td {
	padding:9px 9px;
	font-size:13px;
}

/* ── News grid ─────────────────────────────────────────────
   No internal scroll — the parent .tab-content already
   handles overflow. Wider min-width per card so thumbnails
   render at higher native resolution. */
.news-grid {
	display:grid;
	grid-template-columns:repeat(auto-fill, minmax(310px, 1fr));
	gap:16px;
}
.news-grid.noticias-detail-mode {
	display:block;
}
.news-thumb--empty {
	background:
		linear-gradient(135deg, rgba(232,184,99,.05), rgba(217,104,46,.05)),
		repeating-linear-gradient(45deg, rgba(245,238,220,.03) 0 6px, transparent 6px 12px);
}
.news-card {
	background:rgba(245,238,220,.04);
	border:1px solid rgba(245,238,220,.08);
	border-radius:17px;
	overflow:hidden;
	transition:all .22s ease; cursor:pointer;
	display:flex; flex-direction:column;
}
.news-card:hover {
	background:rgba(232,184,99,.06);
	border-color:rgba(232,184,99,.2);
	transform:translateY(-3px);
}
.news-thumb {
	width:100%; aspect-ratio: 16 / 9;
	background-size:cover; background-position:center;
	background-color:rgba(245,238,220,.05);
	border-bottom:1px solid rgba(245,238,220,.06);
}
.news-body {
	padding:16px 18px 18px;
	display:flex; flex-direction:column; gap:8px;
}
.news-source-pill {
	display:inline-flex; align-items:center;
	align-self:flex-start;
	padding:3px 9px;
	font-family:'JetBrains Mono', monospace;
	font-size:9px; font-weight:700;
	color:#6fe3d5;
	letter-spacing:.1em; text-transform:uppercase;
	background:rgba(111,227,213,.10);
	border:1px solid rgba(111,227,213,.30);
	border-radius:6px;
}
.news-title {
	font-family:'Bricolage Grotesque', sans-serif;
	font-size:16px; font-weight:700;
	color:#f5eedc; line-height:1.35;
	display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical;
	overflow:hidden;
}
.news-description {
	font-family:'Manrope', sans-serif;
	font-size:13px; color:rgba(245,238,220,.55);
	line-height:1.55;
	display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical;
	overflow:hidden;
}
.news-date {
	font-family:'JetBrains Mono', monospace;
	font-size:10px; color:rgba(245,238,220,.35);
	letter-spacing:.06em; text-transform:uppercase;
	margin-top:auto;
}

/* ── News detail (inline, takes over the noticias tab) ───── */
.news-detail {
	max-width:860px;
	margin:0 auto;
	padding:8px 18px 60px;
	color:#f5eedc;
	font-family:'Manrope', sans-serif;
}
.news-detail-back {
	display:inline-flex; align-items:center; gap:8px;
	padding:9px 16px;
	background:rgba(111,227,213,.10);
	border:1px solid rgba(111,227,213,.35);
	border-radius:999px;
	color:#6fe3d5;
	font-family:'Bricolage Grotesque', sans-serif;
	font-size:13px; font-weight:700;
	letter-spacing:.04em;
	cursor:pointer;
	transition:background .18s ease, border-color .18s ease;
	margin-bottom:18px;
}
.news-detail-back:hover {
	background:rgba(111,227,213,.20);
	border-color:rgba(111,227,213,.65);
}
img.news-detail-image {
	display:block;
	width:100%;
	aspect-ratio:16 / 9;
	max-height:440px;
	margin:0 0 20px;
	border-radius:8px;
	object-fit:cover;
	object-position:center;
	background-color:rgba(245,238,220,.04);
	box-shadow:0 16px 42px rgba(0,0,0,.42);
}
.news-detail-meta {
	display:flex; align-items:center; gap:14px;
	margin-bottom:14px;
}
.news-detail-date {
	font-family:'JetBrains Mono', monospace;
	font-size:11px; color:rgba(245,238,220,.45);
	letter-spacing:.08em; text-transform:uppercase;
}
.news-detail-title {
	font-family:'Bricolage Grotesque', sans-serif;
	font-size:32px; font-weight:800;
	line-height:1.18;
	margin:0 0 18px 0;
	color:#f5eedc;
}
.news-detail-body {
	max-width:680px;
	font-size:17px; line-height:1.68;
	color:rgba(245,238,220,.82);
	word-break:break-word;
}
.news-detail-body p { margin:0 0 16px 0; }
.news-detail-body p:last-child { margin-bottom:0; }
.news-detail-body img {
	max-width:100%; height:auto;
	border-radius:10px;
	margin:12px 0;
	display:block;
}
.news-detail-body h2,
.news-detail-body h3 {
	font-family:'Bricolage Grotesque', sans-serif;
	color:#f5eedc;
	margin:18px 0 10px;
}
.news-detail-body ul,
.news-detail-body ol { padding-left:22px; margin:8px 0 14px; }
.news-detail-body li { margin-bottom:6px; }
.news-detail-body strong { color:#f5eedc; }
.news-detail-empty {
	color:rgba(245,238,220,.58);
	font-style:italic;
}

/* Misc */
.totem-marker { z-index:1000 !important; }

/* ══════════════════════════════════════════════════════════
   VIAJE SEGURO — temporary image-only view
   Replace with the CityTrip web app via WebModalSystem when
   the URL is ready (see cards-modal.js cardConfig[5]).
   ══════════════════════════════════════════════════════════ */
.viaje-seguro-container {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	/* Asymmetric padding: the absolute-positioned .modal-close-bottom
	   pill occupies ~78px at the bottom of the modal. Adding extra
	   bottom padding pushes the image's true center upward so it
	   visually centers within the area NOT covered by that pill. */
	padding: 28px 28px 110px;
	box-sizing: border-box;
	background: radial-gradient(circle at 50% 40%, rgba(0, 172, 212, 0.10) 0%, transparent 65%);
}
.viaje-seguro-img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 22px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}
