:root {
    --theme-color: #00a58d;
    --theme-color2: #00a58d;
    --black-color2: #080e1c;
    --alfratax-dark: #080e1c;
    --alfratax-accent: #00a58d;
}

body.theme-alfratax {
    --theme-color: #00a58d;
    --theme-color2: #00a58d;
    background-color: #ffffff;
}

/* Header layout1 (blog template) con colores Alfratax */
.th-header.header-layout1 .header-top {
    background-color: #ffffff !important;
    --body-color: #080e1c;
}

.th-header.header-layout1 .header-top .header-links li,
.th-header.header-layout1 .header-top .header-links li a,
.th-header.header-layout1 .header-top .header-links i {
    color: #080e1c!important;
}

.th-header.header-layout1 .header-top .header-links a:hover {
    color: #00a58d !important;
    opacity: 1;
}

.th-header.header-layout1 .header-top .header-social a,
.th-header.header-layout1 .header-top .header-social .social-title,
.th-header.header-layout1 .header-top .lang-switcher .social-title,
.th-header.header-layout1 .header-top .lang-switcher .lang-link {
    color: #080e1c !important;
}

.th-header.header-layout1 .header-top .header-social a:hover,
.th-header.header-layout1 .header-top .lang-switcher .lang-link:hover,
.th-header.header-layout1 .header-top .lang-switcher .lang-link.active {
    color: #00a58d !important;
    opacity: 1;
}

.th-header.header-layout1 .header-top .lang-switcher .lang-divider {
    color: rgba(8, 14, 28, 0.35);
}

.th-header.header-layout1 .menu-area {
    background-color: #080e1c !important;
}

.th-header.header-layout1 .main-menu > ul > li > a {
    color: #ffffff !important;
    font-weight: 500;
    position: relative;
    transition: color 0.25s ease;
}

.th-header.header-layout1 .main-menu > ul > li > a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #00a58d;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.th-header.header-layout1 .main-menu > ul > li > a:hover {
    color: #00a58d !important;
}

.th-header.header-layout1 .main-menu > ul > li > a:hover::after {
    width: 20px;
}

.th-header.header-layout1 .menu-area .logo-bg::before {
    background-color: #00a58d;
}

.th-header.header-layout1 .menu-area .th-btn.style3 {
    background-color: #00a58d;
    border-color: #00a58d;
    color: #080e1c;
    font-weight: 600;
}

.th-header.header-layout1 .menu-area .th-btn.style3:hover {
    background-color: #00c4a8;
    border-color: #00c4a8;
    color: #080e1c;
}

.th-header.header-layout1 .menu-area .th-menu-toggle {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

/* Compatibilidad con layout anterior */
.th-header.header-layout20 .header-top,
.th-header.header-layout15 .header-top {
    background-color: #00a58d !important;
    --body-color: #ffffff;
}

.th-header.header-layout20 .menu-area,
.th-header.header-layout15 .menu-area {
    background-color: #080e1c !important;
}

.footer-layout20,
.footer-layout1 {
    background-color: #080e1c !important;
}

.footer-layout1 .footer-top {
    background-color: #00a58d !important;
    padding: 18px 0;
}

.footer-layout1 .footer-logo {
    padding: 18px 24px 18px 0;
}

.footer-layout1 .footer-logo img {
    max-height: 44px;
    width: auto;
}

.footer-layout1 .footer-contact-wrap {
    padding: 12px 0;
    grid-template-columns: auto auto;
}

.footer-layout1 .footer-contact {
    gap: 14px;
}

.footer-layout1 .footer-contact_icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    line-height: 52px;
    font-size: 24px;
}

.footer-layout1 .footer-contact_icon:before {
    top: -6px;
    left: -6px;
}

.footer-layout1 .footer-contact_text {
    font-size: 13px;
    line-height: 1.3;
}

.footer-layout1 .footer-contact_link {
    font-size: 16px;
    line-height: 1.3;
}

.footer-layout1 .footer-contact_icon .fa-brands {
    font-family: "Font Awesome 7 Brands";
    font-weight: 400;
}

.footer-layout1 .footer-contact_icon .fa-solid {
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
}

.footer-layout1 a:hover {
    color: #00a58d !important;
}

.footer-layout1 .copyright-text a {
    color: #00a58d;
}

