:root {
    --logo-image: url('/assets/images/logotipo-chico.png');
    --color-bg-dark-alpha: rgba(11, 11, 11, 0.90);
    --color-bg-dark: #050505;
    --color-blue-green: #1a404d;
    --color-blue-green-light: #2c6c82;
    --color-blue-green-alpha: rgb(26,64, 77, 0.5);
    --color-blue-green-light-alpha: rgb(44, 108, 130, 0.5);
    --color-orange: #fc4e05;
    --color-orange-2: #ff7e00;
    --color-yellow: #ffcb00;
    --shadow-subtle: 0px 2px 6px var(--color-bg-dark-alpha);
}

.home-template .post-card-meta .post-card-meta-length {
    display: none;
}

.gh-head-menu .gh-dropdown li a {
    color: white;
}

.gh-head-menu .gh-dropdown li {
    line-height: 1;
}

.gh-dropdown li a:hover {
    color: var(--color-orange-2);
}

.page-template .gh-dropdown {
    background-color: var(--color-bg-dark-alpha);
    border-radius: 6px;
    box-shadow: var(--shadow-subtle);
    margin: 0.5em 0 0 0;
    padding: 0.5em;
    text-align: center;
}

.en .nav.es,
.en .nav.zh,
.es .nav.en,
.es .nav.zh,
.zh .nav.en,
.zh .nav.es {
    display: none;
}

.available-languages {
    list-style-type: none;
    padding: 0;
    margin: 0;
    position: relative;
    height: 1.5em;
    width: 4em;
}

#gh-head .available-languages li {
    line-height: 1;
    padding: 0;
    width: 4em;
}

.available-languages-wrapper {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0.5em;
    overflow: hidden;
    height: 1.5em;
    width: 4em;
    transition: height 0.3s ease-out;
    background-color: var(--color-bg-dark-alpha);
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--color-blue-green-alpha);
}

.available-languages:hover .available-languages-wrapper {
    height: 4.5em;
}

.available-languages .language {
    font-size: 1em;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.available-languages a.language-link {
    display: flex;
    align-items: center;
    padding: 0.25em 0.5em;
    text-decoration: none;
    color: white;
    transition: background-color 0.2s ease;
}

.available-languages a.language-link:hover {
    background-color: var(--color-orange-2);
}

.available-languages .language-flag {
    margin-right: 5px;
}

/* Show only the active language by default */
.available-languages .language:not(.current) {
    display: none;
}

.available-languages:hover .language {
    display: block;
}

/* Style for the active language */
.es .available-languages .es.current,
.en .available-languages .en.current,
.zh .available-languages .zh.current {
    order: -1;
    background-color: rgba(255,255,255,0.4);
}

.es .available-languages .es.current a.language-link,
.en .available-languages .en.current a.language-link,
.zh .available-languages .zh.current a.language-link {
    font-weight: bold;
}

/* /\* Hover effect for non-active languages *\/ */
/* .available-languages .language:not(.current) a.language-link:hover { */
/*   background-color: #d0d0d0; */
/* } */



.has-cover:not(.home-template) .gh-head {
    background-color: var(--color-darkmode);
}
.gh-head-menu {
    display: flex;
    justify-content: space-around;
}

.is-head-left-logo.home-template .gh-head:not(.is-header-hidden) .gh-head-menu {
    margin-left:0;
    margin-right:0;
}

.home-template .gh-head.outer nav.gh-head-menu {
    margin: 2rem 0;
}

.home-template .gh-head.outer ul.nav {
    font-weight: bold;
    padding: 0.25em 1em 0 1em;
    background: linear-gradient(to bottom, var(--color-blue-green) 15%, var(--color-bg-dark));
    border-radius: 1em;
    box-shadow: var(--shadow-subtle);
}

.home-template .gh-head.outer ul.nav .submenu {
    border-radius: 0.5em;
    margin-left: 1.5em;
    margin-right: 1.5em;
    width: calc(100% - 3em);
}

.home-template .gh-head.outer, .page-template .gh-head.outer {
    height: unset;
}

.home-template .kg-video-overlay, .page-template .kg-video-overlay {
    z-index: 0;
}

.home-template #gh-head.gh-head.outer {
    position: fixed;
}

.page-template .gh-head.outer {
    position: sticky;
    top: 0;
    line-height: unset;
}

.page-template .gh-head-brand, .home-template .gh-head-brand {
    height:auto;
}

.page-template .gh-head-inner {
    /* margin: 0.75rem auto 0 auto; */
}

