/* Estilos básicos */
html,
body {
	margin: 0;
	padding: 0;
	overflow: hidden; /* Deshabilita scroll por defecto */
	height: 100vh;
	width: 100vw;
	align-items: center;
	justify-content: center;
}

body {
	position: relative;
	font-family: Arial, sans-serif;
}

/* Video fondo ocupa toda la pantalla */
video#bg-video {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -1;
}

/* Menu fijo arriba */
nav {
	position: fixed;
	top: -180px;
	left: 0;
	width: 100%;
	height: 180px;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	box-sizing: border-box;
	z-index: 10;
}

/* Logo */
#logo {
	width: 120px;
	height: auto;
	cursor: pointer;
	transition: width 0.3s ease;
}

.links {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.links a {
	margin: 10px;
	text-decoration: none;
	color: white;
}

.links a:hover {
	color: blue;
}

.page-2 {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 95%;
	height: 95%;
	background: rgba(255, 255, 255, 0.8);
	display: flex;
	visibility: hidden;
	opacity: 0;
	align-items: center;
	justify-content: center;
	z-index: 10;
	overflow: hidden;
	font: bold;
}

.page-2 .jump {
	width: 30%;
	height: auto;
	margin: 15px;
	z-index: 1;
	position: static; /* se comporta como parte del layout */
	opacity: 1;
	/* Fade en los 3 bordes (izquierda, derecha, abajo) con 5% */
	-webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 5%, rgba(0, 0, 0, 1) 100%), linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 5%, rgba(0, 0, 0, 1) 95%, rgba(0, 0, 0, 0) 100%);
	-webkit-mask-composite: intersect;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
	-webkit-mask-size: cover;

	mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 5%, rgba(0, 0, 0, 1) 100%), linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 5%, rgba(0, 0, 0, 1) 95%, rgba(0, 0, 0, 0) 100%);
	mask-composite: intersect;
	mask-repeat: no-repeat;
	mask-position: center;
	mask-size: cover;
}

.page-2 .content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

@media (orientation: portrait) {
	.page-2 .jump {
		position: absolute;
		top: 0;
		left: 0;
		width: 90%;
		height: auto;
		opacity: 0.6;
		object-fit: cover;
		z-index: 0;
		pointer-events: none;
	}

	.page-2 .content {
		font-weight: bold;
	}
}

.page-2 p {
	width: 70%;
	text-align: center;
	margin: 5px 15px;
	padding: 0;
}

#lang-selector {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 1000;
}

#current-lang-btn {
	background: none;
	border: none;
	cursor: pointer;
}

#current-lang-btn img {
	width: 32px;
	height: 32px;
}

#lang-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	animation: fadeIn 0.3s ease forwards;
}

#lang-overlay.hidden {
	display: none;
}

#lang-options {
	background: white;
	padding: 20px;
	border-radius: 10px;
	display: grid;
	gap: 10px;
}

#lang-options button {
	display: flex;
	align-items: center;
	gap: 10px;
	background: none;
	border: 1px solid #ccc;
	padding: 8px 12px;
	cursor: pointer;
	border-radius: 6px;
}

#lang-options button:hover {
	background: #f0f0f0;
}

#lang-options button img {
	width: 24px;
	height: 24px;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