/* Correo: fondo blanco, texto accent */
.th-header.header-layout20 .header-top .header-links li {
    background-color: #ffffff;
    padding: 6px 16px;
    border-radius: 100px;
}

.th-header.header-layout20 .header-top .header-links li a,
.th-header.header-layout20 .header-top .header-links i {
    color: #00a58d !important;
}

.th-header.header-layout20 .header-top .header-links a:hover {
    color: #008f7a !important;
    opacity: 1;
}

/* Idioma y redes en barra superior */
.th-header.header-layout20 .header-top .social-links a,
.th-header.header-layout20 .header-top .social-links .social-title,
.th-header.header-layout20 .header-top .lang-switcher .social-title {
    color: #ffffff !important;
}

.th-header.header-layout20 .header-top .social-links a:hover {
    color: #ffffff !important;
    opacity: 0.75;
}

/* Selector de idioma en barra superior */
.lang-switcher .lang-link {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.lang-switcher .lang-link:hover,
.lang-switcher .lang-link.active {
    color: #ffffff;
    opacity: 1;
}

.lang-switcher .lang-divider {
    color: rgba(255, 255, 255, 0.45);
}

/* Menú: blanco sin fondo, detalle al hover */
.th-header.header-layout20 .main-menu.style2 > ul > li > a {
    background-color: transparent !important;
    color: #ffffff !important;
    font-weight: 500;
    position: relative;
    border-radius: 0;
    transition: color 0.25s ease;
}

.th-header.header-layout20 .main-menu.style2 > ul > li > a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: #00a58d;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.th-header.header-layout20 .main-menu.style2 > ul > li > a:hover {
    background-color: transparent !important;
    color: #00a58d !important;
}

.th-header.header-layout20 .main-menu.style2 > ul > li > a:hover::after {
    width: 20px;
}

/* Botón contacto en barra del logo */
.th-header.header-layout20 .menu-area .th-btn.style-radius {
    background-color: #00a58d;
    border-color: #00a58d;
    color: #080e1c;
    font-weight: 600;
}

.th-header.header-layout20 .menu-area .th-btn.style-radius:hover {
    background-color: #00c4a8;
    border-color: #00c4a8;
    color: #080e1c;
}

/* Hamburguesa móvil visible sobre fondo oscuro */
.th-header.header-layout20 .menu-area .th-menu-toggle {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.th-btn,
.th-btn.style-radius {
    background-color: #00a58d;
    border-color: #00a58d;
}

.th-btn:hover,
.th-btn.style-radius:hover {
    background-color: #008f7a;
    border-color: #008f7a;
}

.th-btn.style-border2 {
    border-color: #00a58d;
    color: #00a58d;
}

.th-btn.style-border2:hover {
    background-color: #00a58d;
    color: #ffffff;
}

.header-logo img {
    max-height: 48px;
    width: auto;
}

.mobile-logo img {
    max-height: 40px;
    width: auto;
}

.footer-layout20 a:hover {
    color: #00a58d !important;
}

.footer-layout20 .newsletter-form .th-btn {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .footer-layout20 .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-layout20 .newsletter-form .th-btn {
        width: 100%;
    }
}

/* Acceso al sistema resaltado cuando la sesión sigue activa */
.nav-session-link > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 999px;
    background-color: #00a58d !important;
    color: #ffffff !important;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: none;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.nav-session-link > span::after {
    content: '\2192';
    font-size: 1.05em;
    line-height: 1;
}

.nav-session-link:hover > span,
.nav-session-link:focus-visible > span {
    background-color: #00967f !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: none;
}

.th-header.header-layout1 .main-menu > ul > li > a.nav-session-link,
.th-header.header-layout1 .main-menu > ul > li > a.nav-session-link:hover {
    color: #ffffff !important;
    padding-left: 6px;
    padding-right: 0;
}

.th-header.header-layout1 .main-menu > ul > li > a.nav-session-link::after {
    display: none;
}

.th-mobile-menu ul li a.nav-session-link,
.footer-widget.widget_nav_menu a.nav-session-link {
    padding-left: 0;
    color: #ffffff !important;
}

.th-mobile-menu ul li a.nav-session-link::before,
.footer-widget.widget_nav_menu a.nav-session-link::before {
    display: none;
}
