/* =====================================================================
   Orden de juego MOSCOW 2026 (torneo 2310) - para partidosDiaD.aspx
   Diseno: "Order oa play.ai" (fondo + cabecera con logo y anunciantes)
   y el mismo lenguaje que css/marcadorMoscow26.css para los partidos.
   Nota: partidosDiaD.aspx trae un <style> en linea con media queries;
   aqui se usan selectores con .divTotal delante para ganarles.
   ===================================================================== */

/* ---------- FUENTES ---------- */
@font-face {
	font-family: 'ZapusMoscow';
	src: url('../fonts/ZapusSans-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: 'ZapusMoscow';
	src: url('../fonts/ZapusSans-ExtraBold.ttf') format('truetype');
	font-weight: 800;
	font-style: normal;
}

@font-face {
	font-family: 'VictorMoscow';
	src: url('../fonts/VictorMono-Semibold.woff2') format('woff2'), url('../fonts/VictorMono-Semibold.woff') format('woff'), url('../fonts/VictorMono-Semibold.ttf') format('truetype');
	font-weight: 100;
	font-style: normal;
}

/* ---------- COLORES ---------- */
:root {
	/* tema del torneo (temas_pantalla): estos valores son los de Moscow26 y se pisan con el <style> que mete la pagina */
	--m26-fondo-img: url('../img/moscow26/fondo.png');
	--m26-fuente: 'ZapusMoscow';
	--m26-fuente-num: 'VictorMoscow';
	--m26-cab-texto: var(--m26-blanco); /* texto sobre la cabecera (SET, titulos) */
	--m26-texto2: var(--m26-cian); /* textos secundarios: ronda, cuadro, etiqueta del tiempo */
	--m26-celda: rgba(8, 10, 52, 0.45); /* fondo de cada partido */
	--m26-panel: linear-gradient(135deg, rgba(37, 99, 217, 0.85), rgba(74, 154, 238, 0.55)); /* bloque izquierdo: ronda / hora */
	--m26-fondo: #10114a;
	--m26-azul: #2b3ddb;
	--m26-cian: #16b4f0;
	--m26-blanco: #ffffff;
	--m26-cab1: #2563d9;
	--m26-cab2: #4a9aee;
	--m26-rosa: #b0307a;
}

/* ---------- BASE ---------- */
html, body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	background: var(--m26-fondo) var(--m26-fondo-img) repeat 0 0 / 1920px 1080px fixed;
	color: var(--m26-blanco);
	font-family: var(--m26-fuente), 'ZapusMoscow', Arial, sans-serif;
	font-size: 16px;
}

.divTotal {
	width: 100%;
	max-width: 1840px;
	min-height: 100vh;
	margin: 0 auto;
	padding: 0 20px 30px;
	box-sizing: border-box;
}

#div_html {
	display: flow-root;
}

	/* ---------- CABECERA ---------- */
	/* el html trae: titulo+fecha, .datosPatro y la fila de logos; los reordenamos como en el diseno */
	#div_html > div:first-child {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-end;
		min-height: 0 !important;
		padding-top: 60px;
		margin-bottom: 30px;
	}

		#div_html > div:first-child > .row {
			order: 1;
			flex: 0 0 100%;
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin: 0 0 30px 0;
		}

			#div_html > div:first-child > .row::before,
			#div_html > div:first-child > .row::after {
				display: none;
			}
			/* clearfix de bootstrap 3 */
			#div_html > div:first-child > .row > div {
				float: none;
				width: auto;
				min-width: 0;
				max-width: 100%;
				margin: 0 !important;
				padding: 0 !important;
				flex: 0 1 auto;
			}
				/* logo del torneo (logo_largo_torneo / -OJ) */
				#div_html > div:first-child > .row > div:first-child img {
					width: auto !important;
					max-width: 620px;
					max-height: 200px;
					margin: 0 !important;
				}
/* anunciantes (logo_pit_torneo) */
#Img2 {
	max-width: 780px !important;
	max-height: 80px;
	margin: 0 !important;
}

.datosTorneoDepartment {
	order: 2;
	flex: 1 1 auto;
	height: auto;
	padding: 0;
	font-family: var(--m26-fuente), 'ZapusMoscow', Arial, sans-serif;
	font-weight: 800;
	font-size: 48px;
	line-height: 52px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--m26-blanco);
}

	.datosTorneoDepartment br {
		display: none;
	}

