/* ==========================================================================
   GLOBAL MODULES V7.0 (Optimizado: Core Gutenberg unificado)
   Carga en: Todas las plantillas Single
   ========================================================================== */

/* ==========================================================================
   A. ESTILOS CORE DE GUTENBERG (Contenido unificado)
   ========================================================================== */
.single-content, 
.bio-text-content, 
.movie-synopsis {
    font-family: var(--font-body, 'Lora', serif);
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

.single-content p, 
.bio-text-content p, 
.movie-synopsis p {
    margin-bottom: 25px;
}

.single-content h2, .single-content h3, .single-content h4,
.bio-text-content h2, .bio-text-content h3, .bio-text-content h4,
.movie-synopsis h2, .movie-synopsis h3, .movie-synopsis h4 {
    font-family: var(--font-titles, "Times New Roman", serif);
    color: #1C3D44;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.single-content h2, .bio-text-content h2, .movie-synopsis h2 { 
    font-size: 1.8rem; 
    border-bottom: 2px solid #eee; 
    padding-bottom: 10px; 
}
.single-content h3, .bio-text-content h3, .movie-synopsis h3 { font-size: 1.5rem; }
.single-content h4, .bio-text-content h4, .movie-synopsis h4 { font-size: 1.2rem; }

.single-content ul, .single-content ol,
.bio-text-content ul, .bio-text-content ol,
.movie-synopsis ul, .movie-synopsis ol {
    margin-left: 20px;
    margin-bottom: 25px;
    padding-left: 20px;
}

.single-content ul, .bio-text-content ul, .movie-synopsis ul { list-style: disc; }
.single-content ol, .bio-text-content ol, .movie-synopsis ol { list-style: decimal; }

.single-content li, .bio-text-content li, .movie-synopsis li {
    margin-bottom: 10px;
}

.single-content blockquote, .bio-text-content blockquote, .movie-synopsis blockquote {
    border-left: 4px solid var(--brand-lime, #EF6E59);
    background: #f9f9f9;
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.single-content figure, .bio-text-content figure, .movie-synopsis figure { margin: 30px 0; }
.single-content img, .bio-text-content img, .movie-synopsis img { 
    border-radius: 8px; 
    max-width: 100%; 
    height: auto; 
}

/* Alta especificidad natural para sobreescribir Gutenberg sin usar !important */
.site-main .single-content p a,
.site-main .single-content li a,
.site-main .bio-text-content p a,
.site-main .bio-text-content li a,
.site-main .movie-synopsis p a,
.site-main .movie-synopsis li a {
    color: var(--brand-lime, #EF6E59);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-main .single-content p a:hover,
.site-main .single-content li a:hover,
.site-main .bio-text-content p a:hover,
.site-main .bio-text-content li a:hover,
.site-main .movie-synopsis p a:hover,
.site-main .movie-synopsis li a:hover {
    color: var(--text-muted, #1C3D44);
    opacity: 0.8;
}

/* ==========================================================================
   B. MÓDULOS GLOBALES (IA, FAQs, Tags, Breadcrumbs)
   ========================================================================== */

/* --- 1. MIGAS DE PAN --- */
.single-breadcrumb {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
    font-family: var(--font-body, 'Lora', serif);
}
.single-breadcrumb a { color: #666; text-decoration: none; }
.single-breadcrumb a:hover { color: var(--brand-lime, #EF6E59); }
.breadcrumb-separator { margin: 0 5px; opacity: 0.5; }
.breadcrumb-current { font-weight: 700; color: #666; }

/* --- 2. RESUMEN DE IA --- */
.single-summary-box {
    background-color: #f9f9f9; 
    border-left: 4px solid #1C3D44; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    padding: 25px;
    margin-bottom: 40px;
    border-radius: 0 8px 8px 0;
}
.summary-title {
    font-size: 1.1rem;
    color: #1C3D44;
    margin: 0 0 15px 0;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-titles, "Times New Roman", serif);
    text-transform: uppercase;
}
.summary-title::before { content: '✨'; font-size: 1.2rem; }
.summary-content {
    color: #444;
    line-height: 1.6;
    font-size: 1rem;
    font-family: var(--font-body, 'Lora', serif);
    font-style: italic;
}

/* --- 3. CONCLUSIÓN DE IA --- */
.ai-conclusion-box {
    background-color: #eef2f5; 
    padding: 30px; 
    border-radius: 12px; 
    margin: 40px 0;
    border-left: 4px solid var(--brand-lime, #EF6E59);
}
.conclusion-title {
    font-family: var(--font-titles, "Times New Roman", serif);
    color: var(--brand-lime, #EF6E59);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 800;
    display: flex; align-items: center; gap: 10px;
}
.conclusion-title::before { content: '🏁'; font-size: 1.2rem; }
.conclusion-content {
    margin-bottom: 0;
    font-family: var(--font-body, 'Lora', serif);
    color: #333;
    line-height: 1.7;
}

/* --- 4. PREGUNTAS FRECUENTES --- */
.global-faq-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.faq-title-small {
    font-family: var(--font-titles, "Times New Roman", serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #1C3D44;
    margin-bottom: 20px;
}
.faq-details {
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
}
.faq-details:hover { border-color: #bbb; }
.faq-details[open] { border-color: #1C3D44; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

.faq-details summary {
    padding: 15px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    background-color: #fafafa;
    border-radius: 8px;
    list-style: none;
    outline: none;
    position: relative;
    color: #333;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-details[open] summary {
    border-bottom: 1px solid #f0f0f0;
    border-radius: 8px 8px 0 0;
    background-color: #fff;
    color: #1C3D44;
}
.faq-details summary::after { content: '+'; font-size: 1.2rem; font-weight: 400; }
.faq-details[open] summary::after { content: '-'; }

.faq-details p {
    padding: 20px;
    font-size: 1rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* --- 5. TEMAS (TAGS) --- */
.single-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px; flex-wrap: wrap; 
}
.tags-label {
    background-color: #111;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    letter-spacing: 0.5px;
    line-height: 1.2;
    flex-shrink: 0;
    border-radius: 2px;
}
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tags-list a {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 4px 10px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
    font-family: var(--font-body, 'Lora', serif);
    line-height: 1.2;
    border-radius: 2px;
}
.tags-list a:hover {
    border-color: #000;
    color: #000;
}

/* --- 6. NAVEGACIÓN --- */
.single-navigation {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    gap: 20px;
    width: 100%;
}
.nav-col { flex: 1; max-width: 48%; min-width: 0; }
.nav-col a { text-decoration: none; display: flex; flex-direction: column; transition: opacity 0.2s; }
.nav-col a:hover { opacity: 0.7; }
.nav-left { text-align: left; }
.nav-right { text-align: right; }
.nav-label { font-size: 0.8rem; color: #999; margin-bottom: 8px; font-family: var(--font-body, 'Lora', serif); }
.nav-title {
    font-size: 1.1rem; font-weight: 700; color: #000; line-height: 1.3;
    font-family: var(--font-titles, sans-serif);
    overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; hyphens: auto;
}

@media (max-width: 768px) {
    .single-tags { flex-direction: row; align-items: center; }
    .single-navigation { flex-direction: column; gap: 30px; }
    .nav-col { max-width: 100%; width: 100%; }
}

/* Seguro anti-desbordamiento para videos de Gutenberg */
.single-content figure.wp-block-embed { margin: 0 0 30px 0; max-width: 100%; overflow: hidden; }
.single-content figure.wp-block-embed .wp-block-embed__wrapper { width: 100%; max-width: 100%; }

/* Soporte para la imagen Hero en el Single Estándar */
.single-hero-img { width: 100%; display: block; height: auto; }