/* =============================================
   base.css - Reset y Variables
   ============================================= */

:root {
	--color-primary: #bfa73b;
	--color-primary-hover: #5cc6a7;
	--color-primary-active: #3eb08f;
	--color-text: #a2a2a2;
	--color-text-strong: #787878;
	--color-text-light: #b2b2b2;
	--color-background: #ffffff;
	--color-border: #efefef;
	--color-background-alt: #f7f7f7;
	--color-header-bg: #1f1815;
	--font-primary: "Source Sans Pro", Helvetica, sans-serif;
	--font-size-base: 16pt;
	--line-height-base: 1.75em;
	--radius: 0.35em;
}

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; }
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

body {
	background: var(--color-background);
	color: var(--color-text);
	font-family: var(--font-primary);
	font-size: var(--font-size-base);
	font-weight: 400;
	line-height: var(--line-height-base);
	-webkit-text-size-adjust: none;
}

body.is-preload *, body.is-preload *:before, body.is-preload *:after {
	animation: none;
	transition: none;
}

a {
	transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
	border-bottom: dotted 1px;
	color: var(--color-primary);
	text-decoration: none;
}
a:hover { border-bottom-color: transparent; color: var(--color-primary); }

strong, b { color: var(--color-text-strong); font-weight: 400; }
em, i { font-style: italic; }
p { margin: 0 0 2em 0; }
h1, h2, h3, h4, h5, h6 { color: var(--color-text-strong); font-weight: 400; line-height: 1em; margin: 0 0 1em 0; }
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: inherit; text-decoration: none; }
h1 { font-size: 2em; line-height: 1.5em; }
h2 { font-size: 1.5em; line-height: 1.5em; }
h3 { font-size: 1.25em; line-height: 1.5em; }
h4 { font-size: 1.1em; line-height: 1.5em; }
h5 { font-size: 0.9em; line-height: 1.5em; }
h6 { font-size: 0.7em; line-height: 1.5em; }
sub { font-size: 0.8em; position: relative; top: 0.5em; }
sup { font-size: 0.8em; position: relative; top: -0.5em; }

hr { border: 0; border-bottom: solid 2px var(--color-border); margin: 2em 0; }
hr.hr--major { margin: 3em 0; }

blockquote {
	border-left: solid 6px var(--color-border);
	font-style: italic;
	margin: 0 0 2em 0;
	padding: 0.5em 0 0.5em 1.5em;
}

code {
	background: var(--color-background-alt);
	border-radius: var(--radius);
	border: solid 2px var(--color-border);
	font-family: "Courier New", monospace;
	font-size: 0.9em;
	margin: 0 0.25em;
	padding: 0.25em 0.65em;
}

pre { -webkit-overflow-scrolling: touch; font-family: "Courier New", monospace; font-size: 0.9em; margin: 0 0 2em 0; }
pre code { display: block; line-height: 1.75em; padding: 1em 1.5em; overflow-x: auto; }

ol, ul { list-style: none; }
blockquote, q { quotes: none; }
table { border-collapse: collapse; border-spacing: 0; }

input::-moz-focus-inner { border: 0; padding: 0; }
input, select, textarea {
	-moz-appearance: none;
	-webkit-appearance: none;
	-ms-appearance: none;
	appearance: none;
}

.text--left { text-align: left; }
.text--center { text-align: center; }
.text--right { text-align: right; }

/* =============================================
   grid.css - Layout Grid CSS BEM
   ============================================= */

.container { margin: 0 auto; max-width: calc(100% - 4em); width: 100%; }
.container--xsmall { width: 25%; }
.container--small { width: 50%; }
.container--medium { width: 75%; }
.container--large { width: 125%; }
.container--xlarge { width: 150%; }
.container--max { width: 100%; }

.grid {
	display: grid;
	gap: 2.5em;
	grid-template-columns: repeat(12, 1fr);
}
.grid--0 { gap: 0; }
.grid--small { gap: 1.25em; }
.grid--large { gap: 5em; }

.grid__col-1 { grid-column: span 1; }
.grid__col-2 { grid-column: span 2; }
.grid__col-3 { grid-column: span 3; }
.grid__col-4 { grid-column: span 4; }
.grid__col-5 { grid-column: span 5; }
.grid__col-6 { grid-column: span 6; }
.grid__col-7 { grid-column: span 7; }
.grid__col-8 { grid-column: span 8; }
.grid__col-9 { grid-column: span 9; }
.grid__col-10 { grid-column: span 10; }
.grid__col-11 { grid-column: span 11; }
.grid__col-12 { grid-column: span 12; }

