/* ==================================================================
   Apolo - ajustes visuales (header, footer y secciones)
   Mismo lenguaje que el modal de productos: negro, dorado, tarjetas.
   ================================================================== */
:root {
    --apolo-gold: #fac328;
    --apolo-gold-soft: rgba(250, 195, 40, 0.12);
    --apolo-bg: #1d1e23;
    --apolo-bg-deep: #141518;
    --apolo-card: rgba(255, 255, 255, 0.04);
    --apolo-line: rgba(255, 255, 255, 0.08);
    --apolo-text: #e9e9ec;
    --apolo-muted: #9a9ba3;
}

/* ------------------------------------------------------------------
   HEADER (escritorio)
   ------------------------------------------------------------------ */
@media (min-width: 1024px) {
    body .top_panel_wrap .top_panel_middle {
        background: var(--apolo-bg);
    }
    body .top_panel_wrap .top_panel_middle .content_wrap {
        position: relative;
    }
    body .top_panel_wrap .top_panel_middle .columns_wrap {
        display: flex !important;
        align-items: center;
        justify-content: center !important;
        width: 100% !important;
        min-height: 96px;
        margin: 0 !important;
    }
    /* Los clearfix de la plantilla (::before/::after) contaban como items del flex
       y empujaban el logo hacia la izquierda */
    body .top_panel_wrap .top_panel_middle .columns_wrap::before,
    body .top_panel_wrap .top_panel_middle .columns_wrap::after {
        display: none !important;
        content: none !important;
    }
    body .top_panel_wrap .contact_logo {
        flex: 0 0 auto !important;
        margin: 0 !important;
        width: auto !important;
        float: none !important;
        padding: 0 !important;
    }
    body .top_panel_wrap .logo {
        margin: 0 !important;
        padding: 0 !important;
    }
    body .top_panel_wrap .logo_main {
        float: none !important;
        width: auto !important;
        height: 64px !important;
        max-height: 64px !important;
        max-width: none !important;
        aspect-ratio: 600 / 187;
        object-fit: contain;
        margin: 0 auto !important;
    }
    /* Telefono de la home: a la derecha, en una sola linea */
    body .top_panel_wrap .contact_field.contact_phone {
        position: absolute;
        left: auto;
        right: 0;
        top: auto;
        bottom: 16px;
        transform: none;
        display: flex !important;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        white-space: nowrap;
        text-decoration: none !important;
    }
    body .top_panel_wrap .contact_field.contact_phone .contact_icon {
        display: none !important;
    }
    body .top_panel_wrap .contact_field.contact_phone .contact_label {
        color: #fff !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
    }
    body .top_panel_wrap .contact_field.contact_phone .contact_email {
        color: var(--apolo-muted) !important;
        font-size: 13px !important;
        text-decoration: none !important;
    }
    body .top_panel_wrap .top_panel_middle .content_wrap {
        padding-top: 0;
    }
    body .top_panel_wrap .contact_field.contact_cart {
        display: none;
    }

    /* Menu en una sola linea */
    body .top_panel_wrap .top_panel_bottom {
        background: var(--apolo-bg-deep);
        border-top: 1px solid var(--apolo-line);
        border-bottom: 1px solid var(--apolo-line);
    }
    body .top_panel_wrap .menu_main_nav {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
    }
    body .top_panel_wrap .menu_main_nav > li {
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    body .top_panel_wrap .menu_main_nav > li > a {
        position: relative;
        padding: 20px 14px !important;
        font-size: 13px !important;
        font-weight: 600;
        letter-spacing: 0.06em !important;
        text-decoration: none !important;
        transition: color 0.2s ease;
    }
    /* Subrayado dorado en hover y en la pagina actual.
       Reemplaza los corchetes animados de la plantilla (a:before / a:after). */
    body .top_panel_wrap .menu_main_nav > li > a::before,
    body .top_panel_wrap .menu_main_nav > li > a:hover::before {
        display: none !important;
        content: none !important;
    }
    body .top_panel_wrap .menu_main_nav > li > a::after,
    body .top_panel_wrap .menu_main_nav > li > a:hover::after {
        content: "" !important;
        display: block !important;
        position: absolute !important;
        top: auto !important;
        bottom: 12px !important;
        left: 14px !important;
        right: 14px !important;
        width: auto !important;
        height: 2px !important;
        margin: 0 !important;
        font-size: 0 !important;
        line-height: 0 !important;
        background: var(--apolo-gold) !important;
        border-radius: 2px;
        opacity: 1 !important;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.2s ease !important;
    }
    body .top_panel_wrap .menu_main_nav > li > a:hover::after,
    body .top_panel_wrap .menu_main_nav > li > a:focus-visible::after,
    body .top_panel_wrap .menu_main_nav > li.current-menu-parent > a::after,
    body .top_panel_wrap .menu_main_nav > li.current-menu-item > a::after {
        transform: scaleX(1);
    }
    body .top_panel_wrap .menu_main_nav > li > a:hover {
        color: #fff !important;
    }
    /* Iconos (redes y tienda) mas compactos y separados del texto */
    body .top_panel_wrap .menu_main_nav > li.menu-item-type-custom > a {
        padding: 20px 9px !important;
        opacity: 0.8;
    }
    body .top_panel_wrap .menu_main_nav > li.menu-item-type-custom > a::after {
        display: none !important;
    }
    body .top_panel_wrap .menu_main_nav > li.menu-item-type-custom > a:hover {
        opacity: 1;
        color: var(--apolo-gold) !important;
    }
    body .top_panel_wrap .menu_main_nav > li#menu-item-2700 {
        margin-left: 14px !important;
        padding-left: 14px !important;
        border-left: 1px solid var(--apolo-line);
    }
}

