/*
Theme Name: FOMPlay
Theme URI: https://fomplay.com
Author: @ollorente
Author URI: https://fomplay.com
Description: Theme personalizado y optimizado para el blog de FOMPlay.
Version: 1.0
Text Domain: fomplay
*/
.fom-card-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Ocultar completamente el menú personalizado en pantallas de escritorio */
@media (min-width: 1025px) {
    #custom-menu-responsive,
    .menu-overlay {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Mantener tu CSS actual dentro de este media query para móviles */
@media (max-width: 1024px) {
    .menu-overlay {
        display: flex; /* O el estilo que prefieras */
        /* ... resto de tu CSS de móvil ... */
    }
}
/* --- Estructura General del Panel --- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background: #212121;
    z-index: 99999999 !important;
    transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    padding: 20px 25px; /* Más aire lateral */
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.menu-overlay.is-open { left: 0; }
body.menu-active { overflow: hidden !important; }

.menu-header {
    display: flex;
    justify-content: flex-end;
    padding: 10px 0 20px 0;
}

.close-btn {
    font-size: 35px;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    color: #fff !important;
}

/* --- Estilos de Lista y Navegación --- */
.mobile-nav-list, .sub-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* NIVEL 1: Soluciones, Plataforma, etc. */
.level-1 { border-bottom: 1px solid #565656; }

.level-1 > a {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0; /* Espaciado Skello */
}

/* Color verde para el primer item (Soluciones) */
.level-1:first-child > a { color: #ccff00; }

/* Indicador Flecha Abajo para Nivel 1 */
.level-1.menu-item-has-children > a::after {
    content: '▾';
    font-size: 20px;
    transition: transform 0.3s;
    color: #ccc;
}
.level-1.is-open > a::after { transform: rotate(180deg); color: #fff; }

/* NIVEL 2: Planificación, Seguimiento... */
.level-2 { padding: 5px 0 10px 20px; } /* Sangría para submenú */

.level-2 > li > a {
    font-size: 19px;
    font-weight: 600;
    color: #eaeaea;
    text-decoration: none;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Indicador Flecha Lateral para Nivel 2 */
.level-2.menu-item-has-children > a::after {
    content: '›';
    font-size: 24px;
    color: #3b71fe;
}

/* NIVEL 3: Enlaces finales */
.level-3 { padding-left: 20px; padding-bottom: 15px; }

.level-3 li a {
    font-size: 16px;
    color: #4A4A4A;
    font-weight: 400;
    padding: 10px 0;
    display: block;
    text-decoration: none;
}

/* --- Lógica de Acordeón --- */
.sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.is-open > .sub-menu {
    max-height: 2500px; /* Permitir desplegar mucho contenido */
}

/* --- Botones Inferiores --- */
.menu-buttons {
    margin-top: auto;
    padding: 30px 0 50px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-primary {
    background: #ccff00 !important;
    color: #000 !important;
    text-align: center;
    padding: 18px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
}

.btn-secondary {
    background: #f4f4f4 !important; /* Estilo Skello gris suave */
    border: none !important;
    color: #1A1A1A !important;
    text-align: center;
    padding: 18px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
}

/* Trigger de Hamburguesa (Solo por si lo necesitas retocar) */
.mobile-trigger {
    width: 35px;
    height: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}
.mobile-trigger span {
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
}
