/*
Theme Name: WEBBOGOTA Theme Oficial
Theme URI: https://www.webbogota.com/
Author: David Rocha - WEBBOGOTA
Author URI: https://www.webbogota.com/
Description: Tema corporativo ultra rápido, 100% administrable (Header, Topbar, Colores, Logo, Menús y Footer) y optimizado a medida para WPBakery Page Builder y SEO Técnico.
Version: 2.0.0
Text Domain: webbogota-theme
*/

:root {
    --wb-topbar-bg: #0b1118;
    --wb-topbar-text: #cbd5e1;
    --wb-header-bg: #131921;
    --wb-menu-color: #ffffff;
    --wb-menu-hover: #EF6B19;
    --wb-cta-bg: #EC1E28;
    --wb-cta-text: #ffffff;
    --wb-footer-bg: #0f151c;
    --wb-footer-title: #ffffff;
    --wb-footer-text: #94a3b8;
    --wb-footer-hover: #EF6B19;
    --wb-bottom-bg: #090d12;
    --wb-logo-width: 190px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #334155;
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    transition: color 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.wb-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   1. TOP BAR ADMINISTRABLE
   ========================================================================== */
.wb-topbar {
    background-color: var(--wb-topbar-bg);
    color: var(--wb-topbar-text);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.wb-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.wb-topbar-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.wb-topbar a {
    color: var(--wb-topbar-text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wb-topbar a:hover {
    color: var(--wb-menu-hover);
}

.wb-topbar-socials {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ==========================================================================
   2. HEADER PRINCIPAL & NAVEGACIÓN
   ========================================================================== */
.wb-site-header {
    background-color: var(--wb-header-bg);
    width: 100%;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.wb-site-header.is-sticky {
    position: sticky;
    top: 0;
}

body.admin-bar .wb-site-header.is-sticky {
    top: 32px;
}

.wb-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
    gap: 20px;
}

.wb-brand .custom-logo-link img,
.wb-brand img.wb-custom-logo {
    width: var(--wb-logo-width);
    max-height: 65px;
    object-fit: contain;
    display: block;
}

.wb-site-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--wb-menu-color);
    margin: 0;
    letter-spacing: -0.5px;
}

/* Menú de Escritorio */
.wb-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 28px;
}

.wb-main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.wb-main-menu li {
    position: relative;
}

.wb-main-menu > li > a {
    color: var(--wb-menu-color);
    font-size: 14.5px;
    font-weight: 600;
    padding: 28px 0;
    display: inline-block;
}

.wb-main-menu > li:hover > a,
.wb-main-menu > li.current-menu-item > a {
    color: var(--wb-menu-hover);
}

/* Submenús Desplegables (Dropdowns) */
.wb-main-menu ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background-color: var(--wb-header-bg);
    border-top: 3px solid var(--wb-menu-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1000;
}

.wb-main-menu li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wb-main-menu ul.sub-menu li a {
    color: var(--wb-menu-color);
    padding: 10px 20px;
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wb-main-menu ul.sub-menu li a:hover {
    color: var(--wb-menu-hover);
    background-color: rgba(255, 255, 255, 0.04);
    padding-left: 24px;
}

/* Botón CTA del Header */
.wb-header-cta {
    background-color: var(--wb-cta-bg);
    color: var(--wb-cta-text) !important;
    padding: 10px 22px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.wb-header-cta:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Botón Menú Móvil */
.wb-mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--wb-menu-color);
    font-size: 22px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}

/* ==========================================================================
   3. COMPATIBILIDAD TOTAL CON WPBAKERY PAGE BUILDER
   ========================================================================== */
.wb-page-main {
    min-height: 60vh;
}

/* Cuando la página usa WPBakery, quitamos paddings forzados para permitir Full-Width */
.wb-wpbakery-canvas {
    width: 100%;
    margin: 0;
    padding: 0;
}

.wb-standard-canvas {
    padding: 50px 0;
}

/* ==========================================================================
   4. FOOTER ADMINISTRABLE (4 COLUMNAS + SEDES + COPYRIGHT)
   ========================================================================== */
.wb-site-footer {
    background-color: var(--wb-footer-bg);
    color: var(--wb-footer-text);
    padding-top: 65px;
    font-size: 14.5px;
    border-top: 3px solid var(--wb-menu-hover);
}

.wb-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
    padding-bottom: 50px;
}

.wb-footer-col h3,
.wb-footer-col .widget-title {
    color: var(--wb-footer-title);
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.wb-footer-col h3::after,
.wb-footer-col .widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--wb-menu-hover);
}

.wb-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wb-footer-col ul li {
    margin-bottom: 10px;
}

.wb-footer-col a {
    color: var(--wb-footer-text);
}

.wb-footer-col a:hover {
    color: var(--wb-footer-hover);
    padding-left: 4px;
}

.wb-footer-location {
    margin-bottom: 14px;
}

.wb-footer-location strong {
    color: var(--wb-footer-title);
    display: block;
}

.wb-footer-bottom {
    background-color: var(--wb-bottom-bg);
    padding: 20px 0;
    text-align: center;
    font-size: 13.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Botón Flotante de WhatsApp */
.wb-floating-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px;
    height: 58px;
    background-color: #25D366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    z-index: 9999;
    transition: transform 0.25s ease;
}

.wb-floating-wa:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   5. RESPONSIVE DESIGN (MÓVILES Y TABLETS)
   ========================================================================== */
@media (max-width: 991px) {
    .wb-mobile-toggle {
        display: block;
    }

    .wb-nav-wrapper {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background-color: var(--wb-header-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 25px 30px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1001;
    }

    .wb-nav-wrapper.is-open {
        right: 0;
    }

    .wb-main-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .wb-main-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .wb-main-menu > li > a {
        padding: 14px 0;
        width: 100%;
    }

    .wb-main-menu ul.sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        padding-left: 15px;
        background: transparent;
    }

    .wb-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .wb-topbar-inner {
        justify-content: center;
        text-align: center;
    }
    .wb-footer-grid {
        grid-template-columns: 1fr;
    }
}