/* 
 * XERAL -------------------------------
 */

body {
	margin: 0;
	padding: 0;
	border: 0;
	min-height: 100vh;
	position: relative;
	background: #ffffff;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	color: #000000;
	font-size: 16px;
	line-height: 26px;
}

body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: -1;
	background: 
		linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)),
		url(https://www.ergosfera.org/archivo/oleoduto/imaxes/oleoduto_PORTADA_1B.jpg);
	background-repeat: no-repeat;
	background-position: 50% 0%;
	background-size: cover;
}

#globalcontainer {
	margin: 0;
	padding: 0;
	border: 0;
	position: relative;
	margin: 30px auto 60px auto;
	width: 800px;
}


/* 
 * PÁXINA PORTADA (INDEX.HTML) -------------------------------
 */

/* Axustes específicos para a portada */

.portada {
	overflow: hidden;
}

.cbp-bislideshow li {
	margin: 0 !important;
	padding: 0 !important;
}

.center {
	display: flex;
	flex-direction: column;
	height: 100vh;
	width: 80%;
	text-align: center;
	margin: 0 auto;
	position: relative;
	z-index: 10;
}

.espaciador {
	flex: 1 1 0;
}

/* Título */

.titulo-principal {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 60px;
	line-height: 90px;
	font-weight: bold;
	color: #ffffff;
	text-shadow: 0 0 12px #000000, 0 0 12px #000000, 0 0 12px #000000, 0 0 12px #000000;
	margin: 0;
}

/* Elementos - Navegador */

.menu-enlaces {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 25px;
	line-height: 35px;
	color: #000000;
	margin: 0;
}