.gh-head-menu ul.nav {
    z-index: 10;
    font-size: 1.2em;
    padding: 0.5em 1em;
    text-shadow: 1px 1px 2px rgba(34, 34, 34, 0.75);
}

.page-template .gh-head-menu ul.nav a {
    line-height: unset;
}

.page-template .gh-head-menu ul.nav {
    padding: 0em 1em;
}

.page-template .gh-head-menu ul.nav > li {
   border-radius: 6px 6px 0 0;
}

.gh-head-menu ul.nav > li {
    padding: 0.25em 1em 0.3em 1em;
    background-color: transparent;
    transition: background-color 0.3s ease-in-out;
}

.gh-head-menu ul.nav li.nav-productos {
    transition:none;
}

.page-template .gh-head-menu ul.nav > li:hover {
    background-color: var(--color-bg-dark);
}

.home-template .gh-head-menu ul.nav > li {
    border-radius: 1em;
}

.home-template .gh-head-menu ul.nav > li:hover {
    background-color: var(--color-blue-green-light-alpha);
}

.gh-head-menu ul.nav li.nav-productos {
    /* border-radius: 1em 1em 0 0; */
}

.gh-head-menu ul.nav li.nav-productos ul.submenu li {
    background-color: none;
}

.submenu-menu .submenu-group-title:hover {
    color: var(--color-yellow);
}

.gh-head-actions .gh-head-members {
    display:none;
}

.gh-head-actions button.gh-search.gh-icon-btn {
    background-color: rgba(34,34,34,0.5);
    padding: 0.25em;
    width: 2em;
    height: 2em;
    border-radius: 1em;
}

.site-header-inner.inner {
    /* margin-top: -200px; */
}
.has-cover :is(.site-logo,.site-title)+.site-description {
    font-size: 3.4rem;
}

.has-cover:not(.home-template) .gh-head {
    background-color: var(--color-bg-dark-alpha);
    box-shadow: var(--shadow-subtle);
}

:is(.site-logo,.site-title)+.site-description {
    max-width: 90%;
}

.has-cover .site-title {
    color:transparent;
}

.site-header-inner .site-description {
    display:none;
    color:#ff8c00;
    text-shadow: 1px 1px 5px rgba(34, 34, 34, 0.75);
    /* background-color: rgba(34,34,34,0.12);
border-radius: 2em;
    padding: 0.25em 1em; */
}
.site-header-content {
    padding-top: 0;
}

.article-byline-content {
    display: none;
}

/* disminuir tamaño imágenes */
.article-title .article-image img {
    max-width: 50%;
    height:auto;
}

.has-cover .gh-burger:after, .has-cover .gh-burger:before {
    box-shadow: 1px 1px 3px rgba(0,0,0,0.9);
    border: 1px solid #faaf00;
}

.kg-image-card img {
    pointer-events: none;
    cursor: default;
}

.kg-image-card a img {
    pointer-events: auto;
    cursor: pointer;
}

.page-template .gh-head-logo {
    color: transparent;
    background-image: var(--logo-image);
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 2px;
}

footer .copyright a::before {
    content: var(--logo-image);
    display: block;
    position: relative;
    width: 80px; /* Adjust the size of the logo */
    height: auto;
}

@media (max-width: 767px) {
    .footer .copyright::after {
        width: 60px; /* Adjust the size of the logo */

    }
}

footer .copyright {
    position: relative;
}

.gh-head-menu .nav a:hover {
    opacity: 1;
}

.submenu {
    background: linear-gradient(to right, var(--color-blue-green) 3%, var(--color-bg-dark) 33%);
    border-radius: 0 0 6px 6px;
    box-shadow: var(--shadow-subtle);
    display: flex;
    visibility: hidden;
    opacity: 1;
    flex-direction: row;
    align-items: center;
    position: absolute;
    background-color: var(--color-bg-dark);
    padding: 0.25em 1em;
    left: 0;
    z-index: 1;
    max-width: 100%;
    width: 100%;
    margin-top: 4px;
    transform: rotate3d(1,0,0,90deg);
    transform-origin: top;
    transition: transform .33s ease-in-out;
}

.submenu-menu .submenu-group-title {
    border-bottom: 1px solid var(--color-orange-2);
    font-weight: bold;
    width: 100%;
    transform: color .33s ease-in-out;
}

.submenu-group-title:hover {
    color: var(--color-orange-2);
}

.submenu-menu .submenu-group {
    display: flex;
    flex-direction: row;
    margin-bottom: 0.5em;
}

