*, *:before, *:after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

:root {
    --white: #FFFFFF;
    --yellow: #FFD000;
    --black: #000000;
    --dark: #121212;
    --border: rgba(0,0,0,0.08);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --cyber-bezier: cubic-bezier(0.23, 1, 0.32, 1);

    --soft-bg: #0a0a0a;
    --border: rgba(0,0,0,0.08);
    --shadow: 0 20px 40px rgba(0,0,0,0.04);

    --grey: #222222;
    --soft-white: #FBFBFB;

}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
}


*:focus{
    outline:none;
}

:where(.wp-site-blocks) > * {
    margin-block-start: 0!important;
    margin-block-end: 0!important;
}

.mo-limit-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

.mo-max-width{
    max-width:1440px;
}
.mo-center, .mx-auto{
    margin-left:auto;
    margin-right:auto;
}



    /* --- HEADER --- */
    .mo-header {
        position: sticky;
        top: 0; left: 0; width: 100%; height: 80px;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        z-index: 9998;
        display: flex;
        align-items: center;
    }
    .admin-bar .mo-header{
        top:46px;
    } 
    @media (min-width:781px){
        .admin-bar .mo-header{
            top:32px;
        }
    }

    .mo-container {
        width: 100%; padding: 0 2rem;
        display: flex; justify-content: space-between; align-items: center;
    }

    .mo-logo {
        position: relative;
        font-weight: 800; font-size: 1.4rem;
        text-decoration: none; color: var(--black);
        letter-spacing: -1px; z-index: 9998;
    }
    .mo-logo span { color: var(--yellow); }
    .mo-logo img{
        width:160px;
        height:auto;
        margin-top:12px;
    }

    /* --- NAVEGACIÓN --- */
    .mo-nav-menu {
        display: flex;
        gap: 2rem;
        list-style: none;
    }

    .mo-nav-item { position: relative; }

    /* Clase base para todos los links del nav */
    .mo-nav-link {
        text-decoration: none; color: var(--black);
        font-size: 0.8rem; font-weight: 700;
        text-transform: uppercase; padding: 10px 0;
        display: flex; align-items: center; gap: 8px;
        cursor: pointer;
        transition: color 0.3s ease;
    }
    
    .mo-nav-link:hover { color: var(--yellow); }

    /* --- SUBMENÚ: DESKTOP (Cyber-Luxury) --- */
    @media (min-width: 993px) {
        .mo-submenu-wrapper {
            position: absolute;
            top: 100%; left: 0;
            min-width: 240px;
            z-index: 10;
            display: block;
            opacity: 0;
            visibility: hidden;
            transform: translateY(12px) scale(0.96);
            transition: 
                opacity 0.4s ease, 
                transform 0.4s var(--cyber-bezier), 
                visibility 0.4s;
            pointer-events: none;
        }

        .mo-nav-item:hover .mo-submenu-wrapper {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
            pointer-events: auto;
        }

        .mo-submenu {
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 1.2rem;
            border-radius: 14px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.3);
        }

        .mo-nav-item:hover .mo-dropdown-icon { 
            transform: rotate(180deg); 
            color: var(--yellow); 
        }
    }

    /* --- SUBMENÚ: MÓVIL (Acordeón Grid) --- */
    @media (max-width: 992px) {
        /* Link que TIENE dropdown: justify space-between */
        .mo-nav-link.mo-has-dropdown {
            justify-content: space-between;
            width: 100%;
        }

        /* Link NORMAL: alineado a la izquierda con gap normal */
        .mo-nav-link.mo-is-direct {
            justify-content: flex-start;
        }

        .mo-submenu-wrapper {
            display: grid;
            grid-template-rows: 0fr;
            transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
        }

        .mo-submenu-wrapper.mo-open {
            grid-template-rows: 1fr;
        }

        .mo-submenu {
            background: transparent;
            padding: 0 0 15px 15px;
        }
    }

    .mo-submenu-container { min-height: 0; }

    .mo-submenu-link {
        display: flex; align-items: center; gap: 12px;
        color: rgba(255,255,255,0.7); text-decoration: none;
        font-size: 0.85rem; padding: 10px;
        border-radius: 8px; transition: 0.2s;
    }

    @media (max-width: 992px) {
        .mo-submenu-link { color: #666; font-size: 1rem; padding: 12px 0; }
    }

    .mo-submenu-link:hover { background: rgba(255,255,255,0.1); color: var(--yellow); }

    .mo-dropdown-icon { transition: var(--transition); font-size: 0.7rem; color: #888; }

    /* --- UI ELEMENTS --- */
    .mo-menu-toggle {
        position: relative;
        display: none; font-size: 1.5rem;
        background: none; border: none; cursor: pointer;
        z-index: 9999; color: var(--black);
    }

    .mo-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.4); opacity: 0; visibility: hidden;
        transition: var(--transition); z-index: 9997;
        backdrop-filter: blur(4px);
    }

    @media (max-width: 992px) {
        .mo-menu-toggle { display: block; }
        .mo-overlay.mo-active { opacity: 1; visibility: visible; }

        .mo-nav-menu {
            position: fixed; top: 0; right: -100%;
            width: 85%; max-width: 350px; height: 100vh;
            background: var(--white);
            flex-direction: column;
            padding: 100px 30px;
            z-index: 9998;
            overflow-y: auto;
            box-shadow: -15px 0 40px rgba(0,0,0,0.1);
            transition: right 0.5s var(--cyber-bezier);
        }

        .mo-nav-menu.mo-active { right: 0; }
        .mo-nav-item { width: 100%; border-bottom: 1px solid var(--border); }
        .mo-nav-link { font-size: 1.2rem; font-weight: 800; padding: 22px 0; }
    }

    .mo-dummy-content { margin: 120px auto; max-width: 800px; padding: 2rem; }


