/* Base Theme - Professional Clean Design */

html, body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
	position: relative;
	padding: 0px;
	margin: 0px;
    font-size: 16px;
	color: #2c3e50;
	background: #ffffff;
	height: 100%;
	display: flex;
  	flex-direction: column;
}

* {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

a { text-decoration: none; color: #0066cc; transition: color 0.2s ease; }
a:hover { color: #0052a3; }
hr { border-top: 1px solid #e1e8ed; }
h1, h2, h3, h4 { padding: 0; margin: 0; color: #2c3e50; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.75rem; }
.txt-right { text-align: right; }
.txt-left { text-align: left; }
.txt-center { text-align: center; }
.txt-justify { text-align: justify; }
.txt-success { color: #27ae60; }
.txt-error { color: #e74c3c; }
.msg-info, .msg-success, .msg-warning, .msg-error { padding: 1rem 1rem 1rem 3.5rem; border-radius: 0.25rem; text-align: left; border-left: 4px solid; }  
.msg-info::before, .msg-success::before, .msg-warning::before, .msg-error::before { font-family: "Font Awesome 7 Free"; font-weight: 900; font-size: 1.5rem; margin-left: -3.5rem; padding: 1rem; }  
.msg-info::before { content: "\f05a"; } 
.msg-success::before { content: "\f058"; } 
.msg-warning::before { content: "\f071"; }  
.msg-error::before { content: "\f06a"; }  
.msg-info { background: #d1ecf1; color: #0c5460; border-left-color: #0c5460; }
.msg-success { background: #d4edda; color: #155724; border-left-color: #155724; }
.msg-warning { background: #fff3cd; color: #856404; border-left-color: #856404; }
.msg-error { background: #f8d7da; color: #721c24; border-left-color: #721c24; }
span.error:not(:empty) { color: #e74c3c; padding: .2rem; text-align: left; display: flex; }
span.warning:not(:empty) { color: #856404; padding: .2rem; text-align: justify; display: flex; text-align: justify; align-items: center; }
span.warning i { margin-right: .5rem; }
.hidden { display: none !important; }

/**/

body > #base-wrapper {
	flex: 1;
	display: flex;
	flex-direction: column;
}

#base-header {
	position: fixed;
	z-index: 1000000;
	display: flex;
	flex-direction: row;
	flex-flow: row wrap;
	align-items: center; 
	justify-content: space-between;
	padding: 0.5rem 2.5rem;
	background: #ffffff;
	color: #2c3e50;
	width: 100%;
	gap: 1rem;
	border-bottom: 1px solid #e1e8ed;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#base-header .menu--responsive {
	display: none;
	flex: 0 0 auto;
	justify-content: center;
	align-items: center;
	width: 4rem;
    height: 4rem;
	font-size: 3rem;
	color: #2c3e50;
}

#base-header .logo {
	flex: 0 0 auto;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	width: 8rem;
    height: 4rem;
}

#base-header  .menubox--responsive {
	flex: 1;
	display: flex;
}

#base-header .menubox-overlay {
	flex: 1;
	display: none;
}

#base-header .options {
	flex: 0 0 auto;
}

#base-header .options .title {
    font-family: 'Space Grotesk';
	text-transform: uppercase;
	font-size: 1.25rem;
	font-weight: 700;
	color: rgb(137 81 0);
}

#base-header .menu {
	flex: 1;
	padding: 0 3rem;
}

#base-header .additional {
	flex: 1;
	text-align: right;
}

#base-header .control {
	flex: 0 0 auto;
}

#base-content {
	position: relative;
	margin-top: 4.75rem;
	display: flex;
	height: 100%; 
}

#fnc-navegation {
	width: 100%;
	display: flex;
	flex-direction: column;
	flex: 1;
}

#base-footer
{
	display: flex;
	flex-direction: row;
	align-items: center;
	background: #f8f9fa;
	color: #7f8c8d;
	width: 100%;
	min-height: 2.5rem;
	padding: .2rem .5rem;
	border-top: 1px solid #e1e8ed;
}

#base-footer .footer-left,
#base-footer .footer-middle,
#base-footer .footer-right
{
	justify-content: center;
	align-items: center;
	display: flex;
}

#base-footer .footer-right,
#base-footer .footer-left
{
	display: flex;
	flex: 0 0 auto;
	color: #7f8c8d;
	width: auto;
	flex-direction: row;
	gap: .35rem;
}

#base-footer .footer-middle
{
	flex: 1;
	color: #7f8c8d;
	min-width: 0;
}

.icon-logo {
	width: 3.2rem;
	height: 1.6rem;
	background-image: url(../images/icon-logo.png);
    background-size: contain;
    background-position: center center;
	background-repeat: no-repeat;
}

.copyright {
	padding: 0;
	width: auto;
	color: #95a5a6;
	font-weight: bold;
	white-space: nowrap;
	font-size: .82rem;
}

#overlay
{
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.3);
	z-index: 8;
	display: none;
}

