/* SEO Improvements CSS */

/* Clase para H1 oculto visualmente pero accesible para SEO */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Estilos para sección de contenido relacionado */
.related-content {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.related-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 600;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.related-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-item img {
    width: 100%;
    height: auto;
    display: block;
}

.related-item h4 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    font-size: 0.875rem;
    margin: 0;
    font-weight: 500;
}

/* Descripción con enlaces contextuales */
.contextual-links {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #e50914;
    border-radius: 4px;
}

.contextual-links p {
    margin: 0;
    line-height: 1.6;
}

.contextual-links a {
    color: #e50914;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contextual-links a:hover {
    color: #ff1a1a;
    text-decoration: underline;
}

/* Sinopsis genérica en cursiva y gris */
.generic-synopsis {
    font-style: italic;
    color: #999;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}
