html,
body {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

button,
input,
select,
textarea {
    font-family: inherit;
}

body.eia21-template {
    margin: 0;
    background-color: #ffffff;
}

.eia21-template * {
    box-sizing: border-box;
}

.eia21-template a {
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.eia21-site {
    min-height: 100vh;
    background-color: #ffffff;
}

.eia21-main {
    padding-top: 78px;
}

/* Header */
.eia21-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.eia21-header__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* Topbar */
.eia21-header__topbar {
    background-color: #111827;
    color: #d1d5db;
    border-bottom: 1px solid #374151;
}

.eia21-header__topbar-inner {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.eia21-header__topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.eia21-header__topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d1d5db;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.eia21-header__topbar-link:hover {
    color: #61A229;
    text-decoration: none;
}

.eia21-header__topbar-icon {
    flex-shrink: 0;
}

.eia21-header__intranet {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border: 1px solid #4b5563;
    border-radius: 6px;
    color: #d1d5db;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.eia21-header__intranet:hover {
    border-color: #61A229;
    color: #61A229;
    text-decoration: none;
}

.eia21-header__languages {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.eia21-header__language-icon {
    margin-right: 4px;
    color: #6b7280;
    flex-shrink: 0;
}

.eia21-header__language {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
}

.eia21-header__language:hover {
    color: #e5e7eb;
    text-decoration: none;
}

.eia21-header__language.is-active {
    color: #61A229;
}

/* Main header */
.eia21-header__main {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e7eb;
}

.eia21-header__nav-wrap {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
}

/* Logo */
.eia21-header__logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    margin-right: auto;
    text-decoration: none;
}

.eia21-header__logo a,
.eia21-header__logo .custom-logo-link,
.eia21-header__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
}

.eia21-header__logo img,
.eia21-header__logo-img,
.eia21-header__logo .custom-logo {
    display: block;
    width: auto;
    max-width: 140px !important;
    height: auto;
    max-height: 44px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* Desktop menu */
.eia21-header__desktop-menu {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    margin-left: auto;
}

.eia21-header__menu {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eia21-header__menu li {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eia21-header__menu > li > a {
    display: inline-flex;
    align-items: center;
    padding: 26px 0;
    color: #111827;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease;
}

.eia21-header__menu > li > a:hover,
.eia21-header__menu > li.current-menu-item > a,
.eia21-header__menu > li.current-menu-ancestor > a {
    color: #61A229;
    text-decoration: none;
}

.eia21-header__menu > li.menu-item-has-children > a::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.25s ease;
}

.eia21-header__menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(225deg) translateY(-1px);
}

.eia21-header__menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 50;
    min-width: 260px;
    margin: 0;
    padding: 10px;
    list-style: none;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background-color: #ffffff;
    box-shadow: 0 20px 45px rgba(17, 24, 39, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.eia21-header__menu li:hover > .sub-menu,
.eia21-header__menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.eia21-header__menu .sub-menu li {
    width: 100%;
}

.eia21-header__menu .sub-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    color: #374151;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.eia21-header__menu .sub-menu a:hover,
.eia21-header__menu .sub-menu .current-menu-item > a {
    background-color: rgba(97, 162, 41, 0.1);
    color: #61A229;
    text-decoration: none;
}

/* CTA desktop */
.eia21-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    background-color: #61A229;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(97, 162, 41, 0.22);
    white-space: nowrap;
}

.eia21-header__cta:hover {
    background-color: #4f8821;
    color: #ffffff;
    text-decoration: none;
}

/* Mobile menu toggle */
.eia21-header__mobile-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.eia21-header__mobile-icon--close {
    display: none;
}

.eia21-header.is-mobile-menu-open .eia21-header__mobile-icon--open {
    display: none;
}

.eia21-header.is-mobile-menu-open .eia21-header__mobile-icon--close {
    display: block;
}

/* Mobile panel */
.eia21-header__mobile-panel {
    display: none;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.eia21-header.is-mobile-menu-open .eia21-header__mobile-panel {
    display: block;
}

.eia21-header__mobile-panel-inner {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
}

.eia21-header__mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eia21-header__mobile-menu li {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.eia21-header__mobile-menu a {
    display: block;
    width: 100%;
    padding: 10px 52px 10px 8px;
    color: #374151;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    text-decoration: none;
}

.eia21-header__mobile-menu a:hover,
.eia21-header__mobile-menu .current-menu-item > a,
.eia21-header__mobile-menu .current-menu-ancestor > a {
    color: #61A229;
    text-decoration: none;
}

/* Mobile submenu */
.eia21-header__mobile-menu .menu-item-has-children > .sub-menu {
    display: none;
    margin: 0 0 8px 16px;
    padding: 0 0 0 16px;
    border-left: 2px solid #f3f4f6;
    list-style: none;
}

.eia21-header__mobile-menu .menu-item-has-children.is-submenu-open > .sub-menu {
    display: block;
}

.eia21-header__mobile-menu .sub-menu a {
    padding: 8px 0;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
}

/* Mobile independent arrow */
.eia21-header__mobile-submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 46px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.25s ease;
}

.eia21-header__mobile-submenu-toggle:hover {
    color: #61A229;
}

.eia21-header__mobile-submenu-toggle svg {
    transition: transform 0.25s ease;
}

.eia21-header__mobile-menu .menu-item-has-children.is-submenu-open > .eia21-header__mobile-submenu-toggle svg {
    transform: rotate(180deg);
}

/* Mobile CTA */
.eia21-header__mobile-cta {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 14px 24px;
    border-radius: 8px;
    background-color: #61A229;
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.eia21-header__mobile-cta:hover {
    background-color: #4f8821;
    color: #ffffff;
    text-decoration: none;
}

/* Footer */
.eia21-footer {
    background-color: #111827;
    color: #d1d5db;
}

.eia21-footer__container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 16px;
}

.eia21-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.eia21-footer__logo {
    display: inline-flex;
    margin-bottom: 16px;
}

.eia21-footer__logo-img,
.eia21-footer__logo img {
    display: block;
    width: auto;
    height: 40px;
    max-width: 140px !important;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.eia21-footer__brand .custom-logo-link .custom-logo {
    max-width: 140px;
    height: auto;
    margin-bottom: 20px;
}

.eia21-footer__text {
    margin: 0 0 12px;
    color: #9ca3af;
    font-size: 16px;
    line-height: 1.6;
}

.eia21-footer__ethical {
    display: inline-block;
    margin-bottom: 16px;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
}

.eia21-footer__ethical:hover {
    color: #61A229;
    text-decoration: none;
}

.eia21-footer__social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.eia21-footer__social-link {
    color: #d1d5db;
    text-decoration: none;
}

.eia21-footer__social-link:hover {
    color: #61A229;
    text-decoration: none;
}

.eia21-footer__heading {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
}

.eia21-footer__list,
.eia21-footer__contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.eia21-footer__list li {
    margin: 0 0 8px;
    padding: 0;
}

.eia21-footer__list a {
    color: #d1d5db;
    font-size: 16px;
    line-height: 1.5;
    text-decoration: none;
}

.eia21-footer__list a:hover {
    color: #61A229;
    text-decoration: none;
}

.eia21-footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eia21-footer__contact-list li {
    display: flex;
    align-items: flex-start;
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.5;
}

.eia21-footer__contact-icon {
    flex-shrink: 0;
    margin-top: 2px;
    margin-right: 8px;
}

.eia21-footer__contact-list a {
    color: #d1d5db;
    text-decoration: none;
}

.eia21-footer__contact-list a:hover {
    color: #61A229;
    text-decoration: none;
}

.eia21-footer__bottom {
    padding-top: 32px;
    border-top: 1px solid #1f2937;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.eia21-footer__copyright {
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.eia21-footer__legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.eia21-footer__legal a {
    color: #d1d5db;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
}

.eia21-footer__legal a:hover {
    color: #61A229;
    text-decoration: none;
}

/* Ocultar elementos automáticos de WPML / OTGS */
.wpml-ls-statics-footer,
.otgs-development-site-front-end {
    display: none !important;
}

/* Responsive */
@media (min-width: 640px) {
    .eia21-header__container,
    .eia21-footer__container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 768px) {
    .eia21-footer__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .eia21-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .eia21-footer__copyright {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .eia21-header__container,
    .eia21-footer__container {
        padding-left: 32px;
        padding-right: 32px;
    }

    .eia21-header__desktop-menu {
        display: flex;
    }

    .eia21-header__mobile-toggle {
        display: none;
    }

    .eia21-header__mobile-panel {
        display: none !important;
    }

    .eia21-header__mobile-submenu-toggle {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .eia21-main {
        padding-top: 78px;
    }

    .eia21-header__nav-wrap {
        gap: 16px;
    }

    .eia21-header__logo {
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    .eia21-header__topbar-left {
        gap: 10px;
    }

    .eia21-header__topbar-link span {
        display: none;
    }

    .eia21-header__languages {
        display: flex;
        gap: 2px;
    }

    .eia21-header__language-icon {
        display: none;
    }

    .eia21-header__language {
        padding: 3px 5px;
        font-size: 11px;
    }

    .eia21-header__logo img,
    .eia21-header__logo-img,
    .eia21-header__logo .custom-logo {
        max-width: 128px !important;
        max-height: 38px;
    }

    .eia21-header__mobile-panel-inner {
        max-height: calc(100vh - 64px);
    }

    .eia21-footer__container {
        padding-top: 56px;
        padding-bottom: 56px;
    }
}

@media (max-width: 380px) {
    .eia21-header__intranet {
        padding-left: 7px;
        padding-right: 7px;
        font-size: 11px;
    }

    .eia21-header__language {
        padding-left: 4px;
        padding-right: 4px;
        font-size: 10px;
    }
}