/*
Theme Name: LaPasion Theme
Author: Tú
Description: Tema ultraligero v1.6 (Menú Elegante + Limpieza)
Version: 1.6.0
*/

:root {
    --lp-primary: #d9125e; /* Rosa */
    --lp-dark: #2c2a5f;    /* Azul Oscuro */
    --lp-bg: #fef6ff;
    --lp-text: #333;
    --lp-width: 800px;
    --header-height: 70px;
}

/* === Reset y Base === */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #fff; color: var(--lp-text); padding-top: var(--header-height); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* === CONTENIDO PRINCIPAL (Márgenes ajustados) === */
.site-main { 
    /* 1px arriba/abajo, 5px izquierda/derecha */
    padding: 1px 5px !important; 
    max-width: var(--lp-width); 
    margin: 0 auto; 
}

/* === REGLAS DE OCULTACIÓN (Más agresivas) === */
/* Ocultar Header y Footer en la Home */
body.home .site-header-personalizado,
body.home .site-footer,
body.home footer { display: none !important; }
body.home { padding-top: 0 !important; }

/* Ocultar títulos de páginas */
.site-main > .page-header, 
.page .entry-title,
.archive .page-title { display: none !important; }
.plp-card .plp-name { display: block !important; } /* Títulos de perfiles sí */


/* === HEADER (Barra superior) === */
.site-header-personalizado {
    position: fixed !important; top: 0; left: 0; width: 100%; height: var(--header-height);
    z-index: 99999; 
    background-color: var(--lp-dark) !important; /* Azul oscuro */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: flex; align-items: center; padding: 0 15px;
}
.header-inner { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.site-branding { display: flex; align-items: center; }
.custom-logo { max-height: 45px; width: auto; }
.site-title { font-size: 1.4rem; margin: 0; font-weight: 800; color: #fff; line-height: 1; }
.menu-toggle { background: none; border: none; cursor: pointer; padding: 8px; display: flex; align-items: center; color: #fff; }
.hamburger-icon { display: block; width: 28px; height: 3px; background: currentColor; position: relative; border-radius: 2px;}
.hamburger-icon::before, .hamburger-icon::after { content: ''; position: absolute; left: 0; width: 100%; height: 3px; background: currentColor; transition: 0.3s; border-radius: 2px; }
.hamburger-icon::before { top: -9px; } .hamburger-icon::after { top: 9px; }


/* === MENÚ DESPLEGABLE (Estilo Cristal Elegante) === */
.navegacion-principal { display: none; }

body.mobile-menu-open .navegacion-principal {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    position: fixed; inset: 0; z-index: 999999;
    
    /* FONDO CRISTAL (Glassmorphism) */
    background: rgba(44, 42, 95, 0.9) !important; /* Azul oscuro elegante */
    backdrop-filter: blur(10px); /* Efecto borroso */
    -webkit-backdrop-filter: blur(10px);
}

.navegacion-principal ul { 
    list-style: none; padding: 0; text-align: center; width: 100%; margin: 0; 
}

/* Animación de entrada en cascada */
body.mobile-menu-open .navegacion-principal li {
    opacity: 0;
    transform: translateY(20px);
    animation: menuSlideUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
/* Retrasos para cada elemento */
body.mobile-menu-open .navegacion-principal li:nth-child(1) { animation-delay: 0.1s; }
body.mobile-menu-open .navegacion-principal li:nth-child(2) { animation-delay: 0.2s; }
body.mobile-menu-open .navegacion-principal li:nth-child(3) { animation-delay: 0.3s; }
body.mobile-menu-open .navegacion-principal li:nth-child(4) { animation-delay: 0.4s; }
body.mobile-menu-open .navegacion-principal li:nth-child(5) { animation-delay: 0.5s; }
body.mobile-menu-open .navegacion-principal li:nth-child(6) { animation-delay: 0.6s; }
body.mobile-menu-open .navegacion-principal li:nth-child(7) { animation-delay: 0.7s; }
body.mobile-menu-open .navegacion-principal li:nth-child(8) { animation-delay: 0.8s; }
body.mobile-menu-open .navegacion-principal li:nth-child(9) { animation-delay: 0.9s; }
body.mobile-menu-open .navegacion-principal li:nth-child(10) { animation-delay: 1.0s; }
body.mobile-menu-open .navegacion-principal li:nth-child(11) { animation-delay: 1.1s; }
body.mobile-menu-open .navegacion-principal li:nth-child(12) { animation-delay: 1.2s; }
body.mobile-menu-open .navegacion-principal li:nth-child(13) { animation-delay: 1.3s; }

@keyframes menuSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enlaces del menú */
.navegacion-principal a { 
    color: #fff; 
    font-size: 15px; 
    font-weight: 500; 
    display: inline-block; 
    margin: 15px 0; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    position: relative;
    text-decoration: none;
    transition: color 0.3s;
}

/* Efecto Hover (Línea que se expande) */
.navegacion-principal a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -5px; left: 50%;
    background-color: var(--lp-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.navegacion-principal a:hover::after { width: 100%; }
.navegacion-principal a:hover { color: #ffdce5; text-shadow: 0 0 10px rgba(217, 18, 94, 0.6); }

/* Botón Cerrar (X) Minimalista */
.menu-close {
    position: absolute; top: 30px; right: 30px;
    background: none; border: none; color: #fff;
    font-size: 40px; width: 50px; height: 50px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    line-height: 1; z-index: 100;
    opacity: 0.8; transition: transform 0.3s, opacity 0.3s;
}
.menu-close:hover { transform: rotate(90deg); opacity: 1; }

/* === FOOTER === */
.site-footer { text-align: center; padding: 40px 20px; background: #f9f9f9; color: #666; font-size: 0.8rem; margin-top: 50px; }

/* Grid de anuncios */
.plp-feed-container { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .plp-feed-container { grid-template-columns: 1fr 1fr; } }