/* ========================================
   HEADER CLINICANIMAL - ESTILOS CSS PUROS
   Basado en diseño Figma
   ======================================== */

/* Variables CSS */
:root {
    --primary-color: #1B73E8;
    --secondary-color: #2C3E50;
    --text-color: #333333;
    --text-light: #666666;
    --text-white: #FFFFFF;
    --border-color: #E5E5E5;
    --background-color: #FFFFFF;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Fuentes Montserrat cargadas localmente via fonts.css */

/* Reset y base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
}

#wpadminbar .ab-empty-item, #wpadminbar a.ab-item, #wpadminbar>#wp-toolbar span.ab-label, #wpadminbar>#wp-toolbar span.noticon{
    color: #f0f0f1 !important;
}
/* ========================================
   TOPBAR
   ======================================== */

.header-topbar {
    background-color: #FFFFFF;
    padding: 12px 0;
    border-bottom: 1px solid #E5E5E5;
}

.topbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #264067;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
}

.topbar-item:hover {
    color: #0A9BC7 !important;
}

.topbar-item:visited {
    color: #264067 !important;
}

.topbar-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.topbar-text {
    font-size: 16px;
    line-height: 1.4;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.topbar-link {
    color: #264067 !important;
    text-decoration: none !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
}

.topbar-link:hover {
    color: #0A9BC7 !important;
}

.topbar-link:visited {
    color: #264067 !important;
}

.topbar-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.topbar-search-toggle:hover {
    opacity: 0.7;
    background:none;
}

.topbar-search-icon {
    width: 24px;
    height: 24px;
}

/* ========================================
   HEADER PRINCIPAL
   ======================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10000;
    width: 100%;
    overflow: visible;
}

.header-main {
    background-color: #264067;
    padding: 16px 0;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* ========================================
   LOGO SECTION
   ======================================== */

.header-logo {
    flex: 0 0 auto;
    min-width: 180px;
}

.custom-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.custom-logo-link:hover {
    opacity: 0.8;
}

.custom-logo {
    height: 45px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    cursor: pointer;
}

/* ========================================
   NAVIGATION MENU
   ======================================== */

.main-navigation {
    flex: 1 !important;
    display: flex !important;
    justify-content: center !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.nav-menu {
    display: flex !important;
    align-items: center !important;
    gap: 52px !important;
    justify-content: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.nav-menu li {
    position: relative;
}

.site-header .nav-menu a,
.site-header .nav-menu li a,
.site-header .menu-item a {
    color: #FFFFFF !important;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 0;
    display: block;
}

.site-header .nav-menu a:hover,
.site-header .nav-menu li a:hover,
.site-header .menu-item a:hover {
    color: #FFFFFF !important;
    opacity: 0.8;
}


/* ========================================
   ACTION BUTTONS - REMOVED
   ======================================== */

/* ========================================
   MOBILE MENU
   ======================================== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    gap: 6px;
    padding: 8px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover .hamburger-line {
    opacity: 0.7;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #264067;
    z-index: 10001;
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #FFFFFF;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    opacity: 0.7;
}

.mobile-menu-content {
    flex: 1;
    /*padding: 20px;*/
    overflow-y: auto;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    margin-bottom: 8px;
}

.mobile-menu .mobile-nav-menu a {
    display: block;
    padding:16px 12px;
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.mobile-menu .mobile-nav-menu a:hover {
    color: #FFFFFF;
    opacity: 0.7;
}

.mobile-menu-bottom {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
}

.mobile-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #264067 !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    padding: 12px 8px;
    transition: all 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    min-height: 80px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: none;
}

.mobile-bottom-item:hover {
    background-color: rgba(38, 64, 103, 0.1);
    border-radius: 8px;
}

.mobile-bottom-item img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: block;
}

.mobile-bottom-item span {
    color: #264067 !important;
    line-height: 1.2;
    word-wrap: break-word;
    max-width: 100%;
    display: block;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.mobile-bottom-link,
.mobile-bottom-search {
    color: #264067 !important;
}

.mobile-bottom-link span,
.mobile-bottom-search span {
    color: #264067 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ========================================
   SEARCH OVERLAY
   ======================================== */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10002;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-overlay-content {
    width: 90%;
    max-width: 600px;
    position: relative;
}

.search-overlay-close {
    position: absolute;
    top: -80px;
    right:-10px;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 48px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.search-overlay-close:hover {
    opacity: 0.7;
    background:none;
}

.search-form-overlay {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 50px;
    overflow: hidden;
}

.search-input-overlay {
    flex: 1;
    padding: 20px 30px;
    border: none;
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
}

.search-button-overlay {
    background: #264067;
    border: none;
    padding: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-button-overlay:hover {
    background: #0A9BC7;
}

.search-button-overlay img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

#tpbr_box{
    font-weight: 600 !important;
}
/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .topbar-left {
        gap: 20px;
    }
    
    .topbar-right {
        gap: 20px;
    }
    
    .topbar-text,
    .topbar-link {
        font-size: 14px;
    }
    
    .header-container {
        padding: 0 20px;
    }
    
    .custom-logo {
        height: 40px;
    }
    
    .nav-menu {
        gap: 24px;
    }
    
    .nav-menu a {
        font-size: 15px;
    }
    #tpbr_box{
        display:none !important;
    }
}

/* Mobile */
@media (max-width: 1024px) {
    .header-topbar {
        display: none;
    }
    
    .site-header {
        background-color: #264067;
    }
    
    .header-main {
        padding: 12px 0;
        background-color: #264067;
    }
    
    .header-container {
        padding: 0 16px;
    }
    
    .custom-logo {
        height: 35px;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    .mobile-menu-toggle:hover {
        background:transparent;
        border:none;
    }
    .sub-menu{
        margin:0;
    }
    .mobile-menu .mobile-nav-menu .sub-menu a{
        padding-left: 35px;
    }
	.mobile-menu .mobile-nav-menu .sub-menu > li > .sub-menu > li > a{
        padding-left: 55px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .header-container {
        padding: 0 12px;
    }
    
    .header-content {
        height: 56px;
        gap: 16px;
    }
    
    .header-logo {
        min-width: 100px;
    }
    
    .custom-logo {
        height: 32px;
    }
}

/* ========================================
   ANIMACIONES Y EFECTOS
   ======================================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-header {
    animation: fadeInDown 0.5s ease-out;
}

/* ========================================
   ACCESIBILIDAD
   ======================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Focus visible para navegación por teclado */
.action-button:focus-visible,
.mobile-menu-toggle:focus-visible,
.mobile-action-button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
   UTILIDADES
   ======================================== */

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}