.datosTorneoFecha {
	display: inline-block;
	float: none;
	margin-left: 24px;
	line-height: 52px !important;
	font-family: var(--m26-fuente-num), 'VictorMoscow', 'Courier New', monospace;
	font-weight: 100;
	font-size: 40px;
	color: var(--m26-texto2);
	text-transform: uppercase;
	vertical-align: bottom;
}

	.datosTorneoFecha:empty {
		display: none;
	}

.datosPatro {
	display: none;
}

/* ---------- COLUMNA DE PISTA ---------- */
.divTotal .row > [class*="col-"] {
	padding-left: 12px !important;
	padding-right: 12px !important;
	margin-bottom: 30px !important;
}

.divHeaderPartidos {
	display: inline-block;
	height: auto;
	margin: 0;
	padding: 10px 34px 8px 30px;
	background: linear-gradient(90deg, var(--m26-cab1), var(--m26-cab2));
	clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%, 0 18px);
	font-family: var(--m26-fuente), 'ZapusMoscow', Arial, sans-serif;
	font-weight: 700;
	font-size: 30px;
	line-height: 36px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--m26-cab-texto);
	text-align: left;
}

/* ---------- PARTIDO ---------- */
.divTotal .DivPartido,
.divTotal .DivPartido.masculino,
.divTotal .DivPartido.femenino {
	display: flex;
	align-items: stretch;
	width: 100%;
	height: auto;
	min-height: 104px;
	margin: 0 0 -3px 0; /* los bordes se solapan como en la tabla del marcador */
	padding: 0;
	box-sizing: border-box;
	border: 3px solid var(--m26-azul);
	background: var(--m26-celda);
	position: relative;
}

	.divTotal .DivPartido:first-of-type {
		margin-top: 0;
	}

	.divTotal .DivPartido.vacio {
		border-color: transparent;
		background: none;
	}

/* bloque izquierdo: ronda / categoria + hora */
.divTotal .DivIzq {
	float: none;
	flex: 0 0 26%;
	width: 26%;
	height: auto;
	padding: 10px 12px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: var(--m26-panel);
	color: var(--m26-blanco);
	border-right: 3px solid var(--m26-azul);
}

.divTotal .DatoSexoCuadro,
.divTotal .DatoCuadroMALE,
.divTotal .DatoCuadroFEMALE {
	display: block;
	height: auto;
	margin: 0;
	padding: 0;
	font-family: var(--m26-fuente), 'ZapusMoscow', Arial, sans-serif;
	font-weight: 700;
	font-size: 19px;
	line-height: 22px;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--m26-blanco);
}
/* sexo del cuadro (WOMEN / MEN en ruso), encima de la ronda */
.divTotal .DatoSexoCuadro {
	font-weight: 800;
	color: var(--m26-texto2);
	margin-bottom: 2px;
}

.divTotal .DivResultado {
	margin: 6px 0 0 0;
	font-family: var(--m26-fuente-num), 'VictorMoscow', 'Courier New', monospace;
	font-weight: 100;
	font-size: 22px;
	line-height: 24px;
	color: var(--m26-blanco);
	text-transform: uppercase;
}

/* jugadores */
.divTotal .DatosJugadores {
	float: none;
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	height: auto;
	padding: 8px 8px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-left: 0;
	font-family: var(--m26-fuente), 'ZapusMoscow', Arial, sans-serif;
	font-weight: 400;
	font-size: 20px;
	line-height: 30px;
	text-transform: uppercase;
	word-break: normal;
	overflow-wrap: anywhere;
	color: var(--m26-blanco);
}

	.divTotal .DatosJugadores hr {
		margin: 4px 0 !important;
		border: 0;
		border-top: 2px solid var(--m26-azul);
		opacity: 1;
	}
	/* pareja ganadora: el html la marca con background:green en linea */
	.divTotal .DatosJugadores span[style] {
		background: none !important;
		color: var(--m26-cian);
		font-weight: 800;
	}

	.divTotal .DatosJugadores .bi-award {
		color: var(--m26-cian);
		margin-left: 6px;
		display: none !important;
	}

.equipoteam {
	padding: 2px 8px;
	margin-right: 6px;
	border-radius: 4px;
	background: var(--m26-blanco);
	color: var(--m26-fondo);
	font-size: 12px;
	vertical-align: middle;
}

/* resultado */
.divTotal .DivDer {
	float: none;
	flex: 0 0 auto; /* ancho fijo: lineas verticales alineadas */
	min-width: 0;
	width: 190px;
	height: auto;
	padding: 0 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-left: 3px solid var(--m26-azul);
	line-height: normal;
}

.divTotal .DivResultado1 {
	margin: 0;
	font-family: var(--m26-fuente), 'ZapusMoscow', Arial, sans-serif;
	font-weight: 800;
	font-size: 22px;
	line-height: 30px;
	color: var(--m26-cian);
	text-align: center;
	white-space: nowrap;
}