.gh-head-menu .nav .submenu a.submenu-group-item {
    line-height: 1.33;
    display: flex;
}

.submenu-group-item {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.submenu-group-item .group-item-inner {
    padding: 0.2em 0.5em;
    border-radius: 0.25em;
    margin: 0.5em 0;
    font-size: 0.8em;
    text-align: center;
}

.submenu-group-item::after {
    content: '';
    display: inline-block;
    margin: 0.5em 0.25em;
    font-weight: normal;
    opacity: 0.4;
    color: white;
    height: 1em;
    border: 1px solid white;
}

.submenu-group-item:last-child::after {
    display: none;
}

.submenu-group-item .group-item-inner:hover {
    background-color: var(--color-orange-2);
}

.submenu ul, .submenu li {
    list-style: none;
}

.submenu-menu {
    display: flex;
    flex-direction: column;
    padding: 0 0 0 2.5rem;
    flex-grow: 1;
}

.submenu-title {
    display: block;
    margin: 0;
    font-size:2em;
    width: 35%;
    text-align: right;
    padding-right: 6rem;
}

.nav-productos  {
    z-index:100;
}

.nav-productos:hover .submenu {
    visibility: visible;
     transform: rotate3d(1,0,0,0deg);
    /* display: flex; */
    opacity: 1;
}




.gh-head-menu {
    margin-top: 0px
}

.submenu li {
    padding: 0.5em 2em;
}

.submenu li a {
    color: #333;
    text-decoration: none;
}

.submenu li a:hover {
    /* color: var(--color-orange-2); */
}



/* General form styles - unchanged */
.form-wrapper {
    width: 100%;
    margin-bottom: 1.5em;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.contact-form {
    max-width: 600px;
    width: 90%;
    margin: 0 auto; 
    padding: 1em;
    background-color: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

.form-label {
    display: block;
    font-size: 0.9em;
    color: #333;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.34em;
    margin-bottom: 0.5em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.8em;
    box-sizing: border-box;
}

textarea {
    margin-bottom: 0;
    resize: vertical;
    height: 6em;
}

/* Products section styling */
.products-wrapper.outer {
    margin-bottom: 20px;
}

.products-wrapper.inner {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
}

.product-item {
    display: flex;
    align-items: center;
    margin-right: 10px;
    font-size: inherit;
}

.product-item input[type="checkbox"] {
    margin-right: 0.5em;
}

span.form-label.products {
    display: block;
    margin-bottom: 10px;
    font-size: inherit;
    font-weight: bold;
}

/* Enviar button styling */
.form-button {
    width: 100%;
    font-size: 18px;
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    background: linear-gradient(to bottom, #e99610, #fd530e);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s, transform 0.3s;
}

.form-button:hover {
    box-shadow: 0 0 10px 3px rgba(255, 165, 0, 0.7); /* Glowing drop shadow */
}

/* Adjustments for mobile screens */
@media (max-width: 600px) {
    .products-wrapper.inner {
        display: block;
    }

    .form-label {
        font-size: 12px;
    }

    .form-button {
        font-size: 14px;
    }
}

input:required {
    border: 2px solid rgba(255, 165, 0, 0.5); /* Light orange border */
    transition: border-color 0.3s ease;
}

input:required:focus {
    border-color: orange; /* Brighten the border on focus */
    box-shadow: 0 0 5px rgba(255, 165, 0, 0.8); /* Subtle glow */
}

input:focus, textarea:focus {
    box-shadow: 0 0 5px rgba(255, 165, 0, 0.5); 
    outline: none;
}


/* Increase the checkmark size */
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border: 2px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: background-color 0.3s ease;

    /* Add a larger checkmark when checked */
    position: relative;
}

input[type="checkbox"]:checked::before {
    content: "✔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px; /* Make the checkmark bigger */
    color: #fff;
}

input[type="checkbox"]:checked {
    background-color: #f97300;
    border-color: #f97300;
}

/* Adjust focus effect */
input[type="checkbox"]:focus {
    box-shadow: 0 0 8px rgba(255, 165, 0, 0.7); /* Subtle glowing effect on focus */
}

.contact-form .form-status {
    margin:0.1em 0 0.3em 0;
    width:100%;
    display:block;
    text-align:center;
    position: relative;
    font-weight: bold;
    min-height:1.55em;
}

.form-status.success {
    color: green;
}

.form-status.failure {
    color: red;
}
.contact-form .invalid {
    color: red;  /* Adjust the style as needed */
    border-color: red;  /* For the input */
}

@keyframes glowing-and-pulsing {
    0% { 
        box-shadow: 0 0 5px #e99610;
        background-color: #f4f4f4;
    }
    50% { 
        box-shadow: 0 0 20px #fd530e;
        background-color: #ffa500;
    }
    100% { 
        box-shadow: 0 0 5px #e99610;
        background-color: #f4f4f4;
    }
}

.form-button.processing {
    animation: glowing-and-pulsing 1.5s infinite;
    pointer-events: none;
    color: #333; /* Ensuring text remains visible on lighter backgrounds */
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

@media (max-width: 767px) {

    #gh-head {
	height: 48px;
    }

    #gh-head .gh-head-brand {
	overflow-x: hidden;
	height: 48px;
	padding: 0 12px;
    }

    #gh-head .nav {
	gap: 0px;
	font-size: 1.5rem;
    }

    .gh-head-open.has-cover #gh-head .gh-head-actions {
	background-color: var(--color-bg-dark);
    }
    
    .gh-head-open #gh-head .gh-head-actions {
	display: none;
    }

    .home-template .gh-head.outer ul.nav, .page-template .gh-head.outer ul.nav {
	padding: 0 0.5em;
	border-radius: 0.5em;
	background: unset;
	width: 100%;
    }


    
