﻿
.main-header {
    background: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid #e6e6e6;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
}

.header-inner {
    max-width: 1250px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
}

.header-logo img {
    height: 70px;
    transition: transform 0.2s ease;
}

.header-logo img:hover {
    transform: scale(1.05);
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.header-nav ul li a {
    text-decoration: none;
    color: #5d6d36;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: 0.25s ease;
    position: relative;
}

.header-nav ul li a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -3px;
    height: 2px;
    width: 0%;
    background: #7b8f44;
    transition: width 0.25s ease;
}

.nav-authenticated ul li a::after {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.header-nav ul li a:hover {
    color: #7b8f44;
}

.header-nav ul li a:hover::after {
    width: 100%;
}

.header-nav ul li.dropdown {
    position: relative;
}

.dropdown-btn {
    background: #4b5563;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-btn:hover {
    background: #1f2937;
    transform: translateY(-1px);
}

.dropdown-btn i {
    font-size: 18px;
}

.dropdown-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-width: 300px;
    visibility: hidden;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 200;
    border: 1px solid #e7f2d8;
}

.dropdown.open .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu.closing {
    animation: dropdownClose 0.3s ease-out forwards;
}

@keyframes dropdownClose {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
        visibility: hidden;
    }
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 35px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
}

.mobile-menu-btn span {
    height: 3px;
    width: 100%;
    background: #4b5563;
    border-radius: 4px;
    transition: 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 84px;
    right: 0;
    width: 70%;
    height: calc(100vh - 70px);
    background: #ffffff;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: 0.3s ease;
    z-index: 150;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mobile-menu ul li a,
.mobile-menu ul li button {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-decoration: none;
    color: #4b5563;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.5px;
    display: block;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 10px 0;
    cursor: pointer;
}

.mobile-menu ul li a:hover {
    color: #7b8f44;
}

.mobile-menu .menu-separator {
    height: 1px;
    background: #e2e8f0;
    margin: 12px 20px;
    display: block;
}

.footer {
    background: #ffffff;
    color: #5d6d36;
    padding: 50px 20px 20px;
    border-top: 2px solid #dce5c7;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
}

.footer-section h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #5d6d36;
}

.footer-section p {
    color: #6f7f49;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin: 8px 0;
}

.footer-section ul li a {
    color: #5d6d36;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background: #8ba45b;
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: #8ba45b;
}

.footer-section ul li a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.social {
    width: 48px;
    height: 48px;
    background: #f0f4e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    text-decoration: none;
    transition: 0.3s;
}

.social i {
    color: #5d6d36;
    transition: 0.3s;
}

.social:hover {
    background: #e7f2d8;
    transform: translateY(-4px);
}

.social.fb:hover i {
    color: #1877F2;
}

.social.ig:hover i {
    color: #E4405F;
}

.social.wa:hover i {
    color: #25D366;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 20px;
    border-top: 1px solid #dce5c7;
}

.footer-bottom p {
    color: #7c8a52;
    font-size: 0.9rem;
}

