/* =========================================================
   RESET GENERAL
   ========================================================= */

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	padding: 0;

	background: #050505;
	color: #fff;

	font-family: Arial, Helvetica, sans-serif;
}


/* Evita scroll de la página cuando hay un vídeo abierto */
body.modal-abierto {
	overflow: hidden;
}


/* =========================================================
   CABECERA
   ========================================================= */

.studio-header {
	position: relative;

	width: 100%;
	height: 120px;

	background: #000;
}


/* =========================================================
   LOGO CABECERA
   ========================================================= */


.studio-logo-link {
	position: absolute;
	top: 24px;

	/* Lo alinea con un contenido máximo de 1100px */
	left: max(25px, calc((100% - 1100px) / 2));

	z-index: 5;
	display: block;
}

.studio-logo {
	display: block;

	width: 150px;
	height: auto;
}


/* =========================================================
   CONTENIDO PRINCIPAL
   ========================================================= */

.studio-section {
	width: min(1100px, calc(100% - 50px));

	margin: 0 auto;
	padding: 65px 0 100px;
}


/* =========================================================
   CABECERA DE LA SECCIÓN
   ========================================================= */

.studio-heading h1 {
	margin: 0;

	font-size: clamp(2.3rem, 5vw, 4rem);
	line-height: 1;

	font-weight: 700;
	color: #fff;
}


/* Línea decorativa */

.linea-color-section {
	width: 100%;
	height: 4px;

	margin: 18px 0 30px;

	background: linear-gradient(
		90deg,
		#00ffff 0%,
		#00a7ff 35%,
		#7d3cff 70%,
		#ff00a8 100%
	);
}


/* =========================================================
   TEXTO INTRODUCTORIO
   ========================================================= */

.studio-intro {
	max-width: 850px;

	margin-bottom: 55px;
}

.studio-intro p {
	margin: 0 0 12px;

	font-size: 1.1rem;
	line-height: 1.7;

	color: #d7d7d7;
}


/* =========================================================
   GALERÍA DE VÍDEOS
   ========================================================= */

.studio-videos {
	display: grid;

	grid-template-columns:
		repeat(2, minmax(0, 1fr));

	gap: 50px 32px;
}


/* =========================================================
   TARJETA DE VÍDEO
   ========================================================= */

.studio-video {
	min-width: 0;
}


/* Botón completo que contiene la miniatura */

.studio-video-button {
	display: block;

	width: 100%;

	margin: 0;
	padding: 0;

	border: 0;
	background: transparent;

	font: inherit;
	color: inherit;

	text-align: left;

	cursor: pointer;
}


/* Quitar borde azul por defecto y poner uno propio */

.studio-video-button:focus {
	outline: none;
}

.studio-video-button:focus-visible .studio-thumbnail {
	outline: 3px solid #00cfff;
	outline-offset: 4px;
}


/* =========================================================
   MINIATURA 16:9
   ========================================================= */

.studio-thumbnail {
	position: relative;

	width: 100%;
	aspect-ratio: 16 / 9;

	overflow: hidden;

	background: #151515;

	border-radius: 4px;
}


/* Imagen de previsualización */

.studio-thumbnail img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;

	transition:
		transform 0.35s ease,
		filter 0.35s ease;
}


/* Capa oscura muy ligera */

.studio-thumbnail::after {
	content: "";

	position: absolute;
	inset: 0;

	background: rgba(0, 0, 0, 0.08);

	transition: background 0.35s ease;
}


/* Hover sobre la miniatura */

.studio-video-button:hover .studio-thumbnail img {
	transform: scale(1.035);

	filter: brightness(0.8);
}

.studio-video-button:hover .studio-thumbnail::after {
	background: rgba(0, 0, 0, 0.17);
}


/* =========================================================
   BOTÓN PLAY
   ========================================================= */

.studio-play {
	position: absolute;

	top: 50%;
	left: 50%;

	z-index: 3;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 72px;
	height: 72px;

	transform: translate(-50%, -50%);

	border: 2px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;

	background: rgba(0, 0, 0, 0.65);

	transition:
		transform 0.25s ease,
		background 0.25s ease,
		border-color 0.25s ease;
}


/* Triángulo del botón Play */

.studio-play span {
	width: 0;
	height: 0;

	margin-left: 5px;

	border-top: 11px solid transparent;
	border-bottom: 11px solid transparent;
	border-left: 17px solid #fff;
}


/* Hover del Play */

.studio-video-button:hover .studio-play {
	transform:
		translate(-50%, -50%)
		scale(1.1);

	background: rgba(0, 0, 0, 0.9);

	border-color: #fff;
}


/* =========================================================
   TÍTULO DEL VÍDEO
   ========================================================= */

.studio-video h2 {
	margin: 15px 0 0;

	font-size: 1.15rem;
	line-height: 1.4;

	font-weight: 700;

	color: #fff;
}


/* =========================================================
   MODAL
   ========================================================= */