/**/

nav.header-menu ul,
nav.control-menu ul,
nav.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

nav.footer-menu ul {
	flex-wrap: nowrap;
	justify-content: center;
}

nav.header-menu ul,
nav.control-menu ul {
  gap: 1rem;
}

nav.header-menu li,
nav.control-menu li,
nav.footer-menu li {
  position: relative;
  flex: 0 0 auto;
}

nav.header-menu li a,
nav.control-menu li a,
nav.footer-menu li a {
  text-decoration: none;
  color: #2c3e50;
  transition: background 0.2s ease, color 0.2s ease;
  display: block;
  padding: 0.2rem 0.6rem;
  border-radius: 0.25rem;
  font-size: .84rem;
}

nav.footer-menu ul > li > a:last-child {
  border-right: 0;
}

nav.header-menu li a:hover,
nav.control-menu li a:hover {
  background: #e8f0ff;
  color: #0066cc;
}

nav.footer-menu li a:hover {
	color: #0066cc;
}

nav.header-menu li ul,
nav.control-menu li ul,
nav.footer-menu li ul {
  display: none;
  position: absolute;
  flex-direction: column;
  background: #ffffff;
  padding: 0.5rem 0;
  border-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 10;
  min-width: max-content;
  width: auto;
  border: 1px solid #e1e8ed;
}

nav.header-menu li:hover > ul,
nav.control-menu li:hover > ul,
nav.footer-menu li:hover > ul {
  display: flex;
}

nav.header-menu ul > li > ul,
nav.control-menu ul > li > ul {
  top: 100%;
  left: 0;
}

nav.footer-menu ul > li > ul {
	bottom: 100%;
	left: 0;
}

nav.header-menu ul ul ul,
nav.control-menu ul ul ul {
  top: 100;
  left: 0%;
}

nav.footer-menu ul ul ul {
  bottom: 0;
  left: 100%;
}

/**/

.s2 {
  margin-right: 0.5rem;
}

.content {
    display: flex;
    width:100%;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    height: 100%;
	gap: 1rem;
}

.box {
	display: flex;
	flex-direction: column;
	padding: 1rem;
	background: #ffffff;
	gap: 1rem;
	border-radius: 0.25rem;
	border: 1px solid #e1e8ed;
}

.box.full {
	width: 100%;
}

.box.half {
	width: 50%;
}

.box .box-row:empty {
	display: none;
}

.box .box-row {
	flex: 1;
	padding: 0 1rem;
}

/**/