.footer-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-titulo {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-slogan {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

@media(max-width: 900px) {
    .header-nav ul {
        gap: 18px;
    }

    .dropdown-btn {
        padding: 8px 12px;
    }

    .header-logo img {
        height: 60px;
    }
}

@media(max-width: 768px) {
    .header-nav {
        display: none;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .sidebar {
        width: 70%;
        top: 70px;
        height: calc(100vh - 70px);
        left: -100%;
    }
}

@media(max-width: 500px) {
    .sidebar {
        width: 80%;
    }
}

.desktop-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 1100;
    position: relative;
}

.desktop-menu-btn span {
    display: block;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s;
}

.desktop-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.desktop-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.desktop-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.desktop-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1050;
    transition: opacity 0.3s;
}

.desktop-menu {
    position: fixed;
    top: -100%;
    right: 0;
    width: 250px;
    height: 100%;
    background: #fff;
    padding-top: 60px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: top 0.3s;
    z-index: 1100;
}

.desktop-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.desktop-menu ul li {
    padding: 15px 20px;
}

.desktop-menu ul li a,
.desktop-menu ul li button {
    display: block;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.desktop-menu ul li a:hover,
.desktop-menu ul li button:hover {
    background: #f0f0f0;
}

.menu-separator {
    height: 1px;
    background: #e2e8f0;
    margin: 12px 20px;
    display: block;
}

.desktop-menu.open {
    top: 0;
}

.desktop-menu-overlay.open {
    display: block;
}

@media (min-width: 992px) {
    .desktop-menu-btn {
        display: flex;
    }
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    
    color: #5d6d36;
    
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background-color: #f0f0f0;
    
    color: #5d6d36;
    
}

.dropdown-header {
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 8px 8px 0 0;
}

.user-name {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 4px;
}

.user-email {
    display: block;
    font-size: 12px;
    color: var(--text-medium);
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0;
}

.dropdown-menu a,
.dropdown-menu .logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dropdown-menu a:hover,
.dropdown-menu .logout-btn:hover {
    background: #f3f4f6;
    color: var(--primary);
}

.dropdown-menu a i,
.dropdown-menu .logout-btn i {
    width: 16px;
    text-align: center;
    color: var(--primary);
}

.logout-btn {
    font-family: inherit;
}

.logout-btn:hover i {
    color: var(--danger);
}

.mobile-user-info {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #f9fafb;
    border-radius: 8px;
    margin: 8px 0;
}

.mobile-user-info i {
    font-size: 32px;
    color: var(--primary);
}

.mobile-user-info div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-user-info strong {
    font-size: 14px;
    color: var(--text-dark);
}

.mobile-user-info small {
    font-size: 12px;
    color: var(--text-medium);
}

.mobile-menu a,
.mobile-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

.icon-btn .fa-user-circle {
    font-size: 20px;
}

.admin-indicator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

.admin-indicator i {
    font-size: 0.85rem;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }

    50% {
        box-shadow: 0 2px 12px rgba(102, 126, 234, 0.6);
    }
}

.admin-top-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 0;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-top-bar i {
    margin-right: 8px;
}

body.admin-mode .main-header {
    position: sticky;
    top: 0;
}

.admin-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 8px;
}

.dropdown-hover {
    position: relative;
}

.dropdown-categorias {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.dropdown-hover:hover .dropdown-categorias {
    opacity: 1;
    visibility: visible;
    margin-top: 16px;
}

.dropdown-hover.submenu-active .dropdown-categorias {
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 16px !important;
    transition: none !important;
    animation: none !important;
}

.dropdown-hover.submenu-active:hover .dropdown-categorias {
    opacity: 1 !important;
    visibility: visible !important;
    margin-top: 16px !important;
    transition: none !important;
    animation: none !important;
}

.dropdown-categorias-content {
    padding: 12px;
    max-height: 420px;
    overflow-y: auto;
}

.dropdown-categorias-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-categorias-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dropdown-categorias-content::-webkit-scrollbar-thumb {
    background: #8aa13e;
    border-radius: 10px;
}

.dropdown-categorias-content::-webkit-scrollbar-thumb:hover {
    background: #5d6d36;
}

.categoria-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    color: #2d3319;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    margin-bottom: 4px;
}

.categoria-item-wrapper {
    position: relative;
}

.categoria-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.categoria-arrow {
    opacity: 0.6;
    transition: all 0.25s;
}

.categoria-item.has-subcategorias:hover .categoria-arrow {
    opacity: 1;
    transform: translateX(2px);
}

.categoria-item:hover {
    background: linear-gradient(135deg, rgba(138, 161, 62, 0.12), rgba(93, 109, 54, 0.08));
    color: #5d6d36;
    transform: translateX(6px);
    box-shadow: 0 2px 8px rgba(93, 109, 54, 0.1);
}

