/**
 * =====================================================================================
 * FILE: /css/menu_site_pc_tablet.css
 * MODULE: Public Site Menu Styles - Desktop / Tablet
 * TYPE: CSS Component
 *
 * PROPÓSITO:
 * Estilizar el menú público migrado de escritorio/tablet manteniéndolo fijo,
 * visible y por encima del contenido del sitio.
 *
 * RESPONSABILIDADES:
 * - Mantener el menú fijo en la parte superior.
 * - Evitar que promociones, carruseles o contenido oculten el menú.
 * - Mantener diseño visual alineado al menú actual en producción.
 * - Definir estado activo tipo pill con subrayado azul.
 * - Estilizar buscador, selector de idioma, cuenta, fecha y ubicación.
 * - Mantener el bloque de buscador y ubicación en una sola fila.
 *
 * REGLAS:
 * - No CSS inline en PHP.
 * - Clases con prefijo wk-site-*.
 * - Menú siempre visible sobre el contenido.
 *
 * AUTHOR: Fernando A. Peón / Weeket WebMaster
 * VERSION: 3.1.0
 * UPDATED: 2026-04-29
 * =====================================================================================
 */

:root {
    --color-primario: #005BAB;
    --color-primario-light: rgba(0, 86, 179, 0.1);
    --color-secundario: #F8981D;
    --color-fondo: #f8f9fa;
    --color-borde: #dee2e6;
    --color-borde-light: #e9ecef;
    --color-texto: #212529;
    --color-texto-suave: #6c757d;

    --wk-site-blue: var(--color-primario);
    --wk-site-orange: var(--color-secundario);
    --wk-site-menu-height: 154px;

    --sombra: 0 4px 12px rgba(0,0,0,0.1);
    --sombra-suave: 0 2px 6px rgba(0,0,0,0.05);
    --radio-borde: 50px;
    --transicion-rapida: all 0.2s ease;
}

/* ==========================================================================
   NAVBAR PRINCIPAL FIJO
   ========================================================================== */

.wk-site-navbar {
    background: var(--color-fondo);
    border-bottom: 1px solid var(--color-borde);
    padding: 0.72rem 1.25rem 0.62rem;
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99999 !important;
    box-shadow: var(--sombra-suave);
}

body {
    padding-top: var(--wk-site-menu-height) !important;
}

/* ==========================================================================
   LOGO / HAMBURGER
   ========================================================================== */

.wk-site-logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 265px;
}

.wk-site-hamburger-btn {
    border: none;
    background: none;
    color: #111;
    padding: 0.15rem 0;
    cursor: pointer;
    line-height: 1;
}

.wk-site-hamburger-btn:focus,
.wk-site-hamburger-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

.wk-site-menu-icon {
    width: 3.1rem;
    height: 3.1rem;
    display: block;
    fill: currentColor;
}

.wk-site-brand {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.wk-site-brand-logo {
    height: 54px;
    width: auto;
    display: block;
}

/* ==========================================================================
   NAVEGACIÓN PRINCIPAL
   ========================================================================== */

.wk-site-main-nav {
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 1 1 auto;
}

.wk-site-nav-link {
    color: var(--color-texto) !important;
    text-decoration: none;
    padding: 0.375rem 0.75rem !important;
    line-height: 1.7;
    position: relative;
    transition: var(--transicion-rapida);
    border-radius: var(--radio-borde);
    font-weight: 500;
}

.wk-site-nav-link:hover {
    color: var(--color-secundario) !important;
    background: rgba(0, 86, 179, 0.05);
    font-weight: 700;
}

.wk-site-nav-link.active {
    color: var(--color-primario) !important;
    font-weight: 600;
    background: rgba(0, 86, 179, 0.08);
}

.wk-site-nav-link.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -0.42rem;
    height: 3px;
    background-color: var(--wk-site-blue);
    border-radius: 10px;
}