a.enlace-principal {
	font-weight: bold;
	color: #000000;
	background-color: #ffdd00;
	padding: 3px 6px 4px 6px;
	text-decoration: none;
	display: inline;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

a.enlace-principal:hover,
a.enlace-principal:focus {
	color: #ffdd00;
	background-color: transparent;
	text-decoration: none;
}

a.enlace-secundario {
	font-weight: normal;
	color: #000000;
	background-color: #ffdd00;
	padding: 3px 6px;
	text-decoration: none;
	display: inline;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}

a.enlace-secundario:hover,
a.enlace-secundario:focus {
	color: #ffdd00;
	background-color: transparent;
	text-decoration: none;
}


/* 
 * SUBPÁXINAS -------------------------------------
 */

/* Navegador */

.nav-subpagina {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 0 30px 0;
}

.nav-subpagina .nav-portada {
	text-align: center;
	flex: 1;
}

.nav-subpagina .nav-arrow {
	font-size: 36px;
	font-weight: bold;
	color: #ffdd00;
	text-decoration: none;
	font-variant-emoji: text;
	-webkit-text-fill-color: #ffdd00;
	transition: all 0.2s;
}

.nav-subpagina .nav-arrow:hover {
	color: #000000;
	-webkit-text-fill-color: #000000;
}

a.nav-portada {
	font-size: 21px;
	line-height: 33px;
	text-decoration: none;
	font-weight: bold;
	color: #ffdd00;
}

a.nav-portada:hover {
	color: #000000;
	font-weight: bold;
	text-decoration: none;
}

/* Títulos */

.titulo-subpagina {
	margin: 0;
	padding: 30px 0;
	border-top: 20px solid #ffdd00;
	border-bottom: 20px solid #ffdd00;
	text-align: center;
}

.titulo-subpagina h1 {
	margin: 0;
	padding: 0;
	border: 0;
	color: #ffdd00;
	font-size: 48px;
	line-height: 72px;
	font-weight: bold;
}

.titulo-subapartado {
	margin: 90px 0 0 0;
	padding: 30px 0 0 0;
	border-top: 20px solid #ffdd00;
	text-align: left;
}

.titulo-subapartado h2 {
	margin: 0;
	padding: 0;
	border: 0;
	color: #ffdd00;
	font-size: 36px;
	line-height: 48px;
	font-weight: bold;
}

.titulo-subapartado-simple {
	margin-top: 44px;
	margin-bottom: 11px;
}

.titulo-subapartado-simple h3 {
	margin: 0;
	padding: 0;
	border: 0;
	color: #000000;
	font-size: 20px;
	line-height: 30px;
	font-weight: bold;
	text-align: left;
}

h4.cronoloxia {
	margin-top: 30px;
	margin-bottom: 30px;
	color: #ffdd00;
	font-size: 24px;
	line-height: 36px;
	font-weight: bold;
	text-align: left;
}

/* Textos */

.contenido-subpagina {
	margin: 60px 0;
}

.contenido-subpagina p {
	margin: 0 0 22px 0;
}

.espacio-extra-top {
    margin-top: 44px !important;
}

.espacio-extra-bottom {
    margin-bottom: 44px !important;
}

.espacio-micro-bottom {
    margin-bottom: 22px !important;
}

.espacio-extra-top-bottom {
    margin-top: 44px !important;
	margin-bottom: 44px !important;
}

.notas {
	font-size: 14px;
	line-height: 28px;
	font-weight: normal;
	color: #888888;
}

.data-medios {
	font-weight: bold;
	color: #ffdd00;
}

.subtit-medios {
	font-weight: normal;
	color: #000000;
	font-size: 14px;
}

.autoria-medios {
	font-weight: bold;
	color: #bfbfbf;
	font-size: 14px;
}

sup {
	font-size: 0.8em;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
	top: -0.5em;
}

/* Cajas de eventos históricos */

.caja-negra {
	color: #ffffff;
	background: #000000;
	padding: 20px;
	margin-bottom: 45px;
}

.caja-negra ul {
	list-style-type: square;
	margin: 0;
}

.caja-negra li {
	margin: 0;
}

.caja-amarilla {
	color: #000000;
	background: #fcfbdd;
	padding: 20px;
	margin-bottom: 45px;
}

.caja-amarilla ul {
	list-style-type: square;
	margin: 0;
}

.caja-amarilla li {
	margin: 0;
}

/* Enlaces */

a {
	color: #000000;
	text-decoration: underline;
	text-underline-offset: 2px;
}

a:hover {
	color: #ffdd00;
	text-decoration: none;
}

a.normal {
	color: #000000;
	text-decoration: underline;
	text-underline-offset: 2px;
}

a.normal:hover {
	color: #000000;
	text-decoration: none;
	background-color: #ffdd00;
}

a.especial {
	color: #000000;
	text-decoration: none;
}

a.especial:hover {
	color: #000000;
	text-decoration: none;
	background-color: #ffdd00;
}

a.ligazons {
	text-decoration: none;
	font-weight: bold;
	color: #ffdd00;
}

a.ligazons:hover {
	color: #ffdd00;
	font-weight: bold;
	text-decoration: none;
	background-color: #000000;
}

a.notas {
	text-decoration: underline;
	text-underline-offset: 2px;
	color: #888888;
}

a.notas:hover {
	text-decoration: none;
	color: #000000;
	background-color: #ffdd00;
}

a.medios {
	font-weight: bold;
	text-decoration: none;
	color: #000000;
}

a.medios:hover {
	color: #000000;
	font-weight: bold;
	text-decoration: none;
	background-color: #ffdd00;
}

a.branco {
	text-decoration: none;
	font-weight: bold;
	color: #ffffff;
}

a.branco:hover {
	color: #ffdd00;
	font-weight: bold;
	text-decoration: none;
}

a.boe {
	text-decoration: none;
	font-weight: bold;
	color: #ffdd00;
}

a.boe:hover {
	color: #000000;
	font-weight: bold;
	text-decoration: none;
}

/* Listaxes */

.lista-normal {
	margin: 22px 0;
	padding-left: 40px;
	list-style-type: square;
}

.lista-normal li {
	margin-bottom: 11px;
}

.lista-alineada {
	margin: 22px 0;
	padding-left: 20px;
	list-style-type: square;
}

.lista-alineada ul {
	margin-bottom: 11px;
}


/* Imaxes */

.imaxe {
    text-align: center;
    margin: 60px 0 0 0;
}

.imaxe img {
    border: 1px solid #000000;
}

.imaxe a:hover img {
    border-color: #ffdd00;
}

a.imx {
	text-decoration:none;
	border: 1;
	color:#000000;
}

a.imx:hover {
	text-decoration:none;
	opacity: 1;
	color:#ffdd00;
}

/* Vimeo */
.contenido-subpagina iframe[src*="vimeo.com"] {
	margin-top: 45px;
}

/* Imaxes - Galería */

.galeria-figure {
	margin: 60px 0 60px 0;
}

.galeria-figure figcaption {
	margin-top: 12px;
	font-size: 14px;
	line-height: 21px;
	text-align: center;
	color: #888888;
}

.galeria-wrapper {
	width: 800px;
}

.galeria li {
	margin: 0;
}

.galeria img {
	width: 800px;
	height: auto;
	border: transparent;
}

/* Twitter */

.twitter-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-top: 60px;
}