.categoria-nombre {
    font-weight: 500;
    flex: 1;
}

.categoria-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    background: #e8f5e9;
    color: #5d6d36;
    font-size: 13px;
    font-weight: 700;
    border-radius: 16px;
    transition: all 0.25s;
}

.categoria-item:hover .categoria-count {
    background: #5d6d36;
    color: white;
    transform: scale(1.1);
}

.subcategorias-submenu {
    position: fixed;
    min-width: 250px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    overflow: hidden;
}

.subcategorias-submenu.active {
    opacity: 1;
    visibility: visible;
}

.subcategorias-submenu-content {
    padding: 8px;
    max-height: 350px;
    overflow-y: auto;
    overflow-x: visible;
}

.subcategorias-submenu-content::-webkit-scrollbar {
    width: 5px;
}

.subcategorias-submenu-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.subcategorias-submenu-content::-webkit-scrollbar-thumb {
    background: #8aa13e;
    border-radius: 10px;
}

.subcategorias-submenu-content::-webkit-scrollbar-thumb:hover {
    background: #5d6d36;
}

.subcategoria-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    color: #2d3319;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    margin-bottom: 3px;
    position: relative;
}

.subcategoria-item::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    height: 2px;
    width: 0%;
    background: #8aa13e;
    transition: width 0.25s ease;
    border-radius: 0 0 8px 8px;
}

.subcategoria-item:hover {
    background: linear-gradient(135deg, rgba(138, 161, 62, 0.15), rgba(93, 109, 54, 0.1));
    color: #5d6d36;
    transform: translateX(4px);
}

.subcategoria-item:hover::after {
    width: 100%;
}

.subcategoria-nombre {
    font-weight: 500;
    flex: 1;
}

.subcategoria-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    background: #e8f5e9;
    color: #5d6d36;
    font-size: 12px;
    font-weight: 700;
    border-radius: 14px;
    transition: all 0.2s;
}

.subcategoria-item:hover .subcategoria-count {
    background: #5d6d36;
    color: white;
    transform: scale(1.08);
}

.ver-mas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    margin-top: 8px;
    color: #5d6d36;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    background: linear-gradient(135deg, rgba(93, 109, 54, 0.08), rgba(138, 161, 62, 0.08));
    border-radius: 10px;
    border: 2px dashed rgba(93, 109, 54, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ver-mas:hover {
    background: linear-gradient(135deg, #5d6d36, #8aa13e);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 109, 54, 0.3);
}

.ver-mas svg {
    transition: transform 0.3s;
}

.ver-mas:hover svg {
    transform: translateX(4px);
}

.no-categorias {
    padding: 24px;
    text-align: center;
    color: #888;
    font-size: 14px;
    font-style: italic;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.dropdown-hover:hover .dropdown-categorias {
    animation: slideDown 0.3s ease forwards;
}

@media (max-width: 1024px) {
    .dropdown-categorias {
        display: none !important;
    }
}

body.admin-mode .categoria-count {
    background: #e8eaf6;
    color: #667eea;
}

body.admin-mode .categoria-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.08));
    color: #667eea;
}

body.admin-mode .categoria-item:hover .categoria-count {
    background: #667eea;
    color: white;
}

body.admin-mode .ver-mas {
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border-color: rgba(102, 126, 234, 0.25);
}

body.admin-mode .ver-mas:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.mobile-menu-btn {
    display: none;
    
}

.mobile-menu {
    display: none;
    
}