/* =============================================
   components.css - Elementos BEM
   ============================================= */

/* Box */
.box {
	border-radius: var(--radius);
	border: solid 2px var(--color-border);
	margin-bottom: 2em;
	padding: 1.5em;
}
.box > :last-child { margin-bottom: 0; }
.box--alt { border: 0; border-radius: 0; padding: 0; }

/* Images */
.image { border-radius: var(--radius); border: 0; display: inline-block; position: relative; }
.image img { border-radius: var(--radius); display: block; max-width: 100%; }
.image--fit { display: block; margin: 0 0 2em 0; width: 100%; }
.image--fit img { width: 100%; }
.image--avatar { border-radius: 100%; }
.image--avatar img { border-radius: 100%; width: 100%; }
.image--left { float: left; margin: 0 1.5em 1em 0; max-width: 40%; }
.image--right { float: right; margin: 0 0 1em 1.5em; max-width: 40%; }
.image--thumb { text-align: center; }

/* Icon */
.icon { text-decoration: none; border-bottom: none; position: relative; }
.icon:before {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	display: inline-block;
	font-style: normal;
	font-variant: normal;
	text-rendering: auto;
	line-height: 1;
	text-transform: none;
	font-family: 'Font Awesome 5 Free';
	font-weight: 400;
}
.icon--solid:before { font-weight: 900; }
.icon--brands:before { font-family: 'Font Awesome 5 Brands'; }
.icon__label { display: none; }

/* Lists */
.list { margin: 0 0 2em 0; }
.list--ol { list-style: decimal; padding-left: 1.25em; }
.list--ul { list-style: disc; padding-left: 1em; }
.list--alt { list-style: none; padding-left: 0; }
.list--alt li { border-top: solid 2px var(--color-border); padding: 0.5em 0; }
.list--alt li:first-child { border-top: 0; padding-top: 0; }
.list--icons { cursor: default; list-style: none; padding-left: 0; }
.list--icons li { display: inline-block; padding: 0 1em 0 0; }
.list--actions { display: flex; cursor: default; list-style: none; margin-left: -1em; padding-left: 0; gap: 1em; }
.list--actions li { padding: 0; }

/* Buttons */
.button {
	appearance: none;
	transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
	background-color: transparent;
	border-radius: var(--radius);
	border: solid 3px var(--color-border);
	color: var(--color-text-strong);
	cursor: pointer;
	display: inline-block;
	font-weight: 400;
	height: calc(2.75em + 6px);
	line-height: 2.75em;
	min-width: 10em;
	padding: 0 1.5em;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}