/* Footer */

.texto-footer {
	margin: 90px 0 60px 0;
	padding-top: 60px;
	border-top: 20px solid #ffdd00;
	text-align: center;
}

.texto-footer nav {
	font-size: 21px;
	line-height: 33px;
	color: #ffdd00;
	font-weight: bold;
}


/* 
 * RESPONSIVE -------------------------------------
 */

@media (max-width: 768px) {
	
	body {
		font-size: 14px;
		line-height: 21px;
	}

	/* Portada */

	.titulo-principal {
		font-size: 30px;
		line-height: 45px;
	}
	
	.menu-enlaces {
		font-size: 16px;
		line-height: 24px;
	}
	
	.center {
		width: 90%;
	}
	
	/* Subpáxinas */
	
	#globalcontainer {
		width: 90%;
		margin: 30px auto 45px;
	}
	
	/* Subpáxinas -Navegador */

	.nav-subpagina {
		margin: 0 0 30px 0;
	}

	.nav-subpagina .nav-arrow {
		font-size: 18px;
	}

	a.nav-portada {
		font-size: 10px;
		line-height: 16px;
	}

	/* Subpáxinas - Títulos */

	.nav-subpagina {
		margin: 0 0 20px 0;
	}

	.nav-subpagina .ligazons {
		font-size: 16px;
		line-height: 24px;
	}

	.nav-subpagina .nav-arrow {
		font-size: 24px;
		padding: 0 5px;
	}

	.titulo-subpagina {
		padding: 20px 0;
		border-top: 15px solid #ffdd00;
		border-bottom: 15px solid #ffdd00;
	}
	
	.titulo-subpagina h1 {
		font-size: 30px;
		line-height: 45px;
	}
	
	.titulo-subapartado {
		padding: 20px 0 0 0;
		border-top: 15px solid #ffdd00;
	}
	
	.titulo-subapartado h2 {
		font-size: 36px;
		line-height: 48px;
	}
	
	.titulo-subapartado-simple {
		margin-top: 44px;
		margin-bottom: 11px;
	}

	.titulo-subapartado-simple h3 {
		font-size: 18px;
		line-height: 24px;
	}

	/* Subpáxinas - Textos */

	.contenido-subpagina {
		margin: 60px 0;
	}
	
	.contenido-subpagina p {
		font-size: 14px;
		line-height: 21px;
	}
	
	.notas {
		font-size: 12px;
		line-height: 24px;
	}

	/* Subpáxinas - Imaxes */

	.galeria-figure {
		margin: 60px 0 60px 0;
	}
	
	.galeria-wrapper {
		width: 100%;
	}
	
	.galeria img {
		width: 100%;
		height: auto;
	}
	
	.galeria-figure figcaption {
		font-size: 12px;
		line-height: 18px;
	}
	
	.imaxe {
		margin: 60px 0 60px 0;
	}
	
	.imaxe img {
		max-width: 100%;
		height: auto;
	}
	
	/* Subpáxinas - Listaxes */

	.lista-normal {
		padding-left: 25px;
	}
	
	/* Subpáxinas - Footer */

	.texto-footer {
		margin: 90px 0 30px 0;
		padding-top: 30px;
		border-top: 12px solid #ffdd00;
	}
	
	.texto-footer nav {
		font-size: 18px;
		line-height: 28px;
	}
	
	/* Subpáxinas - Visor PDF */

	.contenido-subpagina iframe[src*="visor_pdf"] {
		width: 100% !important;
		height: 450px !important;
	}
	
	/* Subpáxinas - Google Maps */
	.contenido-subpagina iframe[src*="google.com/maps"] {
		width: 100% !important;
		height: 90vw !important;
		max-height: 400px !important;
	}
	
	/* Subpáxinas - Vimeo */
	.contenido-subpagina iframe[src*="vimeo.com"] {
		width: 100% !important;
		height: auto !important;
		aspect-ratio: 16 / 9 !important;
	}
		
	/* Subpáxinas - Twitter */
	
	.twitter-container {
		max-height: none !important;
		overflow: visible !important;
	}
	
	.twitter-container blockquote,
	.twitter-container iframe {
		max-height: none !important;
		overflow: visible !important;
	}

}