.wk-site-home-nav-link {
    min-width: 42px;
    text-align: center;
    padding-left: 0.62rem !important;
    padding-right: 0.62rem !important;
}

/* ==========================================================================
   ACCIONES DERECHA
   ========================================================================== */

.wk-site-right-actions {
    white-space: nowrap;
    min-width: 260px;
    justify-content: flex-end;
}

#wkSitePromoteDropdown {
    font-size: 0.94rem;
}

.dropdown-toggle::after {
    display: none !important;
}

.wk-site-language-selector {
    border: 2px solid var(--wk-site-blue);
    background: #fff;
    color: var(--wk-site-blue);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 38px;
    padding: 0.35rem 0.65rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

.wk-site-language-selector:focus,
.wk-site-language-selector:active {
    outline: none !important;
    box-shadow: none !important;
}

.wk-site-language-flag {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
}

.wk-site-language-code {
    font-size: 0.9rem;
    font-weight: 600;
}

.wk-site-system-icon {
    width: 40px;
    height: 40px;
    border: 2px solid var(--wk-site-blue);
    color: var(--wk-site-blue);
    background: #fff;
    border-radius: 50%;
    position: relative;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wk-site-system-icon::after {
    display: none !important;
}

.wk-site-account-icon {
    font-size: 1rem;
}

.wk-site-account-avatar {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 50%;
}

.wk-site-system-badge {
    position: absolute;
    right: -1px;
    top: -1px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* ==========================================================================
   BUSCADOR + UBICACIÓN EN UNA SOLA FILA
   ========================================================================== */

.wk-site-search-wrapper {
    width: 100%;
    max-width: none;
    margin: 1rem 0 0;
}

.wk-site-search-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
    width: 100%;
}

.wk-site-search-bar {
    flex: 0 0 900px;
    max-width: 900px;
    display: flex;
    align-items: stretch;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    background: #fff;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    margin-left: 0;
}

.wk-site-search-section {
    padding: 0.35rem 0.75rem;
    display: flex;
    align-items: center;
}

.wk-site-search-section input {
    box-shadow: none !important;
    outline: none !important;
    font-size: 0.95rem;
    min-height: 36px;
}

.wk-site-search-results {
    z-index: 100020;
    max-height: 320px;
    overflow-y: auto;
    display: none;
}

.wk-site-search-btn {
    color: var(--wk-site-blue);
    font-size: 1.45rem;
    cursor: pointer;
    padding: 0.35rem 0.65rem;
}

.wk-site-search-btn:hover {
    color: var(--wk-site-orange);
}

.wk-site-scope-label {
    cursor: pointer;
    font-size: 0.9rem;
}

.wk-site-location-bar {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    white-space: nowrap;
    color: var(--color-texto-suave);
}

.wk-site-location-text {
    font-weight: bold;
    color: var(--color-primario);
}

.wk-site-date-text {
    color: var(--color-texto-suave);
    font-weight: 500;
}

.wk-site-separator {
    margin: 0 10px;
    color: var(--color-borde);
}

/* ==========================================================================
   DATEPICKER
   ========================================================================== */

.wk-site-date-input {
    cursor: pointer;
    padding-left: 1.4rem;
}

.wk-site-datepicker-dropdown {
    z-index: 100020;
    min-width: 280px;
    display: none;
}

.wk-site-calendar-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.wk-site-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
    margin-bottom: 0.35rem;
}

.wk-site-weekdays div {
    text-align: center;
    font-size: 0.75rem;
    color: #6c757d;
}

.wk-site-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
}

.wk-site-calendar-day {
    text-align: center;
    padding: 0.45rem 0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
}

.wk-site-calendar-day:hover {
    background: #f1f5f9;
}

.wk-site-calendar-day.disabled {
    color: #cbd5e1;
    pointer-events: none;
    cursor: default;
}

.wk-site-calendar-day.today {
    background: var(--wk-site-blue);
    color: #fff;
    font-weight: 700;
}