form {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

input,
button, 
select, 
textarea {
	flex: 1;
	font-size: 1rem;
	padding: 1rem;
	color: #2c3e50;
	border-radius: 0.25rem;
	border: 1px solid #bdc3c7;
	background: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2Ij48cGF0aCBmaWxsPSIjMmMzZTUwIiBkPSJNNyAxMGw1IDUgNS01eiIvPjwvc3ZnPg==");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-background-clip: text;
    -webkit-text-fill-color: #2c3e50;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 20px 20px #ffffff;
}

input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
select,
textarea {
	width: 100%;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
	outline-width: 0;
	border-color: #0066cc;
	box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

input[type="radio"],
input[type="checkbox"] {
	width: 1.1rem;
	height: 1.1rem;
	margin: 0 0.5rem 0 0;
	padding: 0;
	vertical-align: middle;
	appearance: auto;
	-webkit-appearance: auto;
	-moz-appearance: auto;
	accent-color: #0066cc;
	display: inline-block;
}

/* Buttons keep inline-block and larger padding */
input[type="submit"],
input[type="button"],
.button,
button {
	display: inline-block;
}

input[type=submit],
input[type=button],
.button,
button {
	border-radius: 0.25rem;
	color: #ffffff;
	padding: 1rem 3.75rem;
	cursor: pointer;
	font-weight: bold;
	background: #0066cc;
	border: 1px solid #0066cc;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

input[type=submit]:disabled,
.button.disabled,
button:disabled
{
	background: #bdc3c7;
	border: 1px solid #bdc3c7;
	color: #ffffff;
	font-weight: bold;
	cursor: default;
}

input[type=submit]:disabled.onloader,
input[type=button]:disabled.onloader,
.button.disabled.onloader,
button {
    background-image: url(../images/loader.gif);
    background-size: 40px;
    background-position: 10px center;
    background-repeat: no-repeat;
}

input[type=submit]:Hover,
.button:Hover,
button:Hover
{
	background: #0052a3;
	border-color: #0052a3;
}

input[type=submit]:disabled:Hover,
.button.disabled:Hover,
button:disabled:Hover
{
	background: #bdc3c7;
	border-color: #bdc3c7;
	color: #ffffff;
}

.form-group {
  position: relative;
  margin: 2rem 0;
}

.form-group input::placeholder {
  color: transparent;
}

input:not([type="checkbox"]):not([type="radio"]) + label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: #95a5a6;
  pointer-events: none;
	transition: all 0.18s cubic-bezier(.2,.8,.2,1);
	background: #ffffff;
	padding: 0 0.35rem;
	line-height: 1;
	z-index: 2;
	border-radius: 0.25rem;
}

input:not([type="checkbox"]):not([type="radio"]):focus + label,
input:not([type="checkbox"]):not([type="radio"]):not(:placeholder-shown) + label {
	top: -0.6rem;
	font-size: 0.875rem;
	color: #0066cc;
	background: #ffffff;
	padding: 0 0.45rem;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

input:-webkit-autofill + label {
	top: -0.6rem;
	font-size: 0.875rem;
	color: #0066cc;
	background: #ffffff;
	padding: 0 0.45rem;
}

.radio-group,
.checkbox-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-family: sans-serif;
}

.radio-group label,
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 2px solid #bdc3c7;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.radio-group input[type="radio"],
.checkbox-group input[type="checkbox"] {
	width: 1.25rem;
	height: 1.25rem;
	margin: 0 0.5rem 0 0;
	padding: 0;
	vertical-align: middle;
	transform: translateY(0.05rem) scale(1.15);
	accent-color: #0066cc;
	-webkit-appearance: auto;
	-moz-appearance: auto;
	appearance: auto;
}

.radio-group input[type="radio"]:checked + span {
  font-weight: bold;
}

.radio-group label:hover,
.checkbox-group label:hover {
  border-color: #0066cc;
  background-color: #f8f9fa;
}

textarea {
	min-height: 10rem;
	resize: none;
}

form .captcha {
	background: #f8f9fa;
	border: 1px solid #e1e8ed;
	border-radius: 0.25rem;
	padding: 1rem;
	display: flex;
	gap: 1rem;
	flex-direction: row;
	align-items: center;
}

form .captcha .render {
	flex: 1;
}

form .captcha .value {
	flex: 1;
}

.loader {
	width: 4.5rem;
	height: 1rem;
    display: inline-block;
    background-image: url(../images/loader.gif);
    background-size: contain;
    background-position: center center;
    vertical-align: bottom;
    background-repeat: no-repeat;
}

.message-wrapper {
	display: flex;
	width:100%;
	justify-content: center;
	align-items: center;
	padding: 2rem;
	height: 100%; 
}

#fnc-message {
	position: relative;
    flex: 1;
	max-width: 40rem;
	text-align: center;
}

#fnc-message .box.message {
	padding-top: 2rem;
}

