/* ============================================================
   PLÉTORA NETWORK – AJUSTES DE VISUALIZACIÓN Y TIPOGRAFÍA
   Versión optimizada: 28 de octubre de 2026
   ============================================================ */

/* --- 1. IMPORTACIÓN DE FUENTES --- */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Roboto:ital,wght@0,300;0,400;0,700;1,400&display=swap');

/* --- 2. OCULTAR ELEMENTOS MOLESTOS --- */
.hello-movieengine-single-content .post-thumbnail { margin-bottom: 0; border-radius: 0; overflow: visible; }
.hello-movieengine-single-content .post-thumbnail img.attachment-post-thumbnail.size-post-thumbnail.wp-post-image { display: none; }

/* Ocultar el selector de servidores */
.movie-engine-layout-inline .movie-engine-server-buttons,
.movie-engine-server-switch { display: none !important; }

/* Ocultar la etiqueta fea superior (Page Title Section Label) */
.hello-movieengine-page-title-section__label { display: none !important; }

/* Ocultar la sección del Page Title SOLO en home y las 3 páginas indicadas */
body.home .hello-movieengine-page-title-section,
body.page-id-78928 .hello-movieengine-page-title-section,
body.page-id-92956 .hello-movieengine-page-title-section,
body.page-id-59300 .hello-movieengine-page-title-section {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    background-image: none !important;
}
.hello-movieengine-page-title-section__overlay,
div.hello-movieengine-page-title-section_overlay { display: none !important; background-image: none !important; }

/* Ocultar la línea separadora (HR) pero mantener su espacio */
.wp-block-separator.has-alpha-channel-opacity { opacity: 0 !important; border: none !important; visibility: hidden; }

/* --- 3. TIPOGRAFÍA GENERAL DEL SITIO --- */
body.movie-engine-plugin, 
.movie-engine-plugin p, 
.wp-block-paragraph {
    font-family: 'Roboto', sans-serif !important;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--hello-movieengine-text-color);
}

/* --- 4. TÍTULOS Y ENCABEZADOS (H1, H2, H3) --- */
.movie-engine-plugin h1, .movie-engine-plugin h2, .movie-engine-plugin h3, .movie-engine-plugin h4,
.wp-block-heading {
    font-family: 'Anton', sans-serif !important;
    color: #999900 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}

/* Título Principal (H1) — SOLO fuera del Hero */
h1.hello-movieengine-page-title-section__title,
.movie-engine-plugin h1:not(.me-hero-title) {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px #001724;
}

/* Subtítulos (H2): Unificamos tipografía, márgenes verticales y laterales en una sola regla */
.movie-engine-plugin h2,
.wp-block-heading {
    font-size: 2.2rem;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    margin-left: clamp(16px, 2.5vw, 48px) !important;
    margin-right: clamp(16px, 2.5vw, 48px) !important;
    padding: 15px 20px;
    border-radius: 8px;
}

/* --- 5. HERO: CORRECCIONES DE LEGIBILIDAD --- */
.movie-engine-hero-section .me-hero-title,
.movie-engine-hero-section .me-hero-title.me-text-image {
    color: #ffffff !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #ffffff !important;
}
.movie-engine-hero-section .me-hero-description {
    color: #f0f0f0 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

/* --- 6. BOTONES DEL HERO --- */
a.movie-engine-btn.movie-engine-btn-play,
button.movie-engine-btn.movie-engine-btn-ppv-trigger,
a.movie-engine-btn.movie-engine-btn-ppv-trigger {
    color: #001724 !important;
    -webkit-text-fill-color: #001724 !important;
    background-color: #999900 !important;
    font-family: 'Anton', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-shadow: none !important;
    border: 2px solid #001724 !important;
}

a.movie-engine-btn.movie-engine-btn-play:hover,
button.movie-engine-btn.movie-engine-btn-ppv-trigger:hover,
a.movie-engine-btn.movie-engine-btn-ppv-trigger:hover {
    background-color: #001724 !important;
    color: #999900 !important;
    -webkit-text-fill-color: #999900 !important;
    border-color: #999900 !important;
}

.movie-engine-hero-section .me-hero-actions .me-secondary-actions a,
.movie-engine-hero-section .me-hero-actions .me-secondary-actions button {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
}

/* --- 7. BADGE DE CALIDAD (HD/4K) ESTILO PLÉTORA --- */
.movie-engine-movie-card .movie-engine-card-poster .movie-engine-card-quality, 
.movie-engine-movie-card .movie-engine-card-poster .movie-engine-item-quality {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #B3B300 !important;
    color: #001724 !important;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 2px;
    z-index: 5;
    text-transform: uppercase;
    border: 1px solid #001724;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 1px;
}

/* ============================================================
   MÁRGENES Y BLOQUES ESPECÍFICOS (Home, Details)
   ============================================================ */

/* Bloques de artículos (Newspack Homepage Articles) */
body.home .wpnbha.is-grid {
    margin-left: clamp(16px, 2.5vw, 48px) !important;
    margin-right: clamp(16px, 2.5vw, 48px) !important;
}

/* Bloques de detalles (<details>) */
.wp-block-details {
    box-sizing: border-box;
    margin-left: clamp(16px, 2.5vw, 48px) !important;
    margin-right: clamp(16px, 2.5vw, 48px) !important;
    padding: 15px 20px;
    border-radius: 8px;
}

/* ============================================================
   HERO: Subir el bloque solo en TV y Red
   ============================================================ */
body.page-id-92956 .movie-engine-hero-section,
body.page-id-59300 .movie-engine-hero-section {
    margin-top: -80px !important;
}

/* ============================================================
   MENÚ DE NAVEGACIÓN (PC y Móvil)
   ============================================================ */
.hello-movieengine-nav-menu > li > a {
    font-family: 'Anton', sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 400 !important;
    color: #999900 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    padding: 8px 12px !important;
    transition: all 0.2s ease-in-out !important;
    position: relative;
}
.hello-movieengine-nav-menu > li > a:hover,
.hello-movieengine-nav-menu > li.current-menu-item > a {
    color: #001724 !important;
    background-color: #999900 !important;
    border-radius: 4px;
}

/* ============================================================
   RESPONSIVE (Móviles)
   ============================================================ */
@media (max-width: 768px) {
    h1.hello-movieengine-page-title-section__title,
    .movie-engine-plugin h1:not(.me-hero-title) {
        font-size: 2.5rem; 
        line-height: 1.2;
    }
    
    .movie-engine-plugin h2,
    .wp-block-heading {
        font-size: 1.8rem;
    }
    
    body.movie-engine-plugin, 
    .movie-engine-plugin p {
        font-size: 1rem;
    }

    .movie-engine-hero-section .me-hero-title {
        font-size: clamp(28px, 8vw, 48px) !important;
    }

    body.page-id-92956 .movie-engine-hero-section,
    body.page-id-59300 .movie-engine-hero-section {
        margin-top: -40px !important;
    }
    
    .hello-movieengine-nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        padding: 20px 0;
    }
    
    .hello-movieengine-nav-menu > li {
        width: 100%;
        text-align: center;
    }

    .hello-movieengine-nav-menu > li > a {
        display: inline-block;
        font-size: 1.5rem !important;
        width: 100%;
        padding: 12px !important;
    }
}