.button:hover { border-color: var(--color-primary); color: var(--color-primary); }
.button--primary { background-color: var(--color-primary); border-color: var(--color-primary); color: #ffffff; }
.button--primary:hover { background-color: var(--color-primary-hover); border-color: var(--color-primary-hover); color: #fff; }
.button--primary:active { background-color: var(--color-primary-active); border-color: var(--color-primary-active); }
.button--fit { min-width: 0; width: 100%; }
.button--small { font-size: 0.8em; }
.button--large { font-size: 1.35em; }
.button--disabled { background-color: #e7e7e7; border-color: #e7e7e7; color: var(--color-text-light); cursor: default; pointer-events: none; }

/* Forms */
.form { margin: 0 0 2em 0; }
.form__label { color: var(--color-text-strong); display: block; font-size: 0.9em; margin: 0 0 1em 0; }
.form__input, .form__select, .form__textarea {
	appearance: none;
	background: var(--color-background-alt);
	border-radius: var(--radius);
	border: solid 2px transparent;
	color: inherit;
	display: block;
	outline: 0;
	padding: 0 0.75em;
	width: 100%;
}
.form__input:focus, .form__select:focus, .form__textarea:focus { border-color: var(--color-primary); }
.form__input, .form__select { height: 2.75em; }
.form__textarea { padding: 0.75em; }

/* Table */
.table-wrapper { overflow-x: auto; }
.table { margin: 0 0 2em 0; width: 100%; }
.table tbody tr { border: solid 1px var(--color-border); border-left: 0; border-right: 0; }
.table tbody tr:nth-child(2n + 1) { background-color: var(--color-background-alt); }
.table td { padding: 0.75em; }
.table th { color: var(--color-text-strong); font-size: 0.9em; padding: 0 0.75em 0.75em 0.75em; text-align: left; }
.table thead { border-bottom: solid 2px var(--color-border); }
.table tfoot { border-top: solid 2px var(--color-border); }

/* Work Item */
.work-item { margin: 0 0 2em 0; }
.work-item__image { margin: 0 0 1.5em 0; }
.work-item__title { font-size: 1em; margin: 0 0 0.5em 0; }
.work-item__desc { font-size: 0.8em; line-height: 1.5em; margin: 0; }

/* =============================================
   layout.css - Estructura Principal BEM 
   ============================================= */

/* Header Sidebar */
.page__header {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	background-color: var(--color-header-bg);
	background-attachment: scroll, scroll;
	background-image: url("images/overlay.png"), url("../../images/bg.jpg");
	background-position: top left, top left;
	background-repeat: repeat, no-repeat;
	background-size: auto, 150%;
	color: rgba(255, 255, 255, 0.5);
	height: 100%;
	left: 0;
	padding: 8em 4em;
	position: fixed;
	text-align: right;
	top: 0;
	width: 35%;
}

.page__header > * { flex-shrink: 0; width: 100%; }
.page__header-inner { flex-grow: 1; margin: 0 0 2em 0; }
.page__header strong, .page__header b, .page__header h2, .page__header h3, .page__header h4, .page__header h5, .page__header h6 { color: #ffffff; }
.page__header-title { color: rgba(255, 255, 255, 0.5); font-size: 1.35em; line-height: 1.75em; margin: 0; }
.page__header-avatar { margin: 0 0 1em 0; width: 6.25em; }

/* Footer Sidebar */
.page__footer-icons { margin: 1em 0 0 0; }
.page__footer-icons a { color: rgba(255, 255, 255, 0.4); }
.page__footer-copyright { color: rgba(255, 255, 255, 0.4); font-size: 0.8em; list-style: none; margin: 1em 0 0 0; padding: 0; }
.page__footer-copyright li { border-left: solid 1px rgba(255, 255, 255, 0.25); display: inline-block; line-height: 1em; margin-left: 0.75em; padding-left: 0.75em; }
.page__footer-copyright li:first-child { border-left: 0; margin-left: 0; padding-left: 0; }

/* Main Content Area */
.page__main {
	margin-left: 35%;
	max-width: 54em;
	padding: 8em 4em 4em 4em;
	width: calc(100% - 35%);
}

.page__section { border-top: solid 2px var(--color-border); margin: 4em 0 0 0; padding: 4em 0 0 0; }
.page__section:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.page__section--special { text-align: center; }

/* Menú de Navegación */
.nav {
	background-color: #1a1410;
	border-bottom: 2px solid var(--color-primary);
	position: relative;
	z-index: 9999;
	width: 100%;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 1.5em; }
.nav__logo { display: flex; align-items: center; gap: 0.75em; text-decoration: none; padding: 0.6em 0; border: none; }
.nav__logo img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.nav__logo-text { color: #fff; font-size: 0.95em; letter-spacing: 0.05em; }
.nav__logo-text strong { color: var(--color-primary); }

.nav__list { list-style: none; display: flex; align-items: center; margin: 0; padding: 0; gap: 0; }
.nav__item { position: relative; }
.nav__link {
	display: block;
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	padding: 1em 1.2em;
	font-size: 0.85em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	transition: color 0.2s ease, background-color 0.2s ease;
	white-space: nowrap;
	border: none;
}
.nav__link:hover, .nav__link--active { color: var(--color-primary); background-color: rgba(191, 167, 59, 0.08); }
.nav__item--has-submenu > .nav__link::after { content: " ▾"; font-size: 0.75em; opacity: 0.7; }

.nav__submenu {
	list-style: none;
	position: absolute;
	top: 100%;
	left: 0;
	background-color: var(--color-header-bg);
	border-top: 2px solid var(--color-primary);
	min-width: 210px;
	padding: 0.5em 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
	z-index: 9999;
}
.nav__item:hover .nav__submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__submenu-link {
	display: block;
	color: rgba(255, 255, 255, 0.65);
	text-decoration: none;
	padding: 0.7em 1.4em;
	font-size: 0.82em;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	transition: color 0.18s ease, background-color 0.18s ease, padding-left 0.18s ease;
	border: none;
}
.nav__submenu-link:hover { color: var(--color-primary); background-color: rgba(191, 167, 59, 0.08); padding-left: 1.8em; }

.nav__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 38px;
	height: 38px;
	cursor: pointer;
	gap: 5px;
	background: none;
	border: none;
	padding: 0;
}
.nav__toggle-bar { display: block; width: 24px; height: 2px; background-color: rgba(255, 255, 255, 0.75); transition: all 0.25s ease; border-radius: 2px; }

/* Header Inner (No sidebar) */
.header-alt {
	background-color: var(--color-header-bg);
	color: rgba(255, 255, 255, 0.5);
	padding: 1.5em 2em;
	display: flex;
	align-items: center;
	gap: 1.5em;
	width: 100%;
	position: relative;
	z-index: 1000;
}
.header-alt__avatar { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.header-alt__title { margin: 0; font-size: 1.1em; line-height: 1.4em; color: rgba(255, 255, 255, 0.5); }
.header-alt__title strong { color: #fff; }

/* Footer Inner (No sidebar) */
.footer-alt { background-color: var(--color-header-bg); padding: 4em 0; text-align: center; color: rgba(255, 255, 255, 0.5); }
.footer-alt__inner { max-width: 1200px; margin: 0 auto; padding: 0 2em; }

body.has-sidebar .nav { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; }
body.has-sidebar .page__main { padding-top: 4em; }

/* =============================================
   Media Queries
   ============================================= */

@media screen and (max-width: 1280px) {
	.page__header { padding: 6em 3em 3em 3em; width: 30%; }
	.page__header-title { font-size: 1.25em; }
	.page__header-inner { margin-bottom: 0; }
	.page__main { margin-left: 30%; padding: 6em 3em 3em 3em; width: calc(100% - 30%); }
	.page__footer-copyright li { border-left-width: 0; display: block; line-height: 2.25em; margin-left: 0; padding-left: 0; }
}

@media screen and (max-width: 980px) {
	.grid { grid-template-columns: repeat(6, 1fr); }
	.grid__col-12, .grid__col-11, .grid__col-10, .grid__col-9, .grid__col-8, .grid__col-7, .grid__col-6, .grid__col-5 { grid-column: span 6; }
	.grid__col-4, .grid__col-3 { grid-column: span 3; }
	.grid__col-2, .grid__col-1 { grid-column: span 2; }
	
	.page__header {
		background-attachment: scroll;
		background-position: top left, center center;
		background-size: auto, cover;
		left: auto;
		padding: 6em 4em;
		position: relative;
		text-align: center;
		top: auto;
		width: 100%;
		display: block;
	}
	.page__header-title { font-size: 1.75em; }
	.page__main { margin: 0; padding: 6em 4em; width: 100%; }
	.page__header ~ .page__footer {
		background-attachment: scroll;
		background-color: var(--color-header-bg);
		background-image: url("images/overlay.png"), url("../../images/bg.jpg");
		background-position: top left, bottom center;
		background-repeat: repeat, no-repeat;
		background-size: auto, cover;
		padding: 4em 4em 6em 4em;
		text-align: center;
		width: 100%;
	}
	.page__footer-copyright li { border-left-width: 1px; display: inline-block; margin-left: 0.75em; padding-left: 0.75em; }
	body.has-sidebar .page__main { padding-top: 5em; }
}

@media screen and (max-width: 768px) {
	.nav__toggle { display: flex; }
	.nav__list {
		display: none;
		flex-direction: column;
		align-items: stretch;
		background-color: #1a1410;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		border-top: 1px solid rgba(191, 167, 59, 0.25);
		padding: 0.5em 0 1em 0;
		z-index: 9998;
	}
	.nav__list--open { display: flex; }
	.nav__link { padding: 0.85em 1.5em; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
	.nav__submenu { position: static; opacity: 1; visibility: hidden; max-height: 0; overflow: hidden; transform: none; box-shadow: none; background-color: rgba(0, 0, 0, 0.2); }
	.nav__item--submenu-open .nav__submenu { visibility: visible; max-height: 200px; }
	.nav__submenu-link { padding-left: 2.5em; }
	.nav__submenu-link:hover { padding-left: 3em; }
}

@media screen and (max-width: 736px) {
	.grid { grid-template-columns: 1fr; }
	.grid > div { grid-column: span 1 !important; }
	
	.page__header { padding: 2.25em 1.5em; }
	.page__header-title { font-size: 1.35em; }
	.page__main { padding: 2.25em 1.5em 0.25em 1.5em; }
	.page__section { margin: 2.25em 0 0 0; padding: 2.25em 0 0 0; }
	.header-alt { flex-direction: column; text-align: center; padding: 1.5em 1em; gap: 0.8em; }
}

@media screen and (max-width: 480px) {
	.page__header { padding: 4.5em 1.5em; }
	.page__footer-copyright li { border-left-width: 0; display: block; margin-left: 0; padding-left: 0; }
	.list--actions { flex-direction: column; width: 100%; margin-left:0;}
	.list--actions li { width: 100%; padding: 1em 0 0 0; text-align: center; }
	.button { width: 100%; }
}