.DivpresentacionPartido {
	position: absolute;
	right: 6px;
	top: 6px;
	width: auto;
	height: auto;
}

	.DivpresentacionPartido img {
		height: 22px;
	}

/* ---------- PANTALLAS PEQUENAS ---------- */
@media (max-width: 1400px) {
	.divTotal .DivDer {
		flex: 0 0 180px;
		width: 180px;
	}

	.divTotal .DatosJugadores {
		font-size: 20px;
		line-height: 28px;
	}

	.divTotal .DivResultado1 {
		font-size: 19px;
	}

	.divTotal .DatoSexoCuadro, .divTotal .DatoCuadroMALE, .divTotal .DatoCuadroFEMALE {
		font-size: 16px;
		line-height: 19px;
	}

	.divTotal .DivResultado {
		font-size: 18px;
	}

	.datosTorneoDepartment {
		font-size: 38px;
	}

	.datosTorneoFecha {
		font-size: 30px;
	}
}

@media (max-width: 991px) {
	.divTotal .DivPartido.vacio {
		display: none;
	}

	#div_html > div:first-child {
		padding-top: 24px;
	}

		#div_html > div:first-child > .row {
			flex-wrap: wrap;
			gap: 16px;
		}

			#div_html > div:first-child > .row > div:first-child img {
				max-width: 100%;
				max-height: 140px;
			}

	#Img2 {
		max-width: 100% !important;
		max-height: 60px;
	}
	/* movil: logo del torneo centrado y debajo los patrocinadores centrados */
	#div_html > div:first-child > .row {
		flex-direction: column;
		align-items: center;
		gap: 24px;
	}

		#div_html > div:first-child > .row > div {
			flex: 0 0 auto;
			width: 100%;
			text-align: center !important;
		}

			#div_html > div:first-child > .row > div:first-child img {
				display: block;
				margin: 0 auto !important;
			}

	#Img2 {
		display: block;
		margin: 0 auto !important;
	}
	/* movil (sin meta viewport el telefono pinta a ~980px): mismo formato que en PC,
	   sexo / ronda / hora en la columna izquierda (ya no en una franja encima del partido) */
	/* los nombres son cortos y sobraba hueco: la columna izquierda mas ancha y con letra mas grande */
	.divTotal .DivIzq {
		flex: 0 0 36%;
		width: 36%;
		padding: 10px 14px;
	}

	.divTotal .DatoSexoCuadro, .divTotal .DatoCuadroMALE, .divTotal .DatoCuadroFEMALE, .divTotal .DivResultado {
		font-size: 24px;
		line-height: 28px;
	}
}

@media (max-width: 600px) {
	.divTotal {
		padding: 0 8px 20px;
	}

		.divTotal .row {
			margin-left: 0;
			margin-right: 0;
		}

	#div_html > div:first-child > .row {
		flex-direction: column;
		align-items: center;
	}

	.divTotal .row > [class*="col-"] {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	/* mismo formato que en PC (3 columnas), solo con letra y anchos mas pequenos */
	.divTotal .DivPartido, .divTotal .DivPartido.masculino, .divTotal .DivPartido.femenino {
		min-height: 76px;
		border-width: 2px;
		margin-bottom: -2px;
	}

	.divTotal .DivIzq {
		flex: 0 0 27%;
		width: 27%;
		padding: 6px;
		border-right-width: 2px;
		overflow-wrap: anywhere;
	}

	.divTotal .DatoSexoCuadro, .divTotal .DatoCuadroMALE, .divTotal .DatoCuadroFEMALE {
		font-size: 11px;
		line-height: 13px;
	}

	.divTotal .DivResultado {
		margin-top: 4px;
		font-size: 12px;
		line-height: 14px;
	}

	.divTotal .DatosJugadores {
		font-size: 14px;
		line-height: 19px;
		padding: 6px 8px;
	}

		.divTotal .DatosJugadores hr {
			border-top-width: 1px;
		}

	.divTotal .DivDer {
		flex: 0 0 84px;
		width: 84px;
		padding: 0 4px;
		border-left-width: 2px;
	}

	.divTotal .DivResultado1 {
		font-size: 12px;
		line-height: 16px;
		white-space: normal;
	}

	.datosTorneoDepartment {
		font-size: 26px;
		line-height: 32px;
	}

	.datosTorneoFecha {
		display: block;
		margin-left: 0;
		font-size: 22px;
		line-height: 30px !important;
	}

	.divHeaderPartidos {
		font-size: 22px;
	}
}