.wk-site-calendar-day.selected {
    background: var(--wk-site-orange);
    color: #fff;
    font-weight: 700;
}

/* ==========================================================================
   HAMBURGER EXPANDIDO
   ========================================================================== */

.wk-site-hamburger-menu {
    position: absolute;
    top: 100%;
    left: 1rem;
    width: 310px;
    max-width: calc(100vw - 2rem);
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    padding: 1rem;
    z-index: 100010;
}

.wk-site-menu-section h6 {
    color: var(--wk-site-blue);
}

.wk-site-location-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wk-site-pill {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    background: #fff;
    min-width: 0;
}

.wk-site-city-pill {
    flex: 1 1 58%;
}

.wk-site-country-pill {
    flex: 1 1 42%;
    display: flex;
    align-items: center;
}

.wk-site-pill-select {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0.35rem 1.8rem 0.35rem 0.8rem;
    font-size: 0.85rem;
    appearance: none;
    cursor: pointer;
}

.wk-site-pill-select:focus {
    outline: none;
    box-shadow: none;
}

.wk-site-pill-flag {
    width: 18px;
    height: 13px;
    object-fit: cover;
    margin-left: 0.7rem;
    border-radius: 2px;
}

.wk-site-pill-select-country {
    padding-left: 0.35rem;
}

.wk-site-pill-caret {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wk-site-blue);
    pointer-events: none;
    font-size: 0.75rem;
}

.wk-site-menu-list {
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: left;
}

.wk-site-menu-list li {
    margin-bottom: 0.45rem;
}

.wk-site-menu-list a {
    color: #222;
    text-decoration: none;
    font-size: 0.92rem;
}

.wk-site-menu-list a:hover {
    color: var(--wk-site-blue);
    font-weight: 600;
}

.wk-site-social-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.wk-site-btn-social {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--wk-site-blue);
    background: transparent;
    color: var(--wk-site-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transicion-rapida);
}

.wk-site-btn-social:hover {
    border-color: var(--wk-site-orange);
    color: var(--wk-site-orange);
    transform: translateY(-2px);
}

/* ==========================================================================
   SPINNER
   ========================================================================== */

.wk-site-spinner {
    display: none;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 100020;
}

.wk-site-spinner .spinner-border {
    width: 1rem;
    height: 1rem;
}

/* ==========================================================================
   RESPONSIVE TABLET
   ========================================================================== */

@media (max-width: 1199.98px) {
    :root {
        --wk-site-menu-height: 146px;
    }

    .wk-site-navbar {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .wk-site-logo-container {
        min-width: 220px;
        gap: 0.45rem;
    }

    .wk-site-main-nav {
        gap: 0.12rem;
    }

    .wk-site-nav-link {
        font-size: 0.84rem;
        padding-left: 0.42rem !important;
        padding-right: 0.42rem !important;
    }

    .wk-site-brand-logo {
        height: 46px;
    }

    .wk-site-menu-icon {
        width: 3rem;
        height: 3rem;
    }

    .wk-site-right-actions {
        min-width: 215px;
        gap: 0.65rem !important;
    }

    .wk-site-search-bar {
        flex: 0 0 760px;
        max-width: 760px;
    }

    .wk-site-search-row {
        gap: 1rem;
    }
}

@media (max-width: 991.98px) {
    :root {
        --wk-site-menu-height: 140px;
    }

    .wk-site-main-nav {
        gap: 0;
    }

    .wk-site-nav-link {
        font-size: 0.76rem;
        padding-left: 0.32rem !important;
        padding-right: 0.32rem !important;
    }

    .wk-site-right-actions {
        gap: 0.5rem !important;
    }

    #wkSitePromoteDropdown {
        font-size: 0.82rem;
    }

    .wk-site-language-selector {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    .wk-site-search-bar {
        flex: 0 0 640px;
        max-width: 640px;
    }

    .wk-site-location-bar {
        font-size: 0.78rem;
    }
}