.studio-modal {
	position: fixed;

	inset: 0;

	z-index: 9999;

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 30px;

	background: rgba(0, 0, 0, 0.92);

	opacity: 0;
	visibility: hidden;

	transition:
		opacity 0.25s ease,
		visibility 0.25s ease;
}


/* Modal abierto */

.studio-modal.activo {
	opacity: 1;
	visibility: visible;
}


/* =========================================================
   CONTENIDO DEL MODAL
   ========================================================= */

.studio-modal-content {
	position: relative;

	width: min(1200px, 95vw);
	max-height: 92vh;

	padding: 25px;

	background: #0b0b0b;

	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 6px;

	box-shadow:
		0 20px 60px rgba(0, 0, 0, 0.75);

	overflow: hidden;
	display: flex;
	flex-direction: column;
}


/* =========================================================
   TÍTULO DEL MODAL
   ========================================================= */

.studio-modal-content h2 {
	margin: 0 55px 20px 0;

	font-size: 1.35rem;
	line-height: 1.4;

	color: #fff;
}


/* =========================================================
   BOTÓN CERRAR
   ========================================================= */

.studio-modal-close {
	position: absolute;

	top: 10px;
	right: 15px;

	z-index: 10;

	width: 44px;
	height: 44px;

	padding: 0;

	border: 0;
	background: transparent;

	color: #fff;

	font-size: 40px;
	line-height: 40px;
	font-weight: 300;

	cursor: pointer;

	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}

.studio-modal-close:hover {
	opacity: 0.7;

	transform: scale(1.08);
}

.studio-modal-close:focus {
	outline: none;
}

.studio-modal-close:focus-visible {
	outline: 2px solid #00cfff;
	outline-offset: 2px;
}


/* =========================================================
   CONTENEDOR DEL REPRODUCTOR
   ========================================================= */

.studio-player-container {
	width: 100%;

	flex: 1 1 auto;
	min-height: 0;

	display: flex;
	align-items: center;
	justify-content: center;

	background: #000;

	overflow: hidden;
}


/* =========================================================
   REPRODUCTOR DE VÍDEO
   ========================================================= */

#studioPlayer {
	display: block;

	width: 100%;
	height: 100%;

	max-width: 100%;
	max-height: calc(92vh - 110px);

	background: #000;

	object-fit: contain;
}


/* =========================================================
   FOOTER
   ========================================================= */

.studio-footer {
	width: 100%;

	padding: 25px 20px;

	border-top: 1px solid rgba(255, 255, 255, 0.15);

	background: #000;

	text-align: center;
}

.studio-footer p {
	margin: 0;

	font-size: 0.85rem;
	line-height: 1.5;

	color: #999;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

	.studio-modal-content {
		width: 96vw;

		padding: 20px;
	}

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 750px) {

	/* Cabecera */

	.studio-header {
		height: 58vw;
		min-height: 240px;
	}


	/* Logo */

	.studio-logo-link {
		top: 20px;
		left: 18px;
	}

	.studio-logo {
		width: 115px;
	}


	/* Contenido */

	.studio-section {
		width: calc(100% - 36px);

		padding-top: 50px;
		padding-bottom: 70px;
	}


	/* Introducción */

	.studio-intro {
		margin-bottom: 40px;
	}

	.studio-intro p {
		font-size: 1rem;
	}


	/* Vídeos en una sola columna */

	.studio-videos {
		grid-template-columns: 1fr;

		gap: 40px;
	}


	/* Play */

	.studio-play {
		width: 60px;
		height: 60px;
	}

	.studio-play span {
		border-top-width: 9px;
		border-bottom-width: 9px;
		border-left-width: 14px;
	}


	/* Modal */

	.studio-modal {
		padding: 15px;
	}

	.studio-modal-content {
		width: 100%;

		padding: 15px;

		border-radius: 4px;
	}

	.studio-modal-content h2 {
		margin-right: 45px;
		margin-bottom: 15px;

		font-size: 1.1rem;
	}

	.studio-modal-close {
		top: 4px;
		right: 8px;

		width: 40px;
		height: 40px;

		font-size: 34px;
	}

}


/* =========================================================
   MÓVILES PEQUEÑOS
   ========================================================= */

@media (max-width: 480px) {

	.studio-header {
		height: 65vw;
		min-height: 210px;
	}

	.studio-logo {
		width: 100px;
	}

	.studio-section {
		padding-top: 40px;
		padding-bottom: 60px;
	}

	.studio-heading h1 {
		font-size: 2.2rem;
	}

	.linea-color-section {
		margin-top: 14px;
		margin-bottom: 25px;
	}

	.studio-video h2 {
		font-size: 1.05rem;
	}

	.studio-modal {
		padding: 8px;
	}

	.studio-modal-content {
		padding: 12px;
	}

}


/* =========================================================
   PREFERENCIAS DE MOVIMIENTO REDUCIDO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}

	.studio-thumbnail img,
	.studio-thumbnail::after,
	.studio-play,
	.studio-modal,
	.studio-modal-close {
		transition: none;
	}

}