@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    /* Default theme colors - these will be overridden by dynamic styles if set */
    --theme-primary-color: #1e40af; /* Tailwind blue-800 */
    --theme-primary-hover-color: #1a368b; /* Slightly darker blue */

    --theme-secondary-color: #e2e8f0; /* Tailwind gray-200 */
    --theme-secondary-hover-color: #cbd5e0; /* Tailwind gray-300 */
    --theme-secondary-text-color: #4a5568; /* Tailwind gray-700 */
    --theme-secondary-hover-text-color: #2d3748; /* Tailwind gray-800 */

    --theme-header-bg: #ffffff;
    --theme-header-text: #333333; /* Default body text color */
    --theme-header-hover-bg: #f0f4f8; /* Light gray */
    --theme-header-hover-text: #1e40af; /* Primary blue */

    --theme-footer-bg: #1f2937; /* Tailwind gray-800 */
    --theme-footer-text: #d1d5db; /* Tailwind gray-300 */
    --theme-footer-hover-text: #ffffff;

    --theme-dropdown-bg-color: #ffffff;
    --theme-dropdown-text-color: #333333;
    --theme-dropdown-hover-bg-color: #f0f4f8;
    --theme-dropdown-hover-text-color: #1e40af;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
}

.hero-pattern {
    background-color: #f8f9fa;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e9ecef' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.transition-all {
    transition: all 0.3s ease;
}

/* Dropdown menu styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 300px;
    /* background-color is applied via the .theme-dropdown-bg class */
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 20;
    padding: 0.5rem 0;
}

.dropdown-menu-right {
    left: auto;
    right: 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Mobile dropdown styles */
.mobile-dropdown-content {
    padding-left: 1rem;
    display: none;
}

.mobile-dropdown-content.active {
    display: block;
}

/* Ajuste para menús con texto largo - REDUCIDO */
.nav-item {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.25rem;
    position: relative;
    margin: 0 0.1rem;
}

/* Separador de menú - REDUCIDO */
.menu-separator {
    display: inline-block;
    width: 1px;
    height: 1.25rem;
    background-color: #e2e8f0;
    margin: 0 0.1rem;
    vertical-align: middle;
}

/* Estilo hover mejorado */
.nav-item:hover {
    background-color: #f0f4f8;
}

/* Indicador activo */
.nav-item.active {
    font-weight: 600;
    color: var(--theme-primary-color);
}

.nav-item.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0.5rem;
    right: 0.5rem;
    height: 2px;
    background-color: var(--theme-primary-color);
    border-radius: 1px;
}

/* Corrección para la sombra del header */
.header-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    width: 100%;
    position: relative;
    z-index: 50;
}

/* Ajuste para menú compacto */
.compact-menu {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

@media (min-width: 1024px) {
    .lg-menu-container {
        justify-content: space-between;
    }
}
/* Custom styles for theme colors */
.tab-button {
    background-color: var(--theme-secondary-color);
    color: var(--theme-primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tab-button:hover,
.tab-button.active {
    background-color: var(--theme-primary-color);
    color: white;
}
