/* CSS Document */
/* ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ VARIABLES GLOBALES ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */ :root {
	--VERDECLARO_1: #E1E8E8;
	--BLANCOAZULADO_1: #F7F9F9;
	--AZULOSCURO: #060055;
	--GRISCLARO_1: #F8F8F8; /* filas FICHAS*/
}
/* ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ RESET BÁSICO ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
* {
	margin: 0;
	padding: 0;
	/*font-size: 1.1rem;*/
	font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
	max-width: 100vw;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE y Edge antiguo */
	color: var(--COLOR_TEXTO_2);
}
*, *::before, *::after {
	box-sizing: border-box;
}
a {
	text-decoration: none;
}
a:hover {
	/*text-shadow: 2px 2px 2px white, -2px -2px 2px white, 1px 1px 1px rgba(0, 0, 0, 0.5);*/
	text-shadow: 2px 2px 2px #C7F9DF, -2px -2px 2px #C7F9DF;
}
/* Chrome, Safari y Opera */
.elemento::-webkit-scrollbar {
	display: none;
}
body {
	font-family: Arial, sans-serif;
	background: var(--VERDECLARO_1);
	/*width: 100vw;*/
	width: 100%;
	overflow-x: hidden;
	font-size: 1.1rem;
}
/* ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ HEADER ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
header {
	width: 100%;
	height: 3.5rem;
	position: relative;
	color: var(--AZULOSCURO);
	background: var(--VERDECLARO_1);
}
header div {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	/*align-items: center;*/
	padding: 0.5rem;
	color: var(--AZULOSCURO);
	background:
		url("../1 EMBLEMATICOS/1 PAGINA INICIAL/Panorama2perfil.png") no-repeat 79% 0% / contain
}
header .btn-menu {
	display: none;
	width: 5%;
	cursor: pointer;
	border: none;
	background: var(--VERDECLARO_1);
	font-size: 2rem;
}
header h1 {
	display: block;
	position: absolute;
	left: 50%;
	color: var(--AZULOSCURO);
	text-shadow:
		0 0 5px rgba(201, 240, 243, 1.00), 0 0 10px rgba(201, 250, 243, 1.00), 0 0 20px rgba(201, 260, 243, 1.00), 0 0 40px rgba(201, 270, 243, 1.00), 0 0 80px rgba(201, 280, 243, 1.00), 0 0 90px rgba(220, 290, 243, 1.00), 0 0 100px rgba(230, 300, 243, 1.00), 0 0 140px rgba(240, 310, 243, 1.00), 0 0 180px rgba(250, 320, 243, 1.00);
	font-size: 2rem;
}
header .btn-inicio {
	display: block;
	position: absolute;
	right: 0rem;
	top: 0rem;
	border: none;
	cursor: pointer;
	border-radius: 0.5rem;
	color: var(--BLANCOAZULADO_1);
	background: var(--AZULOSCURO);
	font-size: 1.1rem;
	letter-spacing: 0.1rem;
	font-weight: bold;
	padding: 0 0.5rem 0 0.5rem;
}
/* ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ NAV ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■  */
nav {
	position: fixed;
	top: 0;
	left: 0rem;
	padding: 0.4rem 1.4rem 1rem 1rem;
	width: 20%;
	height: 100vh;
	background: var(--VERDECLARO_1);
	color: var(--AZULOSCURO);
	overflow-y: auto;
	z-index: 1000;
}
nav.open {
	left: 0;
}
nav .close-nav {
	cursor: pointer;
	display: none;
	padding-left: 0.6rem;
	font-size: 2rem;
}
nav .N1 {
	display: flex;
	/*justify-content: center; /* Centra horizontalmente */
	align-items: center; /* Centra verticalmente */
	height: 2rem;
	background-color: VAR(--AZULOSCURO);
	color: var(--BLANCOAZULADO_1);
	padding-left: 0.6rem;
	margin-bottom: 0.5rem;
	border-radius: 0.8rem;
	letter-spacing: 0.03rem;
}
/* ■■■■■■■■■■■■■■■■■ UL DESPLEGABLE EN NAV ■■■■■■■■■■■■■■■■■■■ */
details summary {
	display: flex;
	/*justify-content: center; /* Centra horizontalmente */
	align-items: center; /* Centra verticalmente */ list-style: none;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: bold;
	height: 2rem;
	background-color: aliceblue;
	margin-bottom: 0.6rem;
	letter-spacing: 0.05rem;
	padding-left: 0.3rem;
	border-radius: 0.8rem;
}
/* Transición suave al desplegar */
details ul {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, padding 0.3s ease-out;
	padding: 0;
	margin: 0;
}
/* Estado cuando el <details> está abierto */
details[open] ul {
	max-height: 50rem; /* Ajusta este valor según la altura de tus menús */
	max-width: 20rem;
	position: relative;
	left: 1rem;
}
details[open] ul li {
	padding: 0 2rem 0 0;
	position: relative;
	min-height: 2rem;
	max-height: 10rem;
}
details[open] ul li a {
	display: block;
	padding-left: 0.5rem;
	background-color: var(--BLANCOAZULADO_1);
	border-radius: 1rem;
	letter-spacing: 0.02rem;
}
details[open] ul li a::first-letter {
	font-size: 1.1rem;
	color: #01859B;
	font-weight: bold;
}
/* ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ MAIN ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
main {
	background: var(--VERDECLARO_1);
	min-height: 90vh;
	/*position: absolute;*/
	position: relative;
	left: 20%;
	width: 80%;
	padding: 0rem;
	margin: 0rem;
}
/* ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ OVERLAY PARA CERRAR NAV ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
#overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	display: none;
	z-index: 900;
}
#overlay.show {
	display: block;
}
/* ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ PÁGINA INICIAL ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
.INICIAL {
	width: 75%;
	margin: 0 auto;
	height: auto;
	padding: 5rem;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	background: var(--BLANCOAZULADO_1);
}
.INICIAL p {
	font-size: 1.1rem;
	letter-spacing: 0.05rem;
	line-height: 1.5rem;
	text-indent: 2rem;
	margin-bottom: 0.5rem;
}
/* ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ CONTENEDOR ELEMENTO (ENGLOBA A TODOS) ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
.ELEMENTO {
	background: var(--VERDECLARO_1);
	width: 100%;
}
.ELEMENTO p {
	text-indent: 2rem;
	margin-bottom: 0.5rem;
}
/* ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ CONTENEDOR SINTESIS = IMAGEN + FICHA ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
.SINTESIS {
	max-width: 100%;
	height: auto;
	padding: 1rem;
	padding-left: 1.6rem;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	font-size: 1rem;
}
.FICHA {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding-left: 2rem;
	padding-right: 2rem;
	letter-spacing: 0.05rem;
	line-height: 1.5rem;
}
.FICHA div {
	align-content: center;
}
.FICHA #TITULO {
	font-size: 1.5rem;
	font-weight: bold;
	text-align: center;
	color: #C10408;
}
.FICHA #EPOCA, #DIRECCION, #PROTECCION {
	font-size: 1.2rem;
	font-variant: small-caps;
}
.REFERENCIAS {
	min-height: 3rem;
	font-size: 1rem;
	padding-left: 1rem;
	padding-right: 1rem;
}
.REFERENCIAS p::first-letter {
	color: #01859B;
	font-weight: bold;
	font-size: 1.2rem;
}
.REFERENCIAS:nth-child(odd) {
	background-color: var(--BLANCOAZULADO_1);
}
.REFERENCIAS:nth-child(odd) * {
	background-color: var(--BLANCOAZULADO_1);
}
.REFERENCIAS:nth-child(even) {
	background-color: var(--GRISCLARO_1);
}
.REFERENCIAS:nth-child(even) * {
	background-color: var(--GRISCLARO_1);
}
.TEXTOS_REFERENCIAS {
	/*width: 50rem;*/
	width: 100%;
	max-width: 50rem
}
.REFERENCIAS ul {
	list-style-type: disc;
	list-style-position: outside;
	padding: 1rem;
}
.REFERENCIAS ul li {
	margin-bottom: 0.6rem;
	margin-top: 0.6rem;
}
.RESALTADO_1 {
	color: crimson;
	font-weight: 700;
}
.RESALTADO_2 {
	font-weight: 700;
}
/* ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ GALERÍA / LIGHTBOX ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
#GALERIA {
	display: flex;
	flex-wrap: wrap;
}
#GALERIA .NIVEL_2 {
	display: block;
	cursor: pointer;
	margin: 0.3rem;
	vertical-align: top;
}
#GALERIA .NIVEL_2 img {
	max-height: 16vh;
	width: auto;
	display: block;
	object-fit: cover;
	border-radius: 4px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#GALERIA .NIVEL_2 figure {
	display: block;
	text-align: center;
}
#GALERIA .NIVEL_2 figcaption {
	font-size: 0.8rem;
	line-height: 0.8rem;
	max-width: 10rem;
}
#GALERIA .NIVEL_2 img:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
/* Ocultar descripción en vista de galería */
#GALERIA .NIVEL_3 {
	display: none;
}