/* ------------------------------------------------------------------
   TITULO DE PAGINA (banner de las paginas internas)
   ------------------------------------------------------------------ */
body .top_panel_title .top_panel_title_inner {
    position: relative;
}
body .top_panel_title .top_panel_title_inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 21, 24, 0.85) 0%, rgba(20, 21, 24, 0.35) 60%, rgba(20, 21, 24, 0.55) 100%);
    pointer-events: none;
}
body .top_panel_title .top_panel_title_inner .content_wrap {
    position: relative;
}
body .top_panel_title .breadcrumbs,
body .top_panel_title .breadcrumbs a,
body .top_panel_title .breadcrumbs .breadcrumbs_item {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 12px;
    letter-spacing: 0.1em;
}
body .top_panel_title .breadcrumbs a:hover {
    color: var(--apolo-gold) !important;
}
body .top_panel_title .page_title {
    font-style: normal !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em;
}

/* ------------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------------ */
.site-footer {
    background: var(--apolo-bg-deep);
    color: var(--apolo-muted);
    border-top: 1px solid var(--apolo-line);
    font-size: 15px;
    line-height: 1.6;
}
.site-footer a {
    color: var(--apolo-text);
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--apolo-gold);
}
.site-footer .sf-inner {
    display: grid;
    grid-template-columns: 1.3fr 1.2fr 0.8fr 1.2fr;
    gap: 48px;
    max-width: 1170px;
    margin: 0 auto;
    padding: 64px 24px 48px;
}
.site-footer .sf-logo {
    display: block;
    width: 190px;
    height: auto;
    margin-bottom: 16px;
}
.site-footer .sf-tagline {
    margin: 0 0 20px;
    color: var(--apolo-muted);
    font-size: 15px;
}
.site-footer .sf-title {
    margin: 0 0 16px !important;
    padding: 0 !important;
    color: var(--apolo-gold) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    letter-spacing: 0.12em !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
}
.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer li {
    margin: 0 0 10px;
    padding: 0;
}
.site-footer li::before {
    display: none !important;
}
.site-footer .sf-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.site-footer .sf-ico {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 4px;
    color: var(--apolo-gold);
}
.site-footer .sf-social {
    display: flex;
    gap: 10px;
}
.site-footer .sf-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--apolo-line);
    border-radius: 50%;
    background: var(--apolo-card);
    font-size: 16px;
}
.site-footer .sf-social a:hover {
    border-color: var(--apolo-gold);
}
.site-footer .sf-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.site-footer .sf-badge {
    padding: 6px 12px;
    border: 1px solid var(--apolo-line);
    border-radius: 999px;
    background: var(--apolo-card);
    color: var(--apolo-text);
    font-size: 13px;
    font-weight: 600;
}
.site-footer .sf-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}
.site-footer .sf-logos img {
    height: auto;
    opacity: 0.9;
}
.site-footer .sf-logos a:hover img {
    opacity: 1;
}
.site-footer .sf-bottom {
    border-top: 1px solid var(--apolo-line);
}
.site-footer .sf-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
    max-width: 1170px;
    margin: 0 auto;
    padding: 20px 24px;
    font-size: 13px;
}

