/*
Theme Name: Smilepure Child
Template: smilepure
Author: Tu Nombre
Version: 1.2
Descri
*/

/* === Custom Top Bar - Estilo Desktop (igual que menú principal de Smilepure) === */
.custom-top-bar {
    width: 100%;
    background: #3E6725;
    color: #3F6726;
    padding: 10px 0;
    position: relative;
    z-index: 999;
    font-family: var(--tm-font-family-primary);
}

/* Info Bar - Desktop y Móvil */
.top-bar-info-wrapper {
    text-align: center;
    margin-bottom: 10px;
}

.top-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-info-list .menu-item {
    margin: 0;
}

@media (max-width: 768px) {
    .top-info-list {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}

/* === Menú Top - Estilo Desktop (Horizontal, como el menú principal original) === */
.top-main-nav {
    text-align: center;
}

.top-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.top-menu-list .menu-item {
    position: relative;
}

.top-menu-list .menu-item a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 5px 10px;
    display: block;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.top-menu-list .menu-item a:hover,
.top-menu-list .menu-item.current-menu-item > a {
    color: #F20700;
}

/* Submenús - Estilo Desktop (Dropdown como el original de Smilepure) */
.top-menu-list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff; /* Fondo blanco como el original */
    min-width: 200px;
    padding: 15px 0;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.top-menu-list .menu-item:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-menu-list .sub-menu .menu-item {
    display: block;
    width: 100%;
}

.top-menu-list .sub-menu .menu-item a {
    padding: 10px 20px;
    text-align: left;
    font-size: 14px;
    color: #416721; /* Color de texto oscuro como el original */
    font-weight: 400;
}

.top-menu-list .sub-menu .menu-item a:hover {
    background: #f5f5f5;
    color: #FB0301;
}

/* Ocultar toggle + en desktop */
.toggle-submenu {
    display: none;
    font-weight: bold;
}

/* === Hamburguesa y Menú Móvil === */
.top-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #3E6725;
    cursor: pointer;
    padding: 10px;
    margin: 10px auto;
    display: block;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
}

.top-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: currentColor;
    margin: 5px auto;
    transition: all 0.3s ease;
}

/* Menú Móvil - Oculto por defecto en desktop */
.top-main-nav.mobile-active {
    display: block !important;
}

@media (max-width: 768px) {
    .top-menu-toggle {
        display: block;
    }

    /* Mostrar toggle + solo en móvil */
    .toggle-submenu.mobile-only {
        display: inline;
    }

    /* Ocultar menú horizontal en móvil */
    .top-menu-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #3E6725;
        padding: 20px 0;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    }

    .top-main-nav.mobile-active .top-menu-list {
        display: flex !important;
    }

    .top-menu-list .menu-item {
        width: 100%;
        text-align: center;
        margin: 0;
        position: relative;
    }

    .top-menu-list .menu-item a {
        font-size: 18px;
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #bbb;
    }

    .top-menu-list .menu-item a:hover {
        color: #ddd;
    }

    /* Submenús en móvil */
    .top-menu-list .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #444;
        margin: 0;
        padding: 0;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        border-top: 1px solid #555;
    }

    .top-menu-list .menu-item.active > .sub-menu {
        max-height: 500px;
    }

    .top-menu-list .sub-menu .menu-item a {
        font-size: 16px;
        padding: 12px 20px;
        justify-content: flex-start;
        color: #fff;
    }

    .top-menu-list .sub-menu .menu-item a:hover {
        background: #555;
    }
	
	/* === OCULTAR HAMBURGUESA EN DESKTOP === */
	.top-menu-toggle {
    display: none !important;
	}

	/* Mostrar SOLO en móvil */
	@media (max-width: 768px) {
    .top-menu-toggle {
        display: block !important;
    }
	}
	
	
	
}