#GALERIA .CIUDAD {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	padding-bottom: 1rem;
	background-color: #E1E8E8;
	margin: -4rem -2rem -2rem -2rem;


}
.CALLE {
		/*display: block;*/
		align-content: inherit;
		flex: 1 1 250px;
		min-width: 15vw;
		color:darkblue;
		padding: 0.5rem;
		border: 0.05rem solid #B1D1F7;
		border-radius: 1rem;
		margin: 0.2rem;
		font-size: 1.2rem;
		background: linear-gradient(#E1E8E8, aliceblue, #E1E8E8);
	}

/* ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ LIGHTBOX OVERLAY ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
.lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(166, 166, 166, 0.85);
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding-top: 3vh;
	z-index: 2000;
	overflow-y: auto;
}
/* ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ LIGHTBOX CONTENEDOR ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
.lightbox-container {
	position: relative;
	max-width: 90vw;
	display: flex;
	flex-direction: column;
	align-items: center;
}
/* ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ BOTON CERRAR ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
.lightbox-close {
	position: absolute;
	top: 0rem;
	left: 0;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 1.5rem;
	color: #1E1E1E;
	background-color: #E4E4E4;
	border: 0.1rem solid #E4E4E4;
	cursor: pointer;
	z-index: 2100;
	line-height: 1;
	transition: background-color 0.2s ease, transform 0.1s ease;
}
.lightbox-close:hover {
	/*color: #6BACF9;*/
	background-color: #C5C5C5;
	/*border: 0.2rem solid #6BACF9;*/
}
/* ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ IMAGEN AMPLIADA ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
.lightbox-image-wrapper {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}
.lightbox-image {
	width: 69vw;
	max-height: 60vh;
	object-fit: contain;
	border-radius: 6px;
}
/* ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ FLECHAS DE NAVEGACIÓN ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
.lightbox-prev, .lightbox-next {
	position: absolute;
	top: 50%;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 2rem;
	transform: translateY(-50%);
	color: rgba(255, 255, 255, 0.8);
	background-color: rgba(216, 216, 216, 1.00);
	border: none;
	cursor: pointer;
	padding: 0.5rem 1rem;
	z-index: 2100;
	transition: background 0.2s ease;
}
.lightbox-prev:hover, .lightbox-next:hover {
	background: rgba(130, 130, 130, 0.70);
	color: #fff;
}
.lightbox-prev {
	left: 0.5rem;
}
.lightbox-next {
	right: 0.5rem;
}
/* ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ DESCRIPCIÓN BAJO LA IMAGEN ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ */
.lightbox-caption {
	width: 50vw;
	margin-top: 1rem;
	padding: 1rem 1.5rem;
	background-color: rgba(216, 216, 216, 1.00);
	border-radius: 6px;
	color: var(--COLOR_TEXTO_2);
	text-align: center;
	line-height: 1.6;
	max-height: none; /* Permite desborde si el texto es largo */
}
.lightbox-caption p {
	margin: 0;
	text-indent: 0;
	font-size: 1.1rem;
	letter-spacing: 0.1rem;
}
.NOTA {
	font-size: 0.9rem;
}
/* ■■■■■■■■■■■■■■■■■ RESPONSIVE ■■■■■■■■■■■■■■■■■■■ */
@media (max-width: 768px) {
	.lightbox-image {
		width: 90vw;
		max-height: 45vh;
	}
	.lightbox-caption {
		width: 90vw;
	}
	.lightbox-prev, .lightbox-next {
		font-size: 1.8rem;
		padding: 0.4rem 0.8rem;
	}
}
/* ■■■■■■■■■■■■■■■■■ RESPONSIVE GENERAL ■■■■■■■■■■■■■■■■■ */
/* ■■■■■■■■■■■■■■■■■ RESPONSIVE GENERAL ■■■■■■■■■■■■■■■■■ */
/* ■■■■■■■■■■■■■■■■■ RESPONSIVE GENERAL ■■■■■■■■■■■■■■■■■ */
@media (max-width: 1024px) {
	/* ===== NAV ===== */
	nav {
		left: -100%;
		width: 75%;
		transition: left 0.3s ease;
	}
	nav.open {
		left: 0;
	}
	nav .close-nav {
		display: block;
	}
	/* ===== HEADER ===== */
	header {
		height: auto;
		min-height: 4rem;
	}
	header div {
		background-position: center top;
		background-size: cover;
		padding: 1rem;
	}
	header .btn-menu {
		display: block;
		width: auto;
		font-size: 2rem;
	}
	header h1 {
		position: static;
		width: 100%;
		text-align: center;
		margin-top: 0.5rem;
		font-size: 2rem;
	}
	header .btn-inicio {
		width: auto;
		padding: 0 0.5rem 0 0.5rem;
		margin-top: 0.5rem;
	}
	/* ===== MAIN ===== */
	main {
		position: relative;
		left: 0;
		width: 100%;
	}
	/* ===== PÁGINA INICIAL ===== */
	.INICIAL {
		width: 100%;
		padding: 1.5rem;
		flex-direction: column;
	}
	.INICIAL p {
		font-size: 1rem;
		line-height: 1.6rem;
		text-indent: 1rem;
	}
	/* ===== SÍNTESIS ===== */
	.SINTESIS {
		padding: 1rem;
		flex-direction: column;
	}
	/* ===== FICHA ===== */
	.FICHA {
		padding-left: 0;
		padding-right: 0;
	}
	.FICHA #TITULO {
		font-size: 1.3rem;
	}
	.FICHA #EPOCA, .FICHA #DIRECCION, .FICHA #PROTECCION {
		font-size: 1rem;
	}
	/* ===== REFERENCIAS ===== */
	.REFERENCIAS {
		padding: 1rem 0.5rem;
	}
	.TEXTOS_REFERENCIAS {
		width: 100%;
	}
	/* ===== GALERÍA ===== */
	#GALERIA {
		justify-content: center;
	}
	#GALERIA .NIVEL_2 img {
		max-height: 20vh;
	}

	/* ===== LIGHTBOX ===== */
	.lightbox-image {
		width: 95vw;
		max-height: 50vh;
	}
	.lightbox-caption {
		width: 92vw;
		padding: 1rem;
	}
	.lightbox-prev, .lightbox-next {
		width: 2.5rem;
		height: 2.5rem;
		font-size: 1.5rem;
	}
}
/* ■■■■■■■■■■■■■■■■■ MÓVILES PEQUEÑOS ■■■■■■■■■■■■■■■■■ */
@media (max-width: 480px) {
	* {
		font-size: 1rem;
	}
	header .btn-menu {
		position: absolute;
		top: 0rem;
		left: 0rem;
		padding-top: 0rem;
	}
	header h1 {
		font-size: 1.5rem;
	}
	.INICIAL {
		padding: 1rem;
	}
	.INICIAL p, .ELEMENTO p {
		text-indent: 0.5rem;
	}
	.FICHA #TITULO {
		font-size: 1.1rem;
	}
	details summary {
		font-size: 0.85rem;
		padding-left: 0.5rem;
	}
	details[open] ul {
		left: 0;
		max-width: 100%;
	}
	details[open] ul li {
		padding-right: 0;
	}
	.REFERENCIAS ul {
		padding-left: 1.2rem;
	}
	.lightbox-caption p {
		font-size: 0.95rem;
		letter-spacing: 0.03rem;
	}
}