@media (max-width: 768px) {

    
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .mobile-menu-btn span {
        width: 100%;
        height: 3px;
        background-color: #333;
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        padding-top: 60px;
    }

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

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

    .mobile-menu ul li {
        
    }

    .mobile-menu ul li a,
.mobile-menu ul li button {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
        display: block;
        padding: 15px 20px;
        color: #333;
        text-decoration: none;
        font-weight: 500;
        transition: background-color 0.2s;
        width: 100%;
        text-align: left;
        background: none;
        border: none;
        font-size: 16px;
        cursor: pointer;
    }

    .mobile-menu ul li a:hover,
    .mobile-menu ul li button:hover {
        background-color: #f5f5f5;
    }

    .menu-separator {
    height: 1px;
    background: #e2e8f0;
    margin: 12px 20px;
    display: block;
}

    
    .header-nav {
        display: none;
    }
}

@media (min-width: 769px) {
    .header-nav {
        display: block;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

body.admin-mode .dropdown-categorias-content::-webkit-scrollbar-thumb {
    background: #667eea;
}

body.admin-mode .dropdown-categorias-content::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

body.admin-mode .dropdown-categorias .categoria-count {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

body.admin-mode .dropdown-categorias .categoria-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.08));
    color: #667eea;
}

body.admin-mode .dropdown-categorias .categoria-item:hover .categoria-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

body.admin-mode .dropdown-categorias .ver-mas {
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border-color: rgba(102, 126, 234, 0.25);
}

body.admin-mode .dropdown-categorias .ver-mas:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

body.admin-mode .dropdown-categorias .categoria-item {
    color: #667eea;
}

body.admin-mode .dropdown-categorias .categoria-nombre {
    color: #667eea;
}

body.admin-mode .dropdown-categorias .categoria-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.08));
    color: #764ba2;
}

body.admin-mode .dropdown-categorias .categoria-item:hover .categoria-nombre {
    color: #764ba2;
}

body.admin-mode .footer {
    border-top: 2px solid #e8eaf6;
}

body.admin-mode .footer-section h4 {
    color: #667eea;
}

body.admin-mode .footer-section ul li a {
    color: #667eea;
}

body.admin-mode .footer-section ul li a::after {
    background: #764ba2;
}

body.admin-mode .footer-section ul li a:hover {
    color: #764ba2;
}

body.admin-mode .social {
    background: rgba(102, 126, 234, 0.1);
}

body.admin-mode .social i {
    color: #667eea;
}

body.admin-mode .social:hover {
    background: rgba(102, 126, 234, 0.2);
}

body.admin-mode .social.fb:hover i {
    color: #1877F2;
}

body.admin-mode .social.ig:hover i {
    color: #E4405F;
}

body.admin-mode .social.wa:hover i {
    color: #25D366;
}

body.admin-mode .footer-bottom {
    border-top: 1px solid #e8eaf6;
}

body.admin-mode .footer-bottom p {
    color: #8891c7;
}

body.admin-mode .footer-slogan {
    color: #8891c7;
}

body.admin-mode .subcategorias-submenu-content::-webkit-scrollbar-thumb {
    background: #667eea;
}

body.admin-mode .subcategorias-submenu-content::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

body.admin-mode .subcategoria-item {
    color: #667eea;
}

body.admin-mode .subcategoria-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.1));
    color: #764ba2;
}

body.admin-mode .subcategoria-nombre {
    color: #667eea;
}

body.admin-mode .subcategoria-item:hover .subcategoria-nombre {
    color: #764ba2;
}

body.admin-mode .subcategoria-count {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

body.admin-mode .subcategoria-item:hover .subcategoria-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

body.admin-mode .categoria-arrow {
    color: #667eea;
}

body.admin-mode .subcategoria-item::after {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);

    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {

    
    .mobile-menu {
        position: fixed !important;
        top: 0;
        right: 0;
        height: 100vh !important;
        width: 85%;
        max-width: 320px;
        background: white;
        z-index: 10000;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    }

    .mobile-menu.open {
        transform: translateX(0);
    }

    
    body.menu-active {
        overflow: hidden;
    }

    
    .mobile-menu::-webkit-scrollbar {
        width: 4px;
    }

    .mobile-menu::-webkit-scrollbar-track {
        background: transparent;
    }

    .mobile-menu::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 10px;
    }

    .mobile-menu::-webkit-scrollbar-thumb:hover {
        background: #ccc;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .min-h-screen {
        overflow-x: hidden;
    }
}