@media (max-width: 1023px) {
    .site-footer .sf-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
    }
}
@media (max-width: 639px) {
    .site-footer .sf-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 48px 24px 36px;
    }
    .site-footer .sf-bottom-inner {
        justify-content: center;
        text-align: center;
    }
}

/* ------------------------------------------------------------------
   EMPRESA (about-us.php)
   ------------------------------------------------------------------ */
.about-v2 {
    color: var(--apolo-muted);
    font-size: 16px;
    line-height: 1.7;
}
.about-v2 .ab-wrap {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 24px;
}
.about-v2 .ab-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--apolo-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.about-v2 .ab-h2 {
    margin: 0 0 32px !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    font-style: normal !important;
    line-height: 1.15 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    text-align: left !important;
}
.about-v2 p {
    margin: 0 0 16px;
    text-align: left;
}
.about-v2 .ab-intro {
    padding: 80px 0 64px;
}
.about-v2 .ab-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 56px;
    align-items: start;
}
.about-v2 .ab-lead {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 20px;
}
.about-v2 .ab-lines {
    padding: 72px 0;
    background: var(--apolo-bg-deep);
    border-top: 1px solid var(--apolo-line);
    border-bottom: 1px solid var(--apolo-line);
}
.about-v2 .ab-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.about-v2 .ab-card {
    display: flex;
    flex-direction: column;
    padding: 28px 26px 24px;
    background: var(--apolo-card);
    border: 1px solid var(--apolo-line);
    border-top: 3px solid var(--apolo-gold);
    border-radius: 14px;
    color: var(--apolo-muted) !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.about-v2 .ab-card:hover,
.about-v2 .ab-card:focus-visible {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(250, 195, 40, 0.5);
}
.about-v2 .ab-card-tag {
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--apolo-gold-soft);
    color: var(--apolo-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.about-v2 .ab-card-title {
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}
.about-v2 .ab-card p {
    flex: 1;
    font-size: 15px;
}
.about-v2 .ab-card-link {
    color: var(--apolo-gold);
    font-size: 14px;
    font-weight: 700;
}
.about-v2 .ab-stats {
    padding: 72px 0 80px;
}
.about-v2 .ab-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.about-v2 .ab-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 28px 26px;
    background: var(--apolo-card);
    border: 1px solid var(--apolo-line);
    border-radius: 14px;
}
.about-v2 .ab-stat-num {
    color: var(--apolo-gold);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.about-v2 .ab-stat-label {
    color: var(--apolo-text);
    font-size: 15px;
    font-weight: 600;
}
@media (max-width: 900px) {
    .about-v2 .ab-intro-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .about-v2 .ab-cards,
    .about-v2 .ab-stat-grid {
        grid-template-columns: 1fr;
    }
    .about-v2 .ab-h2 {
        font-size: 28px !important;
        margin-bottom: 24px !important;
    }
    .about-v2 .ab-intro,
    .about-v2 .ab-lines,
    .about-v2 .ab-stats {
        padding: 48px 0;
    }
    .about-v2 .ab-lead {
        font-size: 19px;
    }
    .about-v2 .ab-stat-num {
        font-size: 34px;
    }
}

/* ------------------------------------------------------------------
   HOME: titulos de seccion y tarjetas de producto
   ------------------------------------------------------------------ */
.home-section-title {
    margin: 8px 0 28px !important;
    color: #fff !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    font-style: normal !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
}
.home-eyebrow {
    display: block;
    margin-top: 8px;
    color: var(--apolo-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.product-item h5 {
    margin-top: 12px !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    letter-spacing: 0.02em !important;
}
.product-item h6 {
    color: var(--apolo-gold) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-style: normal !important;
}
.product-item .img-wrapper img {
    transition: transform 0.25s ease;
}
.product-item .img-wrapper img:hover {
    transform: scale(1.04);
}

/* ------------------------------------------------------------------
   SELECTOR DE IDIOMA (minimalista)
   ------------------------------------------------------------------ */
#lingumania_langswitcher,
#bLanguage1,
#bLanguage2 {
    display: none !important;
}
#langSwitch {
    position: absolute;
    top: 14px;
    right: 24px;
    z-index: 100001;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
}
#langSwitch span {
    color: rgba(255, 255, 255, 0.25);
}
#langSwitch a {
    padding: 4px 2px;
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
#langSwitch a:hover,
#langSwitch a:focus-visible {
    color: #fff !important;
}
#langSwitch a.is-active {
    color: var(--apolo-gold) !important;
}
@media (max-width: 1023px) {
    #langSwitch {
        top: 8px;
        right: 16px;
    }
}
