/* General Blueprint Style */
@import url(http://fonts.googleapis.com/css?family=Lato:300,400,700);

@font-face {
	font-family: 'bpicons';
	src: url('../fonts/bpicons/bpicons.eot');
	src: url('../fonts/bpicons/bpicons.eot?#iefix') format('embedded-opentype'),
		 url('../fonts/bpicons/bpicons.woff') format('woff'),
		 url('../fonts/bpicons/bpicons.ttf') format('truetype'),
		 url('../fonts/bpicons/bpicons.svg#bpicons') format('svg');
	font-weight: normal;
	font-style: normal;
} /* Made with http://icomoon.io/ */

*, *:after, *:before { 
	-webkit-box-sizing: border-box; 
	-moz-box-sizing: border-box; 
	box-sizing: border-box; 
}
body, html { 
	font-size: 100%; 
	padding: 0; 
	margin: 0;
}

/* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */
.clearfix:before, .clearfix:after { 
	content: " "; 
	display: table; 
}
.clearfix:after { 
	clear: both; 
}

body {
	font-family: 'Lato', Calibri, Arial, sans-serif;
	color: #311B92;
	font-weight: 400;
	min-height: 900px;
}

a {
	color: #f0f0f0;
	text-decoration: none;
}

a:hover {
	color: #000;
}

.container > header {
	width: 90%;
	max-width: 69em;
	margin: 0 auto;
	padding: 2.875em 1.875em 1.875em;
}

.container > header h1 {
	font-size: 1.725em;
	line-height: 1.3;
	margin: 0 0 0.6em 0;
	float: left;
	font-weight: 400;
}

.container > header > span {
	display: block;
	position: relative;
	z-index: 9999;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5em;
	padding: 0 0 0.6em 0.1em;
}

.container > header > span span:after {
	width: 30px;
	height: 30px;
	left: -12px;
	font-size: 50%;
	top: -8px;
	font-size: 75%;
	position: relative;
}

.container > header > span span:hover:before {
	content: attr(data-content);
	text-transform: none;
	text-indent: 0;
	letter-spacing: 0;
	font-weight: 300;
	font-size: 110%;
	padding: 0.8em 1em;
	line-height: 1.2;
	text-align: left;
	left: auto;
	margin-left: 4px;
	position: absolute;
	color: #fff;
	background: #4A148C;
}

.container > header nav {
	float: right;
	text-align: center;
}

.container > header nav a {
	display: inline-block;
	position: relative;
	text-align: left;
	width: 2.5em;
	height: 2.5em;
	background: #fff;
	border-radius: 50%;
	margin: 0 0.1em;
	border: 4px solid #4A148C;
}

.container > header nav a > span {
	display: none;
}

.container > header nav a:hover:before {
	content: attr(data-info);
	color: #311B92;
	position: absolute;
	width: 600%;
	top: 120%;
	text-align: right;
	right: 0;
	pointer-events: none;
}

.container > header nav a:hover {
	background: #4A148C;
}

.bp-icon:after {
	font-family: 'bpicons';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	text-align: center;
	color: #311B92;
	-webkit-font-smoothing: antialiased;
}

.container > header nav .bp-icon:after {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	line-height: 2;
	text-indent: 0;
}

.container > header nav a:hover:after {
	color: #fff;
}

.bp-icon-next:after {
	content: "\e000";
}
.bp-icon-drop:after {
	content: "\e001";
}
.bp-icon-archive:after {
	content: "\e002";
}
.bp-icon-about:after {
	content: "\e003";
}
.bp-icon-prev:after {
	content: "\e004";
}

/* Estilo para la imagen de Compi en pantallas grandes */
img.responsive-compi {
    width: 130px;
    height: auto;
    position: absolute;
    top: -50px;
    left: 0;
    z-index: 9999;
    max-width: 100%;
}


/* Responsive adjustments */
@media screen and (max-width: 55em) {

	.container > header h1,
	.container > header nav {
		float: none;
	}

	.container > header > span,
	.container > header h1 {
		text-align: center;
	}

	.container > header nav {
		margin: 0 auto;
	}

	.container > header > span {
		text-indent: 30px;
	}
	
	img.responsive-compi {
        width: 80px;
        top: -30px;
        left: 5px; /* Cambia la posición para mantener el espacio */
		right:10px;
		bottom: 10px;
    }
}

@media screen and (max-width: 768px) {

	.container > header h1 {
		font-size: 1.5em; /* Reduce the size for smaller screens */
	}

	.container > header > span {
		letter-spacing: 0.4em; /* Adjust letter spacing for better readability */
	}

	.container > header nav a {
		width: 2em;
		height: 2em;
		border: 3px solid #4A148C; /* Adjust border width */
	}

	.container > header {
		padding: 2em 1em; /* Reduce padding for smaller screens */
	}
	
	img.responsive-compi {
        width: 80px;
        top: -30px;
        left: 5px; /* Cambia la posición para mantener el espacio */
		right:10px;
		bottom: 10px;
    }
	
	
}

@media screen and (max-width: 480px) {

	.container > header h1 {
		font-size: 1.3em; /* Further reduce the size */
		line-height: 1.2;
	}

	.container > header > span {
		letter-spacing: 0.3em;
		padding: 0 0 0.4em 0.1em; /* Adjust padding */
	}

	.container > header nav a {
		width: 1.8em;
		height: 1.8em;
		border: 2px solid #4A148C; /* Adjust border width */
	}

	.container > header {
		padding: 1.5em 0.5em; /* Reduce padding for the smallest screens */
	}

	/* Ensure the navigation menu stacks vertically */
	.container > header nav {
		display: block;
		text-align: center;
		margin: 0;
	}

	/* Adjust icons for small screens */
	.bp-icon-next:after, .bp-icon-drop:after, .bp-icon-archive:after, 
	.bp-icon-about:after, .bp-icon-prev:after {
		font-size: 1.2em; /* Scale down icon size */
	}

	.container > header nav a:hover:before {
		width: 300%; /* Adjust hover width */
	}
	
	img.responsive-compi {
        width: 70px;  /* Reduce el tamaño de la imagen en móviles */
        top: 0px;     /* Posición neutral para evitar que invada otras imágenes */
        left: 0px;
		right:10px;
		bottom: 10px;
    }
	
	
}

/* Ajustes para pantallas móviles pequeñas */
@media screen and (max-width: 320px) {
    img.responsive-compi {
        width: 60px;  /* Reduce el tamaño de la imagen aún más para móviles más pequeños */
        top: 10px;    /* Ajusta la posición superior */
        left: 5px;    /* Ajusta la posición lateral para evitar interferencias */
		right:10px;
		bottom: 10px;
    }
}

/* Modo oscuro funcional */
body.dark-mode {
    background-color: #121212;
    color: #E0E0E0;
}

body.dark-mode .cbp-hsinner {
    background: linear-gradient(90deg, #1A237E, #0D47A1) !important;
}

body.dark-mode .cbp-hsmenu > li > a {
    color: #E0E0E0 !important;
}

body.dark-mode .active-period {
    background: linear-gradient(90deg, #FF4081, #F50057) !important;
    box-shadow: 0 4px 12px rgba(255, 64, 129, 0.3);
}

/* Ajuste de colores para listas en modo oscuro */
body.dark-mode .cbp-hssubmenu li a,
body.dark-mode .cbp-hssubmenu li ul li a {
    color: #FFFFFF !important; /* Texto blanco para mejor visibilidad */
}

body.dark-mode .cbp-hssubmenu {
    background: #1E1E1E !important; /* Fondo más oscuro para contraste */
}

body.dark-mode .cbp-hssubmenu li:hover a {
    color: #FF4081 !important; /* Color de hover llamativo */
}