/* --- ESTILOS ESPECIALES FAVORITOS --- */
.mo-is-favourite {
    transition: color 0.3s ease !important;
}

.mo-icon-heart {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mo-is-favourite:hover {
    color: #ff4757 !important; /* Color coral/rojo para favoritos */
}

.mo-is-favourite:hover .mo-icon-heart {
    transform: scale(1.3);
    color: #ff4757;
}

/* --- ESTILOS ÁREA DE USUARIO --- */
.mo-user-name {
    background: var(--yellow);
    color: var(--black);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
}

.mo-divider {
    border: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 8px 0;
}

.mo-logout:hover {
    color: #ff4757 !important;
    background: rgba(255, 71, 87, 0.1) !important;
}

/* --- LÓGICA DE VISIBILIDAD (Para tu Backend) --- */
/* Por defecto ocultamos el logueado, tú activarás uno u otro */
.mo-user-logged { display: none; } 

@media (max-width: 992px) {
    .mo-user-name {
        font-size: 1rem;
        padding: 5px 15px;
    }
}
/* --- UTILIDADES DE VISIBILIDAD --- */
.mo-text-mobile-only { display: none; }

@media (max-width: 992px) {
    .mo-text-mobile-only { display: inline; }
}

/* --- FAVORITOS (Desktop: solo icono) --- */
@media (min-width: 993px) {
    .mo-is-favourite {
        padding: 10px 12px;
    }
}

/* --- BOTÓN ACCEDER (Inspiración Moderna) --- */
.mo-auth-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px !important;
    border: 1.5px solid var(--black);
    border-radius: 50px;
    transition: all 0.3s var(--cyber-bezier) !important;
}

.mo-auth-icon-wrapper {
    width: 24px;
    height: 24px;
    background: var(--dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.mo-auth-btn:hover {
    background: var(--black);
    color: var(--white) !important;
}

.mo-auth-btn:hover .mo-auth-icon-wrapper {
    background: var(--yellow);
    color: var(--black);
    transform: scale(1.1);
}

/* --- AVATAR LOGUEADO --- */
.mo-user-profile-link {
    gap: 12px !important;
}

.mo-avatar-wrapper {
    width: 32px;
    height: 32px;
    position: relative;
}

.mo-avatar-circle {
    width: 100%;
    height: 100%;
    background: var(--yellow);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1px var(--border);
}

/* --- AJUSTES MÓVIL --- */
@media (max-width: 992px) {
    .mo-auth-btn {
        border: none;
        padding: 22px 0 !important;
        border-radius: 0;
        width: 100%;
        justify-content: flex-start;
    }
    
    .mo-auth-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .mo-auth-text {
        font-size: 1.2rem;
        font-weight: 800;
    }

    .mo-user-profile-link {
        padding: 15px 0 !important;
    }

    .mo-avatar-circle {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}


:root {
    --white: #FFFFFF;
    --yellow: #FFD000;
    --black: #000000;
    --dark: #121212;
    --gray-soft: #f8f8f8;
    --border-color: #e0e0e0;
}

.search-wrapper-mo {
    display: flex;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px; /* Bordes ligeramente redondeados para modernidad */
    overflow: hidden;
    transition: all 0.2s ease-in-out;
    max-width: 650px;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

/* Efecto cuando el usuario hace clic para escribir */
.search-wrapper-mo:focus-within {
    border-color: var(--black);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.input-group-mo {
    display: flex;
    align-items: center;
    flex-grow: 1;
    padding-left: 18px;
}

.search-icon-mo {
    width: 18px;
    height: 18px;
    color: #999;
    flex-shrink: 0;
}

.search-input-mo {
    width: 100%;
    border: none;
    padding: 16px 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    outline: none;
    background: transparent;
}

/* Estilo del Botón */
.search-button-mo {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 0 32px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-button-mo:hover {
    background: var(--yellow);
    color: var(--black);
}

/* Corregir el texto plano en el título */
.page-title-mo .highlight-mo {
    color: var(--yellow) !important;
    font-weight: 900;
    display: inline; /* Asegura que no se comporte como bloque */
}