/* 1. ELIMINAR BARRA DE ADMINISTRACIÓN (REFORZADO) */
#wpadminbar, .ab-sub-wrapper {
    display: none !important;
}

html {
    margin-top: 0 !important;
}

/* 2. SOLUCIÓN AL TEMBLOR (ELIMINAR JITTER) */
/* Aplicamos esto a todo el sitio para que el scroll sea sólido */
html, body {
    overflow-x: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* 3. TU ENCABEZADO STICKY (ESTABILIZADO) */
.mi-encabezado-sticky {
    position: fixed !important; /* Cambiamos a FIXED para que no dependa del flujo del scroll */
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100% !important;
    z-index: 99999 !important;
    background-color: #ffffff;
    
    /* Hardware Acceleration: Esto detiene el temblor */
    transform: translate3d(0, 0, 0) !important;
    will-change: transform;
}

/* 4. COMPENSACIÓN PARA EL CONTENIDO (Para que el sticky no tape el inicio) */
body {
    padding-top: 80px !important; /* Ajusta este valor según la altura de tu logo/menú */
}

/* 5. CONFIGURACIÓN MÓVIL (Mantenemos tu lógica de fila) */
@media (max-width: 767px) {
    .mi-encabezado-sticky {
        display: flex !important; 
        flex-direction: row !important; 
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px !important;
    }
    
    .mi-encabezado-sticky > .elementor-element {
        width: auto !important;
        max-width: 50% !important;
    }
}

/* 6. OCULTAR CABECERAS DE ASTRA Y TÍTULOS */
header, .site-header, .ast-primary-header-bar, .entry-header, #masthead,
.page-id-40 .wp-block-post-title,
.page-id-44 h1.wp-block-post-title,
h1.wp-block-post-title { 
    display: none !important; 
}

/* 7. FIX DE ELEMENTOR PARA SECCIONES QUE VIBRAN */
.elementor-section {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}/* 8. ELIMINAR DEFINITIVAMENTE EL CRÉDITO DE WORDPRESS.COM */
#footer[role="contentinfo"], 
.pda-footer, 
#footer p {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
}
/* 9. ELIMINAR METADATOS Y LÍNEA SUPERIOR (Fecha, Autor, etc.) */
.wp-block-post-author-name,
.wp-block-post-date,
.wp-block-group.is-content-justification-left,
.entry-meta {
    display: none !important;
}

/* 10. ELIMINAR JETPACK (Botones de Compartir y "Me gusta") */
.sharedaddy,
.sd-sharing-enabled,
.robots-nocontent.sd-block,
.jetpack-likes-widget-wrapper,
#like-post-wrapper-249506299 {
    display: none !important;
}

/* 11. ELIMINAR SECCIÓN DE COMENTARIOS COMPLETA */
.wp-block-comments,
.wp-block-heading,
#comments,
#respond,
.comment-respond {
    display: none !important;
}

/* 12. ELIMINAR NAVEGACIÓN DE ENTRADAS (Anterior / Siguiente) */
.wp-block-group.is-content-justification-space-between,
nav.aria-label-Entradas,
.post-navigation,
nav[aria-label="Entradas"] {
    display: none !important;
}

/* 13. ELIMINAR ESPACIO EN BLANCO FINAL (Footer de WordPress) */
footer.wp-block-template-part,
.wp-block-group.has-global-padding {
    display: none !important;
}
/* 14. ELIMINAR LÍNEA DIVISORIA DE JETPACK / WORDPRESS */
hr, 
.sharedaddy hr, 
.entry-content hr, 
.wp-block-separator {
    display: none !important;
    border: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}