/* ===== PÁGINA DE BIENVENIDA MÓVIL ===== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Ocultar todo cuando está pendiente de mostrar el modal móvil */
html.mobile-landing-pending body > *:not(script):not(style) {
	display: none !important;
	visibility: hidden !important;
}

html.mobile-landing-pending body {
	background: linear-gradient(135deg, #284696 0%, #3dbbd4 100%) !important;
	overflow: hidden !important;
}

body.mobile-landing {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #1c7063 0%, #2B8677 100%);
	min-height: 100vh;
	min-height: 100dvh; /* Dynamic viewport height para móviles */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
	padding-bottom: 80px; /* Espacio extra para la barra de navegación del móvil */
	overflow-x: hidden;
	position: relative;
}

.mobile-landing::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: 
		radial-gradient(circle at 20% 50%, rgba(43, 134, 119, 0.3) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(28, 112, 99, 0.3) 0%, transparent 50%);
	pointer-events: none;
	z-index: 0;
}

.mobile-landing-container {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 500px;
	text-align: center;
	animation: fadeInUp 0.8s ease-out;
	padding-bottom: 40px; /* Espacio adicional en el contenedor */
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mobile-logo-container {
	margin-bottom: 15px;
	animation: fadeInUp 0.8s ease-out 0.2s both;
}

.mobile-logo {
	width: 120px;
	height: 120px;
	margin: 10px auto 20px;
	background: rgba(255, 255, 255, 1);
	border-radius: 30px;
	padding: 10px;
	box-shadow: 
		0 20px 60px rgba(0, 0, 0, 0.3),
		0 10px 30px rgba(0, 0, 0, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
}

.mobile-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mobile-title {
	font-size: 32px;
	font-weight: 700;
	color: white;
	margin-bottom: 15px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	animation: fadeInUp 0.8s ease-out 0.3s both;
}

.mobile-subtitle {
	font-size: 18px;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 15px;
	line-height: 1.6;
	text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
	animation: fadeInUp 0.8s ease-out 0.4s both;
}

.mobile-message {
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(20px);
	border-radius: 25px;
	padding: 25px 25px;
	margin-bottom: 15px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	box-shadow: 
		0 15px 40px rgba(0, 0, 0, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.3);
	animation: fadeInUp 0.8s ease-out 0.5s both;
}

.mobile-message-icon {
	font-size: 64px;
	margin-bottom: 10px;
	display: block;
}

.mobile-message-text {
	font-size: 16px;
	color: white;
	line-height: 1.7;
	margin-bottom: 0;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.mobile-download-buttons {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 30px;
	animation: fadeInUp 0.8s ease-out 0.6s both;
	align-items: center;
}

.mobile-download-badge {
	display: inline-block;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	width: 200px;
	text-align: center;
}

.mobile-download-badge:hover {
	transform: translateY(-5px) scale(1.05);
	filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.mobile-download-badge:active {
	transform: translateY(-2px) scale(1.02);
}

.badge-image {
	width: 200px;
	height: auto;
	display: block;
	transition: all 0.3s ease;
	object-fit: contain;
}

/* Ajustes para diferentes tamaños de badges */
@media (max-width: 480px) {
	.badge-image {
		height: 50px;
	}
}

.mobile-features {
	margin-top: 40px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
	animation: fadeInUp 0.8s ease-out 0.8s both;
}

.mobile-feature {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border-radius: 15px;
	padding: 20px 15px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	text-align: center;
}

.mobile-feature-icon {
	font-size: 32px;
	margin-bottom: 10px;
	display: block;
}

.mobile-feature-text {
	font-size: 12px;
	color: white;
	font-weight: 500;
	line-height: 1.4;
}

/* Animaciones adicionales */
@keyframes pulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}

.mobile-logo {
	animation: fadeInUp 0.8s ease-out 0.2s both, pulse 3s ease-in-out infinite 1s;
}

/* Responsive adicional */
@media (max-width: 480px) {
	body.mobile-landing {
		padding-bottom: 100px; /* Más espacio en móviles pequeños */
	}
	
	.mobile-landing-container {
		padding-bottom: 50px;
	}
	
	.mobile-title {
		font-size: 28px;
	}
	
	.mobile-subtitle {
		font-size: 12px;
	}
	
	.mobile-logo {
		width: 100px;
		height: 100px;
	}
	
	.mobile-download-badge {
		width: 180px;
	}
	
	.badge-image {
		width: 180px;
	}
	
	.mobile-features {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

/* Ocultar el visor cuando se muestra la landing móvil */
body.mobile-landing #map-content,
body.mobile-landing #info-panel,
body.mobile-landing #bp-layers,
body.mobile-landing #chatbot-container,
body.mobile-landing .container-consulta,
body.mobile-landing #bp-location-species,
body.mobile-landing .bp-modal-window,
body.mobile-landing .spinner,
body.mobile-landing #blockScreenSpinner,
body.mobile-landing #toggleButton,
body.mobile-landing img[src*="Logotipos.svg"] {
	display: none !important;
	z-index: -1 !important;
	visibility: hidden !important;
	opacity: 0 !important;
}