#fnc-response 
{
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100%;
}

#fnc-response .container {
    background-color: #ffffff;
    border-radius: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    border: 1px solid #e1e8ed;
}

#fnc-response .message {
	font-size: 16px;
	line-height: 1.5;
	color: #2c3e50;
	margin: 0 0 20px 0;
}

#fnc-response .link {
	display: inline-block;
	padding: 15px 25px;
	font-size: 16px;
	font-weight: bold;
	color: #ffffff;
	text-decoration: none;
	border-radius: 0.25rem;
	background-color: #0066cc;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

#fnc-response .link:Hover {
	background-color: #0052a3;
}

/**/

@media screen and (max-width: 768px) 
{
	#base-header {
		padding: .5rem;
	}

	#base-header .menu--responsive {
		display: flex;
		flex: 0 0 auto;
	}

	#base-header .menu--responsive.active {
		background: #f0f2f5;
	}

	#base-header .menubox--responsive.active {
		display: flex;
	}

	#base-header .menubox--responsive
	{
		position: absolute;
		overflow-y: auto;
		top: 5rem;
		left: 0;
		background: #f8f9fa;
		flex: 1;
		flex-direction: column;
		width: 70%;
		height: calc(100vh - 5rem);
		display: none;
		border-top: 1px solid #e1e8ed;
	}

	#base-header .menubox-overlay {
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		background: rgba(0, 0, 0, 0.3);
		z-index: 9;
		display: none;
	}

	#base-header .menubox--responsive li:last-child
	{
		border-bottom: 0;
	}

	#base-header .menubox--responsive ul a
	{
		display: flex;
		padding: 1.5rem 2rem;
		width: 100%;
		font-size: 1.25rem;
		color: #2c3e50;
	}

	#base-header .logo {
		flex: 1;
		width: auto;
		order: 4;
	}

	#base-header .options {
		order: 5;
	}

	#base-header .menu {
		flex: 1;
		padding: 0;
		border-bottom: 1px solid #e1e8ed;
		order: 3;
	}

	#base-header .additional {
		flex: 1;
		text-align: left;
		border-bottom: 1px solid #e1e8ed;
		order: 2;
	}

	#base-header .control {
		flex: 1;
		border-bottom: 1px solid #e1e8ed;
		order: 1;
	}

	#base-header .additional:empty,
	#base-header .menu:empty {
		display: none;
	}

	#base-footer {
		flex-direction: column;
		flex: 1;
		width: 100%;
		min-height: auto;
	}

	#base-footer .footer-left {
		padding: .5rem;
		flex: 1;
		order: 2;
		width: 100%;
	}

	#base-footer .footer-middle {
		padding: .5rem;
		flex: 1;
		order: 1;
		width: 100%;
	}

	#base-footer .footer-right {
		padding: .5rem;
		flex: 1;
		order: 3;
		width: 100%;
	}

	nav.footer-menu {
		width: 100%;
	}

	nav.header-menu ul,
	nav.control-menu ul,
	nav.footer-menu ul {
		flex-direction: column;
		gap: 0;
	}

	nav.header-menu li a:hover, 
	nav.control-menu li a:hover {
		background: none;
	}

	nav.header-menu ul > li > ul,
	nav.control-menu ul > li > ul,
	nav.footer-menu ul > li > ul {
		padding-left: 1rem;
	}

	nav.header-menu li ul,
	nav.control-menu li ul,
	nav.footer-menu li ul {
		display: flex;
		position: inherit;
		padding-left: 1rem;
	}

	nav.header-menu ul ul ul,
	nav.control-menu ul ul ul,
	nav.footer-menu ul ul ul {
		top: 0;
		padding-left: 1rem;
	}

	nav.footer-menu li ul,
	nav.footer-menu ul ul ul {
		left: 0;
	}

	nav.footer-menu ul a
	{
		display: flex;
		padding: 1.5rem 2rem;
		width: 100%;
		font-size: 1.25rem;
		background: none;
	}
}