.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.mobile-menu-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-close svg {
    stroke: #333;
}

@media (max-width: 768px) {
    .main-header {
        position: relative;
        z-index: 9997;
    }
}

.mobile-menu-header {
    padding: 24px 20px 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
}

.mobile-menu-greeting {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 4px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mobile-menu-subtitle {
    font-size: 14px;
    color: #718096;
    margin: 0;
    font-weight: 400;
}

.admin-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px;
    margin: 0 16px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.admin-badge svg {
    stroke: white;
}

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

.mobile-menu-list li {
    margin: 0;
}

.mobile-menu-list li a,
.mobile-menu-list li .logout-button {
    display: flex;    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    color: #2d3748;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.mobile-menu-list li a:hover,
.mobile-menu-list li .logout-button:hover {
    background: #f7fafc;
    color: #5d6d36;
}

.mobile-menu-list li a svg,
.mobile-menu-list li .logout-button svg {
    stroke: #718096;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.mobile-menu-list li a:hover svg,
.mobile-menu-list li .logout-button:hover svg {
    stroke: #5d6d36;
}

.mobile-menu-list li a span,
.mobile-menu-list li .logout-button span {
    flex: 1;
}

.mobile-menu-list li a.admin-link {
    color: #667eea;
    font-weight: 600;
}

.mobile-menu-list li a.admin-link:hover {
    background: #f0f4ff;
    color: #5a67d8;
}

.mobile-menu-list li a.admin-link svg {
    stroke: #667eea;
}

.mobile-menu-list li a.admin-link:hover svg {
    stroke: #5a67d8;
}

.logout-button {
    font-family: inherit;
}

.logout-button:hover {
    background: #fff5f5 !important;
    color: #e53e3e !important;
}

.logout-button:hover svg {
    stroke: #e53e3e !important;
}

.menu-separator {
    height: 1px;
    background: #e2e8f0;
    margin: 12px 20px;
    display: block;
}

.mobile-menu-list li.menu-separator {
    height: 1px;
    background: #e2e8f0;
    margin: 16px 0;
    padding: 0 !important;
    list-style: none;
}

.mobile-menu-list li.menu-separator:hover {
    background: #e2e8f0 !important;
}

.mobile-menu-list li a,
.mobile-menu-list li .logout-button {
    display: flex;    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    color: #4a5568;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    position: relative;
}

.mobile-menu-list li a svg,
.mobile-menu-list li .logout-button svg {
    width: 40px;
    height: 40px;
    padding: 10px;
    background: #f0f7f0;
    border-radius: 50%;
    stroke: #5d6d36;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.mobile-menu-list li a::after {
    content: '';
    position: absolute;
    right: 20px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #cbd5e0;
    border-bottom: 2px solid #cbd5e0;
    transform: rotate(-45deg);
    transition: all 0.2s ease;
}

.mobile-menu-list li .logout-button::after {
    display: none;
}

.mobile-menu-list li a:hover,
.mobile-menu-list li .logout-button:hover {
    background: #f7fafc;
}

.mobile-menu-list li a:hover svg,
.mobile-menu-list li .logout-button:hover svg {
    background: #5d6d36;
    stroke: white;
}

.mobile-menu-list li a:hover::after {
    border-color: #5d6d36;
    right: 16px;
}

.mobile-menu-list li a.admin-link svg {
    background: #eef2ff;
    stroke: #667eea;
}

.mobile-menu-list li a.admin-link:hover svg {
    background: #667eea;
    stroke: white;
}

.logout-button svg {
    background: #fff5f5 !important;
    stroke: #e53e3e !important;
}

.logout-button:hover svg {
    background: #e53e3e !important;
    stroke: white !important;
}