#gh-head .en .nav.es,
#gh-head .en .nav.zh,
#gh-head .es .nav.en,
#gh-head .es .nav.zh,
#gh-head .zh .nav.en,
#gh-head .zh .nav.es {
    display: none;
}
    
    #gh-head .gh-head-menu.en ul.nav.es {
	display: none;
    }

    #gh-head .gh-head-menu.es ul.nav.en {
	display: none;
    }

    .gh-head-open #gh-head .gh-head-menu {
	position: absolute;
	top: 48px;
	width: 100%;
    }

    #gh-head .submenu .submenu-title {
	display: none;
    }

    #gh-head .gh-head-menu ul.nav > li {
	padding: 0;
	width: 100%;
	text-align: center;
    }

    #gh-head ul ul {
	margin: 0;
    }

    #gh-head.outer {
	padding: 0;
    }

    #gh-head.outer ul.nav .submenu {
	background: unset;
	display: flex;
	visibility: visible;
	transform: rotate3d(1,0,0,0deg);
	position: relative;
	margin: -0.5em 0 0 0;
	padding: 0.5em 0.1em;
	width: 100%;
    }

    #gh-head.outer ul.nav .nav-productos {
	width: 100%;
	background: linear-gradient(to top, var(--color-blue-green), var(--color-bg-dark));
	border: 1px solid var(--color-blue-green-alpha);
	border-radius: 0.5em;
    }
    
    #gh-head.outer ul.nav .submenu ul {
	padding: 0;
    }
    
    #gh-head.outer ul.nav .submenu-menu {
	margin: 0;
	padding: 0 0.25em;
	width: 100%;
    }

    #gh-head.outer ul.nav .submenu ul {
	line-height: 1;
    }

    #gh-head.outer ul.nav .submenu .submenu-group {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
    }

    #gh-head.outer ul.nav .submenu-menu a {
	line-height: 1.2;
	font-size: 1.25em;
    }

    #gh-head.outer .submenu-menu .submenu-group-title {
	color: var(--color-yellow);
	border: none;
    }

    #gh-head.outer .submenu-group-item .group-item-inner {
	padding: 0.4em 0.75em;
	margin: 0.25em 0.25em;
	background-color: var(--color-orange-2);
	text-shadow: 1px 1px 2px var(--color-bg-dark);
    }

    #gh-head.outer .submenu-group-item::after {
	display: none;
    }

    #gh-head .gh-head-actions {
	visibility: visible;
	opacity: 1;
    }

    .home-template.gh-head-open #gh-head .gh-head-logo {
	display: block;
    }

    .home-template.gh-head-open .gh-head-logo {
	color: transparent;
	background-image: var(--logo-image);
	background-size: contain; 
        background-repeat: no-repeat;
        background-position: center;
	margin-bottom: 2px;
    }

    #gh-head .gh-head-brand {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	overflow: visible;
	z-index: 100;
    }

    .gh-head-open #gh-head .available-languages {
	order: -1;
    }
}

@media (min-width: 1600px) {
    .home-template .gh-head.outer ul.nav .submenu .submenu-title {
	flex-shrink: 2;
	flex-basis: 30%;
    }
    .home-template .gh-head.outer ul.nav .submenu .submenu-menu {
	flex-grow: 2;
    }

}

